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

Use the "nice E0277 errors"[1] for !Send impl Future from foreign crate #89889

Merged
merged 1 commit into from
Oct 25, 2021

Conversation

estebank
Copy link
Contributor

Partly address #78543 by making the error quieter.

We don't have access to the typeck tables from foreign crates, so we
used to completely skip the new code when checking foreign crates. Now,
we carry on and don't provide as nice output (we don't clarify what is
making the Future: !Send), but at least we no longer emit a sea of
derived obligations in the output.

r? @tmandry

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Oct 14, 2021
@estebank estebank force-pushed the unmet-send-bound-on-foreign-future branch from 376a759 to 7f4cfa3 Compare October 14, 2021 17:59
Copy link
Member

@tmandry tmandry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Curious to know if these obligation clauses were helping anyone, but I suspect not!

r=me with comments addressed

@apiraino apiraino added the T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. label Oct 21, 2021
… crate

Partly address rust-lang#78543 by making the error quieter.

We don't have access to the `typeck` tables from foreign crates, so we
used to completely skip the new code when checking foreign crates. Now,
we carry on and don't provide as nice output (we don't clarify *what* is
making the `Future: !Send`), but at least we no longer emit a sea of
derived obligations in the output.

[1]: https://blog.rust-lang.org/inside-rust/2019/10/11/AsyncAwait-Not-Send-Error-Improvements.html
@estebank estebank force-pushed the unmet-send-bound-on-foreign-future branch from 7f4cfa3 to 6dcff4e Compare October 24, 2021 20:50
@estebank
Copy link
Contributor Author

@bors r=tmandry

@bors
Copy link
Contributor

bors commented Oct 24, 2021

📌 Commit 6dcff4e has been approved by tmandry

@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 Oct 24, 2021
bors added a commit to rust-lang-ci/rust that referenced this pull request Oct 25, 2021
…askrgr

Rollup of 4 pull requests

Successful merges:

 - rust-lang#89889 (Use the "nice E0277 errors"[1] for `!Send` `impl Future` from foreign crate)
 - rust-lang#90127 (Do not mention a reexported item if it's private)
 - rust-lang#90143 (tidy: Remove submodules from edition exception list)
 - rust-lang#90238 (Add alias for guillaume.gomez@huawei.com)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit b25172b into rust-lang:master Oct 25, 2021
@rustbot rustbot added this to the 1.58.0 milestone Oct 25, 2021
@estebank estebank deleted the unmet-send-bound-on-foreign-future branch November 9, 2023 05:14
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-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.

6 participants