Skip to content

Commit 58a3627

Browse files
authored
Unrolled build for #147551
Rollup merge of #147551 - folkertdev:is-multiple-of-overflow-checks, r=Amanieu remove `#[rustc_inherit_overflow_checks]` from `is_multiple_of` Most likely this was just a result of copy-pasting. The attribute has no effect, because `%` always uses overflow checks. r? `@Amanieu` cc `@RalfJung`
2 parents b3f8586 + 5ab4e18 commit 58a3627

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

library/core/src/num/uint_macros.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3552,7 +3552,6 @@ macro_rules! uint_impl {
35523552
#[rustc_const_stable(feature = "unsigned_is_multiple_of", since = "1.87.0")]
35533553
#[must_use]
35543554
#[inline]
3555-
#[rustc_inherit_overflow_checks]
35563555
pub const fn is_multiple_of(self, rhs: Self) -> bool {
35573556
match rhs {
35583557
0 => self == 0,

0 commit comments

Comments
 (0)