Skip to main content

remove_successors_from_switch

Function remove_successors_from_switch 

Source
pub(crate) fn remove_successors_from_switch<'tcx>(
    tcx: TyCtxt<'tcx>,
    bb: BasicBlock,
    body: &Body<'tcx>,
    patch: &mut MirPatch<'tcx>,
    is_unreachable_block: impl Fn(BasicBlock) -> bool,
) -> bool
Expand description

Return whether the current terminator is fully unreachable.