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.
This commit is contained in:
parent
a62cd1b44c
commit
7badb7a7f8
@ -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<_>>();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user