future cannot be sent between threads safely #118718
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code
Current output
Desired output
Rationale and extra context
Something happened to error output sometime between rustc 1.67 and later. Before, it would just output a sensible short error telling me that I have a syntax error, unknown variable, whatever, and calmly stop. Now, whenever I have a problem with a function inside an async scope, the compiler blows up with pages of text of cascading problems. In my pretty large code base, the error is typically is buried in layers of async functions, so for every single one, I get a separate
future cannot be sent between threads safely
(think 20 errors I have to scroll through until I get to my actual error).The devex for async programming is now pretty much miserable. I'll settle for a "stop at first error" flag, e.g. #27189
Other cases
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: