diff options
Diffstat (limited to 'oryxc/src/compiler.rs')
| -rw-r--r-- | oryxc/src/compiler.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/oryxc/src/compiler.rs b/oryxc/src/compiler.rs index 8bad9bd..1c1240e 100644 --- a/oryxc/src/compiler.rs +++ b/oryxc/src/compiler.rs @@ -43,6 +43,7 @@ use crate::parser::{ AstType, }; use crate::prelude::*; +use crate::unistr::UniStr; use crate::{ Flags, err, @@ -122,7 +123,7 @@ struct CompilerState<'a> { * after the interner. This is because the interner holds references * to substrings of file buffers, so we want to control the drop * order to avoid any potential undefined behaviour. */ - interner: Interner<'a>, + interner: Interner<UniStr<'a>, SymbolId>, files: Vec<Arc<FileData>>, deps: DashMap<usize, boxcar::Vec<Job>>, next_id: AtomicU32, @@ -391,7 +392,7 @@ fn worker_loop( &*(&fdata.buffer[span.0..span.1] as *const str) }; - let symid = c_state.interner.intern(view); + let symid = c_state.interner.intern(UniStr(view)); let sym = Symbol { state: ResolutionState::Unresolved, kind: SymbolType::Constant, |