File tree Expand file tree Collapse file tree 2 files changed +0
-12
lines changed Expand file tree Collapse file tree 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 {
22932293 without modifying the original"]
22942294 #[ inline]
22952295 #[ track_caller]
2296- #[ rustc_inherit_overflow_checks]
2297- #[ allow( arithmetic_overflow) ]
22982296 pub const fn ilog( self , base: Self ) -> u32 {
22992297 assert!( base >= 2 , "base of integer logarithm must be at least 2" ) ;
23002298 self . checked_ilog( base) . expect( "argument of integer logarithm must be positive" )
@@ -2317,8 +2315,6 @@ macro_rules! int_impl {
23172315 without modifying the original"]
23182316 #[ inline]
23192317 #[ track_caller]
2320- #[ rustc_inherit_overflow_checks]
2321- #[ allow( arithmetic_overflow) ]
23222318 pub const fn ilog2( self ) -> u32 {
23232319 self . checked_ilog2( ) . expect( "argument of integer logarithm must be positive" )
23242320 }
@@ -2340,8 +2336,6 @@ macro_rules! int_impl {
23402336 without modifying the original"]
23412337 #[ inline]
23422338 #[ track_caller]
2343- #[ rustc_inherit_overflow_checks]
2344- #[ allow( arithmetic_overflow) ]
23452339 pub const fn ilog10( self ) -> u32 {
23462340 self . checked_ilog10( ) . expect( "argument of integer logarithm must be positive" )
23472341 }
Original file line number Diff line number Diff line change @@ -705,8 +705,6 @@ macro_rules! uint_impl {
705705 without modifying the original"]
706706 #[ inline]
707707 #[ track_caller]
708- #[ rustc_inherit_overflow_checks]
709- #[ allow( arithmetic_overflow) ]
710708 pub const fn ilog( self , base: Self ) -> u32 {
711709 assert!( base >= 2 , "base of integer logarithm must be at least 2" ) ;
712710 self . checked_ilog( base) . expect( "argument of integer logarithm must be positive" )
@@ -729,8 +727,6 @@ macro_rules! uint_impl {
729727 without modifying the original"]
730728 #[ inline]
731729 #[ track_caller]
732- #[ rustc_inherit_overflow_checks]
733- #[ allow( arithmetic_overflow) ]
734730 pub const fn ilog2( self ) -> u32 {
735731 self . checked_ilog2( ) . expect( "argument of integer logarithm must be positive" )
736732 }
@@ -752,8 +748,6 @@ macro_rules! uint_impl {
752748 without modifying the original"]
753749 #[ inline]
754750 #[ track_caller]
755- #[ rustc_inherit_overflow_checks]
756- #[ allow( arithmetic_overflow) ]
757751 pub const fn ilog10( self ) -> u32 {
758752 self . checked_ilog10( ) . expect( "argument of integer logarithm must be positive" )
759753 }
You can’t perform that action at this time.
0 commit comments