Skip to content
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 #76198

Merged
merged 2 commits into from
Sep 16, 2020
Merged

Make some Ordering methods const #76198

merged 2 commits into from
Sep 16, 2020

Commits on Sep 1, 2020

  1. Make some Ordering methods const

    Constify the following methods of `core::cmp::Ordering`:
     - `reverse`
     - `then`
    
    Stabilizes these methods as const under the `const_ordering` feature.
    Also adds a test for these methods in a const context.
    
    Possible because of rust-lang#49146 (Allow `if` and `match` in constants).
    CDirkx committed Sep 1, 2020
    Configuration menu
    Copy the full SHA
    ea5dc09 View commit details
    Browse the repository at this point in the history

Commits on Sep 3, 2020

  1. Configuration menu
    Copy the full SHA
    79d563c View commit details
    Browse the repository at this point in the history