@@ -300,7 +300,7 @@ impl<'a, 'tcx> MirBorrowckCtxt<'a, 'tcx> {
300300 // Inspect the type of the content behind the
301301 // borrow to provide feedback about why this
302302 // 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 ;
304304 let upvar_field = self . prefixes ( move_place. as_ref ( ) , PrefixSet :: All )
305305 . find_map ( |p| self . is_upvar_field_projection ( p) ) ;
306306
@@ -411,7 +411,7 @@ impl<'a, 'tcx> MirBorrowckCtxt<'a, 'tcx> {
411411 } ;
412412 let move_ty = format ! (
413413 "{:?}" ,
414- move_place. ty( & * self . body, self . infcx. tcx) . ty,
414+ move_place. ty( * self . body, self . infcx. tcx) . ty,
415415 ) ;
416416 if let Ok ( snippet) = self . infcx . tcx . sess . source_map ( ) . span_to_snippet ( span) {
417417 let is_option = move_ty. starts_with ( "std::option::Option" ) ;
@@ -454,7 +454,7 @@ impl<'a, 'tcx> MirBorrowckCtxt<'a, 'tcx> {
454454 }
455455
456456 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 ;
458458 let place_desc = match self . describe_place ( move_from. as_ref ( ) ) {
459459 Some ( desc) => format ! ( "`{}`" , desc) ,
460460 None => format ! ( "value" ) ,
@@ -482,7 +482,7 @@ impl<'a, 'tcx> MirBorrowckCtxt<'a, 'tcx> {
482482 // No binding. Nothing to suggest.
483483 GroupedMoveError :: OtherIllegalMove { ref original_path, use_spans, .. } => {
484484 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 ;
486486 let place_desc = match self . describe_place ( original_path. as_ref ( ) ) {
487487 Some ( desc) => format ! ( "`{}`" , desc) ,
488488 None => format ! ( "value" ) ,
0 commit comments