Skip to content

stabilize unsigned_is_multiple_of#137383

Merged
bors merged 1 commit intorust-lang:masterfrom
folkertdev:stabilize-unsigned-is-multiple-of
Feb 23, 2025
Merged

stabilize unsigned_is_multiple_of#137383
bors merged 1 commit intorust-lang:masterfrom
folkertdev:stabilize-unsigned-is-multiple-of

Conversation

@folkertdev
Copy link
Contributor

tracking issue: #128101
fcp completed in: #128101 (comment)

Public API

A version of this for all the unsigned types

fn is_multiple_of(lhs: u64, rhs: u64) -> bool {
    match rhs {
        // prevent division by zero
        0 => lhs == 0,
        _ => lhs % rhs == 0,
    }
}

@rustbot
Copy link
Collaborator

rustbot commented Feb 21, 2025

r? @Noratrieb

rustbot has assigned @Noratrieb.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-libs Relevant to the library team, which will review and decide on the PR/issue. labels Feb 21, 2025
@rustbot
Copy link
Collaborator

rustbot commented Feb 21, 2025

The Miri subtree was changed

cc @rust-lang/miri

@RalfJung
Copy link
Member

Cc @rust-lang/wg-const-eval since this is also a const-stabilization (but it's all completely standard code)

@Noratrieb
Copy link
Member

@bors r+ rollup

@bors
Copy link
Collaborator

bors commented Feb 22, 2025

📌 Commit ad962ed has been approved by Noratrieb

It is now in the queue for this repository.

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Feb 22, 2025
@bors bors merged commit 88ed69c into rust-lang:master Feb 23, 2025
6 checks passed
@rustbot rustbot added this to the 1.87.0 milestone Feb 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-libs Relevant to the library team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants