diff options
| author | bors <bors@rust-lang.org> | 2014-07-13 03:01:32 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-07-13 03:01:32 +0000 |
| commit | ad7ef8c27cffcaf14a6e75fad35d42daee83b8cd (patch) | |
| tree | 06fbf9790fc0fdf8bb65c054a788ab6ad4ea8dde /src/libsyntax/parse | |
| parent | 5d200dd60dabf94323d13b98b6c3d0b88f100b85 (diff) | |
| parent | 52ccab1405478837193893ae47d17e3de64a77e6 (diff) | |
| download | rust-ad7ef8c27cffcaf14a6e75fad35d42daee83b8cd.tar.gz rust-ad7ef8c27cffcaf14a6e75fad35d42daee83b8cd.zip | |
auto merge of #15621 : sfackler/rust/attr-span, r=cmr
They used to be one token too long, so you'd see things like
```
rust/rust/test.rs:1:1: 2:2 warning: unused attribute,
rust/rust/test.rs:1 #![foo]
rust/rust/test.rs:2 #![bar]
```
instead of
```
test.rs:1:1: 1:8 warning: unused attribute, #[warn(unused_attribute)] on
by default
test.rs:1 #![foo]
^~~~~~~
```
Diffstat (limited to 'src/libsyntax/parse')
| -rw-r--r-- | src/libsyntax/parse/attr.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/parse/attr.rs b/src/libsyntax/parse/attr.rs index 55ad1b77123..550dbfdab71 100644 --- a/src/libsyntax/parse/attr.rs +++ b/src/libsyntax/parse/attr.rs @@ -85,9 +85,9 @@ impl<'a> ParserAttr for Parser<'a> { self.expect(&token::LBRACKET); let meta_item = self.parse_meta_item(); + let hi = self.span.hi; self.expect(&token::RBRACKET); - let hi = self.span.hi; (mk_sp(lo, hi), meta_item, style) } _ => { |
