remove remaining is_not_empty functions/methods
This commit is contained in:
parent
ec3f6e1932
commit
e4337a9def
18 changed files with 17 additions and 54 deletions
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue