rustc_hir_analysis::collect

Function get_new_lifetime_name

source
fn get_new_lifetime_name<'tcx>(
    tcx: TyCtxt<'tcx>,
    poly_trait_ref: PolyTraitRef<'tcx>,
    generics: &Generics<'tcx>,
) -> String
Expand description

Synthesize a new lifetime name that doesn’t clash with any of the lifetimes already present.