about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/librustc_mir/borrow_check/nll/type_check/liveness.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc_mir/borrow_check/nll/type_check/liveness.rs b/src/librustc_mir/borrow_check/nll/type_check/liveness.rs
index 80b9dde98c2..75e0bd025f2 100644
--- a/src/librustc_mir/borrow_check/nll/type_check/liveness.rs
+++ b/src/librustc_mir/borrow_check/nll/type_check/liveness.rs
@@ -66,7 +66,7 @@ where
     liveness: &'gen LivenessResults,
     flow_inits: &'gen mut FlowAtLocation<MaybeInitializedPlaces<'flow, 'gcx, 'tcx>>,
     move_data: &'gen MoveData<'tcx>,
-    drop_data: FxHashMap<Local, DropData<'tcx>>,
+    drop_data: FxHashMap<Ty<'tcx>, DropData<'tcx>>,
 }
 
 struct DropData<'tcx> {
@@ -194,7 +194,7 @@ impl<'gen, 'typeck, 'flow, 'gcx, 'tcx> TypeLivenessGenerator<'gen, 'typeck, 'flo
             dropped_local, dropped_ty, location
         );
 
-        let drop_data = self.drop_data.entry(dropped_local).or_insert_with({
+        let drop_data = self.drop_data.entry(dropped_ty).or_insert_with({
             let cx = &mut self.cx;
             move || Self::compute_drop_data(cx, dropped_ty)
         });