From ff0c3a920996ae0b09a652c1c894329f7acdc28d Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Fri, 31 Jul 2020 14:03:42 +0200 Subject: [PATCH] expand comments --- library/alloc/tests/slice.rs | 2 +- library/core/tests/slice.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/library/alloc/tests/slice.rs b/library/alloc/tests/slice.rs index e5675915300..147f7f7d0c7 100644 --- a/library/alloc/tests/slice.rs +++ b/library/alloc/tests/slice.rs @@ -1721,7 +1721,7 @@ fn panic_safe() { let mut rng = thread_rng(); - // Miri is too slow + // Miri is too slow (but still need to `chain` to make the types match) let lens = if cfg!(miri) { (1..10).chain(0..0) } else { (1..20).chain(70..MAX_LEN) }; let moduli: &[u32] = if cfg!(miri) { &[5] } else { &[5, 20, 50] }; diff --git a/library/core/tests/slice.rs b/library/core/tests/slice.rs index 35502031da4..4f54ea2bd92 100644 --- a/library/core/tests/slice.rs +++ b/library/core/tests/slice.rs @@ -1267,7 +1267,7 @@ fn sort_unstable() { use core::slice::heapsort; use rand::{rngs::StdRng, seq::SliceRandom, Rng, SeedableRng}; - // Miri is too slow + // 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 };