rust/library/core/tests
Ralf Jung 22dd07d555
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
2020-09-16 08:24:50 +02:00
..
fmt
hash
num flt2dec: properly handle uninitialized memory 2020-09-02 12:41:38 +02:00
alloc.rs
any.rs
array.rs Add drop check test & MaybeUninit::first_ptr_mut 2020-08-13 03:51:08 +00:00
ascii.rs Move various ui const tests to library 2020-09-04 02:35:27 +02:00
atomic.rs
bool.rs
cell.rs
char.rs
clone.rs
cmp.rs Move const tests for Ordering to library\core 2020-09-04 00:40:11 +02:00
intrinsics.rs
iter.rs Use min_specialization in libcore 2020-08-19 20:08:02 +01:00
lazy.rs Make OnceCell<T> transparent to dropck 2020-08-18 00:34:54 +02:00
lib.rs Make all methods of Duration const 2020-09-12 15:14:58 +02:00
manually_drop.rs
mem.rs
nonzero.rs Move various ui const tests to library 2020-09-04 02:35:27 +02:00
ops.rs
option.rs Fix tests using FixedSizeArray methods (which are now shadowed) 2020-08-30 21:08:18 +02:00
pattern.rs
ptr.rs enable align_to tests in Miri 2020-08-19 10:41:51 +02:00
result.rs Fix tests using FixedSizeArray methods (which are now shadowed) 2020-08-30 21:08:18 +02:00
slice.rs Add tests for array_chunks_mut 2020-09-04 19:51:29 -07:00
str.rs
str_lossy.rs
time.rs Make all methods of Duration const 2020-09-12 15:14:58 +02:00
tuple.rs