about summary refs log tree commit diff
diff options
context:
space:
mode:
authorThe8472 <git@infinite-source.de>2020-05-24 03:23:15 +0200
committerThe8472 <git@infinite-source.de>2020-09-03 20:59:33 +0200
commit7badb7a7f8e66f183106ae2eac2062ea6aa63f2f (patch)
treef8e0c414a71d221a913b29ea3318bef3f4fbf207
parenta62cd1b44cdf34313cd0afc4e66410444bab6669 (diff)
downloadrust-7badb7a7f8e66f183106ae2eac2062ea6aa63f2f.tar.gz
rust-7badb7a7f8e66f183106ae2eac2062ea6aa63f2f.zip
avoid applying in-place collect specialization in type-length test
the test was sized to match external iteration only, since
vec's in-place collect now uses internal iteration we collect into
a different type now.
Note that any other try-fold based operation such as count() would also
have exceeded the type length limit for that iterator.
-rw-r--r--src/test/ui/iterators/issue-58952-filter-type-length.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/ui/iterators/issue-58952-filter-type-length.rs b/src/test/ui/iterators/issue-58952-filter-type-length.rs
index 046e3784084..ffbe89a14e3 100644
--- a/src/test/ui/iterators/issue-58952-filter-type-length.rs
+++ b/src/test/ui/iterators/issue-58952-filter-type-length.rs
@@ -3,6 +3,7 @@
 //! so check that we don't accidentially exceed the type length limit.
 // FIXME: Once the size of iterator adaptors is further reduced,
 // increase the complexity of this test.
+use std::collections::VecDeque;
 
 fn main() {
     let c = 2;
@@ -27,5 +28,5 @@ fn main() {
         .filter(|a| b.clone().any(|b| *b == *a))
         .filter(|a| b.clone().any(|b| *b == *a))
         .filter(|a| b.clone().any(|b| *b == *a))
-        .collect::<Vec<_>>();
+        .collect::<VecDeque<_>>();
 }