@@ -276,7 +276,7 @@ impl Visitor<'tcx> for Validator<'_, 'mir, 'tcx> {
276276 }
277277 } ;
278278 self . visit_place_base ( & place. local , ctx, location) ;
279- self . visit_projection ( & place. local , reborrowed_proj, ctx, location) ;
279+ self . visit_projection ( place. local , reborrowed_proj, ctx, location) ;
280280 return ;
281281 }
282282 }
@@ -289,7 +289,7 @@ impl Visitor<'tcx> for Validator<'_, 'mir, 'tcx> {
289289 Mutability :: Mut => PlaceContext :: MutatingUse ( MutatingUseContext :: AddressOf ) ,
290290 } ;
291291 self . visit_place_base ( & place. local , ctx, location) ;
292- self . visit_projection ( & place. local , reborrowed_proj, ctx, location) ;
292+ self . visit_projection ( place. local , reborrowed_proj, ctx, location) ;
293293 return ;
294294 }
295295 }
@@ -408,7 +408,7 @@ impl Visitor<'tcx> for Validator<'_, 'mir, 'tcx> {
408408 }
409409 fn visit_projection_elem (
410410 & mut self ,
411- place_local : & Local ,
411+ place_local : Local ,
412412 proj_base : & [ PlaceElem < ' tcx > ] ,
413413 elem : & PlaceElem < ' tcx > ,
414414 context : PlaceContext ,
@@ -428,11 +428,11 @@ impl Visitor<'tcx> for Validator<'_, 'mir, 'tcx> {
428428
429429 match elem {
430430 ProjectionElem :: Deref => {
431- let base_ty = Place :: ty_from ( * place_local, proj_base, * self . body , self . tcx ) . ty ;
431+ let base_ty = Place :: ty_from ( place_local, proj_base, * self . body , self . tcx ) . ty ;
432432 if let ty:: RawPtr ( _) = base_ty. kind {
433433 if proj_base. is_empty ( ) {
434434 if let ( local, [ ] ) = ( place_local, proj_base) {
435- let decl = & self . body . local_decls [ * local] ;
435+ let decl = & self . body . local_decls [ local] ;
436436 if let LocalInfo :: StaticRef { def_id, .. } = decl. local_info {
437437 let span = decl. source_info . span ;
438438 self . check_static ( def_id, span) ;
@@ -452,7 +452,7 @@ impl Visitor<'tcx> for Validator<'_, 'mir, 'tcx> {
452452 | ProjectionElem :: Subslice { .. }
453453 | ProjectionElem :: Field ( ..)
454454 | ProjectionElem :: Index ( _) => {
455- let base_ty = Place :: ty_from ( * place_local, proj_base, * self . body , self . tcx ) . ty ;
455+ let base_ty = Place :: ty_from ( place_local, proj_base, * self . body , self . tcx ) . ty ;
456456 match base_ty. ty_adt_def ( ) {
457457 Some ( def) if def. is_union ( ) => {
458458 self . check_op ( ops:: UnionAccess ) ;
0 commit comments