-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Tracking Issue for NonZeroUn::is_power_of_two (feature nonzero_is_power_of_two) #81106
Comments
This comment has been minimized.
This comment has been minimized.
With (I think this in the tracking issue is the right thing to do now, rather than filing a PR?) |
@rust-lang/libs-api, shall we stabilize @rfcbot merge |
Team member @joshtriplett has proposed to merge this. The next step is review by the rest of the tagged team members: No concerns currently listed. Once a majority of reviewers approve (and at most 2 approvals are outstanding), this will enter its final comment period. If you spot a major issue that hasn't been raised at any point in this process, please speak up! See this document for info about what commands tagged team members can give me. |
🔔 This is now entering its final comment period, as per the review above. 🔔 |
The final comment period, with a disposition to merge, as per the review above, is now complete. As the automated representative of the governance process, I would like to thank the author for their work and everyone else who contributed. This will be merged soon. |
Feature gate:
#![feature(nonzero_is_power_of_two)]
This is a tracking issue for
NonZeroUsize::is_power_of_two
(and friends for the other unsigned types).Like
NonZeroUsize::leading_zeros
(#79143), this generates simpler code than the underlying integer type because it can avoid a separate zero check.Public API
Steps / History
Unresolved Questions
The text was updated successfully, but these errors were encountered: