Skip to content

Commit 23d74f2

Browse files
committed
Remove hanging tests
1 parent bd417a4 commit 23d74f2

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

library/core/tests/slice.rs

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -2118,27 +2118,3 @@ take_tests! {
21182118
ty: &mut [()], slice: &mut [], method: take_last_mut,
21192119
(take_last_mut_empty, (), None, &mut []),
21202120
}
2121-
2122-
const EMPTY_MAX: &'static [()] = &[(); std::usize::MAX];
2123-
2124-
// can't be a constant due to const mutability rules
2125-
// see https://github.com/rust-lang/rust/issues/57349#issuecomment-597395059
2126-
macro_rules! empty_max_mut {
2127-
() => {
2128-
&mut [(); std::usize::MAX] as _
2129-
};
2130-
}
2131-
2132-
take_tests! {
2133-
slice: &[(); ::std::usize::MAX], method: take,
2134-
(take_in_bounds_max_range_to, (..::std::usize::MAX), Some(EMPTY_MAX), &[(); 0]),
2135-
(take_oob_max_range_to_inclusive, (..=::std::usize::MAX), None, EMPTY_MAX),
2136-
(take_in_bounds_max_range_from, (::std::usize::MAX..), Some(&[] as _), EMPTY_MAX),
2137-
}
2138-
2139-
take_tests! {
2140-
slice: &mut [(); ::std::usize::MAX], method: take_mut,
2141-
(take_mut_in_bounds_max_range_to, (..::std::usize::MAX), Some(empty_max_mut!()), &mut [(); 0]),
2142-
(take_mut_oob_max_range_to_inclusive, (..=::std::usize::MAX), None, empty_max_mut!()),
2143-
(take_mut_in_bounds_max_range_from, (::std::usize::MAX..), Some(&mut [] as _), empty_max_mut!()),
2144-
}

0 commit comments

Comments
 (0)