@@ -2802,7 +2802,6 @@ where
2802
2802
/// In other words, the following code has *Undefined Behavior*:
2803
2803
///
2804
2804
/// ```no_run
2805
- /// #![feature(is_val_statically_known)]
2806
2805
/// #![feature(core_intrinsics)]
2807
2806
/// # #![allow(internal_features)]
2808
2807
/// use std::hint::unreachable_unchecked;
@@ -2815,7 +2814,6 @@ where
2815
2814
/// may panic, or it may not:
2816
2815
///
2817
2816
/// ```no_run
2818
- /// #![feature(is_val_statically_known)]
2819
2817
/// #![feature(core_intrinsics)]
2820
2818
/// # #![allow(internal_features)]
2821
2819
/// use std::intrinsics::is_val_statically_known;
@@ -2848,7 +2846,6 @@ where
2848
2846
/// behave identically:
2849
2847
///
2850
2848
/// ```
2851
- /// #![feature(is_val_statically_known)]
2852
2849
/// #![feature(core_intrinsics)]
2853
2850
/// # #![allow(internal_features)]
2854
2851
/// use std::intrinsics::is_val_statically_known;
@@ -2865,7 +2862,11 @@ where
2865
2862
/// # _ = foo(&5_i32);
2866
2863
/// # _ = bar(&5_i32);
2867
2864
/// ```
2868
- #[ rustc_const_unstable( feature = "is_val_statically_known" , issue = "none" ) ]
2865
+ #[ cfg_attr(
2866
+ bootstrap,
2867
+ rustc_const_stable( feature = "const_is_val_statically_known" , since = "CURRENT_RUSTC_VERSION" )
2868
+ ) ]
2869
+ #[ cfg_attr( not( bootstrap) , rustc_const_stable_indirect) ]
2869
2870
#[ rustc_nounwind]
2870
2871
#[ unstable( feature = "core_intrinsics" , issue = "none" ) ]
2871
2872
#[ rustc_intrinsic]
0 commit comments