about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/errors.rs
diff options
context:
space:
mode:
authorZalathar <Zalathar@users.noreply.github.com>2023-10-10 15:09:04 +1100
committerZalathar <Zalathar@users.noreply.github.com>2023-10-10 18:45:29 +1100
commit5d629457fd3bb580b87800f7c2858ddfe3f1c0ac (patch)
tree5322d116ef07070a8c540cde0e6830217d22a3ca /compiler/rustc_codegen_llvm/src/errors.rs
parentf214497d22588c95b94f8ef89ca2db7d71424c36 (diff)
downloadrust-5d629457fd3bb580b87800f7c2858ddfe3f1c0ac.tar.gz
rust-5d629457fd3bb580b87800f7c2858ddfe3f1c0ac.zip
coverage: Unbox and simplify `bcb_filtered_successors`
This function already has access to the MIR body, so instead of taking a
reference to a terminator, it's simpler and easier to pass in a basic block
index.

There is no need to box the returned iterator if we instead add appropriate
lifetime captures, since `short_circuit_preorder` is now generic over the type
of iterator it expects.

We can also greatly simplify the function's implementation by observing that
the only difference between its two cases is whether we take all of a BB's
successors, or just the first one.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/errors.rs')
0 files changed, 0 insertions, 0 deletions