Distinguish appending and replacing self ty in predicates

This commit is contained in:
Michael Goulet
2025-07-30 17:48:24 +00:00
parent c8bb4e8a12
commit 2ae048e1df
15 changed files with 53 additions and 42 deletions

View File

@@ -493,7 +493,7 @@ fn suggestion_signature<'tcx>(
let args = ty::GenericArgs::identity_for_item(tcx, assoc.def_id).rebase_onto(
tcx,
assoc.container_id(tcx),
impl_trait_ref.with_self_ty(tcx, tcx.types.self_param).args,
impl_trait_ref.with_replaced_self_ty(tcx, tcx.types.self_param).args,
);
match assoc.kind {