-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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
Re-implement async fn drop order lowering #61413
Merged
bors
merged 7 commits into
rust-lang:master
from
davidtwco:async-argument-order-in-a-sane-way
Jun 4, 2019
Merged
Re-implement async fn drop order lowering #61413
bors
merged 7 commits into
rust-lang:master
from
davidtwco:async-argument-order-in-a-sane-way
Jun 4, 2019
Commits on Jun 3, 2019
-
syntax: revert
ast::AsyncArgument
and associated changes.Here follows the main reverts applied in order to make this commit: Revert "Rollup merge of rust-lang#60676 - davidtwco:issue-60674, r=cramertj" This reverts commit 45b0945, reversing changes made to f6df1f6. Revert "Rollup merge of rust-lang#60437 - davidtwco:issue-60236, r=nikomatsakis" This reverts commit 16939a5, reversing changes made to 12bf981. Revert "Rollup merge of rust-lang#59823 - davidtwco:issue-54716, r=cramertj" This reverts commit 62d1574, reversing changes made to 4eff852.
Configuration menu - View commit details
-
Copy full SHA for d0c78dd - Browse repository at this point
Copy the full SHA d0c78ddView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3277107 - Browse repository at this point
Copy the full SHA 3277107View commit details -
rustc: async fn drop order lowering in HIR
This commit re-implements the async fn drop order lowering changes so that it all takes place in HIR lowering, building atop the work done by `@eddyb` to refactor `Res::Upvar`. Previously, this types involved in the lowering were constructed in libsyntax as they had to be used during name resolution and HIR lowering. This was awful because none of that logic should have existed in libsyntax. This commit also changes `ArgSource` to keep a `HirId` to the original argument pattern rather than a cloned copy of the pattern.
Configuration menu - View commit details
-
Copy full SHA for 1e5f496 - Browse repository at this point
Copy the full SHA 1e5f496View commit details -
rustc: remove
HirId
fromArgSource::AsyncFn
This commit removes the `HirId` from `ArgSource::AsyncFn`, relying on the fact that only `simple_ident` is used in each of the locations that previously took the original pattern from the `ArgSource::AsyncFn`.
Configuration menu - View commit details
-
Copy full SHA for 5e3b41e - Browse repository at this point
Copy the full SHA 5e3b41eView commit details -
This commit changes the lowering to stop creating HIR statements, expressions and patterns directly and instead uses the pre-existing helper functions.
Configuration menu - View commit details
-
Copy full SHA for 3ebe9ab - Browse repository at this point
Copy the full SHA 3ebe9abView commit details -
rustc: construct statement vector directly
This commit simplifies the previous logic to construct the statement vector directly rather than constructing a `Vec` of `(hir::Stmt, Option<hir::Stmt>)` first.
Configuration menu - View commit details
-
Copy full SHA for 3c7e0eb - Browse repository at this point
Copy the full SHA 3c7e0ebView commit details -
`ArgSource` is no longer used anywhere, so it can be removed.
Configuration menu - View commit details
-
Copy full SHA for 2bb92aa - Browse repository at this point
Copy the full SHA 2bb92aaView 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.