Function rustc_mir::util::liveness::liveness_of_locals[][src]

pub fn liveness_of_locals<'tcx>(
    mir: &Mir<'tcx>,
    mode: LivenessMode
) -> LivenessResult
🔬 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?).