about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-03-18 21:50:44 +0100
committerGitHub <noreply@github.com>2022-03-18 21:50:44 +0100
commitc183d4a510a0007923354bec8ec2ea4d23d92f7d (patch)
treecaf8fd406b4c808dc390c72bb803cc8a3cddf3e2 /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
parent1bfe40d11c3630254504fb73eeccfca28d50df52 (diff)
parent7ef74bc8b97b9c129582a4d9c208fc615c5f6ba0 (diff)
downloadrust-c183d4a510a0007923354bec8ec2ea4d23d92f7d.tar.gz
rust-c183d4a510a0007923354bec8ec2ea4d23d92f7d.zip
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``
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions