diff options
Diffstat (limited to 'src/libsyntax/parse')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index 8ebb7de0bfe..59db35201f1 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -2768,7 +2768,7 @@ impl Parser { attributes_box.push_all(self.parse_outer_attributes()); match *self.token { token::SEMI => { - if !vec::is_empty(attributes_box) { + if !attributes_box.is_empty() { self.span_err(*self.last_span, "expected item after attributes"); attributes_box = ~[]; } @@ -2839,7 +2839,7 @@ impl Parser { } } - if !vec::is_empty(attributes_box) { + if !attributes_box.is_empty() { self.span_err(*self.last_span, "expected item after attributes"); } |
