File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -379,7 +379,7 @@ macro_rules! nonzero_unsigned_operations {
379
379
/// ```
380
380
#[ unstable( feature = "nonzero_ops" , issue = "84186" ) ]
381
381
#[ inline]
382
- pub unsafe fn unchecked_add( self , other: $Int) -> $Ty {
382
+ pub const unsafe fn unchecked_add( self , other: $Int) -> $Ty {
383
383
// SAFETY: The caller ensures there is no overflow.
384
384
unsafe { $Ty:: new_unchecked( self . get( ) . unchecked_add( other) ) }
385
385
}
@@ -750,7 +750,7 @@ macro_rules! nonzero_unsigned_signed_operations {
750
750
/// ```
751
751
#[ unstable( feature = "nonzero_ops" , issue = "84186" ) ]
752
752
#[ inline]
753
- pub unsafe fn unchecked_mul( self , other: $Ty) -> $Ty {
753
+ pub const unsafe fn unchecked_mul( self , other: $Ty) -> $Ty {
754
754
// SAFETY: The caller ensures there is no overflow.
755
755
unsafe { $Ty:: new_unchecked( self . get( ) . unchecked_mul( other. get( ) ) ) }
756
756
}
You can’t perform that action at this time.
0 commit comments