Skip to content

Commit c22588b

Browse files
committed
Add min_match_ergonomics_2024 feature gate
1 parent b8615aa commit c22588b

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

compiler/rustc_feature/src/unstable.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -516,6 +516,9 @@ declare_features! (
516516
(unstable, macro_metavar_expr_concat, "1.81.0", Some(124225)),
517517
/// Allows `#[marker]` on certain traits allowing overlapping implementations.
518518
(unstable, marker_trait_attr, "1.30.0", Some(29864)),
519+
/// A very restricted form of match ergonomics used over the 2024 edition transition to give
520+
/// more time for T-lang to decide the final form of RFC3627.
521+
(incomplete, min_match_ergonomics_2024, "CURRENT_RUSTC_VERSION", Some(123076)),
519522
/// A minimal, sound subset of specialization intended to be used by the
520523
/// standard library until the soundness issues with specialization
521524
/// are fixed.

compiler/rustc_span/src/symbol.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1218,6 +1218,7 @@ symbols! {
12181218
min_const_generics,
12191219
min_const_unsafe_fn,
12201220
min_exhaustive_patterns,
1221+
min_match_ergonomics_2024,
12211222
min_specialization,
12221223
min_type_alias_impl_trait,
12231224
minnumf128,

0 commit comments

Comments
 (0)