From 3932bb2cb93be95d67fc56998423eb9ce047fdfa Mon Sep 17 00:00:00 2001 From: Laurenz Date: Mon, 9 Aug 2021 11:06:37 +0200 Subject: New source loading architecture --- src/parse/parser.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/parse/parser.rs') 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, message: impl Into) { - 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`. -- cgit v1.2.3