@@ -640,8 +640,8 @@ impl<'a, 'tcx> Integrator<'a, 'tcx> {
640640 new
641641 }
642642
643- fn make_integrate_local ( & self , local : & Local ) -> Local {
644- if * local == RETURN_PLACE {
643+ fn make_integrate_local ( & self , local : Local ) -> Local {
644+ if local == RETURN_PLACE {
645645 return self . destination . local ;
646646 }
647647
@@ -660,7 +660,7 @@ impl<'a, 'tcx> MutVisitor<'tcx> for Integrator<'a, 'tcx> {
660660 }
661661
662662 fn visit_local ( & mut self , local : & mut Local , _ctxt : PlaceContext , _location : Location ) {
663- * local = self . make_integrate_local ( local) ;
663+ * local = self . make_integrate_local ( * local) ;
664664 }
665665
666666 fn visit_place ( & mut self , place : & mut Place < ' tcx > , context : PlaceContext , location : Location ) {
@@ -680,7 +680,7 @@ impl<'a, 'tcx> MutVisitor<'tcx> for Integrator<'a, 'tcx> {
680680
681681 fn process_projection_elem ( & mut self , elem : & PlaceElem < ' tcx > ) -> Option < PlaceElem < ' tcx > > {
682682 if let PlaceElem :: Index ( local) = elem {
683- let new_local = self . make_integrate_local ( local) ;
683+ let new_local = self . make_integrate_local ( * local) ;
684684
685685 if new_local != * local {
686686 return Some ( PlaceElem :: Index ( new_local) ) ;
0 commit comments