Skip to content

Commit 3394849

Browse files
committed
Remove hanging tests
1 parent 87aaf0a commit 3394849

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

library/core/tests/slice.rs

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2060,23 +2060,3 @@ take_tests! {
20602060
ty: &mut [()], slice: &mut [], method: take_last_mut,
20612061
(take_last_mut_empty, (), None, &mut []),
20622062
}
2063-
2064-
const EMPTY_MAX: &'static [()] = &[(); std::usize::MAX];
2065-
2066-
// can't be a constant due to const mutability rules
2067-
// see https://github.com/rust-lang/rust/issues/57349#issuecomment-597395059
2068-
macro_rules! empty_max_mut { () => { &mut [(); std::usize::MAX] as _ } }
2069-
2070-
take_tests! {
2071-
slice: &[(); ::std::usize::MAX], method: take,
2072-
(take_in_bounds_max_range_to, (..::std::usize::MAX), Some(EMPTY_MAX), &[(); 0]),
2073-
(take_oob_max_range_to_inclusive, (..=::std::usize::MAX), None, EMPTY_MAX),
2074-
(take_in_bounds_max_range_from, (::std::usize::MAX..), Some(&[] as _), EMPTY_MAX),
2075-
}
2076-
2077-
take_tests! {
2078-
slice: &mut [(); ::std::usize::MAX], method: take_mut,
2079-
(take_mut_in_bounds_max_range_to, (..::std::usize::MAX), Some(empty_max_mut!()), &mut [(); 0]),
2080-
(take_mut_oob_max_range_to_inclusive, (..=::std::usize::MAX), None, empty_max_mut!()),
2081-
(take_mut_in_bounds_max_range_from, (::std::usize::MAX..), Some(&mut [] as _), empty_max_mut!()),
2082-
}

0 commit comments

Comments
 (0)