@@ -740,9 +740,10 @@ assert_eq!((", stringify!($SelfT), "::MAX - 2).checked_add(3), None);",
740
740
$EndFeature, "
741
741
```" ) ,
742
742
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
743
- #[ rustc_const_unstable ( feature = "const_checked_int_methods" , issue = "53718 " ) ]
743
+ #[ rustc_const_stable ( feature = "const_checked_int_methods" , since = "1.46.0 " ) ]
744
744
#[ must_use = "this returns the result of the operation, \
745
745
without modifying the original"]
746
+ #[ cfg_attr( bootstrap, allow_internal_unstable( const_if_match) ) ]
746
747
#[ inline]
747
748
pub const fn checked_add( self , rhs: Self ) -> Option <Self > {
748
749
let ( a, b) = self . overflowing_add( rhs) ;
@@ -782,9 +783,10 @@ assert_eq!((", stringify!($SelfT), "::MIN + 2).checked_sub(3), None);",
782
783
$EndFeature, "
783
784
```" ) ,
784
785
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
785
- #[ rustc_const_unstable ( feature = "const_checked_int_methods" , issue = "53718 " ) ]
786
+ #[ rustc_const_stable ( feature = "const_checked_int_methods" , since = "1.46.0 " ) ]
786
787
#[ must_use = "this returns the result of the operation, \
787
788
without modifying the original"]
789
+ #[ cfg_attr( bootstrap, allow_internal_unstable( const_if_match) ) ]
788
790
#[ inline]
789
791
pub const fn checked_sub( self , rhs: Self ) -> Option <Self > {
790
792
let ( a, b) = self . overflowing_sub( rhs) ;
@@ -824,9 +826,10 @@ assert_eq!(", stringify!($SelfT), "::MAX.checked_mul(2), None);",
824
826
$EndFeature, "
825
827
```" ) ,
826
828
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
827
- #[ rustc_const_unstable ( feature = "const_checked_int_methods" , issue = "53718 " ) ]
829
+ #[ rustc_const_stable ( feature = "const_checked_int_methods" , since = "1.46.0 " ) ]
828
830
#[ must_use = "this returns the result of the operation, \
829
831
without modifying the original"]
832
+ #[ cfg_attr( bootstrap, allow_internal_unstable( const_if_match) ) ]
830
833
#[ inline]
831
834
pub const fn checked_mul( self , rhs: Self ) -> Option <Self > {
832
835
let ( a, b) = self . overflowing_mul( rhs) ;
@@ -980,7 +983,8 @@ assert_eq!(", stringify!($SelfT), "::MIN.checked_neg(), None);",
980
983
$EndFeature, "
981
984
```" ) ,
982
985
#[ stable( feature = "wrapping" , since = "1.7.0" ) ]
983
- #[ rustc_const_unstable( feature = "const_checked_int_methods" , issue = "53718" ) ]
986
+ #[ rustc_const_stable( feature = "const_checked_int_methods" , since = "1.46.0" ) ]
987
+ #[ cfg_attr( bootstrap, allow_internal_unstable( const_if_match) ) ]
984
988
#[ inline]
985
989
pub const fn checked_neg( self ) -> Option <Self > {
986
990
let ( a, b) = self . overflowing_neg( ) ;
@@ -1002,9 +1006,10 @@ assert_eq!(0x1", stringify!($SelfT), ".checked_shl(129), None);",
1002
1006
$EndFeature, "
1003
1007
```" ) ,
1004
1008
#[ stable( feature = "wrapping" , since = "1.7.0" ) ]
1005
- #[ rustc_const_unstable ( feature = "const_checked_int_methods" , issue = "53718 " ) ]
1009
+ #[ rustc_const_stable ( feature = "const_checked_int_methods" , since = "1.46.0 " ) ]
1006
1010
#[ must_use = "this returns the result of the operation, \
1007
1011
without modifying the original"]
1012
+ #[ cfg_attr( bootstrap, allow_internal_unstable( const_if_match) ) ]
1008
1013
#[ inline]
1009
1014
pub const fn checked_shl( self , rhs: u32 ) -> Option <Self > {
1010
1015
let ( a, b) = self . overflowing_shl( rhs) ;
@@ -1026,9 +1031,10 @@ assert_eq!(0x10", stringify!($SelfT), ".checked_shr(128), None);",
1026
1031
$EndFeature, "
1027
1032
```" ) ,
1028
1033
#[ stable( feature = "wrapping" , since = "1.7.0" ) ]
1029
- #[ rustc_const_unstable ( feature = "const_checked_int_methods" , issue = "53718 " ) ]
1034
+ #[ rustc_const_stable ( feature = "const_checked_int_methods" , since = "1.46.0 " ) ]
1030
1035
#[ must_use = "this returns the result of the operation, \
1031
1036
without modifying the original"]
1037
+ #[ cfg_attr( bootstrap, allow_internal_unstable( const_if_match) ) ]
1032
1038
#[ inline]
1033
1039
pub const fn checked_shr( self , rhs: u32 ) -> Option <Self > {
1034
1040
let ( a, b) = self . overflowing_shr( rhs) ;
@@ -1051,7 +1057,8 @@ assert_eq!(", stringify!($SelfT), "::MIN.checked_abs(), None);",
1051
1057
$EndFeature, "
1052
1058
```" ) ,
1053
1059
#[ stable( feature = "no_panic_abs" , since = "1.13.0" ) ]
1054
- #[ rustc_const_unstable( feature = "const_checked_int_methods" , issue = "53718" ) ]
1060
+ #[ rustc_const_stable( feature = "const_checked_int_methods" , since = "1.46.0" ) ]
1061
+ #[ cfg_attr( bootstrap, allow_internal_unstable( const_if_match) ) ]
1055
1062
#[ inline]
1056
1063
pub const fn checked_abs( self ) -> Option <Self > {
1057
1064
if self . is_negative( ) {
@@ -2976,9 +2983,10 @@ Basic usage:
2976
2983
assert_eq!((" , stringify!( $SelfT) , "::MAX - 2).checked_add(3), None);" , $EndFeature, "
2977
2984
```" ) ,
2978
2985
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
2979
- #[ rustc_const_unstable ( feature = "const_checked_int_methods" , issue = "53718 " ) ]
2986
+ #[ rustc_const_stable ( feature = "const_checked_int_methods" , since = "1.46.0 " ) ]
2980
2987
#[ must_use = "this returns the result of the operation, \
2981
2988
without modifying the original"]
2989
+ #[ cfg_attr( bootstrap, allow_internal_unstable( const_if_match) ) ]
2982
2990
#[ inline]
2983
2991
pub const fn checked_add( self , rhs: Self ) -> Option <Self > {
2984
2992
let ( a, b) = self . overflowing_add( rhs) ;
@@ -3016,9 +3024,10 @@ Basic usage:
3016
3024
assert_eq!(0" , stringify!( $SelfT) , ".checked_sub(1), None);" , $EndFeature, "
3017
3025
```" ) ,
3018
3026
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
3019
- #[ rustc_const_unstable ( feature = "const_checked_int_methods" , issue = "53718 " ) ]
3027
+ #[ rustc_const_stable ( feature = "const_checked_int_methods" , since = "1.46.0 " ) ]
3020
3028
#[ must_use = "this returns the result of the operation, \
3021
3029
without modifying the original"]
3030
+ #[ cfg_attr( bootstrap, allow_internal_unstable( const_if_match) ) ]
3022
3031
#[ inline]
3023
3032
pub const fn checked_sub( self , rhs: Self ) -> Option <Self > {
3024
3033
let ( a, b) = self . overflowing_sub( rhs) ;
@@ -3056,9 +3065,10 @@ Basic usage:
3056
3065
assert_eq!(" , stringify!( $SelfT) , "::MAX.checked_mul(2), None);" , $EndFeature, "
3057
3066
```" ) ,
3058
3067
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
3059
- #[ rustc_const_unstable ( feature = "const_checked_int_methods" , issue = "53718 " ) ]
3068
+ #[ rustc_const_stable ( feature = "const_checked_int_methods" , since = "1.46.0 " ) ]
3060
3069
#[ must_use = "this returns the result of the operation, \
3061
3070
without modifying the original"]
3071
+ #[ cfg_attr( bootstrap, allow_internal_unstable( const_if_match) ) ]
3062
3072
#[ inline]
3063
3073
pub const fn checked_mul( self , rhs: Self ) -> Option <Self > {
3064
3074
let ( a, b) = self . overflowing_mul( rhs) ;
@@ -3206,7 +3216,8 @@ Basic usage:
3206
3216
assert_eq!(1" , stringify!( $SelfT) , ".checked_neg(), None);" , $EndFeature, "
3207
3217
```" ) ,
3208
3218
#[ stable( feature = "wrapping" , since = "1.7.0" ) ]
3209
- #[ rustc_const_unstable( feature = "const_checked_int_methods" , issue = "53718" ) ]
3219
+ #[ rustc_const_stable( feature = "const_checked_int_methods" , since = "1.46.0" ) ]
3220
+ #[ cfg_attr( bootstrap, allow_internal_unstable( const_if_match) ) ]
3210
3221
#[ inline]
3211
3222
pub const fn checked_neg( self ) -> Option <Self > {
3212
3223
let ( a, b) = self . overflowing_neg( ) ;
@@ -3227,9 +3238,10 @@ Basic usage:
3227
3238
assert_eq!(0x10" , stringify!( $SelfT) , ".checked_shl(129), None);" , $EndFeature, "
3228
3239
```" ) ,
3229
3240
#[ stable( feature = "wrapping" , since = "1.7.0" ) ]
3230
- #[ rustc_const_unstable ( feature = "const_checked_int_methods" , issue = "53718 " ) ]
3241
+ #[ rustc_const_stable ( feature = "const_checked_int_methods" , since = "1.46.0 " ) ]
3231
3242
#[ must_use = "this returns the result of the operation, \
3232
3243
without modifying the original"]
3244
+ #[ cfg_attr( bootstrap, allow_internal_unstable( const_if_match) ) ]
3233
3245
#[ inline]
3234
3246
pub const fn checked_shl( self , rhs: u32 ) -> Option <Self > {
3235
3247
let ( a, b) = self . overflowing_shl( rhs) ;
@@ -3250,9 +3262,10 @@ Basic usage:
3250
3262
assert_eq!(0x10" , stringify!( $SelfT) , ".checked_shr(129), None);" , $EndFeature, "
3251
3263
```" ) ,
3252
3264
#[ stable( feature = "wrapping" , since = "1.7.0" ) ]
3253
- #[ rustc_const_unstable ( feature = "const_checked_int_methods" , issue = "53718 " ) ]
3265
+ #[ rustc_const_stable ( feature = "const_checked_int_methods" , since = "1.46.0 " ) ]
3254
3266
#[ must_use = "this returns the result of the operation, \
3255
3267
without modifying the original"]
3268
+ #[ cfg_attr( bootstrap, allow_internal_unstable( const_if_match) ) ]
3256
3269
#[ inline]
3257
3270
pub const fn checked_shr( self , rhs: u32 ) -> Option <Self > {
3258
3271
let ( a, b) = self . overflowing_shr( rhs) ;
0 commit comments