Function rustc_borrowck::borrowck::gather_loans::lifetime::guarantee_lifetime[][src]

pub fn guarantee_lifetime<'a, 'tcx>(
    bccx: &BorrowckCtxt<'a, 'tcx>,
    item_scope: Scope,
    span: Span,
    cause: LoanCause,
    cmt: &'a cmt_<'tcx>,
    loan_region: Region<'tcx>,
    _: BorrowKind
) -> Result<(), ()>
🔬 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?

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.