Skip to content

Initial implementation of named Fn trait parameters - #158517

Open
JonathanBrouwer wants to merge 4 commits into
rust-lang:mainfrom
JonathanBrouwer:named_fn_trait_parameters
Open

Initial implementation of named Fn trait parameters#158517
JonathanBrouwer wants to merge 4 commits into
rust-lang:mainfrom
JonathanBrouwer:named_fn_trait_parameters

Conversation

@JonathanBrouwer

@JonathanBrouwer JonathanBrouwer commented Jun 28, 2026

Copy link
Copy Markdown
Contributor

This is an initial implementation of the feature named_fn_trait_parameters.
This implementation is incomplete (and also marked as such) , and needs significant further changes to be implemented correctly. To keep the size of this PR managable, I propose we do this in follow-up PRs.
I've added a test that shows the current behaviour, with FIXME comments where the test output is currently incorrect.

Tracking issue: #158499
Accepted RFC: rust-lang/rfcs#3955

@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 Jun 28, 2026
@rust-bors

This comment has been minimized.

@JonathanBrouwer
JonathanBrouwer force-pushed the named_fn_trait_parameters branch from 4d2b638 to 858e064 Compare July 31, 2026 11:28
@JonathanBrouwer JonathanBrouwer changed the title Implement named Fn trait parameters Initial implementation of named Fn trait parameters Aug 2, 2026
@JonathanBrouwer
JonathanBrouwer marked this pull request as ready for review August 2, 2026 10:36
@rustbot

rustbot commented Aug 2, 2026

Copy link
Copy Markdown
Collaborator

The parser was modified, potentially altering the grammar of (stable) Rust
which would be a breaking change.

cc @fmease

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Aug 2, 2026
@rustbot

rustbot commented Aug 2, 2026

Copy link
Copy Markdown
Collaborator

r? @JohnTitor

rustbot has assigned @JohnTitor.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: compiler
  • compiler expanded to 75 candidates
  • Random selection from 17 candidates

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