remove #[rustc_inherit_overflow_checks] from is_multiple_of

This commit is contained in:
Folkert de Vries 2025-10-10 12:51:41 +02:00
parent 0b278a5394
commit 5ab4e18dfc
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C

View file

@ -3552,7 +3552,6 @@ macro_rules! uint_impl {
#[rustc_const_stable(feature = "unsigned_is_multiple_of", since = "1.87.0")]
#[must_use]
#[inline]
#[rustc_inherit_overflow_checks]
pub const fn is_multiple_of(self, rhs: Self) -> bool {
match rhs {
0 => self == 0,