Skip to content

Commit d888725

Browse files
committed
reduce size of test_from_iter_specialization_with_iterator_adapters test in Miri
1 parent 07ece44 commit d888725

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/alloc/tests/vec.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -894,7 +894,7 @@ fn test_from_iter_partially_drained_in_place_specialization() {
894894
#[test]
895895
fn test_from_iter_specialization_with_iterator_adapters() {
896896
fn assert_in_place_trait<T: InPlaceIterable>(_: &T) {};
897-
let src: Vec<usize> = vec![0usize; 65535];
897+
let src: Vec<usize> = vec![0usize; if cfg!(miri) { 256 } else { 65535 }];
898898
let srcptr = src.as_ptr();
899899
let iter = src
900900
.into_iter()

0 commit comments

Comments
 (0)