@@ -1129,7 +1129,7 @@ $EndFeature, "
1129
1129
```" ) ,
1130
1130
1131
1131
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1132
- #[ rustc_const_unstable ( feature = "const_saturating_int_methods" , issue = "53718 " ) ]
1132
+ #[ rustc_const_stable ( feature = "const_saturating_int_methods" , since = "1.46.0 " ) ]
1133
1133
#[ must_use = "this returns the result of the operation, \
1134
1134
without modifying the original"]
1135
1135
#[ inline]
@@ -1155,7 +1155,7 @@ assert_eq!(", stringify!($SelfT), "::MAX.saturating_sub(-1), ", stringify!($Self
1155
1155
$EndFeature, "
1156
1156
```" ) ,
1157
1157
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1158
- #[ rustc_const_unstable ( feature = "const_saturating_int_methods" , issue = "53718 " ) ]
1158
+ #[ rustc_const_stable ( feature = "const_saturating_int_methods" , since = "1.46.0 " ) ]
1159
1159
#[ must_use = "this returns the result of the operation, \
1160
1160
without modifying the original"]
1161
1161
#[ inline]
@@ -1183,7 +1183,7 @@ $EndFeature, "
1183
1183
```" ) ,
1184
1184
1185
1185
#[ stable( feature = "saturating_neg" , since = "1.45.0" ) ]
1186
- #[ rustc_const_unstable ( feature = "const_saturating_int_methods" , issue = "53718 " ) ]
1186
+ #[ rustc_const_stable ( feature = "const_saturating_int_methods" , since = "1.46.0 " ) ]
1187
1187
#[ inline]
1188
1188
pub const fn saturating_neg( self ) -> Self {
1189
1189
intrinsics:: saturating_sub( 0 , self )
@@ -1209,7 +1209,8 @@ $EndFeature, "
1209
1209
```" ) ,
1210
1210
1211
1211
#[ stable( feature = "saturating_neg" , since = "1.45.0" ) ]
1212
- #[ rustc_const_unstable( feature = "const_saturating_int_methods" , issue = "53718" ) ]
1212
+ #[ rustc_const_stable( feature = "const_saturating_int_methods" , since = "1.46.0" ) ]
1213
+ #[ cfg_attr( bootstrap, allow_internal_unstable( const_if_match) ) ]
1213
1214
#[ inline]
1214
1215
pub const fn saturating_abs( self ) -> Self {
1215
1216
if self . is_negative( ) {
@@ -1236,9 +1237,10 @@ assert_eq!(", stringify!($SelfT), "::MIN.saturating_mul(10), ", stringify!($Self
1236
1237
$EndFeature, "
1237
1238
```" ) ,
1238
1239
#[ stable( feature = "wrapping" , since = "1.7.0" ) ]
1239
- #[ rustc_const_unstable ( feature = "const_saturating_int_methods" , issue = "53718 " ) ]
1240
+ #[ rustc_const_stable ( feature = "const_saturating_int_methods" , since = "1.46.0 " ) ]
1240
1241
#[ must_use = "this returns the result of the operation, \
1241
1242
without modifying the original"]
1243
+ #[ cfg_attr( bootstrap, allow_internal_unstable( const_if_match) ) ]
1242
1244
#[ inline]
1243
1245
pub const fn saturating_mul( self , rhs: Self ) -> Self {
1244
1246
match self . checked_mul( rhs) {
@@ -3330,7 +3332,7 @@ $EndFeature, "
3330
3332
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
3331
3333
#[ must_use = "this returns the result of the operation, \
3332
3334
without modifying the original"]
3333
- #[ rustc_const_unstable ( feature = "const_saturating_int_methods" , issue = "53718 " ) ]
3335
+ #[ rustc_const_stable ( feature = "const_saturating_int_methods" , since = "1.46.0 " ) ]
3334
3336
#[ inline]
3335
3337
pub const fn saturating_add( self , rhs: Self ) -> Self {
3336
3338
intrinsics:: saturating_add( self , rhs)
@@ -3352,7 +3354,7 @@ assert_eq!(13", stringify!($SelfT), ".saturating_sub(127), 0);", $EndFeature, "
3352
3354
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
3353
3355
#[ must_use = "this returns the result of the operation, \
3354
3356
without modifying the original"]
3355
- #[ rustc_const_unstable ( feature = "const_saturating_int_methods" , issue = "53718 " ) ]
3357
+ #[ rustc_const_stable ( feature = "const_saturating_int_methods" , since = "1.46.0 " ) ]
3356
3358
#[ inline]
3357
3359
pub const fn saturating_sub( self , rhs: Self ) -> Self {
3358
3360
intrinsics:: saturating_sub( self , rhs)
@@ -3374,9 +3376,10 @@ assert_eq!((", stringify!($SelfT), "::MAX).saturating_mul(10), ", stringify!($Se
3374
3376
"::MAX);" , $EndFeature, "
3375
3377
```" ) ,
3376
3378
#[ stable( feature = "wrapping" , since = "1.7.0" ) ]
3377
- #[ rustc_const_unstable ( feature = "const_saturating_int_methods" , issue = "53718 " ) ]
3379
+ #[ rustc_const_stable ( feature = "const_saturating_int_methods" , since = "1.46.0 " ) ]
3378
3380
#[ must_use = "this returns the result of the operation, \
3379
3381
without modifying the original"]
3382
+ #[ cfg_attr( bootstrap, allow_internal_unstable( const_if_match) ) ]
3380
3383
#[ inline]
3381
3384
pub const fn saturating_mul( self , rhs: Self ) -> Self {
3382
3385
match self . checked_mul( rhs) {
0 commit comments