about summary refs log tree commit diff
path: root/compiler/rustc_interface
diff options
context:
space:
mode:
authorYuki Okushi <jtitor@2k36.org>2022-02-09 14:12:24 +0900
committerGitHub <noreply@github.com>2022-02-09 14:12:24 +0900
commita07eed99f6505aeefa97aa7f73f8fb70ee5eb12f (patch)
tree3ac549d8d59d0e72f2380abb2063ad4e23d95792 /compiler/rustc_interface
parent68fa9b198aaef41b173f5dbf4b2822765ce5007c (diff)
parent97b24f3236a59c920b8978604739fcd274c678de (diff)
downloadrust-a07eed99f6505aeefa97aa7f73f8fb70ee5eb12f.tar.gz
rust-a07eed99f6505aeefa97aa7f73f8fb70ee5eb12f.zip
Rollup merge of #93751 - eholk:issue-93648-drop-tracking-projection, r=tmiasko
Drop tracking: track borrows of projections

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
Diffstat (limited to 'compiler/rustc_interface')
-rw-r--r--compiler/rustc_interface/src/tests.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_interface/src/tests.rs b/compiler/rustc_interface/src/tests.rs
index 5e288187756..e5e46703082 100644
--- a/compiler/rustc_interface/src/tests.rs
+++ b/compiler/rustc_interface/src/tests.rs
@@ -730,6 +730,7 @@ fn test_debugging_options_tracking_hash() {
     tracked!(debug_info_for_profiling, true);
     tracked!(debug_macros, true);
     tracked!(dep_info_omit_d_target, true);
+    tracked!(drop_tracking, true);
     tracked!(dual_proc_macros, true);
     tracked!(fewer_names, Some(true));
     tracked!(force_unstable_if_unmarked, true);