File tree 2 files changed +0
-12
lines changed
2 files changed +0
-12
lines changed Original file line number Diff line number Diff line change @@ -2293,8 +2293,6 @@ macro_rules! int_impl {
2293
2293
without modifying the original"]
2294
2294
#[ inline]
2295
2295
#[ track_caller]
2296
- #[ rustc_inherit_overflow_checks]
2297
- #[ allow( arithmetic_overflow) ]
2298
2296
pub const fn ilog( self , base: Self ) -> u32 {
2299
2297
assert!( base >= 2 , "base of integer logarithm must be at least 2" ) ;
2300
2298
self . checked_ilog( base) . expect( "argument of integer logarithm must be positive" )
@@ -2317,8 +2315,6 @@ macro_rules! int_impl {
2317
2315
without modifying the original"]
2318
2316
#[ inline]
2319
2317
#[ track_caller]
2320
- #[ rustc_inherit_overflow_checks]
2321
- #[ allow( arithmetic_overflow) ]
2322
2318
pub const fn ilog2( self ) -> u32 {
2323
2319
self . checked_ilog2( ) . expect( "argument of integer logarithm must be positive" )
2324
2320
}
@@ -2340,8 +2336,6 @@ macro_rules! int_impl {
2340
2336
without modifying the original"]
2341
2337
#[ inline]
2342
2338
#[ track_caller]
2343
- #[ rustc_inherit_overflow_checks]
2344
- #[ allow( arithmetic_overflow) ]
2345
2339
pub const fn ilog10( self ) -> u32 {
2346
2340
self . checked_ilog10( ) . expect( "argument of integer logarithm must be positive" )
2347
2341
}
Original file line number Diff line number Diff line change @@ -705,8 +705,6 @@ macro_rules! uint_impl {
705
705
without modifying the original"]
706
706
#[ inline]
707
707
#[ track_caller]
708
- #[ rustc_inherit_overflow_checks]
709
- #[ allow( arithmetic_overflow) ]
710
708
pub const fn ilog( self , base: Self ) -> u32 {
711
709
assert!( base >= 2 , "base of integer logarithm must be at least 2" ) ;
712
710
self . checked_ilog( base) . expect( "argument of integer logarithm must be positive" )
@@ -729,8 +727,6 @@ macro_rules! uint_impl {
729
727
without modifying the original"]
730
728
#[ inline]
731
729
#[ track_caller]
732
- #[ rustc_inherit_overflow_checks]
733
- #[ allow( arithmetic_overflow) ]
734
730
pub const fn ilog2( self ) -> u32 {
735
731
self . checked_ilog2( ) . expect( "argument of integer logarithm must be positive" )
736
732
}
@@ -752,8 +748,6 @@ macro_rules! uint_impl {
752
748
without modifying the original"]
753
749
#[ inline]
754
750
#[ track_caller]
755
- #[ rustc_inherit_overflow_checks]
756
- #[ allow( arithmetic_overflow) ]
757
751
pub const fn ilog10( self ) -> u32 {
758
752
self . checked_ilog10( ) . expect( "argument of integer logarithm must be positive" )
759
753
}
You can’t perform that action at this time.
0 commit comments