@@ -3016,7 +3016,6 @@ pub(crate) macro const_eval_select {
3016
3016
/// In other words, the following code has *Undefined Behavior*:
3017
3017
///
3018
3018
/// ```no_run
3019
- /// #![feature(is_val_statically_known)]
3020
3019
/// #![feature(core_intrinsics)]
3021
3020
/// # #![allow(internal_features)]
3022
3021
/// use std::hint::unreachable_unchecked;
@@ -3029,7 +3028,6 @@ pub(crate) macro const_eval_select {
3029
3028
/// may panic, or it may not:
3030
3029
///
3031
3030
/// ```no_run
3032
- /// #![feature(is_val_statically_known)]
3033
3031
/// #![feature(core_intrinsics)]
3034
3032
/// # #![allow(internal_features)]
3035
3033
/// use std::intrinsics::is_val_statically_known;
@@ -3062,7 +3060,6 @@ pub(crate) macro const_eval_select {
3062
3060
/// behave identically:
3063
3061
///
3064
3062
/// ```
3065
- /// #![feature(is_val_statically_known)]
3066
3063
/// #![feature(core_intrinsics)]
3067
3064
/// # #![allow(internal_features)]
3068
3065
/// use std::intrinsics::is_val_statically_known;
@@ -3079,7 +3076,11 @@ pub(crate) macro const_eval_select {
3079
3076
/// # _ = foo(&5_i32);
3080
3077
/// # _ = bar(&5_i32);
3081
3078
/// ```
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) ]
3083
3084
#[ rustc_nounwind]
3084
3085
#[ unstable ( feature = "core_intrinsics" , issue = "none" ) ]
3085
3086
#[ rustc_intrinsic]
0 commit comments