Skip to content

Commit

Permalink
Update compiler/rustc_ast/src/token.rs
Browse files Browse the repository at this point in the history
Co-authored-by: León Orell Valerian Liehr <[email protected]>
  • Loading branch information
eholk and fmease authored Apr 30, 2024
1 parent 09b6eca commit 0d43437
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_ast/src/token.rs
Original file line number Diff line number Diff line change
Expand Up @@ -907,7 +907,7 @@ impl NonterminalKind {
},
sym::pat_param => NonterminalKind::PatParam { inferred: false },
sym::expr => NonterminalKind::Expr,
sym::expr_2021 if edition() >= Edition::Edition2021 => NonterminalKind::Expr2021,
sym::expr_2021 if edition().at_least_rust_2021() => NonterminalKind::Expr2021,
sym::ty => NonterminalKind::Ty,
sym::ident => NonterminalKind::Ident,
sym::lifetime => NonterminalKind::Lifetime,
Expand Down

0 comments on commit 0d43437

Please sign in to comment.