Skip to content

fix: Fix HIR lowering of params of trait assoc fns - #23162

Open
ChayimFriedman2 wants to merge 1 commit into
rust-lang:masterfrom
ChayimFriedman2:trait-fn-param
Open

fix: Fix HIR lowering of params of trait assoc fns#23162
ChayimFriedman2 wants to merge 1 commit into
rust-lang:masterfrom
ChayimFriedman2:trait-fn-param

Conversation

@ChayimFriedman2

Copy link
Copy Markdown
Contributor

It turns out they should be treated as bare idents, not patterns, but only if they have no body.

Also allow macro patterns for both them and extern fns, because rustc allows that.

Fixes #23155.

It turns out they should be treated as bare idents, not patterns, but only if they have no body.

Also allow macro patterns for both them and extern fns, because rustc allows that.
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Aug 17, 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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

FP expected A, found fn , fn param named Some instead of some

2 participants