@@ -64,7 +64,7 @@ impl GatherUsedMutsVisitor<'_, '_, '_> {
6464}
6565
6666impl < ' visit , ' cx , ' tcx > Visitor < ' tcx > for GatherUsedMutsVisitor < ' visit , ' cx , ' tcx > {
67- fn visit_terminator ( & mut self , terminator : & Terminator < ' tcx > , _location : Location ) {
67+ fn visit_terminator ( & mut self , terminator : & Terminator < ' tcx > , location : Location ) {
6868 debug ! ( "visit_terminator: terminator={:?}" , terminator) ;
6969 match & terminator. kind {
7070 TerminatorKind :: Call { destination : Some ( ( into, _) ) , .. } => {
@@ -76,10 +76,10 @@ impl<'visit, 'cx, 'tcx> Visitor<'tcx> for GatherUsedMutsVisitor<'visit, 'cx, 'tc
7676 _ => { }
7777 }
7878
79- // FIXME: no super_terminator?
79+ self . super_terminator ( terminator , location ) ;
8080 }
8181
82- fn visit_statement ( & mut self , statement : & Statement < ' tcx > , _location : Location ) {
82+ fn visit_statement ( & mut self , statement : & Statement < ' tcx > , location : Location ) {
8383 if let StatementKind :: Assign ( box ( into, _) ) = & statement. kind {
8484 debug ! (
8585 "visit_statement: statement={:?} local={:?} \
@@ -89,7 +89,7 @@ impl<'visit, 'cx, 'tcx> Visitor<'tcx> for GatherUsedMutsVisitor<'visit, 'cx, 'tc
8989 self . remove_never_initialized_mut_locals ( * into) ;
9090 }
9191
92- // FIXME: no super_statement?
92+ self . super_statement ( statement , location ) ;
9393 }
9494
9595 fn visit_local ( & mut self , local : & Local , place_context : PlaceContext , location : Location ) {
@@ -107,7 +107,5 @@ impl<'visit, 'cx, 'tcx> Visitor<'tcx> for GatherUsedMutsVisitor<'visit, 'cx, 'tc
107107 }
108108 }
109109 }
110-
111- // FIXME: no super_local?
112110 }
113111}
0 commit comments