Better span for error message

This commit is contained in:
Pawel Wieczorek 2017-04-24 20:25:14 +02:00
parent 0b87eb71e4
commit e265fa81fe

View File

@ -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");
}
}