remove unneeded attributes
This commit is contained in:
parent
6acc29f88b
commit
b7dae8a5e2
@ -2293,8 +2293,6 @@ macro_rules! int_impl {
|
|||||||
without modifying the original"]
|
without modifying the original"]
|
||||||
#[inline]
|
#[inline]
|
||||||
#[track_caller]
|
#[track_caller]
|
||||||
#[rustc_inherit_overflow_checks]
|
|
||||||
#[allow(arithmetic_overflow)]
|
|
||||||
pub const fn ilog(self, base: Self) -> u32 {
|
pub const fn ilog(self, base: Self) -> u32 {
|
||||||
assert!(base >= 2, "base of integer logarithm must be at least 2");
|
assert!(base >= 2, "base of integer logarithm must be at least 2");
|
||||||
self.checked_ilog(base).expect("argument of integer logarithm must be positive")
|
self.checked_ilog(base).expect("argument of integer logarithm must be positive")
|
||||||
@ -2317,8 +2315,6 @@ macro_rules! int_impl {
|
|||||||
without modifying the original"]
|
without modifying the original"]
|
||||||
#[inline]
|
#[inline]
|
||||||
#[track_caller]
|
#[track_caller]
|
||||||
#[rustc_inherit_overflow_checks]
|
|
||||||
#[allow(arithmetic_overflow)]
|
|
||||||
pub const fn ilog2(self) -> u32 {
|
pub const fn ilog2(self) -> u32 {
|
||||||
self.checked_ilog2().expect("argument of integer logarithm must be positive")
|
self.checked_ilog2().expect("argument of integer logarithm must be positive")
|
||||||
}
|
}
|
||||||
@ -2340,8 +2336,6 @@ macro_rules! int_impl {
|
|||||||
without modifying the original"]
|
without modifying the original"]
|
||||||
#[inline]
|
#[inline]
|
||||||
#[track_caller]
|
#[track_caller]
|
||||||
#[rustc_inherit_overflow_checks]
|
|
||||||
#[allow(arithmetic_overflow)]
|
|
||||||
pub const fn ilog10(self) -> u32 {
|
pub const fn ilog10(self) -> u32 {
|
||||||
self.checked_ilog10().expect("argument of integer logarithm must be positive")
|
self.checked_ilog10().expect("argument of integer logarithm must be positive")
|
||||||
}
|
}
|
||||||
|
@ -705,8 +705,6 @@ macro_rules! uint_impl {
|
|||||||
without modifying the original"]
|
without modifying the original"]
|
||||||
#[inline]
|
#[inline]
|
||||||
#[track_caller]
|
#[track_caller]
|
||||||
#[rustc_inherit_overflow_checks]
|
|
||||||
#[allow(arithmetic_overflow)]
|
|
||||||
pub const fn ilog(self, base: Self) -> u32 {
|
pub const fn ilog(self, base: Self) -> u32 {
|
||||||
assert!(base >= 2, "base of integer logarithm must be at least 2");
|
assert!(base >= 2, "base of integer logarithm must be at least 2");
|
||||||
self.checked_ilog(base).expect("argument of integer logarithm must be positive")
|
self.checked_ilog(base).expect("argument of integer logarithm must be positive")
|
||||||
@ -729,8 +727,6 @@ macro_rules! uint_impl {
|
|||||||
without modifying the original"]
|
without modifying the original"]
|
||||||
#[inline]
|
#[inline]
|
||||||
#[track_caller]
|
#[track_caller]
|
||||||
#[rustc_inherit_overflow_checks]
|
|
||||||
#[allow(arithmetic_overflow)]
|
|
||||||
pub const fn ilog2(self) -> u32 {
|
pub const fn ilog2(self) -> u32 {
|
||||||
self.checked_ilog2().expect("argument of integer logarithm must be positive")
|
self.checked_ilog2().expect("argument of integer logarithm must be positive")
|
||||||
}
|
}
|
||||||
@ -752,8 +748,6 @@ macro_rules! uint_impl {
|
|||||||
without modifying the original"]
|
without modifying the original"]
|
||||||
#[inline]
|
#[inline]
|
||||||
#[track_caller]
|
#[track_caller]
|
||||||
#[rustc_inherit_overflow_checks]
|
|
||||||
#[allow(arithmetic_overflow)]
|
|
||||||
pub const fn ilog10(self) -> u32 {
|
pub const fn ilog10(self) -> u32 {
|
||||||
self.checked_ilog10().expect("argument of integer logarithm must be positive")
|
self.checked_ilog10().expect("argument of integer logarithm must be positive")
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user