Drop tracking: track borrows of projections by eholk · Pull Request #93751 · rust-lang/rust (original) (raw)
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-tracking
flag from #93313. If that PR lands first, I'll rebase to drop the commit from this one.
Fixes #93648