diff options
| author | Christiaan Dirkx <christiaan@dirkx.email> | 2020-09-04 20:17:06 +0200 |
|---|---|---|
| committer | Christiaan Dirkx <christiaan@dirkx.email> | 2020-09-12 15:14:58 +0200 |
| commit | 73e0a56dde24693768d56960023f00ef61f28684 (patch) | |
| tree | 7eabbb530e6ff55b14dd2d10325a7c1f492853c2 /src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs | |
| parent | 2d6cbd21b2c5819c7fa42eb5a3713667b67e4f03 (diff) | |
| download | rust-73e0a56dde24693768d56960023f00ef61f28684.tar.gz rust-73e0a56dde24693768d56960023f00ef61f28684.zip | |
Make all methods of `Duration` 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. Also adds tests for these methods in a const context, moved the test to `library` as part of #76268. Possible because of #72449, which made the relevant `f32` and `f64` methods const. Tracking issue: #72440
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs')
0 files changed, 0 insertions, 0 deletions
