Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Uses stable u64::next_multiple_of() #33549

Merged

Conversation

brooksprumo
Copy link
Contributor

@brooksprumo brooksprumo commented Oct 5, 2023

Problem

We copied the impl of next_multiple_of into our codebase because it was not stable yet. With Rust 1.73.0, that has changed! We can use the stable version of next_multiple_of from std instead.

Summary of Changes

Use the stable version, and removes ours.

@brooksprumo brooksprumo added the noCI Suppress CI on this Pull Request label Oct 5, 2023
@brooksprumo brooksprumo self-assigned this Oct 5, 2023
@brooksprumo brooksprumo force-pushed the rust/1.73.0/next-multiple-of branch from a952049 to ba54f73 Compare October 6, 2023 14:50
@brooksprumo brooksprumo added CI Pull Request is ready to enter CI and removed noCI Suppress CI on this Pull Request labels Oct 6, 2023
@solana-grimes solana-grimes removed the CI Pull Request is ready to enter CI label Oct 6, 2023
@brooksprumo brooksprumo marked this pull request as ready for review October 6, 2023 16:49
@brooksprumo brooksprumo merged commit c8d545c into solana-labs:master Oct 6, 2023
@brooksprumo brooksprumo deleted the rust/1.73.0/next-multiple-of branch October 6, 2023 17:45
@brooksprumo brooksprumo added the v1.17 PRs that should be backported to v1.17 label Oct 6, 2023
mergify bot pushed a commit that referenced this pull request Oct 6, 2023
mergify bot added a commit that referenced this pull request Oct 6, 2023
…3567)

Uses stable `u64::next_multiple_of()` (#33549)

(cherry picked from commit c8d545c)

Co-authored-by: Brooks <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
v1.17 PRs that should be backported to v1.17
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants