@@ -1623,7 +1623,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
16231623 place_span. 0 . projection
16241624 {
16251625 let place_ty =
1626- Place :: ty_from ( & place_span. 0 . local , base_proj, self . body ( ) , self . infcx . tcx ) ;
1626+ Place :: ty_from ( place_span. 0 . local , base_proj, self . body ( ) , self . infcx . tcx ) ;
16271627 if let ty:: Array ( ..) = place_ty. ty . kind {
16281628 let array_place = PlaceRef { local : place_span. 0 . local , projection : base_proj } ;
16291629 self . check_if_subslice_element_is_moved (
@@ -1740,7 +1740,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
17401740 // assigning to `P.f` requires `P` itself
17411741 // be already initialized
17421742 let tcx = self . infcx . tcx ;
1743- let base_ty = Place :: ty_from ( & place. local , proj_base, self . body ( ) , tcx) . ty ;
1743+ let base_ty = Place :: ty_from ( place. local , proj_base, self . body ( ) , tcx) . ty ;
17441744 match base_ty. kind {
17451745 ty:: Adt ( def, _) if def. has_dtor ( tcx) => {
17461746 self . check_if_path_or_subpath_is_moved (
@@ -1844,7 +1844,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
18441844 // of the union - we should error in that case.
18451845 let tcx = this. infcx . tcx ;
18461846 if let ty:: Adt ( def, _) =
1847- Place :: ty_from ( & base. local , base. projection , this. body ( ) , tcx) . ty . kind
1847+ Place :: ty_from ( base. local , base. projection , this. body ( ) , tcx) . ty . kind
18481848 {
18491849 if def. is_union ( ) {
18501850 if this. move_data . path_map [ mpi] . iter ( ) . any ( |moi| {
@@ -2058,7 +2058,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
20582058 match elem {
20592059 ProjectionElem :: Deref => {
20602060 let base_ty =
2061- Place :: ty_from ( & place. local , proj_base, self . body ( ) , self . infcx . tcx ) . ty ;
2061+ Place :: ty_from ( place. local , proj_base, self . body ( ) , self . infcx . tcx ) . ty ;
20622062
20632063 // Check the kind of deref to decide
20642064 match base_ty. kind {
@@ -2192,7 +2192,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
21922192 match place_projection {
21932193 [ base @ .., ProjectionElem :: Field ( field, _ty) ] => {
21942194 let tcx = self . infcx . tcx ;
2195- let base_ty = Place :: ty_from ( & place_ref. local , base, self . body ( ) , tcx) . ty ;
2195+ let base_ty = Place :: ty_from ( place_ref. local , base, self . body ( ) , tcx) . ty ;
21962196
21972197 if ( base_ty. is_closure ( ) || base_ty. is_generator ( ) )
21982198 && ( !by_ref || self . upvars [ field. index ( ) ] . by_ref )
0 commit comments