-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Tweak errors coming from for
-loop, ?
and .await
desugaring
#90939
Merged
Commits on Dec 13, 2021
-
When
.await
is called on a non-Future
expression, suggest removalKeep track of the origin of a `T: Future` obligation when caused by an `.await` expression. Address rust-lang#66731.
Configuration menu - View commit details
-
Copy full SHA for 7227a87 - Browse repository at this point
Copy the full SHA 7227a87View commit details -
Configuration menu - View commit details
-
Copy full SHA for 75b6275 - Browse repository at this point
Copy the full SHA 75b6275View commit details -
Configuration menu - View commit details
-
Copy full SHA for caf0c1b - Browse repository at this point
Copy the full SHA caf0c1bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 81a3b90 - Browse repository at this point
Copy the full SHA 81a3b90View commit details -
Configuration menu - View commit details
-
Copy full SHA for 79749d6 - Browse repository at this point
Copy the full SHA 79749d6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4f2b1c0 - Browse repository at this point
Copy the full SHA 4f2b1c0View commit details -
Configuration menu - View commit details
-
Copy full SHA for d45e030 - Browse repository at this point
Copy the full SHA d45e030View commit details -
Keep info on pre-desugaring expression for better "incorrect
.await
……" suggestion Keep the `HirId` of `.await`ed expressions so in the case of a `fn` call on on a sync `fn`, we can suggest maybe turning it into an `async fn`.
Configuration menu - View commit details
-
Copy full SHA for f640438 - Browse repository at this point
Copy the full SHA f640438View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8888d0d - Browse repository at this point
Copy the full SHA 8888d0dView commit details -
Configuration menu - View commit details
-
Copy full SHA for b825b0f - Browse repository at this point
Copy the full SHA b825b0fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9ecb141 - Browse repository at this point
Copy the full SHA 9ecb141View commit details -
The spans no longer overlap, so we no longer need to specialize the output depending on whether they would.
Configuration menu - View commit details
-
Copy full SHA for d59f74a - Browse repository at this point
Copy the full SHA d59f74aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 64dea33 - Browse repository at this point
Copy the full SHA 64dea33View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1a7f2d5 - Browse repository at this point
Copy the full SHA 1a7f2d5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 64f88e8 - Browse repository at this point
Copy the full SHA 64f88e8View commit details -
Configuration menu - View commit details
-
Copy full SHA for f2fc84f - Browse repository at this point
Copy the full SHA f2fc84fView commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.