diff options
| author | bors <bors@rust-lang.org> | 2020-08-02 16:06:54 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-08-02 16:06:54 +0000 |
| commit | a99ae95c722d4dc8d1eef09aaa4e72d50d496e75 (patch) | |
| tree | fec5a53cc6a046a4dc69d53aca053768380e27e3 /library/core | |
| parent | e8876ae2c11f341565059b900eeae1254a9accf1 (diff) | |
| parent | 50f2b5d9a02a95d0e3d2183ea58958a5a16a7177 (diff) | |
| download | rust-a99ae95c722d4dc8d1eef09aaa4e72d50d496e75.tar.gz rust-a99ae95c722d4dc8d1eef09aaa4e72d50d496e75.zip | |
Auto merge of #75060 - JohnTitor:rollup-aq8sfxf, r=JohnTitor
Rollup of 10 pull requests Successful merges: - #74686 (BTreeMap: remove into_slices and its unsafe block) - #74762 (BTreeMap::drain_filter should not touch the root during iteration) - #74781 (Clean up E0733 explanation) - #74874 (BTreeMap: define forget_type only when relevant) - #74974 (Make tests faster in Miri) - #75010 (Update elasticlunr-rs and ammonia transitive deps) - #75041 (Replaced log with tracing crate) - #75044 (Clean up E0744 explanation) - #75054 (Rename rustc_middle::cstore::DepKind to CrateDepKind) - #75057 (Avoid dumping rustc invocations to stdout) Failed merges: - #74827 (Move bulk of BTreeMap::insert method down to new method on handle) r? @ghost
Diffstat (limited to 'library/core')
| -rw-r--r-- | library/core/tests/num/flt2dec/random.rs | 2 | ||||
| -rw-r--r-- | library/core/tests/num/flt2dec/strategy/grisu.rs | 1 | ||||
| -rw-r--r-- | library/core/tests/slice.rs | 6 |
3 files changed, 5 insertions, 4 deletions
diff --git a/library/core/tests/num/flt2dec/random.rs b/library/core/tests/num/flt2dec/random.rs index 0ebc0881f52..e5656eb204c 100644 --- a/library/core/tests/num/flt2dec/random.rs +++ b/library/core/tests/num/flt2dec/random.rs @@ -188,7 +188,7 @@ fn exact_f32_random_equivalence_test() { fn exact_f64_random_equivalence_test() { use core::num::flt2dec::strategy::dragon::format_exact as fallback; // Miri is too slow - let n = if cfg!(miri) { 3 } else { 1_000 }; + let n = if cfg!(miri) { 2 } else { 1_000 }; for k in 1..21 { f64_random_equivalence_test( diff --git a/library/core/tests/num/flt2dec/strategy/grisu.rs b/library/core/tests/num/flt2dec/strategy/grisu.rs index ff8373c6455..7e6c8add333 100644 --- a/library/core/tests/num/flt2dec/strategy/grisu.rs +++ b/library/core/tests/num/flt2dec/strategy/grisu.rs @@ -2,6 +2,7 @@ use super::super::*; use core::num::flt2dec::strategy::grisu::*; #[test] +#[cfg_attr(miri, ignore)] // Miri is too slow fn test_cached_power() { assert_eq!(CACHED_POW10.first().unwrap().1, CACHED_POW10_FIRST_E); assert_eq!(CACHED_POW10.last().unwrap().1, CACHED_POW10_LAST_E); diff --git a/library/core/tests/slice.rs b/library/core/tests/slice.rs index 27cc7fce1da..42b483f33ba 100644 --- a/library/core/tests/slice.rs +++ b/library/core/tests/slice.rs @@ -1358,15 +1358,15 @@ fn sort_unstable() { use core::slice::heapsort; use rand::{rngs::StdRng, seq::SliceRandom, Rng, SeedableRng}; - // Miri is too slow - let large_range = if cfg!(miri) { 0..0 } else { 500..510 }; + // Miri is too slow (but still need to `chain` to make the types match) + let lens = if cfg!(miri) { (2..20).chain(0..0) } else { (2..25).chain(500..510) }; let rounds = if cfg!(miri) { 1 } else { 100 }; let mut v = [0; 600]; let mut tmp = [0; 600]; let mut rng = StdRng::from_entropy(); - for len in (2..25).chain(large_range) { + for len in lens { let v = &mut v[0..len]; let tmp = &mut tmp[0..len]; |
