forked from Orchid/orchid
Converted Interner to work with Rc-s
- Interner no longer contains unsafe code - Tokens now hold a reference to the value they represent directly This will enable many future improvements
This commit is contained in:
@@ -52,14 +52,14 @@ impl ProjectError for MissingSystemCode {
|
||||
fn description(&self) -> &str {
|
||||
"A system tried to import a path that doesn't exist"
|
||||
}
|
||||
fn message(&self, i: &Interner) -> String {
|
||||
fn message(&self) -> String {
|
||||
format!(
|
||||
"Path {} is not defined by {} or any system before it",
|
||||
i.extern_all(&self.path).join("::"),
|
||||
Interner::extern_all(&self.path).join("::"),
|
||||
self.system.join("::")
|
||||
)
|
||||
}
|
||||
fn positions(&self, _i: &Interner) -> BoxedIter<ErrorPosition> {
|
||||
fn positions(&self) -> BoxedIter<ErrorPosition> {
|
||||
box_empty()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user