about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2020-09-13 11:27:21 +0200
committerRalf Jung <post@ralfj.de>2020-09-15 23:03:07 +0200
commitd888725fba70af4139629da0f7a17910aa66d951 (patch)
tree9cce6049760b63fc19ed3fe124f2abc40c649054
parent07ece44a42b6cd33e59d58b5325f637f398464d2 (diff)
downloadrust-d888725fba70af4139629da0f7a17910aa66d951.tar.gz
rust-d888725fba70af4139629da0f7a17910aa66d951.zip
reduce size of test_from_iter_specialization_with_iterator_adapters test in Miri
-rw-r--r--library/alloc/tests/vec.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/alloc/tests/vec.rs b/library/alloc/tests/vec.rs
index 608a3c9bdf7..5fdbef71710 100644
--- a/library/alloc/tests/vec.rs
+++ b/library/alloc/tests/vec.rs
@@ -894,7 +894,7 @@ fn test_from_iter_partially_drained_in_place_specialization() {
 #[test]
 fn test_from_iter_specialization_with_iterator_adapters() {
     fn assert_in_place_trait<T: InPlaceIterable>(_: &T) {};
-    let src: Vec<usize> = vec![0usize; 65535];
+    let src: Vec<usize> = vec![0usize; if cfg!(miri) { 256 } else { 65535 }];
     let srcptr = src.as_ptr();
     let iter = src
         .into_iter()