-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Fix #18604: next_power_of_two should panic on overflow #45754
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Conversation
r? @dtolnay (rust_highfive has picked a reviewer for you, use r? to override) |
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.
Check out the test in #36372. Looks like there is a compile-flags magic comment.
Considering #36372, is it possible to use |
@bors r+ |
📌 Commit 0d745af has been approved by |
☀️ Test successful - status-appveyor, status-travis |
Fixes #18604
Is it possible to write a test for this? My experiments showed
x.py test
running in release mode, so my attempt at a#[should_panic]
didn't work.