diff options
| author | Jules Bertholet <julesbertholet@quoi.xyz> | 2024-03-31 22:27:19 -0500 |
|---|---|---|
| committer | Jules Bertholet <julesbertholet@quoi.xyz> | 2024-04-15 23:34:44 -0400 |
| commit | 93544d5db3d8f0d0e5d2ea344154689008fa2ff8 (patch) | |
| tree | 0b499c2f52cde77703a03bdd550b6307353ea446 /compiler/rustc_feature/src | |
| parent | 63f70b3d104e20289a1a0df82747066c3d85b9a1 (diff) | |
| download | rust-93544d5db3d8f0d0e5d2ea344154689008fa2ff8.tar.gz rust-93544d5db3d8f0d0e5d2ea344154689008fa2ff8.zip | |
Match ergonomics 2024: Implement eat-one-layer
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 e6b19817de3..5d17675a532 100644 --- a/compiler/rustc_feature/src/unstable.rs +++ b/compiler/rustc_feature/src/unstable.rs @@ -571,6 +571,8 @@ declare_features! ( (unstable, proc_macro_hygiene, "1.30.0", Some(54727)), /// Allows `&raw const $place_expr` and `&raw mut $place_expr` expressions. (unstable, raw_ref_op, "1.41.0", Some(64490)), + /// Makes `&` and `&mut` patterns eat only one layer of references in Rust 2024. + (incomplete, ref_pat_eat_one_layer_2024, "CURRENT_RUSTC_VERSION", Some(123076)), /// Allows `&` and `&mut` patterns to consume match-ergonomics-inserted references. (incomplete, ref_pat_everywhere, "CURRENT_RUSTC_VERSION", Some(123076)), /// Allows using the `#[register_tool]` attribute. |
