remove deprecated vec::{is_empty, len} functions
This commit is contained in:
parent
470bf0dfb3
commit
de367157b5
38 changed files with 100 additions and 104 deletions
|
@ -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");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue