File tree 4 files changed +5
-6
lines changed
4 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -2865,7 +2865,11 @@ where
2865
2865
/// # _ = foo(&5_i32);
2866
2866
/// # _ = bar(&5_i32);
2867
2867
/// ```
2868
- #[ rustc_const_unstable( feature = "is_val_statically_known" , issue = "none" ) ]
2868
+ #[ cfg_attr(
2869
+ bootstrap,
2870
+ rustc_const_stable( feature = "const_is_val_statically_known" , since = "CURRENT_RUSTC_VERSION" )
2871
+ ) ]
2872
+ #[ cfg_attr( not( bootstrap) , rustc_const_stable_indirect) ]
2869
2873
#[ rustc_nounwind]
2870
2874
#[ unstable( feature = "core_intrinsics" , issue = "none" ) ]
2871
2875
#[ rustc_intrinsic]
Original file line number Diff line number Diff line change 149
149
#![ feature( internal_impls_macro) ]
150
150
#![ feature( ip) ]
151
151
#![ feature( is_ascii_octdigit) ]
152
- #![ feature( is_val_statically_known) ]
153
152
#![ feature( lazy_get) ]
154
153
#![ feature( link_cfg) ]
155
154
#![ feature( non_null_from_ref) ]
Original file line number Diff line number Diff line change @@ -2260,7 +2260,6 @@ macro_rules! int_impl {
2260
2260
#[ must_use = "this returns the result of the operation, \
2261
2261
without modifying the original"]
2262
2262
#[ inline]
2263
- #[ rustc_allow_const_fn_unstable( is_val_statically_known) ]
2264
2263
pub const fn wrapping_pow( self , mut exp: u32 ) -> Self {
2265
2264
if exp == 0 {
2266
2265
return 1 ;
@@ -2828,7 +2827,6 @@ macro_rules! int_impl {
2828
2827
without modifying the original"]
2829
2828
#[ inline]
2830
2829
#[ rustc_inherit_overflow_checks]
2831
- #[ rustc_allow_const_fn_unstable( is_val_statically_known) ]
2832
2830
pub const fn pow( self , mut exp: u32 ) -> Self {
2833
2831
if exp == 0 {
2834
2832
return 1 ;
Original file line number Diff line number Diff line change @@ -2190,7 +2190,6 @@ macro_rules! uint_impl {
2190
2190
#[ must_use = "this returns the result of the operation, \
2191
2191
without modifying the original"]
2192
2192
#[ inline]
2193
- #[ rustc_allow_const_fn_unstable( is_val_statically_known) ]
2194
2193
pub const fn wrapping_pow( self , mut exp: u32 ) -> Self {
2195
2194
if exp == 0 {
2196
2195
return 1 ;
@@ -2706,7 +2705,6 @@ macro_rules! uint_impl {
2706
2705
without modifying the original"]
2707
2706
#[ inline]
2708
2707
#[ rustc_inherit_overflow_checks]
2709
- #[ rustc_allow_const_fn_unstable( is_val_statically_known) ]
2710
2708
pub const fn pow( self , mut exp: u32 ) -> Self {
2711
2709
if exp == 0 {
2712
2710
return 1 ;
You can’t perform that action at this time.
0 commit comments