@@ -186,7 +186,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
186186 }
187187
188188 let ty =
189- Place :: ty_from ( used_place. local , used_place. projection , * self . body , self . infcx . tcx )
189+ Place :: ty_from ( used_place. local , used_place. projection , self . body , self . infcx . tcx )
190190 . ty ;
191191 let needs_note = match ty. kind {
192192 ty:: Closure ( id, _) => {
@@ -202,7 +202,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
202202 let mpi = self . move_data . moves [ move_out_indices[ 0 ] ] . path ;
203203 let place = & self . move_data . move_paths [ mpi] . place ;
204204
205- let ty = place. ty ( * self . body , self . infcx . tcx ) . ty ;
205+ let ty = place. ty ( self . body , self . infcx . tcx ) . ty ;
206206 let opt_name =
207207 self . describe_place_with_options ( place. as_ref ( ) , IncludingDowncast ( true ) ) ;
208208 let note_msg = match opt_name {
@@ -591,7 +591,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
591591 // Define a small closure that we can use to check if the type of a place
592592 // is a union.
593593 let union_ty = |place_base, place_projection| {
594- let ty = Place :: ty_from ( place_base, place_projection, * self . body , self . infcx . tcx ) . ty ;
594+ let ty = Place :: ty_from ( place_base, place_projection, self . body , self . infcx . tcx ) . ty ;
595595 ty. ty_adt_def ( ) . filter ( |adt| adt. is_union ( ) ) . map ( |_| ty)
596596 } ;
597597
@@ -1486,15 +1486,15 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
14861486 StorageDeadOrDrop :: LocalStorageDead
14871487 | StorageDeadOrDrop :: BoxedStorageDead => {
14881488 assert ! (
1489- Place :: ty_from( place. local, proj_base, * self . body, tcx) . ty. is_box( ) ,
1489+ Place :: ty_from( place. local, proj_base, self . body, tcx) . ty. is_box( ) ,
14901490 "Drop of value behind a reference or raw pointer"
14911491 ) ;
14921492 StorageDeadOrDrop :: BoxedStorageDead
14931493 }
14941494 StorageDeadOrDrop :: Destructor ( _) => base_access,
14951495 } ,
14961496 ProjectionElem :: Field ( ..) | ProjectionElem :: Downcast ( ..) => {
1497- let base_ty = Place :: ty_from ( place. local , proj_base, * self . body , tcx) . ty ;
1497+ let base_ty = Place :: ty_from ( place. local , proj_base, self . body , tcx) . ty ;
14981498 match base_ty. kind {
14991499 ty:: Adt ( def, _) if def. has_dtor ( tcx) => {
15001500 // Report the outermost adt with a destructor
0 commit comments