rust/compiler/rustc_parse/src/parser
bors 9b75a43881 Auto merge of #123865 - eholk:expr_2021, r=fmease
Update `expr` matcher for Edition 2024 and add `expr_2021` nonterminal

This commit adds a new nonterminal `expr_2021` in macro patterns, and `expr_fragment_specifier_2024` feature flag.

This change also updates `expr` so that on Edition 2024 it will also match `const { ... }` blocks, while `expr_2021` preserves the current behavior of `expr`, matching expressions without `const` blocks.

Joint work with `@vincenzopalazzo.`

Issue #123742
2024-05-17 21:54:14 +00:00
..
mut_visit Move some tests from rustc_expand to rustc_parse. 2024-05-06 09:06:02 +10:00
tokenstream Move some tests from rustc_expand to rustc_parse. 2024-05-06 09:06:02 +10:00
attr.rs Remove a Span from TokenKind::Interpolated. 2024-05-13 10:30:30 +10:00
attr_wrapper.rs Simplify static_assert_sizes. 2024-04-18 15:36:25 +10:00
diagnostics.rs Remove a Span from TokenKind::Interpolated. 2024-05-13 10:30:30 +10:00
expr.rs Remove NtIdent and NtLifetime. 2024-05-14 08:19:58 +10:00
generics.rs Parsing , pre-lowering support for precise captures 2024-04-15 16:45:01 -04:00
item.rs delegation: Implement list delegation 2024-05-15 02:32:59 +03:00
mod.rs Remove NtIdent and NtLifetime. 2024-05-14 08:19:58 +10:00
nonterminal.rs Auto merge of #123865 - eholk:expr_2021, r=fmease 2024-05-17 21:54:14 +00:00
pat.rs Remove a Span from TokenKind::Interpolated. 2024-05-13 10:30:30 +10:00
path.rs delegation: Implement list delegation 2024-05-15 02:32:59 +03:00
stmt.rs Remove MacCall special cases from Parser::parse_full_stmt 2024-05-11 15:49:51 -07:00
tests.rs Move some tests from rustc_expand to rustc_parse. 2024-05-06 09:06:02 +10:00
ty.rs Warn against redundant use<...> 2024-05-13 23:57:56 -04:00