@@ -1623,7 +1623,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
1623
1623
place_span. 0 . projection
1624
1624
{
1625
1625
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 ) ;
1627
1627
if let ty:: Array ( ..) = place_ty. ty . kind {
1628
1628
let array_place = PlaceRef { local : place_span. 0 . local , projection : base_proj } ;
1629
1629
self . check_if_subslice_element_is_moved (
@@ -1740,7 +1740,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
1740
1740
// assigning to `P.f` requires `P` itself
1741
1741
// be already initialized
1742
1742
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 ;
1744
1744
match base_ty. kind {
1745
1745
ty:: Adt ( def, _) if def. has_dtor ( tcx) => {
1746
1746
self . check_if_path_or_subpath_is_moved (
@@ -1844,7 +1844,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
1844
1844
// of the union - we should error in that case.
1845
1845
let tcx = this. infcx . tcx ;
1846
1846
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
1848
1848
{
1849
1849
if def. is_union ( ) {
1850
1850
if this. move_data . path_map [ mpi] . iter ( ) . any ( |moi| {
@@ -2058,7 +2058,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
2058
2058
match elem {
2059
2059
ProjectionElem :: Deref => {
2060
2060
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 ;
2062
2062
2063
2063
// Check the kind of deref to decide
2064
2064
match base_ty. kind {
@@ -2192,7 +2192,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
2192
2192
match place_projection {
2193
2193
[ base @ .., ProjectionElem :: Field ( field, _ty) ] => {
2194
2194
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 ;
2196
2196
2197
2197
if ( base_ty. is_closure ( ) || base_ty. is_generator ( ) )
2198
2198
&& ( !by_ref || self . upvars [ field. index ( ) ] . by_ref )
0 commit comments