-
Notifications
You must be signed in to change notification settings - Fork 1.9k
manual_div_ceil: Added check for variant x.next_multiple_of(y) / y
#16221
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
While this catches |
4b812f8 to
76ec0aa
Compare
|
Reminder, once the PR becomes ready for a review, use |
fb09156 to
5c1ffda
Compare
|
@rustbot ready |
5c1ffda to
c2f97d1
Compare
|
@rustbot ready |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you.
Suggest using
x.div_ceil(y)instead ofx.next_multiple_of(y) / y.fixes #16219
changelog: [
manual_div_ceil]: Added check for variantx.next_multiple_of(y) / y