pub(crate) fn switch_targets_unreachable<'tcx>(
tcx: TyCtxt<'tcx>,
body: &Body<'tcx>,
targets: &SwitchTargets,
) -> boolExpand description
Whether a SwitchInt’s non-otherwise targets all lead straight to
panic/unreachable (a debug_assert!/assert! dispatch). Such a switch
is dead on the normal path and can be inlined by following only the
otherwise edge.