Don't forget that the lifetime on hir types is 'tcx

This commit is contained in:
Oli Scherer
2023-02-01 14:23:51 +00:00
parent c485ee7147
commit e532b0dd7e
26 changed files with 105 additions and 98 deletions

View File

@@ -1736,7 +1736,7 @@ fn receiver_is_implemented<'tcx>(
fn check_variances_for_type_defn<'tcx>(
tcx: TyCtxt<'tcx>,
item: &hir::Item<'tcx>,
hir_generics: &hir::Generics<'_>,
hir_generics: &hir::Generics<'tcx>,
) {
let identity_args = ty::GenericArgs::identity_for_item(tcx, item.owner_id);