diff options
Diffstat (limited to 'src/parse/macros.rs')
| -rw-r--r-- | src/parse/macros.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/parse/macros.rs b/src/parse/macros.rs index 9cf995c..aad6144 100644 --- a/src/parse/macros.rs +++ b/src/parse/macros.rs @@ -16,13 +16,13 @@ macro_rules! consume { if let Token {kind: $( $kind )|+, ..} = token { Ok(token) } else { - Err(parser_error(ErrorLocation::Specific(token.location), ParserError::UnexpectedToken { + Err(ParserError::new(ParserErrorLocation::Specific(token.location), ParserErrorKind::UnexpectedToken { received: token.kind, expected: merge_token_names!($($kind),+), })) } } else { - Err(parser_error(ErrorLocation::Eof, ParserError::UnexpectedEof { + Err(ParserError::new(ParserErrorLocation::Eof, ParserErrorKind::UnexpectedEof { expected: merge_token_names!($($kind),+), })) } |
