From 34ca2dc0915e90f3ce170b0bb87d36127b127c36 Mon Sep 17 00:00:00 2001 From: Santiago Pastorino Date: Fri, 3 Mar 2023 12:41:22 -0300 Subject: [PATCH] Implement inferred_outlives_of for impl side RPITITs assoc type --- compiler/rustc_ty_utils/src/assoc.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/compiler/rustc_ty_utils/src/assoc.rs b/compiler/rustc_ty_utils/src/assoc.rs index b08c7c365da2..e0f569dc68a7 100644 --- a/compiler/rustc_ty_utils/src/assoc.rs +++ b/compiler/rustc_ty_utils/src/assoc.rs @@ -388,5 +388,8 @@ fn impl_associated_item_for_impl_trait_in_trait( predicates: &[], }); + // There are no inferred outlives for the synthesized associated type. + impl_assoc_ty.inferred_outlives_of(&[]); + local_def_id }