about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/common.rs
diff options
context:
space:
mode:
authorDylan DPC <99973273+Dylan-DPC@users.noreply.github.com>2022-06-28 15:30:05 +0530
committerGitHub <noreply@github.com>2022-06-28 15:30:05 +0530
commitff223ff29799eaf99635ad0a07547f572a7136d7 (patch)
tree5d02e2f68c5b127f4e752a07e5ad23a211727939 /compiler/rustc_codegen_llvm/src/common.rs
parent400f435c2ddb2139ab967b375bc1fd0a06f1aa46 (diff)
parent6587dda39e9b49b322394592e45a477da68c7f1a (diff)
downloadrust-ff223ff29799eaf99635ad0a07547f572a7136d7.tar.gz
rust-ff223ff29799eaf99635ad0a07547f572a7136d7.zip
Rollup merge of #98430 - camsteffen:flatten-refactor, r=joshtriplett
Refactor iter adapters with less macros

Just some code cleanup. Introduced a util `and_then_or_clear` for each of chain, flatten and fuse iter adapter impls. This reduces code nicely for flatten, but admittedly the other modules are more of a lateral move replacing macros with a function. But I think consistency across the modules and avoiding macros when possible is good.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/common.rs')
0 files changed, 0 insertions, 0 deletions