Skip to content

delegation: rename Self generic param to This in recursive delegations#155635

Open
aerooneqq wants to merge 1 commit intorust-lang:mainfrom
aerooneqq:delegation-generics-Self-rename
Open

delegation: rename Self generic param to This in recursive delegations#155635
aerooneqq wants to merge 1 commit intorust-lang:mainfrom
aerooneqq:delegation-generics-Self-rename

Conversation

@aerooneqq
Copy link
Copy Markdown
Contributor

@aerooneqq aerooneqq commented Apr 22, 2026

This PR supports renaming of Self generic parameter to This in recursive delegations scenario, this allows propagation of This as we rely on Self naming to check whether it is implicit Self of a trait. Comment with a bit deeper explanation is in uplift_delegation_generic_params. Part of #118212.

r? @petrochenkov

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Apr 22, 2026
@rustbot rustbot added the T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. label Apr 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants