@@ -300,7 +300,7 @@ impl<'a, 'tcx> MirBorrowckCtxt<'a, 'tcx> {
300
300
// Inspect the type of the content behind the
301
301
// borrow to provide feedback about why this
302
302
// was a move rather than a copy.
303
- let ty = deref_target_place. ty ( & * self . body , self . infcx . tcx ) . ty ;
303
+ let ty = deref_target_place. ty ( * self . body , self . infcx . tcx ) . ty ;
304
304
let upvar_field = self . prefixes ( move_place. as_ref ( ) , PrefixSet :: All )
305
305
. find_map ( |p| self . is_upvar_field_projection ( p) ) ;
306
306
@@ -411,7 +411,7 @@ impl<'a, 'tcx> MirBorrowckCtxt<'a, 'tcx> {
411
411
} ;
412
412
let move_ty = format ! (
413
413
"{:?}" ,
414
- move_place. ty( & * self . body, self . infcx. tcx) . ty,
414
+ move_place. ty( * self . body, self . infcx. tcx) . ty,
415
415
) ;
416
416
if let Ok ( snippet) = self . infcx . tcx . sess . source_map ( ) . span_to_snippet ( span) {
417
417
let is_option = move_ty. starts_with ( "std::option::Option" ) ;
@@ -454,7 +454,7 @@ impl<'a, 'tcx> MirBorrowckCtxt<'a, 'tcx> {
454
454
}
455
455
456
456
if binds_to. is_empty ( ) {
457
- let place_ty = move_from. ty ( & * self . body , self . infcx . tcx ) . ty ;
457
+ let place_ty = move_from. ty ( * self . body , self . infcx . tcx ) . ty ;
458
458
let place_desc = match self . describe_place ( move_from. as_ref ( ) ) {
459
459
Some ( desc) => format ! ( "`{}`" , desc) ,
460
460
None => format ! ( "value" ) ,
@@ -482,7 +482,7 @@ impl<'a, 'tcx> MirBorrowckCtxt<'a, 'tcx> {
482
482
// No binding. Nothing to suggest.
483
483
GroupedMoveError :: OtherIllegalMove { ref original_path, use_spans, .. } => {
484
484
let span = use_spans. var_or_use ( ) ;
485
- let place_ty = original_path. ty ( & * self . body , self . infcx . tcx ) . ty ;
485
+ let place_ty = original_path. ty ( * self . body , self . infcx . tcx ) . ty ;
486
486
let place_desc = match self . describe_place ( original_path. as_ref ( ) ) {
487
487
Some ( desc) => format ! ( "`{}`" , desc) ,
488
488
None => format ! ( "value" ) ,
0 commit comments