Function rustc_mir_transform::elaborate_drops::remove_dead_unwinds
source · fn remove_dead_unwinds<'tcx>(
tcx: TyCtxt<'tcx>,
body: &mut Body<'tcx>,
env: &MoveDataParamEnv<'tcx>,
und: &UnDerefer<'tcx>
)Expand description
Removes unwind edges which are known to be unreachable, because they are in drop terminators
that can’t drop anything.