We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
match
1 parent 9a3c907 commit e46caafCopy full SHA for e46caaf
compiler/rustc_parse/src/parser/nonterminal.rs
@@ -64,10 +64,7 @@ impl<'a> Parser<'a> {
64
},
65
NonterminalKind::Path | NonterminalKind::Meta => match &token.kind {
66
token::ModSep | token::Ident(..) => true,
67
- token::Interpolated(nt) => match **nt {
68
- NtPath(_) | NtMeta(_) => true,
69
- _ => may_be_ident(&nt),
70
- },
+ token::Interpolated(nt) => may_be_ident(nt),
71
_ => false,
72
73
NonterminalKind::PatParam { .. } | NonterminalKind::PatWithOr => {
0 commit comments