rustc_mir_transform::coverage

Function inject_edge_counter_basic_block

source
fn inject_edge_counter_basic_block(
    mir_body: &mut Body<'_>,
    from_bb: BasicBlock,
    to_bb: BasicBlock,
) -> BasicBlock
Expand description

Given two basic blocks that have a control-flow edge between them, creates and returns a new block that sits between those blocks.