diff options
| author | Ralf Jung <post@ralfj.de> | 2020-06-10 10:10:09 +0200 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2020-06-16 11:23:27 +0200 |
| commit | 827ccf77183c02dc7d362b64debe2bf1c6bfd5fa (patch) | |
| tree | c7b846c84a6a017aadd4b5d6a23982a0ca82394b /src | |
| parent | 6c5345f2defa99fd8fef8940f682fe2b6c6249f9 (diff) | |
| download | rust-827ccf77183c02dc7d362b64debe2bf1c6bfd5fa.tar.gz rust-827ccf77183c02dc7d362b64debe2bf1c6bfd5fa.zip | |
add probably accidentally missing super_* calls
Diffstat (limited to 'src')
| -rw-r--r-- | src/librustc_mir/borrow_check/used_muts.rs | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/librustc_mir/borrow_check/used_muts.rs b/src/librustc_mir/borrow_check/used_muts.rs index 56764a4be5d..e027056842d 100644 --- a/src/librustc_mir/borrow_check/used_muts.rs +++ b/src/librustc_mir/borrow_check/used_muts.rs @@ -64,7 +64,7 @@ impl GatherUsedMutsVisitor<'_, '_, '_> { } impl<'visit, 'cx, 'tcx> Visitor<'tcx> for GatherUsedMutsVisitor<'visit, 'cx, 'tcx> { - fn visit_terminator(&mut self, terminator: &Terminator<'tcx>, _location: Location) { + fn visit_terminator(&mut self, terminator: &Terminator<'tcx>, location: Location) { debug!("visit_terminator: terminator={:?}", terminator); match &terminator.kind { TerminatorKind::Call { destination: Some((into, _)), .. } => { @@ -76,10 +76,10 @@ impl<'visit, 'cx, 'tcx> Visitor<'tcx> for GatherUsedMutsVisitor<'visit, 'cx, 'tc _ => {} } - // FIXME: no super_terminator? + self.super_terminator(terminator, location); } - fn visit_statement(&mut self, statement: &Statement<'tcx>, _location: Location) { + fn visit_statement(&mut self, statement: &Statement<'tcx>, location: Location) { if let StatementKind::Assign(box (into, _)) = &statement.kind { debug!( "visit_statement: statement={:?} local={:?} \ @@ -89,7 +89,7 @@ impl<'visit, 'cx, 'tcx> Visitor<'tcx> for GatherUsedMutsVisitor<'visit, 'cx, 'tc self.remove_never_initialized_mut_locals(*into); } - // FIXME: no super_statement? + self.super_statement(statement, location); } 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 } } } - - // FIXME: no super_local? } } |
