]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_mir/borrow_check/mod.rs
Remove unnecessary lift calls
[rust.git] / src / librustc_mir / borrow_check / mod.rs
index 161a08c5773e7b2ae11be8db44ff943381f6f6a0..b05e291710a486a98cf22306f9b3d7161cab93d2 100644 (file)
@@ -670,7 +670,7 @@ fn visit_terminator_entry(
                 // "Lift" into the gcx -- once regions are erased, this type should be in the
                 // global arenas; this "lift" operation basically just asserts that is true, but
                 // that is useful later.
-                let drop_place_ty = gcx.lift(&drop_place_ty).unwrap();
+                gcx.lift_to_global(&drop_place_ty).unwrap();
 
                 debug!("visit_terminator_drop \
                         loc: {:?} term: {:?} drop_place: {:?} drop_place_ty: {:?} span: {:?}",