diff options
| author | CDirkx <christiaan@dirkx.com> | 2020-09-01 15:44:00 +0200 |
|---|---|---|
| committer | CDirkx <christiaan@dirkx.com> | 2020-09-01 15:44:00 +0200 |
| commit | ea5dc0909ea1ed4135f1bdecbaa3423051be578d (patch) | |
| tree | 059783a04d988497d84311ef72eaa213b033085e /compiler/rustc_codegen_llvm/src/llvm/mod.rs | |
| parent | e88e908e66cd1e6e30d789b37bcd774951d01856 (diff) | |
| download | rust-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
