1
Fork 0

Positive case of len() -> is_empty()

`s/(?<!\{ self)(?<=\.)len\(\) == 0/is_empty()/g`
This commit is contained in:
Tamir Duberstein 2015-03-24 16:53:34 -07:00
parent 16e1fcead1
commit 29ac04402d
67 changed files with 117 additions and 117 deletions

View file

@ -472,7 +472,7 @@ pub fn parse(sess: &ParseSess,
"local ambiguity: multiple parsing options: \
built-in NTs {} or {} other options.",
nts, next_eis.len()).to_string());
} else if bb_eis.len() == 0 && next_eis.len() == 0 {
} else if bb_eis.is_empty() && next_eis.is_empty() {
return Failure(sp, format!("no rules expected the token `{}`",
pprust::token_to_string(&tok)).to_string());
} else if next_eis.len() > 0 {