@@ -640,8 +640,8 @@ impl<'a, 'tcx> Integrator<'a, 'tcx> {
640
640
new
641
641
}
642
642
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 {
645
645
return self . destination . local ;
646
646
}
647
647
@@ -660,7 +660,7 @@ impl<'a, 'tcx> MutVisitor<'tcx> for Integrator<'a, 'tcx> {
660
660
}
661
661
662
662
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) ;
664
664
}
665
665
666
666
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> {
680
680
681
681
fn process_projection_elem ( & mut self , elem : & PlaceElem < ' tcx > ) -> Option < PlaceElem < ' tcx > > {
682
682
if let PlaceElem :: Index ( local) = elem {
683
- let new_local = self . make_integrate_local ( local) ;
683
+ let new_local = self . make_integrate_local ( * local) ;
684
684
685
685
if new_local != * local {
686
686
return Some ( PlaceElem :: Index ( new_local) ) ;
0 commit comments