-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Minor syntax errors in async functions give a wall of unrelated "the future is not Send" errors #119678
Comments
Are you using the most up to date rustc? Additionally, does this reproduce on nightly? |
This was produced on:
Will try updated version + nightly, please hold... |
Can you share any code to reproduce this? I don't think we can do very much without some code to test. |
This may have been fixed by #115294, which is only present >= 1.74 |
This isn't in a public project, but I feel like I've hit this before. Let me see if 1.75 fixes it. |
Oh. Yeah, it's perfect in 1.75 :)
I'll go ahead and close, sorry for the noise and thanks for the reminder to update :) |
…=Mark-Simulacrum Ask for rustc version in diagnostic reports, remind users to update their toolchain IDK why we don't ask for rustc toolchain when filing diagnostic issues. Diagnostics are sometimes very dramatically affected by compiler version, and users may report old diagnostic issues that were fixed by subsequent rustc versions that they have yet to update to. For example, rust-lang#119678 was made a bit more difficult to triage due to the template not asking the issuer to report their rustc version.
Rollup merge of rust-lang#119679 - compiler-errors:issue-templates, r=Mark-Simulacrum Ask for rustc version in diagnostic reports, remind users to update their toolchain IDK why we don't ask for rustc toolchain when filing diagnostic issues. Diagnostics are sometimes very dramatically affected by compiler version, and users may report old diagnostic issues that were fixed by subsequent rustc versions that they have yet to update to. For example, rust-lang#119678 was made a bit more difficult to triage due to the template not asking the issuer to report their rustc version.
Code
Inside of an async function, make some kind of syntax error, like calling a function that doesn't exist or was not yet imported.
Current output
This produces a very large amount of output:
In particular in the console, ONLY the first error is useful, the rest is just noise.
Desired output
Just the first error, please:
Rationale and extra context
This is what it looks like graphically, at the moment.
Other cases
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: