@@ -674,29 +674,16 @@ impl<'cx, 'tcx> dataflow::ResultsVisitor<'cx, 'tcx> for MirBorrowckCtxt<'cx, 'tc
674
674
TerminatorKind :: SwitchInt { ref discr, switch_ty : _, targets : _ } => {
675
675
self . consume_operand ( loc, ( discr, span) , flow_state) ;
676
676
}
677
- TerminatorKind :: Drop { place : ref drop_place, target : _, unwind : _ } => {
678
- let tcx = self . infcx . tcx ;
679
-
680
- // Compute the type with accurate region information.
681
- let drop_place_ty = drop_place. ty ( self . body , self . infcx . tcx ) ;
682
-
683
- // Erase the regions.
684
- let drop_place_ty = self . infcx . tcx . erase_regions ( & drop_place_ty) . ty ;
685
-
686
- // "Lift" into the tcx -- once regions are erased, this type should be in the
687
- // global arenas; this "lift" operation basically just asserts that is true, but
688
- // that is useful later.
689
- tcx. lift ( drop_place_ty) . unwrap ( ) ;
690
-
677
+ TerminatorKind :: Drop { place, target : _, unwind : _ } => {
691
678
debug ! (
692
679
"visit_terminator_drop \
693
- loc: {:?} term: {:?} drop_place: {:?} drop_place_ty : {:?} span: {:?}",
694
- loc, term, drop_place , drop_place_ty , span
680
+ loc: {:?} term: {:?} place : {:?} span: {:?}",
681
+ loc, term, place , span
695
682
) ;
696
683
697
684
self . access_place (
698
685
loc,
699
- ( * drop_place , span) ,
686
+ ( place , span) ,
700
687
( AccessDepth :: Drop , Write ( WriteKind :: StorageDeadOrDrop ) ) ,
701
688
LocalMutationIsAllowed :: Yes ,
702
689
flow_state,
0 commit comments