Incorporate review feedback. Fix #8468.
This commit is contained in:
parent
ba1f44d24f
commit
1b3cd960de
1 changed files with 1 additions and 4 deletions
|
@ -348,10 +348,7 @@ impl Drop for Parser {
|
|||
}
|
||||
|
||||
fn is_plain_ident_or_underscore(t: &token::Token) -> bool {
|
||||
match *t {
|
||||
token::IDENT(_, false) | token::UNDERSCORE => true,
|
||||
_ => false,
|
||||
}
|
||||
is_plain_ident(t) || *t == token::UNDERSCORE
|
||||
}
|
||||
|
||||
impl Parser {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue