diff options
| author | lucy <ne.tetewi@gmail.com> | 2014-05-29 14:40:41 +0200 |
|---|---|---|
| committer | lucy <ne.tetewi@gmail.com> | 2014-05-29 19:09:46 +0200 |
| commit | 1b3a03009215b518572b03dd4bf02dbcba129527 (patch) | |
| tree | ba4adb64e8ea65f78b5c8041e2850880b3a8ce01 /src/libsyntax/parse | |
| parent | ff2bf58e9e0c1e7b154b88fc7ba8c52584e9f768 (diff) | |
| download | rust-1b3a03009215b518572b03dd4bf02dbcba129527.tar.gz rust-1b3a03009215b518572b03dd4bf02dbcba129527.zip | |
syntax: Fix span on illegal ABI errors
Fixes #8537 Fixes #14499
Diffstat (limited to 'src/libsyntax/parse')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index 65ad83d4b4f..2884bb68261 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -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(", "), |
