about summary refs log tree commit diff
path: root/src/libsyntax/parse
diff options
context:
space:
mode:
authorDaniel Micay <danielmicay@gmail.com>2013-06-08 21:38:47 -0400
committerDaniel Micay <danielmicay@gmail.com>2013-06-08 23:19:30 -0400
commitde367157b55ee8664dfceec2c2e291087d5c188a (patch)
tree3d8ba27d2250f4a7a06235b422e674514a69e7b2 /src/libsyntax/parse
parent470bf0dfb362e7494cfddf4e7d443e1264dfdf2f (diff)
downloadrust-de367157b55ee8664dfceec2c2e291087d5c188a.tar.gz
rust-de367157b55ee8664dfceec2c2e291087d5c188a.zip
remove deprecated vec::{is_empty, len} functions
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");
         }