@@ -1646,9 +1646,10 @@ $EndFeature, "
1646
1646
```" ) ,
1647
1647
#[ inline]
1648
1648
#[ stable( feature = "wrapping" , since = "1.7.0" ) ]
1649
+ #[ rustc_const_unstable( feature = "const_int_overflowing" , issue = "53718" ) ]
1649
1650
#[ must_use = "this returns the result of the operation, \
1650
1651
without modifying the original"]
1651
- pub fn overflowing_div( self , rhs: Self ) -> ( Self , bool ) {
1652
+ pub const fn overflowing_div( self , rhs: Self ) -> ( Self , bool ) {
1652
1653
if self == Self :: min_value( ) && rhs == -1 {
1653
1654
( self , true )
1654
1655
} else {
@@ -1715,9 +1716,10 @@ $EndFeature, "
1715
1716
```" ) ,
1716
1717
#[ inline]
1717
1718
#[ stable( feature = "wrapping" , since = "1.7.0" ) ]
1719
+ #[ rustc_const_unstable( feature = "const_int_overflowing" , issue = "53718" ) ]
1718
1720
#[ must_use = "this returns the result of the operation, \
1719
1721
without modifying the original"]
1720
- pub fn overflowing_rem( self , rhs: Self ) -> ( Self , bool ) {
1722
+ pub const fn overflowing_rem( self , rhs: Self ) -> ( Self , bool ) {
1721
1723
if self == Self :: min_value( ) && rhs == -1 {
1722
1724
( 0 , true )
1723
1725
} else {
@@ -3639,9 +3641,10 @@ Basic usage
3639
3641
```" ) ,
3640
3642
#[ inline]
3641
3643
#[ stable( feature = "wrapping" , since = "1.7.0" ) ]
3644
+ #[ rustc_const_unstable( feature = "const_int_overflowing" , issue = "53718" ) ]
3642
3645
#[ must_use = "this returns the result of the operation, \
3643
3646
without modifying the original"]
3644
- pub fn overflowing_div( self , rhs: Self ) -> ( Self , bool ) {
3647
+ pub const fn overflowing_div( self , rhs: Self ) -> ( Self , bool ) {
3645
3648
( self / rhs, false )
3646
3649
}
3647
3650
}
@@ -3699,9 +3702,10 @@ Basic usage
3699
3702
```" ) ,
3700
3703
#[ inline]
3701
3704
#[ stable( feature = "wrapping" , since = "1.7.0" ) ]
3705
+ #[ rustc_const_unstable( feature = "const_int_overflowing" , issue = "53718" ) ]
3702
3706
#[ must_use = "this returns the result of the operation, \
3703
3707
without modifying the original"]
3704
- pub fn overflowing_rem( self , rhs: Self ) -> ( Self , bool ) {
3708
+ pub const fn overflowing_rem( self , rhs: Self ) -> ( Self , bool ) {
3705
3709
( self % rhs, false )
3706
3710
}
3707
3711
}
0 commit comments