Matthias Krüger c183d4a510
Rollup merge of #94115 - scottmcm:iter-process-by-ref, r=yaahc
Let `try_collect` take advantage of `try_fold` overrides

No public API changes.

With this change, `try_collect` (#94047) is no longer going through the `impl Iterator for &mut impl Iterator`, and thus will be able to use `try_fold` overrides instead of being forced through `next` for every element.

Here's the test added, to see that it fails before this PR (once a new enough nightly is out): https://play.rust-lang.org/?version=nightly&mode=debug&edition=2021&gist=462f2896f2fed2c238ee63ca1a7e7c56

This might as well go to the same person as my last `try_process` PR  (#93572), so
r? ``@yaahc``
2022-03-18 21:50:44 +01:00
..
2022-02-02 23:07:02 +09:00
2022-02-10 22:10:08 +00:00
2021-10-18 19:19:28 +09:00
2021-12-15 00:11:23 +08:00
2021-03-03 11:23:29 +01:00
2022-01-28 15:01:07 +01:00
2022-02-02 23:07:02 +09:00
2022-02-25 08:00:52 -05:00
2022-02-10 22:10:08 +00:00
2021-11-21 19:10:39 -08:00
2021-12-17 20:46:47 +08:00
2022-03-03 14:54:18 -05:00