Skip to content

delegation: simplify matches on FnKind, minor refactorings - #160853

Open
aerooneqq wants to merge 2 commits into
rust-lang:mainfrom
aerooneqq:delegation-fn-kind-matches
Open

delegation: simplify matches on FnKind, minor refactorings#160853
aerooneqq wants to merge 2 commits into
rust-lang:mainfrom
aerooneqq:delegation-fn-kind-matches

Conversation

@aerooneqq

@aerooneqq aerooneqq commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

This PR refactors matches on FnKind making them smaller and more concise, next in all matches except fn_kinds function we no longer panic on delegation to inherent impls. And some minor renamings/refactorings. First step for #160505.

Part of #118212.
r? @petrochenkov

@rustbot rustbot added 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. labels Aug 10, 2026
@aerooneqq
aerooneqq force-pushed the delegation-fn-kind-matches branch from 848f238 to 243131e Compare August 10, 2026 12:21
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