File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -1091,8 +1091,9 @@ $EndFeature, "
1091
1091
```" ) ,
1092
1092
1093
1093
#[ unstable( feature = "saturating_neg" , issue = "59983" ) ]
1094
+ #[ rustc_const_unstable( feature = "const_int_saturating" , issue = "53718" ) ]
1094
1095
#[ inline]
1095
- pub fn saturating_neg( self ) -> Self {
1096
+ pub const fn saturating_neg( self ) -> Self {
1096
1097
intrinsics:: saturating_sub( 0 , self )
1097
1098
}
1098
1099
}
@@ -1117,8 +1118,9 @@ $EndFeature, "
1117
1118
```" ) ,
1118
1119
1119
1120
#[ unstable( feature = "saturating_neg" , issue = "59983" ) ]
1121
+ #[ rustc_const_unstable( feature = "const_int_saturating" , issue = "53718" ) ]
1120
1122
#[ inline]
1121
- pub fn saturating_abs( self ) -> Self {
1123
+ pub const fn saturating_abs( self ) -> Self {
1122
1124
if self . is_negative( ) {
1123
1125
self . saturating_neg( )
1124
1126
} else {
You can’t perform that action at this time.
0 commit comments