From f2cf795af444792500c156487e71e4a4298de95c Mon Sep 17 00:00:00 2001 From: Santiago Pastorino Date: Fri, 5 May 2023 16:24:51 -0300 Subject: [PATCH] Make generics_of has_self on RPITITs delegate to the opaque --- compiler/rustc_ty_utils/src/assoc.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/rustc_ty_utils/src/assoc.rs b/compiler/rustc_ty_utils/src/assoc.rs index de1e1a527d5..9029ba2a51a 100644 --- a/compiler/rustc_ty_utils/src/assoc.rs +++ b/compiler/rustc_ty_utils/src/assoc.rs @@ -334,7 +334,7 @@ fn associated_type_for_impl_trait_in_trait( parent_count, params, param_def_id_to_index, - has_self: false, + has_self: opaque_ty_generics.has_self, has_late_bound_regions: opaque_ty_generics.has_late_bound_regions, } });