[][src]Module rustc_mir::dataflow::impls::borrowed_locals

🔬 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?

Re-exports

pub use super::*;

Structs

BorrowedLocalsVisitor [
Experimental
]
HaveBeenBorrowedLocals [
Experimental
]

This calculates if any part of a MIR local could have previously been borrowed. This means that once a local has been borrowed, its bit will be set from that point and onwards, until we see a StorageDead statement for the local, at which points there is no memory associated with the local, so it cannot be borrowed. This is used to compute which locals are live during a yield expression for immovable generators.

Functions

find_local [
Experimental
]