-
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
improve error for missing await #84166
Labels
A-async-await
Area: Async & Await
A-diagnostics
Area: Messages for errors, warnings, and lints
D-confusing
Diagnostics: Confusing error or lint that should be reworked.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Comments
nikomatsakis
added
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.
labels
Apr 13, 2021
I think the output should be more aggressive. For example:
|
Another alternative would be to explicitly state what the
|
nikomatsakis
changed the title
improve error for missing
improve error for missing await
Apr 13, 2021
Related, if not a duplicate, to #80658 |
estebank
added
the
D-confusing
Diagnostics: Confusing error or lint that should be reworked.
label
Apr 13, 2021
The note has changed on nightly/beta, from the PR linked to that isssue:
|
I agree this is something of a duplicate. I can move the conversation over there. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-async-await
Area: Async & Await
A-diagnostics
Area: Messages for errors, warnings, and lints
D-confusing
Diagnostics: Confusing error or lint that should be reworked.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Given the following code:
The current (pretty decent) output is:
The text was updated successfully, but these errors were encountered: