Skip to content

Commit

Permalink
Rollup merge of #111265 - spastorino:has_self-opaque_ty, r=compiler-e…
Browse files Browse the repository at this point in the history
…rrors

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.
  • Loading branch information
Dylan-DPC authored May 8, 2023
2 parents c9433a4 + f2cf795 commit 9405670
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_ty_utils/src/assoc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
});
Expand Down

0 comments on commit 9405670

Please sign in to comment.