[][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.

Enums

ControlInternal

Control for the path borrow checking code

Functions

allow_two_phase_borrowInternal

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

borrow_of_local_dataInternal

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

each_borrow_involving_pathInternal

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

is_activeInternal
is_upvar_field_projectionInternal

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.