[−][src]Function rustc_mir::util::liveness::liveness_of_locals
pub fn liveness_of_locals<'tcx, V: Idx>(
mir: &Mir<'tcx>,
map: &impl LiveVariableMap<LiveVar = V>
) -> LivenessResult<V>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Compute which local variables are live within the given function
mir
. The liveness mode mode
determines what sorts of uses are
considered to make a variable live (e.g., do drops count?).