about summary refs log tree commit diff
path: root/src/libsyntax/parse/parser.rs
diff options
context:
space:
mode:
authorTim Chevalier <chevalier@alum.wellesley.edu>2013-01-25 11:57:51 -0800
committerTim Chevalier <chevalier@alum.wellesley.edu>2013-01-25 11:57:51 -0800
commit85a34c2898b6a64f319f288e69b8cd433a660a17 (patch)
tree901255df7138d69cda1affc99ed1a6da77ef1e1c /src/libsyntax/parse/parser.rs
parent4a7e1ab3745f519536ef6e0377427fc41e47f7c6 (diff)
parente4337a9defcad3f2a65da285ab78f8ede554f379 (diff)
downloadrust-85a34c2898b6a64f319f288e69b8cd433a660a17.tar.gz
rust-85a34c2898b6a64f319f288e69b8cd433a660a17.zip
Merge pull request #4625 from thestinger/container
more little container improvements
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
-rw-r--r--src/libsyntax/parse/parser.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs
index 7183b623ef4..0bd08250617 100644
--- a/src/libsyntax/parse/parser.rs
+++ b/src/libsyntax/parse/parser.rs
@@ -2237,7 +2237,7 @@ impl Parser {
 
         fn check_expected_item(p: Parser, current_attrs: ~[attribute]) {
             // If we have attributes then we should have an item
-            if vec::is_not_empty(current_attrs) {
+            if !current_attrs.is_empty() {
                 p.fatal(~"expected item after attrs");
             }
         }