diff options
| author | Lukas Markeffsky <@> | 2022-10-02 15:15:40 +0200 |
|---|---|---|
| committer | Lukas Markeffsky <@> | 2022-10-02 15:15:40 +0200 |
| commit | b7dae8a5e2ad75ca8f472c953f459c45e019896d (patch) | |
| tree | ce0e4de5bd1e60b77f5694e22433d14e361783e4 | |
| parent | 6acc29f88b2fdf7a048fae77b031b803f86e1551 (diff) | |
| download | rust-b7dae8a5e2ad75ca8f472c953f459c45e019896d.tar.gz rust-b7dae8a5e2ad75ca8f472c953f459c45e019896d.zip | |
remove unneeded attributes
| -rw-r--r-- | library/core/src/num/int_macros.rs | 6 | ||||
| -rw-r--r-- | library/core/src/num/uint_macros.rs | 6 |
2 files changed, 0 insertions, 12 deletions
diff --git a/library/core/src/num/int_macros.rs b/library/core/src/num/int_macros.rs index 4eb85a281e2..ff3b7bc2c90 100644 --- a/library/core/src/num/int_macros.rs +++ b/library/core/src/num/int_macros.rs @@ -2293,8 +2293,6 @@ macro_rules! int_impl { without modifying the original"] #[inline] #[track_caller] - #[rustc_inherit_overflow_checks] - #[allow(arithmetic_overflow)] pub const fn ilog(self, base: Self) -> u32 { assert!(base >= 2, "base of integer logarithm must be at least 2"); self.checked_ilog(base).expect("argument of integer logarithm must be positive") @@ -2317,8 +2315,6 @@ macro_rules! int_impl { without modifying the original"] #[inline] #[track_caller] - #[rustc_inherit_overflow_checks] - #[allow(arithmetic_overflow)] pub const fn ilog2(self) -> u32 { self.checked_ilog2().expect("argument of integer logarithm must be positive") } @@ -2340,8 +2336,6 @@ macro_rules! int_impl { without modifying the original"] #[inline] #[track_caller] - #[rustc_inherit_overflow_checks] - #[allow(arithmetic_overflow)] pub const fn ilog10(self) -> u32 { self.checked_ilog10().expect("argument of integer logarithm must be positive") } diff --git a/library/core/src/num/uint_macros.rs b/library/core/src/num/uint_macros.rs index 83836f2a395..d921ff9ba10 100644 --- a/library/core/src/num/uint_macros.rs +++ b/library/core/src/num/uint_macros.rs @@ -705,8 +705,6 @@ macro_rules! uint_impl { without modifying the original"] #[inline] #[track_caller] - #[rustc_inherit_overflow_checks] - #[allow(arithmetic_overflow)] pub const fn ilog(self, base: Self) -> u32 { assert!(base >= 2, "base of integer logarithm must be at least 2"); self.checked_ilog(base).expect("argument of integer logarithm must be positive") @@ -729,8 +727,6 @@ macro_rules! uint_impl { without modifying the original"] #[inline] #[track_caller] - #[rustc_inherit_overflow_checks] - #[allow(arithmetic_overflow)] pub const fn ilog2(self) -> u32 { self.checked_ilog2().expect("argument of integer logarithm must be positive") } @@ -752,8 +748,6 @@ macro_rules! uint_impl { without modifying the original"] #[inline] #[track_caller] - #[rustc_inherit_overflow_checks] - #[allow(arithmetic_overflow)] pub const fn ilog10(self) -> u32 { self.checked_ilog10().expect("argument of integer logarithm must be positive") } |
