From 1b3a03009215b518572b03dd4bf02dbcba129527 Mon Sep 17 00:00:00 2001 From: lucy Date: Thu, 29 May 2014 14:40:41 +0200 Subject: syntax: Fix span on illegal ABI errors Fixes #8537 Fixes #14499 --- src/libsyntax/parse/parser.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libsyntax/parse') 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(", "), -- cgit 1.4.1-3-g733a5