Module rustc_mir::dataflow::impls::borrowed_locals [−][src]
🔬 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::*; |
use rustc::mir::*; |
use rustc::mir::visit::Visitor; |
use dataflow::BitDenotation; |
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 always be set from that point and onwards, even if the borrow ends. You could also think of this as computing the lifetimes of infinite borrows. This is used to compute which locals are live during a yield expression for immovable generators. |
Functions
find_local |
[ Experimental ]
|