about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2020-07-31 14:03:42 +0200
committerRalf Jung <post@ralfj.de>2020-07-31 14:03:42 +0200
commitff0c3a920996ae0b09a652c1c894329f7acdc28d (patch)
tree7953c698bf53579028fa704717bcd46534413cfb
parent7468f632ff4bdb34a7422dad66a548d0672c4aa1 (diff)
downloadrust-ff0c3a920996ae0b09a652c1c894329f7acdc28d.tar.gz
rust-ff0c3a920996ae0b09a652c1c894329f7acdc28d.zip
expand comments
-rw-r--r--library/alloc/tests/slice.rs2
-rw-r--r--library/core/tests/slice.rs2
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 };