Positive case of len()
-> is_empty()
`s/(?<!\{ self)(?<=\.)len\(\) == 0/is_empty()/g`
This commit is contained in:
parent
16e1fcead1
commit
29ac04402d
67 changed files with 117 additions and 117 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue