about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/llvm/mod.rs
diff options
context:
space:
mode:
authorDylan DPC <dylan.dpc@gmail.com>2020-09-16 01:30:42 +0200
committerGitHub <noreply@github.com>2020-09-16 01:30:42 +0200
commit69ac07608e5f6b2e7608108a0665ead8df5da88e (patch)
tree9cd30c93e5424bf64e20d9f2f001c89cec4c56b6 /compiler/rustc_codegen_llvm/src/llvm/mod.rs
parentdb228987ac3ff97cf243bca20213179a4127e649 (diff)
parent79d563c819483eaf6e67b6aaaef9d0ca6030337d (diff)
downloadrust-69ac07608e5f6b2e7608108a0665ead8df5da88e.tar.gz
rust-69ac07608e5f6b2e7608108a0665ead8df5da88e.zip
Rollup merge of #76198 - CDirkx:const-ordering, r=dtolnay
Make some Ordering methods const

Resubmission of [PR#75463](https://github.com/rust-lang/rust/pull/75463) as per [PR#76172](https://github.com/rust-lang/rust/pull/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 #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:  #76113
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/llvm/mod.rs')
0 files changed, 0 insertions, 0 deletions