Skip to content

Commit f75d29f

Browse files
committed
reduce size of test_from_iter_specialization_with_iterator_adapters test in Miri
1 parent dd33766 commit f75d29f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: library/alloc/tests/vec.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -880,7 +880,7 @@ fn test_from_iter_partially_drained_in_place_specialization() {
880880
#[test]
881881
fn test_from_iter_specialization_with_iterator_adapters() {
882882
fn assert_in_place_trait<T: InPlaceIterable>(_: &T) {};
883-
let src: Vec<usize> = vec![0usize; 65535];
883+
let src: Vec<usize> = vec![0usize; if cfg!(miri) { 256 } else { 65535 }];
884884
let srcptr = src.as_ptr();
885885
let iter = src
886886
.into_iter()

0 commit comments

Comments
 (0)