about summary refs log tree commit diff
path: root/library/core/tests/iter
AgeCommit message (Expand)AuthorLines
2023-03-27replace advance_by returning usize with Result<(), NonZeroUsize>The 8472-84/+106
2023-03-27Change advance(_back)_by to return `usize` instead of `Result<(), usize>`The 8472-85/+89
2023-03-18Mark DoubleEndedIterator as #[const_trait] using rustc_do_not_const_check, im...onestacked-0/+38
2023-03-03Match unmatched backticks in library/est31-1/+1
2023-02-13Auto merge of #107634 - scottmcm:array-drain, r=thomccbors-0/+3
2023-02-04Allow canonicalizing the `array::map` loop in trusted casesScott McMurray-0/+3
2023-01-14Use associated items of `char` instead of freestanding items in `core::char`Lukas Markeffsky-1/+0
2022-11-24Tune RepeatWith::try_fold and Take::for_each and Vec::extend_trustedScott McMurray-0/+20
2022-11-15`VecDeque::resize` should re-use the buffer in the passed-in elementScott McMurray-0/+49
2022-11-07simplification: do not process the ArrayChunks remainder in fold()The 8472-1/+2
2022-08-24Rollup merge of #100220 - scottmcm:fix-by-ref-sized, r=joshtriplettMatthias Krüger-0/+21
2022-08-19Auto merge of #99541 - timvermeulen:flatten_cleanup, r=the8472bors-0/+42
2022-08-14Properly forward `ByRefSized::fold` to the inner iteratorScott McMurray-0/+21
2022-08-14fix(iter::skip): Optimize `next` and `nth` implementations of `Skip`austinabell-0/+31
2022-08-05Move `fold` logic to `iter_fold` method and reuse it in `count` and `last`Tim Vermeulen-0/+42
2022-08-01Remove incorrect impl `TrustedLen` for `ArrayChunks`Maybe Waffle-1/+1
2022-08-01Use `array::IntoIter` for the `ArrayChunks` remainderRoss MacArthur-24/+5
2022-08-01Add `Iterator::array_chunks()`Ross MacArthur-0/+221
2022-07-18Add note to test about `Unfuse`Tim Vermeulen-0/+3
2022-07-18Fix `Skip::next` for non-fused inner iteratorsTim Vermeulen-0/+8
2022-06-21Add `Iterator::next_chunk`Ross MacArthur-0/+9
2022-05-29Use Box::new() instead of box syntax in core testsest31-1/+2
2022-03-18Rollup merge of #94115 - scottmcm:iter-process-by-ref, r=yaahcMatthias Krüger-0/+24
2022-03-13Auto merge of #94738 - Urgau:rustbuild-check-cfg-values, r=Mark-Simulacrumbors-2/+0
2022-03-10Let `try_collect` take advantage of `try_fold` overridesScott McMurray-0/+24
2022-03-09Remove unexpected #[cfg(target_pointer_width = "8")] in testsLoïc BRANSTETT-2/+0
2022-02-20Add collect_intofren_gor-0/+8
2022-02-16Add a `try_collect()` helper method to `Iterator`Arthur Lafrance-0/+46
2022-02-02add teststamaron-0/+8
2022-01-09eplace usages of vec![].into_iter with [].into_iterLucas Kent-10/+10
2021-12-04Use IntoIterator for array impl everywhere.Mara Bos-6/+5
2021-12-04Add a `try_reduce` method to the Iterator traitkit-0/+28
2021-11-19Fix Iterator::advance_by contract inconsistencyThe8472-0/+47
2021-09-30implement advance_(back_)_by on more iteratorsThe8472-0/+40
2021-07-30Consistent spelling of "adapter" in the standard libraryFrank Steffahn-1/+1
2021-07-16implement ConstSizeIntoIterator for &[T;N] in addition to [T;N]The8472-0/+16
2021-07-15implement TrustedLen for Flatten/FlatMap if the U: IntoIterator == [T; N]The8472-0/+24
2021-06-20disable test on platforms that don't support unwindingThe8472-2/+4
2021-06-19fix panic-safety in specialized Zip::next_backThe8472-0/+25
2021-06-02Update expressions where we can use array's IntoIterator implementationMuhammad Mominul Huque-3/+1
2021-03-14Remove Option::{unwrap_none, expect_none}.Mara Bos-6/+6
2021-03-05Add relevant testGiacomo Stevanato-0/+23
2021-03-05Rollup merge of #82289 - SkiFire13:fix-issue-82282, r=m-ou-seMara-0/+20
2021-03-03Add test for underflow in specialized Zip's size_hintGiacomo Stevanato-0/+20
2021-03-03Fix core testsRyan Levick-2/+2
2021-01-23Improve flatten-fuse testsGiacomo Stevanato-0/+17
2021-01-22library/core/tests/iter documentation and cleanupDaniel Conley-7/+37
2021-01-22library/core/tests/iter rearrange & add back missed doc commentsDaniel Conley-270/+274
2021-01-22library/core/test/iter add newlines between testsDaniel Conley-1/+170
2021-01-21library/core/test/iter.rs split attempt 2Daniel Conley-0/+3574