1
Fork 0

Use a slice for object_lifetime_defaults.

This commit is contained in:
Camille GILLOT 2022-02-01 18:28:24 +01:00
parent f72f15ca28
commit e52131efad
4 changed files with 74 additions and 87 deletions

View file

@ -1695,7 +1695,7 @@ fn generics_of(tcx: TyCtxt<'_>, def_id: DefId) -> ty::Generics {
kind: ty::GenericParamDefKind::Lifetime,
}));
let object_lifetime_defaults = tcx.object_lifetime_defaults(hir_id);
let object_lifetime_defaults = tcx.object_lifetime_defaults(hir_id.owner);
// Now create the real type and const parameters.
let type_start = own_start - has_self as u32 + params.len() as u32;