From 72b874a081fed4788378e16b0bfb3a0ed7e5725f Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Sun, 15 Mar 2026 23:05:44 +0100 Subject: Use the new interner API in compiler --- oryxc/src/compiler.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'oryxc/src/compiler.rs') 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, SymbolId>, files: Vec>, deps: DashMap>, 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, -- cgit v1.2.3