-
Notifications
You must be signed in to change notification settings - Fork 661
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
Fix futures #28469
Fix futures #28469
Conversation
2760c4c
to
8df853f
Compare
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.
Looks good overall, left some nits and comments.
Any chance this approach can be used to address either of these issues:
I believe the CI failure is due to some expectations that need to be regenerated
8df853f
to
2f8b4f4
Compare
Indeed, this issue is now fixed (and I've updated the last commit message to refer to it). And I think this one is too. Maybe. The compiler will now give an error for the code in the example, because you can't assign a Future out of a tuple to a new variable like that. I think that suffices to fix this issue, but maybe there is still a problem around type checking futures? |
2f8b4f4
to
12ea37e
Compare
Also, fix the span for function inputs.
This way we don't get misleading error messages.
Now futures are tracked properly, whether they're stored directly in a variable or in a tuple. Also, error if a future is used improperly. Fixes #28471
12ea37e
to
7b88c3e
Compare
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.
LGTM!
No description provided.