We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ada5e2c + 252f83a commit d693ebaCopy full SHA for d693eba
compiler/rustc_parse/src/parser/nonterminal.rs
@@ -47,7 +47,7 @@ impl<'a> Parser<'a> {
47
token.can_begin_expr()
48
// This exception is here for backwards compatibility.
49
&& !token.is_keyword(kw::Let)
50
- && (token.span.edition().at_least_rust_2024() || !token.is_keyword(kw::Const))
+ && (!token.is_keyword(kw::Const) || token.span.edition().at_least_rust_2024())
51
}
52
NonterminalKind::Ty => token.can_begin_type(),
53
NonterminalKind::Ident => get_macro_ident(token).is_some(),
0 commit comments