rustc_trait_selection::error_reporting::infer::nice_region_error

Function suggest_adding_lifetime_params

Source
pub fn suggest_adding_lifetime_params<'tcx>(
    tcx: TyCtxt<'tcx>,
    err: &mut Diag<'_>,
    generic_param_scope: LocalDefId,
    sub: Region<'tcx>,
    ty_sup: &'tcx Ty<'_>,
    ty_sub: &'tcx Ty<'_>,
)
Expand description

Currently only used in rustc_borrowck, probably should be removed in favour of public_errors::AddLifetimeParamsSuggestion