Module rustc_borrowck::borrowck::gather_loans::lifetime[][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?

This module implements the check that the lifetime of a borrow does not exceed the lifetime of the value being borrowed.

Structs

GuaranteeLifetimeContext [
Experimental
]

Functions

guarantee_lifetime [
Experimental
]

Reports error if loan_region is larger than S where S is item_scope if cmt is an upvar, and is scope of cmt otherwise.

Type Definitions

R [
Experimental
]