-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Tracking issue for const Ordering
methods
#76113
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
Comments
Make some Ordering methods const Constify the following methods of `core::cmp::Ordering`: - `reverse` - `then` Possible because of rust-lang#49146 (Allow `if` and `match` in constants). Tracking issue: rust-lang#76113
Make some Ordering methods const Constify the following methods of `core::cmp::Ordering`: - `reverse` - `then` Possible because of rust-lang#49146 (Allow `if` and `match` in constants). Tracking issue: rust-lang#76113
Make some Ordering methods const Resubmission of [PR#75463](rust-lang#75463) as per [PR#76172](rust-lang#76172). Constify the following methods of `core::cmp::Ordering`: - `reverse` - `then` Insta-stabilizes these methods as const under the `const_ordering` feature, as their implementation is a trivial match and the recent stabilization of rust-lang#49146 (Allow `if` and `match` in constants). Note: the `const_ordering` feature has never actually been used as these methods have not been `#[rustc_const_unstable]`. Tracking issue: rust-lang#76113
Visiting for T-compiler steering backlog bonanza Its not totally clear what this issue is meant to be tracking. The description lists a pair of methods that were already made const in #75463. We suspect the intent is to track the constification of the remainder of the @rustbot label: S-tracking-need-summary |
This issue was originally created as a tracking issue for constifying I agree that constifying the remainder of |
Constify methods of
core::cmp::Ordering
under featureconst_ordering
.Current methods made const:
reverse
then
Tracking issue for
const fn
: #57563.The text was updated successfully, but these errors were encountered: