about summary refs log tree commit diff
path: root/src/libsyntax/parse/attr.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2013-05-05 11:12:37 -0700
committerbors <bors@rust-lang.org>2013-05-05 11:12:37 -0700
commit6e6a4be19d8e6a2cedc66be6cc602db8a1e71acd (patch)
tree53802b0ed10b2e711fab87d0079c180d2b8d4046 /src/libsyntax/parse/attr.rs
parent063851ffa1b8388a0b70446c0209af16264e8181 (diff)
parentaca2a00fb4cf2ec182cb7802194813c5dd6bbf27 (diff)
downloadrust-6e6a4be19d8e6a2cedc66be6cc602db8a1e71acd.tar.gz
rust-6e6a4be19d8e6a2cedc66be6cc602db8a1e71acd.zip
auto merge of #6208 : sanxiyn/rust/accurate-span, r=sanxiyn
Diffstat (limited to 'src/libsyntax/parse/attr.rs')
-rw-r--r--src/libsyntax/parse/attr.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/parse/attr.rs b/src/libsyntax/parse/attr.rs
index 037b2c089f4..93584b00d39 100644
--- a/src/libsyntax/parse/attr.rs
+++ b/src/libsyntax/parse/attr.rs
@@ -156,7 +156,7 @@ impl parser_attr for Parser {
                 @spanned(lo, hi, ast::meta_list(name, inner_items))
             }
             _ => {
-                let hi = self.span.hi;
+                let hi = self.last_span.hi;
                 @spanned(lo, hi, ast::meta_word(name))
             }
         }