about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2025-06-26 20:15:18 -0400
committerGitHub <noreply@github.com>2025-06-26 20:15:18 -0400
commit9820197e120ea6714a188903e38db53aefa76b57 (patch)
treed19ad7e3fa6ee7159ef176fa838336fdb635d828 /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
parent36cde678948400f2dcda71ed09e2072f093b63d5 (diff)
parente6c300892dce9202e4f21359129569536945dfea (diff)
downloadrust-9820197e120ea6714a188903e38db53aefa76b57.tar.gz
rust-9820197e120ea6714a188903e38db53aefa76b57.zip
Rollup merge of #142549 - the8472:intersperse-fold-tweak, r=tgross35
small iter.intersperse.fold() optimization

No need to call into fold when the first item is already None, this avoids some redundant work for empty iterators.

"But it uses Fuse" one might want to protest, but Fuse is specialized and may call into the inner iterator anyway.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions