Skip to content

Rename the diagnostic item for std::sync::mpsc::Receiver#155854

Open
cammeresi wants to merge 1 commit intorust-lang:mainfrom
cammeresi:20260426-receiver-diag
Open

Rename the diagnostic item for std::sync::mpsc::Receiver#155854
cammeresi wants to merge 1 commit intorust-lang:mainfrom
cammeresi:20260426-receiver-diag

Conversation

@cammeresi
Copy link
Copy Markdown
Contributor

MpscReceiver aligns with MpscSender. The original name appears to not actually have been in use, for better or worse.

r? mejrs

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-libs Relevant to the library team, which will review and decide on the PR/issue. labels Apr 27, 2026
@cammeresi
Copy link
Copy Markdown
Contributor Author

Due to multiple misunderstandings, what I said last time about the Receiver's item being in use was not actually correct. If I'm wrong, the tests should point it out, right?

@mejrs
Copy link
Copy Markdown
Contributor

mejrs commented Apr 27, 2026

I see it's used at

There may not be tests that actually exercise it, though.

@mejrs
Copy link
Copy Markdown
Contributor

mejrs commented Apr 27, 2026

To keep that clippy code the same you also have to update the symbol there. mpmc's Receiver also has an iter method so I think it makes sense for it to be there as well.

@mejrs mejrs added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Apr 27, 2026
@cammeresi cammeresi force-pushed the 20260426-receiver-diag branch from cb7b4e4 to 87efd5f Compare April 27, 2026 14:18
@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented Apr 27, 2026

Some changes occurred in src/tools/clippy

cc @rust-lang/clippy

@rustbot rustbot added the T-clippy Relevant to the Clippy team. label Apr 27, 2026
@cammeresi
Copy link
Copy Markdown
Contributor Author

I wasn't sure how wide a net to cast since mpmc is unstable, but I fixed that up and added more.

@rust-log-analyzer

This comment has been minimized.

`MpscReceiver` aligns with `MpscSender`.  The original name appears to
not actually have been in use, for better or worse.

Along the way, sprinkle the attribute onto `mpmc::Receiver` and
`mpmc::Sender` too.
@cammeresi cammeresi force-pushed the 20260426-receiver-diag branch from 87efd5f to 04874be Compare April 28, 2026 00:19
@cammeresi
Copy link
Copy Markdown
Contributor Author

@rustbot ready

@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 Apr 28, 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. T-clippy Relevant to the Clippy team. T-libs Relevant to the library 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