Consolidate opaque ty and async fn lowering code

This commit is contained in:
Michael Goulet 2023-08-04 22:16:29 +00:00
parent fbc11e9690
commit 57a96893f6
5 changed files with 191 additions and 429 deletions

View file

@ -82,7 +82,7 @@ fn gather_explicit_predicates_of(tcx: TyCtxt<'_>, def_id: LocalDefId) -> ty::Gen
tcx,
def_id,
lifetime_mapping.iter().map(|(lifetime, def_id)| {
(*lifetime, (*def_id, lifetime.ident.name, lifetime.ident.span))
(**lifetime, (*def_id, lifetime.ident.name, lifetime.ident.span))
}),
tcx.generics_of(def_id.to_def_id()),
&mut predicates,