-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Stabilize clamp #77872
Stabilize clamp #77872
Conversation
(rust_highfive has picked a reviewer for you, use r? to override) |
This seems reasonable to me! This stabilizes the following methods on pub trait Ord {
fn clamp(self, min: Self, max: Self) -> Self { .. }
}
impl f32 {
pub fn clamp(self, min: f32, max: f32) -> f32;
}
impl f64 {
pub fn clamp(self, min: f64, max: f64) -> f64;
} We need to provide inherent methods on The methods were originally RFC'd here. There was also an FCP open here previously that went stale some time ago. It was suggested we just kick off a new one since the shape of Libs has changed a fair bit in the intervening years. @rfcbot fcp merge |
Team member @KodrAus 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. |
There's |
🔔 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. |
📌 Commit fb6ceac has been approved by |
⌛ Testing commit fb6ceac with merge c9e97885881f2547625bc416e550499ed4f243ae... |
💔 Test failed - checks-actions |
@bors retry |
☀️ Test successful - checks-actions |
Tracking issue: #44095
Clamp has been merged and unstable for about a year and a half now. How do we feel about stabilizing this?