Expand description
A pass that propagates the unreachable terminator of a block to its predecessors when all of their successors are unreachable. This is achieved through a post-order traversal of the blocks.
Re-exportsยง
use rustc_abi::Size;๐use rustc_data_structures::fx::FxHashSet;๐use rustc_middle::mir::interpret::Scalar;๐use rustc_middle::ty;๐use rustc_middle::ty::TyCtxt;๐use rustc_span::bug;๐use crate::PassPolicy;๐use crate::patch::MirPatch;๐use rustc_middle::mir::*;๐
Structsยง
Functionsยง
- remove_
successors_ ๐from_ switch - Return whether the current terminator is fully unreachable.