diff options
| author | Ralf Jung <post@ralfj.de> | 2020-09-16 08:24:50 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-16 08:24:50 +0200 |
| commit | 22dd07d5556eec3e3f98d490827720e45fa27c64 (patch) | |
| tree | 0f962fce4a6ba0599dde4e295b06b75a86f1c345 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | |
| parent | 19a62db49217fb4d7e5df70866d61aaa85882069 (diff) | |
| parent | 73e0a56dde24693768d56960023f00ef61f28684 (diff) | |
| download | rust-22dd07d5556eec3e3f98d490827720e45fa27c64.tar.gz rust-22dd07d5556eec3e3f98d490827720e45fa27c64.zip | |
Rollup merge of #76335 - CDirkx:const-duration, r=ecstatic-morse
Make all methods of `Duration` unstably const Make the following methods of `Duration` unstable const under `duration_const_2`: - `from_secs_f64` - `from_secs_f32` - `mul_f64` - `mul_f32` - `div_f64` - `div_f32` This results in all methods of `Duration` being (unstable) const. Moved the tests to `library` as part of #76268. Possible because of #72449, which made the relevant `f32` and `f64` methods const. Tracking issue: #72440 r? @ecstatic-morse
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
