about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs
diff options
context:
space:
mode:
authorChristiaan Dirkx <christiaan@dirkx.email>2020-09-04 20:17:06 +0200
committerChristiaan Dirkx <christiaan@dirkx.email>2020-09-12 15:14:58 +0200
commit73e0a56dde24693768d56960023f00ef61f28684 (patch)
tree7eabbb530e6ff55b14dd2d10325a7c1f492853c2 /src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs
parent2d6cbd21b2c5819c7fa42eb5a3713667b67e4f03 (diff)
downloadrust-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