1
Fork 0

syntax: Fix span on illegal ABI errors

Fixes #8537
Fixes #14499
This commit is contained in:
lucy 2014-05-29 14:40:41 +02:00
parent ff2bf58e9e
commit 1b3a030092
2 changed files with 16 additions and 1 deletions

View file

@ -4537,7 +4537,7 @@ impl<'a> Parser<'a> {
Some(abi) => Some(abi),
None => {
self.span_err(
self.span,
self.last_span,
format!("illegal ABI: expected one of [{}], \
found `{}`",
abi::all_names().connect(", "),