Skip to content

Commit b7dae8a

Browse files
author
Lukas Markeffsky
committed
remove unneeded attributes
1 parent 6acc29f commit b7dae8a

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

library/core/src/num/int_macros.rs

-6
Original file line numberDiff line numberDiff 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
}

library/core/src/num/uint_macros.rs

-6
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)