Skip to content

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

Merged
rust-bors[bot] merged 1 commit intorust-lang:mainfrom
cammeresi:20260426-receiver-diag
Apr 28, 2026
Merged

Rename the diagnostic item for std::sync::mpsc::Receiver#155854
rust-bors[bot] merged 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
@mejrs
Copy link
Copy Markdown
Contributor

mejrs commented Apr 28, 2026

@bors r+ rollup

@rust-bors
Copy link
Copy Markdown
Contributor

rust-bors Bot commented Apr 28, 2026

📌 Commit 04874be has been approved by mejrs

It is now in the queue for this repository.

@rust-bors rust-bors Bot added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Apr 28, 2026
rust-bors Bot pushed a commit that referenced this pull request Apr 28, 2026
Rollup of 9 pull requests

Successful merges:

 - #155381 (Fix a bug in `ChunkedBitSet::subtract`)
 - #155847 (Don't reload length in String::push)
 - #155858 (`slice::join`: borrow only once during length calc)
 - #155879 (enable pipe tests in Miri)
 - #155905 (Update LLVM to 22.1.4 (again))
 - #155247 ([AIX] update linker default to bcdtors)
 - #155812 ([codex] tests: mark migrated UI tests as check-pass)
 - #155854 (Rename the diagnostic item for `std::sync::mpsc::Receiver`)
 - #155882 (Add regression test for #101363)
@rust-bors rust-bors Bot merged commit f4d64bd into rust-lang:main Apr 28, 2026
11 checks passed
@rustbot rustbot added this to the 1.97.0 milestone Apr 28, 2026
rust-timer added a commit that referenced this pull request Apr 28, 2026
Rollup merge of #155854 - cammeresi:20260426-receiver-diag, r=mejrs

Rename the diagnostic item for `std::sync::mpsc::Receiver`

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

r? mejrs
@cammeresi cammeresi deleted the 20260426-receiver-diag branch April 29, 2026 03:26
flip1995 pushed a commit to flip1995/rust that referenced this pull request Apr 30, 2026
…r=mejrs

Rename the diagnostic item for `std::sync::mpsc::Receiver`

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

r? mejrs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. 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