-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
extract expected return type for async fn generators #64999
Merged
bors
merged 16 commits into
rust-lang:master
from
nikomatsakis:issue-60424-async-return-inference
Oct 3, 2019
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
c845f3d
track the kind of async generator we are creating
nikomatsakis 44e801a
thread down the body so we can check if this is an async fn body
nikomatsakis c8e5851
improved debug output
nikomatsakis f7ed53c
extract expected return type from `-> impl Future` obligation
nikomatsakis 094f3a8
WIP tidy hir/lowering/expr.rs
nikomatsakis 81cd596
WIP rebase for `shallow_resolve` call
nikomatsakis dce20bf
WIP fix tests
nikomatsakis 3ae4abb
correct coercion comments
nikomatsakis a999132
improve comments on `GeneratorKind` and `AsyncGeneratorKind`
nikomatsakis 5d64b3d
document `ret_coercion` and `ret_coercion_span`
nikomatsakis 5fea1d2
document `shallow_resolve`
nikomatsakis 3f277e1
s/`async` fn/`async fn`/
nikomatsakis a96bce7
avoid using `skip_binder` and instead look for bound vars properly
nikomatsakis 4a49351
add unsize slice-str coercion
nikomatsakis 19c07cc
fix example (le sigh)
nikomatsakis a807032
./x.py test --bless --compare-mode=nll
nikomatsakis File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe leave a FIXME/open an issue somewhere about generalizing this so it can rely entirely on the
impl
s involved and not have to know about theFuture
trait at all?(This would be long-term and probably significantly more complicated than this targeted fix)