Function rustc::infer::lexical_region_resolve::resolve[][src]

pub fn resolve<'tcx>(
    region_rels: &RegionRelations<'_, '_, 'tcx>,
    var_infos: VarInfos,
    data: RegionConstraintData<'tcx>
) -> (LexicalRegionResolutions<'tcx>, Vec<RegionResolutionError<'tcx>>)
🔬 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 function performs lexical region resolution given a complete set of constraints and variable origins. It performs a fixed-point iteration to find region values which satisfy all constraints, assuming such values can be found. It returns the final values of all the variables as well as a set of errors that must be reported.