[][src]Module rustc_mir::borrow_check::path_utils

⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.



Control for the path borrow checking code



Returns true if the borrow represented by kind is allowed to be split into separate Reservation and Activation phases.


Determines if a given borrow is borrowing local data This is called for all Yield expressions on movable generators


Encapsulates the idea of iterating over every borrow that involves a particular path


If place is a field projection, and the field is being projected from a closure type, then returns the index of the field being projected. Note that this closure will always be self in the current MIR, because that is the only time we directly access the fields of a closure type.