1
Fork 0

remove deprecated vec::{is_empty, len} functions

This commit is contained in:
Daniel Micay 2013-06-08 21:38:47 -04:00
parent 470bf0dfb3
commit de367157b5
38 changed files with 100 additions and 104 deletions

View file

@ -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");
}