Skip to content

Commit ff0c3a9

Browse files
committed
expand comments
1 parent 7468f63 commit ff0c3a9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

library/alloc/tests/slice.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1721,7 +1721,7 @@ fn panic_safe() {
17211721

17221722
let mut rng = thread_rng();
17231723

1724-
// Miri is too slow
1724+
// Miri is too slow (but still need to `chain` to make the types match)
17251725
let lens = if cfg!(miri) { (1..10).chain(0..0) } else { (1..20).chain(70..MAX_LEN) };
17261726
let moduli: &[u32] = if cfg!(miri) { &[5] } else { &[5, 20, 50] };
17271727

library/core/tests/slice.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1267,7 +1267,7 @@ fn sort_unstable() {
12671267
use core::slice::heapsort;
12681268
use rand::{rngs::StdRng, seq::SliceRandom, Rng, SeedableRng};
12691269

1270-
// Miri is too slow
1270+
// Miri is too slow (but still need to `chain` to make the types match)
12711271
let lens = if cfg!(miri) { (2..20).chain(0..0) } else { (2..25).chain(500..510) };
12721272
let rounds = if cfg!(miri) { 1 } else { 100 };
12731273

0 commit comments

Comments
 (0)