rustc_mir_transform::unreachable_prop

Function remove_successors_from_switch

source
fn remove_successors_from_switch<'tcx>(
    tcx: TyCtxt<'tcx>,
    bb: BasicBlock,
    unreachable_blocks: &FxHashSet<BasicBlock>,
    body: &Body<'tcx>,
    patch: &mut MirPatch<'tcx>,
) -> bool
Expand description

Return whether the current terminator is fully unreachable.