diff options
| author | The8472 <git@infinite-source.de> | 2020-05-24 03:23:15 +0200 |
|---|---|---|
| committer | The8472 <git@infinite-source.de> | 2020-09-03 20:59:33 +0200 |
| commit | 7badb7a7f8e66f183106ae2eac2062ea6aa63f2f (patch) | |
| tree | f8e0c414a71d221a913b29ea3318bef3f4fbf207 | |
| parent | a62cd1b44cdf34313cd0afc4e66410444bab6669 (diff) | |
| download | rust-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.rs | 3 |
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<_>>(); } |
