@@ -1625,7 +1625,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
16251625 place_span. 0 . projection
16261626 {
16271627 let place_ty =
1628- Place :: ty_from ( & place_span. 0 . local , base_proj, self . body ( ) , self . infcx . tcx ) ;
1628+ Place :: ty_from ( place_span. 0 . local , base_proj, self . body ( ) , self . infcx . tcx ) ;
16291629 if let ty:: Array ( ..) = place_ty. ty . kind {
16301630 let array_place = PlaceRef { local : place_span. 0 . local , projection : base_proj } ;
16311631 self . check_if_subslice_element_is_moved (
@@ -1742,7 +1742,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
17421742 // assigning to `P.f` requires `P` itself
17431743 // be already initialized
17441744 let tcx = self . infcx . tcx ;
1745- let base_ty = Place :: ty_from ( & place. local , proj_base, self . body ( ) , tcx) . ty ;
1745+ let base_ty = Place :: ty_from ( place. local , proj_base, self . body ( ) , tcx) . ty ;
17461746 match base_ty. kind {
17471747 ty:: Adt ( def, _) if def. has_dtor ( tcx) => {
17481748 self . check_if_path_or_subpath_is_moved (
@@ -1846,7 +1846,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
18461846 // of the union - we should error in that case.
18471847 let tcx = this. infcx . tcx ;
18481848 if let ty:: Adt ( def, _) =
1849- Place :: ty_from ( & base. local , base. projection , this. body ( ) , tcx) . ty . kind
1849+ Place :: ty_from ( base. local , base. projection , this. body ( ) , tcx) . ty . kind
18501850 {
18511851 if def. is_union ( ) {
18521852 if this. move_data . path_map [ mpi] . iter ( ) . any ( |moi| {
@@ -2060,7 +2060,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
20602060 match elem {
20612061 ProjectionElem :: Deref => {
20622062 let base_ty =
2063- Place :: ty_from ( & place. local , proj_base, self . body ( ) , self . infcx . tcx ) . ty ;
2063+ Place :: ty_from ( place. local , proj_base, self . body ( ) , self . infcx . tcx ) . ty ;
20642064
20652065 // Check the kind of deref to decide
20662066 match base_ty. kind {
@@ -2194,7 +2194,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
21942194 match place_projection {
21952195 [ base @ .., ProjectionElem :: Field ( field, _ty) ] => {
21962196 let tcx = self . infcx . tcx ;
2197- let base_ty = Place :: ty_from ( & place_ref. local , base, self . body ( ) , tcx) . ty ;
2197+ let base_ty = Place :: ty_from ( place_ref. local , base, self . body ( ) , tcx) . ty ;
21982198
21992199 if ( base_ty. is_closure ( ) || base_ty. is_generator ( ) )
22002200 && ( !by_ref || self . upvars [ field. index ( ) ] . by_ref )
0 commit comments