about summary refs log tree commit diff
path: root/src/libsyntax/parse
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2013-07-27 05:25:34 -0700
committerbors <bors@rust-lang.org>2013-07-27 05:25:34 -0700
commited20fcc4596c45aef37a1e8a13dd9fcd6e0e6dd5 (patch)
tree497aad16471137365b501ea6c091d6a556f707ee /src/libsyntax/parse
parente7211948a546596bbe058b4fd3748a24adecaf02 (diff)
parent2a18c29d67943e284d89b14a7a26202a7dd37f9b (diff)
downloadrust-ed20fcc4596c45aef37a1e8a13dd9fcd6e0e6dd5.tar.gz
rust-ed20fcc4596c45aef37a1e8a13dd9fcd6e0e6dd5.zip
auto merge of #8060 : Blei/rust/fix-obsolete-extern-visibility-span, r=pcwalton
Diffstat (limited to 'src/libsyntax/parse')
-rw-r--r--src/libsyntax/parse/parser.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs
index bb3c185c2a9..dc42b4bdb80 100644
--- a/src/libsyntax/parse/parser.rs
+++ b/src/libsyntax/parse/parser.rs
@@ -4196,7 +4196,7 @@ impl Parser {
 
             // Do not allow visibility to be specified.
             if visibility != ast::inherited {
-                self.obsolete(*self.span, ObsoleteExternVisibility);
+                self.obsolete(*self.last_span, ObsoleteExternVisibility);
             }
 
             let abis = opt_abis.get_or_default(AbiSet::C());