mirror of
https://github.com/fluencelabs/lalrpop
synced 2025-03-16 17:00:53 +00:00
Better span for error message
This commit is contained in:
parent
0b87eb71e4
commit
e265fa81fe
@ -177,13 +177,8 @@ impl<'grammar> Validator<'grammar> {
|
||||
}
|
||||
};
|
||||
if norm_util::check_funky_expression(action).is_in_curly_brackets() {
|
||||
let sym =
|
||||
syms.iter()
|
||||
.map(|&(_, sym)| sym)
|
||||
.next()
|
||||
.unwrap();
|
||||
return_err!(
|
||||
sym.span,
|
||||
alternative.span,
|
||||
"the `<>` expression requires to explicitly assign fields' names to values");
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user