From b11d88006cb03a8f50aa09d91aa457d6ec0b8cd8 Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Wed, 1 Dec 2021 22:48:59 -0500 Subject: [PATCH] disable tests in Miri that take too long --- library/core/tests/slice.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/library/core/tests/slice.rs b/library/core/tests/slice.rs index 7ba01caeefd..281df8a1326 100644 --- a/library/core/tests/slice.rs +++ b/library/core/tests/slice.rs @@ -2330,6 +2330,7 @@ macro_rules! empty_max_mut { }; } +#[cfg(not(miri))] // Comparing usize::MAX many elements takes forever in Miri (and in rustc without optimizations) take_tests! { slice: &[(); usize::MAX], method: take, (take_in_bounds_max_range_to, (..usize::MAX), Some(EMPTY_MAX), &[(); 0]), @@ -2337,6 +2338,7 @@ take_tests! { (take_in_bounds_max_range_from, (usize::MAX..), Some(&[] as _), EMPTY_MAX), } +#[cfg(not(miri))] // Comparing usize::MAX many elements takes forever in Miri (and in rustc without optimizations) take_tests! { slice: &mut [(); usize::MAX], method: take_mut, (take_mut_in_bounds_max_range_to, (..usize::MAX), Some(empty_max_mut!()), &mut [(); 0]),