Do suggest_await_before_try with infer variables in self, and clean up binders#97721
Merged
bors merged 1 commit intorust-lang:masterfrom Jun 6, 2022
Merged
Do suggest_await_before_try with infer variables in self, and clean up binders#97721bors merged 1 commit intorust-lang:masterfrom
suggest_await_before_try with infer variables in self, and clean up binders#97721bors merged 1 commit intorust-lang:masterfrom
Conversation
Contributor
|
r? @nagisa (rust-highfive has picked a reviewer for you, use r? to override) |
suggest_await_before_try with infer variables in self, and clean up binders
jackh726
approved these changes
Jun 4, 2022
Member
jackh726
left a comment
There was a problem hiding this comment.
r=me with or without comment
Member
There was a problem hiding this comment.
Took me a second to realize that the empty list here is fine because it's the future trait; maybe a comment would be helpful?
Member
|
r? @jackh726 |
6876a88 to
d268b34
Compare
Contributor
Author
|
@bors r=jackh726 rollup |
Collaborator
|
📌 Commit d268b34 has been approved by |
Dylan-DPC
added a commit
to Dylan-DPC/rust
that referenced
this pull request
Jun 6, 2022
…h726 Do `suggest_await_before_try` with infer variables in self, and clean up binders Fixes rust-lang#97704 Also cleans up binders in this fn, since everything is a `Poly*` and we really shouldn't have stray escaping late-bound regions everywhere. That's why the function changed so much. This isn't necessary, so I can revert if necessary.
bors
added a commit
to rust-lang-ci/rust
that referenced
this pull request
Jun 6, 2022
…askrgr Rollup of 7 pull requests Successful merges: - rust-lang#90905 (Add empty impl blocks if they have documentation) - rust-lang#97683 (Fail gracefully when encountering an HRTB in APIT. ) - rust-lang#97721 (Do `suggest_await_before_try` with infer variables in self, and clean up binders) - rust-lang#97752 (typo: `-Zcodegen-backend=llvm -Cpasses=list` should work now) - rust-lang#97759 (Suggest adding `{}` for `'label: non_block_expr`) - rust-lang#97764 (use strict provenance APIs) - rust-lang#97765 (Restore a test that was intended to test `as` cast to ptr) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Fixes #97704
Also cleans up binders in this fn, since everything is a
Poly*and we really shouldn't have stray escaping late-bound regions everywhere. That's why the function changed so much. This isn't necessary, so I can revert if necessary.