Use a slice for object_lifetime_defaults.
This commit is contained in:
parent
f72f15ca28
commit
e52131efad
4 changed files with 74 additions and 87 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue