Drop tracking: track borrows of projections#93751
Merged
bors merged 2 commits intorust-lang:masterfrom Feb 9, 2022
Merged
Conversation
Previous efforts to ignore partially consumed values meant we were also not considering borrows of a projection. This led to cases where we'd miss borrowed types which MIR expected to be there, leading to ICEs.
Contributor
|
(rust-highfive has picked a reviewer for you, use r? to override) |
Contributor
Author
|
r? @tmiasko |
Contributor
|
Thanks! Drop tracking remains disabled by default, so this should be fine to include in a rollup. @bors r+ rollup=always |
Collaborator
|
📌 Commit 97b24f3 has been approved by |
Member
Collaborator
|
✌️ @eholk can now approve this pull request |
Contributor
The only commit from #93313 included here is the one adding the drop tracking flag, which is necessary for testing purposes. I don't think it requires an additional review, especially that the general direction has been discussed on the latest wg-async triage meeting. |
Member
Collaborator
|
📌 Commit 97b24f3 has been approved by |
bors
added a commit
to rust-lang-ci/rust
that referenced
this pull request
Feb 9, 2022
Rollup of 7 pull requests Successful merges: - rust-lang#93445 (Add From<u8> for ExitCode) - rust-lang#93694 (rustdoc: tweak line spacing and paragraph spacing for accessibility) - rust-lang#93735 (Stabilize int_abs_diff in 1.60.0.) - rust-lang#93746 (Remove defaultness from ImplItem.) - rust-lang#93748 (rustc_query_impl: reduce visibility of some modules/fn's) - rust-lang#93751 (Drop tracking: track borrows of projections) - rust-lang#93781 (update `ty::TyKind` documentation) 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.
Previous efforts to ignore partially consumed values meant we were also not considering borrows of a projection. This led to cases where we'd miss borrowed types which MIR expected to be there, leading to ICEs.
This PR also includes the
-Zdrop-trackingflag from #93313. If that PR lands first, I'll rebase to drop the commit from this one.Fixes #93648