@@ -1625,7 +1625,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
1625
1625
place_span. 0 . projection
1626
1626
{
1627
1627
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 ) ;
1629
1629
if let ty:: Array ( ..) = place_ty. ty . kind {
1630
1630
let array_place = PlaceRef { local : place_span. 0 . local , projection : base_proj } ;
1631
1631
self . check_if_subslice_element_is_moved (
@@ -1742,7 +1742,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
1742
1742
// assigning to `P.f` requires `P` itself
1743
1743
// be already initialized
1744
1744
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 ;
1746
1746
match base_ty. kind {
1747
1747
ty:: Adt ( def, _) if def. has_dtor ( tcx) => {
1748
1748
self . check_if_path_or_subpath_is_moved (
@@ -1846,7 +1846,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
1846
1846
// of the union - we should error in that case.
1847
1847
let tcx = this. infcx . tcx ;
1848
1848
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
1850
1850
{
1851
1851
if def. is_union ( ) {
1852
1852
if this. move_data . path_map [ mpi] . iter ( ) . any ( |moi| {
@@ -2060,7 +2060,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
2060
2060
match elem {
2061
2061
ProjectionElem :: Deref => {
2062
2062
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 ;
2064
2064
2065
2065
// Check the kind of deref to decide
2066
2066
match base_ty. kind {
@@ -2194,7 +2194,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
2194
2194
match place_projection {
2195
2195
[ base @ .., ProjectionElem :: Field ( field, _ty) ] => {
2196
2196
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 ;
2198
2198
2199
2199
if ( base_ty. is_closure ( ) || base_ty. is_generator ( ) )
2200
2200
&& ( !by_ref || self . upvars [ field. index ( ) ] . by_ref )
0 commit comments