improve diagnostics for non-send Futures that might be solved by introducing temporary variables #67376
Labels
A-async-await
Area: Async & Await
A-diagnostics
Area: Messages for errors, warnings, and lints
AsyncAwait-Triaged
Async-await issues that have been triaged during a working group meeting.
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
D-newcomer-roadblock
Diagnostics: Confusing error or lint; hard to understand for new users.
D-papercut
Diagnostics: An error or lint that needs small tweaks.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
In http-rs/tide#370 we had a user report that they encountered a
Send
error similar to the ones discussed in #64130. Thanks to the diagnostics introduced #65345 on nightly we were able to correctly diagnose the root cause of the error.But for many users this might still not be enough to figure out how to solve this, and we could improve by providing a hint.
Current Diagnostics
Suggested Diagnostics
@estebank suggested we could add a suggestion here:
Repro
Refs
The text was updated successfully, but these errors were encountered: