about summary refs log tree commit diff
path: root/src/libsyntax/parse
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2013-06-08 22:34:10 -0700
committerbors <bors@rust-lang.org>2013-06-08 22:34:10 -0700
commit88c318d28c7d8fe8346d38d73cb0b1a30f33f278 (patch)
treea34e1f59897f191c6a94d7da0c1f97b4fe84ffb8 /src/libsyntax/parse
parent1f0c05ff745cbb40ad065be6522e2c671fc6bb93 (diff)
parentde367157b55ee8664dfceec2c2e291087d5c188a (diff)
downloadrust-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.rs4
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");
         }