diff options
| author | bors <bors@rust-lang.org> | 2013-06-08 22:34:10 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-06-08 22:34:10 -0700 |
| commit | 88c318d28c7d8fe8346d38d73cb0b1a30f33f278 (patch) | |
| tree | a34e1f59897f191c6a94d7da0c1f97b4fe84ffb8 /src/libsyntax/parse | |
| parent | 1f0c05ff745cbb40ad065be6522e2c671fc6bb93 (diff) | |
| parent | de367157b55ee8664dfceec2c2e291087d5c188a (diff) | |
| download | rust-88c318d28c7d8fe8346d38d73cb0b1a30f33f278.tar.gz rust-88c318d28c7d8fe8346d38d73cb0b1a30f33f278.zip | |
auto merge of #7023 : thestinger/rust/vec, r=brson
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"); } |
