-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
Make some Ordering methods const #75463
Conversation
Constify the following methods of `core::cmp::Ordering`: - `reverse` - `then` Possible because of rust-lang#49146 (Allow `if` and `match` in constants).
What are the requirements for making functions |
@CDirkx Ping from triage, this needs to get the CI green before review. You'll need to use the |
There's no need for these to be unstable IMO now that |
Yeah that is my question, is it enough that #49146 is stabilized to make these methods |
As I understand it, you're correct and all those methods are eligible for stabilization. (cc @rust-lang/wg-const-eval in case there's an objection). I'll check in with t-libs as well. In the meantime, I'll happily sign off on the insta-stable version. I guess you just keep the current feature name even though it never did anything? |
@bors delegate+ r=me with correct release number (1.46 came out this week). |
✌️ @CDirkx can now approve this pull request |
`const_ordering` will stabilize in version 1.48.0
@bors r+ |
📌 Commit 12f4624 has been approved by |
☀️ Test successful - checks-actions, checks-azure |
@rustbot modify labels: T-libs |
Error: Label relnotes can only be set by Rust team members Please let |
Eh, shouldn't there be t-libs FCP on this? I don't think there is precedent for insta-stabilizing new Cc @rust-lang/libs Also @CDirkx, please don't |
@RalfJung Ah, yeah I was unsure if that was the intention. Thanks! |
Constify the following methods of
core::cmp::Ordering
:reverse
then
Possible because of #49146 (Allow
if
andmatch
in constants).Tracking issue: #76113