Skip to content

Commit 90eeb72

Browse files
authored
Rollup merge of #137383 - folkertdev:stabilize-unsigned-is-multiple-of, r=Noratrieb
stabilize `unsigned_is_multiple_of` tracking issue: rust-lang/rust#128101 fcp completed in: rust-lang/rust#128101 (comment) ### Public API A version of this for all the unsigned types ```rust fn is_multiple_of(lhs: u64, rhs: u64) -> bool { match rhs { // prevent division by zero 0 => lhs == 0, _ => lhs % rhs == 0, } } ```
2 parents a06ecea + 4d2feda commit 90eeb72

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
#![feature(unqualified_local_imports)]
1717
#![feature(derive_coerce_pointee)]
1818
#![feature(arbitrary_self_types)]
19-
#![feature(unsigned_is_multiple_of)]
2019
#![feature(extract_if)]
2120
// Configure clippy and other lints
2221
#![allow(

0 commit comments

Comments
 (0)