diff options
| author | bors <bors@rust-lang.org> | 2021-10-12 23:59:48 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-10-12 23:59:48 +0000 |
| commit | ef4b3069baafa75bc047a80b58cc130e80576a4e (patch) | |
| tree | f6555341c1bd9a3e10e5b3da15b4694332d48197 /compiler/rustc_codegen_gcc | |
| parent | d7c97a02d1215e4ef26c31cb72dbaf16fd548b2c (diff) | |
| parent | f1c588f1ef391b33663f44c52b17c9cc12928a75 (diff) | |
| download | rust-ef4b3069baafa75bc047a80b58cc130e80576a4e.tar.gz rust-ef4b3069baafa75bc047a80b58cc130e80576a4e.zip | |
Auto merge of #89774 - the8472:inline-mut-iter-next, r=m-ou-se
inline next() on &mut Iterator impl In [#87431](https://github.com/rust-lang/rust/pull/87431/files#diff-79a6b417b85ecf4f1a4ef2235135fedf540199caf6e9e1d154ac6a413b40a757R132-R136) I found that `(&mut range).fold` doesn't optimize well because the default impl for for `fold` on `&mut Iterator` doesn't inline `next`. In that particular case it was worked around by using `try_fold` which takes a `&mut self` instead of `self`. Let's see if this can be fixed more broadly.
Diffstat (limited to 'compiler/rustc_codegen_gcc')
0 files changed, 0 insertions, 0 deletions
