File tree 3 files changed +1
-6
lines changed
3 files changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -512,7 +512,6 @@ macro_rules! int_impl {
512
512
#[ inline( always) ]
513
513
#[ cfg_attr( miri, track_caller) ] // even without panics, this helps for Miri backtraces
514
514
#[ requires( !self . overflowing_add( rhs) . 1 ) ]
515
- #[ ensures( |ret| * ret >= $SelfT:: MIN && * ret <= $SelfT:: MAX ) ]
516
515
pub const unsafe fn unchecked_add( self , rhs: Self ) -> Self {
517
516
assert_unsafe_precondition!(
518
517
check_language_ub,
Original file line number Diff line number Diff line change @@ -1401,10 +1401,7 @@ const fn from_str_radix_panic_ct(_radix: u32) -> ! {
1401
1401
1402
1402
#[ track_caller]
1403
1403
fn from_str_radix_panic_rt ( radix : u32 ) -> ! {
1404
- panic ! (
1405
- "from_str_radix_int: must lie in the range `[2, 36]` - found {}" ,
1406
- radix
1407
- ) ;
1404
+ panic ! ( "from_str_radix_int: must lie in the range `[2, 36]` - found {}" , radix) ;
1408
1405
}
1409
1406
1410
1407
#[ cfg_attr( not( feature = "panic_immediate_abort" ) , inline( never) ) ]
Original file line number Diff line number Diff line change @@ -559,7 +559,6 @@ macro_rules! uint_impl {
559
559
#[ inline( always) ]
560
560
#[ cfg_attr( miri, track_caller) ] // even without panics, this helps for Miri backtraces
561
561
#[ requires( !self . overflowing_add( rhs) . 1 ) ]
562
- #[ ensures( |ret| * ret >= $SelfT:: MIN && * ret <= $SelfT:: MAX ) ]
563
562
pub const unsafe fn unchecked_add( self , rhs: Self ) -> Self {
564
563
assert_unsafe_precondition!(
565
564
check_language_ub,
You can’t perform that action at this time.
0 commit comments