Skip to content

delegation: support mapping of all arguments with Self type#158690

Draft
aerooneqq wants to merge 4 commits into
rust-lang:mainfrom
aerooneqq:delegation-self-type-arguments-wrapping
Draft

delegation: support mapping of all arguments with Self type#158690
aerooneqq wants to merge 4 commits into
rust-lang:mainfrom
aerooneqq:delegation-self-type-arguments-wrapping

Conversation

@aerooneqq

@aerooneqq aerooneqq commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

This PR supports applying target expression to arguments of Self type.
That the first part of this feature which touches AST -> HIR lowering only and allows lowering of delegation's block several tumes when there are no definitions inside.
The second part will adjust typeck so we can apply adjustments to all mapped arguments as to the first argument of delegation. This should also eventually weak the condition of argument mapping allowing Box<Self>, Arc<Self>, etc.

Part of #118212.
r? @petrochenkov

@rustbot rustbot added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Jul 2, 2026
@aerooneqq

Copy link
Copy Markdown
Contributor Author

Blocked on #158434.
@rustbot blocked

@rustbot rustbot added S-blocked Status: Blocked on something else such as an RFC or other implementation work. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Jul 2, 2026
@rust-log-analyzer

This comment has been minimized.

@rust-log-analyzer

This comment has been minimized.

@petrochenkov petrochenkov added the F-fn_delegation `#![feature(fn_delegation)]` label Jul 2, 2026
@rust-log-analyzer

This comment has been minimized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

F-fn_delegation `#![feature(fn_delegation)]` S-blocked Status: Blocked on something else such as an RFC or other implementation work. 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.

4 participants