Skip to content

Commit 9405670

Browse files
authored
Rollup merge of #111265 - spastorino:has_self-opaque_ty, r=compiler-errors
Make generics_of has_self on RPITITs delegate to the opaque r? `@compiler-errors` I couldn't come up with a test case and none of the ones in the `tests` folder is impacted by this change, but I still think is the right thing to do. Michael, let me know if you have ideas on how to add a test that's affected by this change.
2 parents c9433a4 + f2cf795 commit 9405670

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_ty_utils/src/assoc.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ fn associated_type_for_impl_trait_in_trait(
334334
parent_count,
335335
params,
336336
param_def_id_to_index,
337-
has_self: false,
337+
has_self: opaque_ty_generics.has_self,
338338
has_late_bound_regions: opaque_ty_generics.has_late_bound_regions,
339339
}
340340
});

0 commit comments

Comments
 (0)