summaryrefslogtreecommitdiff
path: root/oryxc/src
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2026-03-15 23:05:44 +0100
committerThomas Voss <mail@thomasvoss.com> 2026-03-15 23:05:44 +0100
commit72b874a081fed4788378e16b0bfb3a0ed7e5725f (patch)
tree2ecfe1c0aa29fca9e9e4f4f611d56a37cba919ba /oryxc/src
parentacd472ae2a246194b1c632e0ab0f91f0f88f60ec (diff)
Use the new interner API in compiler
Diffstat (limited to 'oryxc/src')
-rw-r--r--oryxc/src/compiler.rs5
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,