Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a better error message for #39364 #88612

Merged
merged 3 commits into from
Sep 24, 2021
Merged

Add a better error message for #39364 #88612

merged 3 commits into from
Sep 24, 2021

Conversation

lovasoa
Copy link
Contributor

@lovasoa lovasoa commented Sep 3, 2021

There is a known bug in the implementation of mpsc channels in rust.
This adds a clearer error message when the bug occurs, so that developers don't lose too much time looking for the origin of the bug.
See #39364

There is a known bug in the implementation of mpsc channels in rust.
This adds a clearer error message when the bug occurs, so that developers don't lose too much time looking for the origin of the bug.
See rust-lang#39364
@rust-highfive
Copy link
Collaborator

r? @joshtriplett

(rust-highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Sep 3, 2021
@rust-log-analyzer

This comment has been minimized.

@joshtriplett joshtriplett added T-libs Relevant to the library team, which will review and decide on the PR/issue. I-nominated labels Sep 4, 2021
@joshtriplett
Copy link
Member

Seems reasonable to me. Needs a rustfmt, but otherwise OK.

I'm going to nominate this for a libs team meeting, so that we can discuss the broader issues around mpsc, and confirm that we want to make this change in the interim.

@m-ou-se
Copy link
Member

m-ou-se commented Sep 8, 2021

I'm not sure I like the idea of refering to Rust and Rust issues from panic/error messages in the standard library. Messages from the compiler will be shown to the Rust developer, but messages like these will be shown to the user of the program, for who this might be quite meaningless or confusing.

On the other hand, the alternative of just 'assertion failed' isn't much better of course.

@m-ou-se
Copy link
Member

m-ou-se commented Sep 22, 2021

Discussed in the library meeting. Approving, since the new message is better than just the assert message with no context.

@bors r+ rollup

@bors
Copy link
Contributor

bors commented Sep 22, 2021

📌 Commit 598e5b2 has been approved by m-ou-se

@bors bors 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 Sep 22, 2021
workingjubilee added a commit to workingjubilee/rustc that referenced this pull request Sep 23, 2021
Add a better error message for rust-lang#39364

There is a known bug in the implementation of mpsc channels in rust.
This adds a clearer error message when the bug occurs, so that developers don't lose too much time looking for the origin of the bug.
See rust-lang#39364
This was referenced Sep 23, 2021
bors added a commit to rust-lang-ci/rust that referenced this pull request Sep 24, 2021
…ingjubilee

Rollup of 7 pull requests

Successful merges:

 - rust-lang#88612 (Add a better error message for rust-lang#39364)
 - rust-lang#89023 (Resolve issue : Somewhat confusing error with extended_key_value_attributes)
 - rust-lang#89148 (Suggest `_` in turbofish if param will be inferred from fn argument)
 - rust-lang#89171 (Run `no_core` rustdoc tests only on Linux)
 - rust-lang#89176 (Change singular to plural)
 - rust-lang#89184 (Temporarily rename int_roundings functions to avoid conflicts)
 - rust-lang#89200 (Fix typo)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit 586d028 into rust-lang:master Sep 24, 2021
@rustbot rustbot added this to the 1.57.0 milestone Sep 24, 2021
@lovasoa lovasoa deleted the patch-1 branch September 24, 2021 21:47
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-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.

7 participants