-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Move {f32,f64}::clamp to core. #79473
Conversation
@rfcbot merge |
Team member @m-ou-se 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. The RFC will be merged soon. |
@bors r+ |
📌 Commit 0523eeb has been approved by |
☀️ Test successful - checks-actions |
Does this need |
clamp
was recently stabilized (tracking issue: #44095). But althoughOrd::clamp
was added incore
(becauseOrd
is incore
), the versions for thef32
andf64
primitives were added instd
(together withfloor
,sin
, etc.), not incore
(together withmin
,max
,from_bits
, etc.).This change moves them to
core
, such thatclamp
on floats is available inno_std
programs as well.