diff options
| author | Eric Holk <ericholk@microsoft.com> | 2024-04-12 10:19:23 -0700 |
|---|---|---|
| committer | Eric Holk <ericholk@microsoft.com> | 2024-05-13 11:27:26 -0700 |
| commit | ef6478ba5fde1a1ed6db27fc7f558bc26e38d781 (patch) | |
| tree | 5aa3810b035d94d717ce85e1c0010f2e2d566b06 /compiler/rustc_feature/src | |
| parent | 030a12ce2b1ee42f2d8837b1b500fd9cf12ea191 (diff) | |
| download | rust-ef6478ba5fde1a1ed6db27fc7f558bc26e38d781.tar.gz rust-ef6478ba5fde1a1ed6db27fc7f558bc26e38d781.zip | |
Add expr_2021 nonterminal and feature flag
This commit adds a new nonterminal `expr_2021` in macro patterns, and `expr_fragment_specifier_2024` feature flag. For now, `expr` and `expr_2021` are treated the same, but in future PRs we will update `expr` to match to new grammar. Co-authored-by: Vincezo Palazzo <vincenzopalazzodev@gmail.com>
Diffstat (limited to 'compiler/rustc_feature/src')
| -rw-r--r-- | compiler/rustc_feature/src/unstable.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_feature/src/unstable.rs b/compiler/rustc_feature/src/unstable.rs index 60b386acf91..c6fc9de119d 100644 --- a/compiler/rustc_feature/src/unstable.rs +++ b/compiler/rustc_feature/src/unstable.rs @@ -458,6 +458,8 @@ declare_features! ( (unstable, exhaustive_patterns, "1.13.0", Some(51085)), /// Allows explicit tail calls via `become` expression. (incomplete, explicit_tail_calls, "1.72.0", Some(112788)), + /// Uses 2024 rules for matching `expr` fragments in macros. Also enables `expr_2021` fragment. + (incomplete, expr_fragment_specifier_2024, "CURRENT_RUSTC_VERSION", Some(123742)), /// Allows using `efiapi`, `sysv64` and `win64` as calling convention /// for functions with varargs. (unstable, extended_varargs_abi_support, "1.65.0", Some(100189)), |
