Skip to content

Commit ce24238

Browse files
committed
Add feature gate
1 parent 227abac commit ce24238

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

Diff for: compiler/rustc_feature/src/unstable.rs

+3
Original file line numberDiff line numberDiff line change
@@ -516,6 +516,9 @@ declare_features! (
516516
(unstable, macro_metavar_expr, "1.61.0", Some(83527)),
517517
/// Allows `#[marker]` on certain traits allowing overlapping implementations.
518518
(unstable, marker_trait_attr, "1.30.0", Some(29864)),
519+
/// Allows exhaustive pattern matching on types that contain uninhabited types in cases that are
520+
/// unambiguously sound.
521+
(incomplete, min_exhaustive_patterns, "CURRENT_RUSTC_VERSION", Some(119612)),
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.

Diff for: compiler/rustc_span/src/symbol.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1022,6 +1022,7 @@ symbols! {
10221022
min_const_fn,
10231023
min_const_generics,
10241024
min_const_unsafe_fn,
1025+
min_exhaustive_patterns,
10251026
min_specialization,
10261027
min_type_alias_impl_trait,
10271028
minnumf32,

0 commit comments

Comments
 (0)