diff options
Diffstat (limited to 'src/parse')
| -rw-r--r-- | src/parse/parser.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parse/parser.rs b/src/parse/parser.rs index 6b478780..326fc280 100644 --- a/src/parse/parser.rs +++ b/src/parse/parser.rs @@ -82,7 +82,7 @@ impl<'s> Parser<'s> { /// Add an error with location and message. pub fn error(&mut self, span: impl Into<Span>, message: impl Into<String>) { - self.errors.push(Error::new(self.source.file(), span, message)); + self.errors.push(Error::new(self.source.id(), span, message)); } /// Eat the next token and add an error that it is not the expected `thing`. |
