@@ -186,7 +186,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
186
186
}
187
187
188
188
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 )
190
190
. ty ;
191
191
let needs_note = match ty. kind {
192
192
ty:: Closure ( id, _) => {
@@ -202,7 +202,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
202
202
let mpi = self . move_data . moves [ move_out_indices[ 0 ] ] . path ;
203
203
let place = & self . move_data . move_paths [ mpi] . place ;
204
204
205
- let ty = place. ty ( * self . body , self . infcx . tcx ) . ty ;
205
+ let ty = place. ty ( self . body , self . infcx . tcx ) . ty ;
206
206
let opt_name =
207
207
self . describe_place_with_options ( place. as_ref ( ) , IncludingDowncast ( true ) ) ;
208
208
let note_msg = match opt_name {
@@ -591,7 +591,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
591
591
// Define a small closure that we can use to check if the type of a place
592
592
// is a union.
593
593
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 ;
595
595
ty. ty_adt_def ( ) . filter ( |adt| adt. is_union ( ) ) . map ( |_| ty)
596
596
} ;
597
597
@@ -1486,15 +1486,15 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
1486
1486
StorageDeadOrDrop :: LocalStorageDead
1487
1487
| StorageDeadOrDrop :: BoxedStorageDead => {
1488
1488
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( ) ,
1490
1490
"Drop of value behind a reference or raw pointer"
1491
1491
) ;
1492
1492
StorageDeadOrDrop :: BoxedStorageDead
1493
1493
}
1494
1494
StorageDeadOrDrop :: Destructor ( _) => base_access,
1495
1495
} ,
1496
1496
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 ;
1498
1498
match base_ty. kind {
1499
1499
ty:: Adt ( def, _) if def. has_dtor ( tcx) => {
1500
1500
// Report the outermost adt with a destructor
0 commit comments