@@ -3016,7 +3016,6 @@ pub(crate) macro const_eval_select {
30163016/// In other words, the following code has *Undefined Behavior*:
30173017///
30183018/// ```no_run
3019- /// #![feature(is_val_statically_known)]
30203019/// #![feature(core_intrinsics)]
30213020/// # #![allow(internal_features)]
30223021/// use std::hint::unreachable_unchecked;
@@ -3029,7 +3028,6 @@ pub(crate) macro const_eval_select {
30293028/// may panic, or it may not:
30303029///
30313030/// ```no_run
3032- /// #![feature(is_val_statically_known)]
30333031/// #![feature(core_intrinsics)]
30343032/// # #![allow(internal_features)]
30353033/// use std::intrinsics::is_val_statically_known;
@@ -3062,7 +3060,6 @@ pub(crate) macro const_eval_select {
30623060/// behave identically:
30633061///
30643062/// ```
3065- /// #![feature(is_val_statically_known)]
30663063/// #![feature(core_intrinsics)]
30673064/// # #![allow(internal_features)]
30683065/// use std::intrinsics::is_val_statically_known;
@@ -3079,7 +3076,11 @@ pub(crate) macro const_eval_select {
30793076/// # _ = foo(&5_i32);
30803077/// # _ = bar(&5_i32);
30813078/// ```
3082- #[ rustc_const_unstable ( feature = "is_val_statically_known" , issue = "none" ) ]
3079+ #[ cfg_attr (
3080+ bootstrap,
3081+ rustc_const_stable ( feature = "const_is_val_statically_known" , since = "CURRENT_RUSTC_VERSION" )
3082+ ) ]
3083+ #[ cfg_attr ( not ( bootstrap) , rustc_const_stable_indirect) ]
30833084#[ rustc_nounwind]
30843085#[ unstable ( feature = "core_intrinsics" , issue = "none" ) ]
30853086#[ rustc_intrinsic]
0 commit comments