From 384c20546291acc243dc843208ac6d164e6894fe Mon Sep 17 00:00:00 2001 From: Lukas Bergdoll Date: Mon, 17 Jun 2024 22:05:35 +0200 Subject: [PATCH] Revert panic_safe test changes The changes made only a limited improvement for the current small miri coverage and in general test coverage of the sort implementations. But they exploded test times from ~13s to ~240s, which is not deemed worth it. --- alloc/src/slice/tests.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/alloc/src/slice/tests.rs b/alloc/src/slice/tests.rs index 63a176a5ace38..0156b9928dab4 100644 --- a/alloc/src/slice/tests.rs +++ b/alloc/src/slice/tests.rs @@ -197,7 +197,8 @@ fn panic_safe() { let mut rng = test_rng(); - let lens = if cfg!(miri) { (1..10).chain(30..36) } else { (1..20).chain(70..MAX_LEN) }; + // 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] }; for len in lens {