Skip to content

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

Merged
ShoyuVanilla merged 1 commit into
rust-lang:masterfrom
ChayimFriedman2:trait-fn-param
Aug 26, 2026
Merged

fix: Fix HIR lowering of params of trait assoc fns#23162
ShoyuVanilla merged 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
@ShoyuVanilla
ShoyuVanilla added this pull request to the merge queue Aug 26, 2026
Merged via the queue into rust-lang:master with commit 38bd748 Aug 26, 2026
18 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Aug 26, 2026
@ChayimFriedman2
ChayimFriedman2 deleted the trait-fn-param branch August 26, 2026 08:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

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

3 participants