about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/llvm/mod.rs
diff options
context:
space:
mode:
authorCDirkx <christiaan@dirkx.com>2020-09-01 15:44:00 +0200
committerCDirkx <christiaan@dirkx.com>2020-09-01 15:44:00 +0200
commitea5dc0909ea1ed4135f1bdecbaa3423051be578d (patch)
tree059783a04d988497d84311ef72eaa213b033085e /compiler/rustc_codegen_llvm/src/llvm/mod.rs
parente88e908e66cd1e6e30d789b37bcd774951d01856 (diff)
downloadrust-ea5dc0909ea1ed4135f1bdecbaa3423051be578d.tar.gz
rust-ea5dc0909ea1ed4135f1bdecbaa3423051be578d.zip
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 #49146 (Allow `if` and `match` in constants).
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/llvm/mod.rs')
0 files changed, 0 insertions, 0 deletions