@@ -1280,10 +1280,11 @@ assert_eq!((-128i8).wrapping_div(-1), -128);",
1280
1280
$EndFeature, "
1281
1281
```" ) ,
1282
1282
#[ stable( feature = "num_wrapping" , since = "1.2.0" ) ]
1283
+ #[ rustc_const_unstable( feature = "const_int_wrapping" , issue = "53718" ) ]
1283
1284
#[ must_use = "this returns the result of the operation, \
1284
1285
without modifying the original"]
1285
1286
#[ inline]
1286
- pub fn wrapping_div( self , rhs: Self ) -> Self {
1287
+ pub const fn wrapping_div( self , rhs: Self ) -> Self {
1287
1288
self . overflowing_div( rhs) . 0
1288
1289
}
1289
1290
}
@@ -1340,10 +1341,11 @@ assert_eq!((-128i8).wrapping_rem(-1), 0);",
1340
1341
$EndFeature, "
1341
1342
```" ) ,
1342
1343
#[ stable( feature = "num_wrapping" , since = "1.2.0" ) ]
1344
+ #[ rustc_const_unstable( feature = "const_int_wrapping" , issue = "53718" ) ]
1343
1345
#[ must_use = "this returns the result of the operation, \
1344
1346
without modifying the original"]
1345
1347
#[ inline]
1346
- pub fn wrapping_rem( self , rhs: Self ) -> Self {
1348
+ pub const fn wrapping_rem( self , rhs: Self ) -> Self {
1347
1349
self . overflowing_rem( rhs) . 0
1348
1350
}
1349
1351
}
@@ -3320,10 +3322,11 @@ Basic usage:
3320
3322
" , $Feature, "assert_eq!(100" , stringify!( $SelfT) , ".wrapping_div(10), 10);" , $EndFeature, "
3321
3323
```" ) ,
3322
3324
#[ stable( feature = "num_wrapping" , since = "1.2.0" ) ]
3325
+ #[ rustc_const_unstable( feature = "const_int_wrapping" , issue = "53718" ) ]
3323
3326
#[ must_use = "this returns the result of the operation, \
3324
3327
without modifying the original"]
3325
3328
#[ inline]
3326
- pub fn wrapping_div( self , rhs: Self ) -> Self {
3329
+ pub const fn wrapping_div( self , rhs: Self ) -> Self {
3327
3330
self / rhs
3328
3331
}
3329
3332
}
@@ -3371,10 +3374,11 @@ Basic usage:
3371
3374
" , $Feature, "assert_eq!(100" , stringify!( $SelfT) , ".wrapping_rem(10), 0);" , $EndFeature, "
3372
3375
```" ) ,
3373
3376
#[ stable( feature = "num_wrapping" , since = "1.2.0" ) ]
3377
+ #[ rustc_const_unstable( feature = "const_int_wrapping" , issue = "53718" ) ]
3374
3378
#[ must_use = "this returns the result of the operation, \
3375
3379
without modifying the original"]
3376
3380
#[ inline]
3377
- pub fn wrapping_rem( self , rhs: Self ) -> Self {
3381
+ pub const fn wrapping_rem( self , rhs: Self ) -> Self {
3378
3382
self % rhs
3379
3383
}
3380
3384
}
0 commit comments