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.
1 parent 09b6eca commit 0d43437Copy full SHA for 0d43437
compiler/rustc_ast/src/token.rs
@@ -907,7 +907,7 @@ impl NonterminalKind {
907
},
908
sym::pat_param => NonterminalKind::PatParam { inferred: false },
909
sym::expr => NonterminalKind::Expr,
910
- sym::expr_2021 if edition() >= Edition::Edition2021 => NonterminalKind::Expr2021,
+ sym::expr_2021 if edition().at_least_rust_2021() => NonterminalKind::Expr2021,
911
sym::ty => NonterminalKind::Ty,
912
sym::ident => NonterminalKind::Ident,
913
sym::lifetime => NonterminalKind::Lifetime,
0 commit comments