The8472
bd1c39dc6c
implement TrustedLen for Flatten/FlatMap if the U: IntoIterator == [T; N]
...
This only works if arrays are passed directly instead of array iterators
because we need to be sure that they have not been advanced before
Flatten does its size calculation.
2021-07-15 22:59:30 +02:00
The8472
b4734b7c38
disable test on platforms that don't support unwinding
2021-06-20 12:20:05 +02:00
The8472
8b518542d0
fix panic-safety in specialized Zip::next_back
...
This was unsound since a panic in a.next_back() would result in the
length not being updated which would then lead to the same element
being revisited in the side-effect preserving code.
2021-06-19 02:20:51 +02:00
Muhammad Mominul Huque
507d97b26e
Update expressions where we can use array's IntoIterator implementation
2021-06-02 16:09:04 +06:00
Mara Bos
8dc0ae24bc
Remove Option::{unwrap_none, expect_none}.
2021-03-14 12:54:34 +01:00
Giacomo Stevanato
c1bfb9a78d
Add relevant test
2021-03-05 19:09:23 +01:00
Mara
ee796c6523
Rollup merge of #82289 - SkiFire13:fix-issue-82282, r=m-ou-se
...
Fix underflow in specialized ZipImpl::size_hint
Fixes #82282
2021-03-05 10:57:19 +01:00
Giacomo Stevanato
8b9ac4d415
Add test for underflow in specialized Zip's size_hint
2021-03-03 21:16:08 +01:00
Ryan Levick
ee65416f0d
Fix core tests
2021-03-03 11:22:49 +01:00
Giacomo Stevanato
f241c10223
Improve flatten-fuse tests
2021-01-23 21:33:38 +01:00
Daniel Conley
bc830a274b
library/core/tests/iter rearrange & add back missed doc comments
2021-01-22 17:57:07 -05:00
Daniel Conley
1e3a2def67
library/core/test/iter add newlines between tests
2021-01-22 16:58:21 -05:00
Daniel Conley
3ce97000e1
library/core/test/iter.rs split attempt 2
2021-01-21 19:36:32 -05:00