@@ -2802,7 +2802,6 @@ where
28022802/// In other words, the following code has *Undefined Behavior*:
28032803///
28042804/// ```no_run
2805- /// #![feature(is_val_statically_known)]
28062805/// #![feature(core_intrinsics)]
28072806/// # #![allow(internal_features)]
28082807/// use std::hint::unreachable_unchecked;
@@ -2815,7 +2814,6 @@ where
28152814/// may panic, or it may not:
28162815///
28172816/// ```no_run
2818- /// #![feature(is_val_statically_known)]
28192817/// #![feature(core_intrinsics)]
28202818/// # #![allow(internal_features)]
28212819/// use std::intrinsics::is_val_statically_known;
@@ -2848,7 +2846,6 @@ where
28482846/// behave identically:
28492847///
28502848/// ```
2851- /// #![feature(is_val_statically_known)]
28522849/// #![feature(core_intrinsics)]
28532850/// # #![allow(internal_features)]
28542851/// use std::intrinsics::is_val_statically_known;
@@ -2865,7 +2862,11 @@ where
28652862/// # _ = foo(&5_i32);
28662863/// # _ = bar(&5_i32);
28672864/// ```
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) ]
28692870#[ rustc_nounwind]
28702871#[ unstable( feature = "core_intrinsics" , issue = "none" ) ]
28712872#[ rustc_intrinsic]
0 commit comments