Skip to content

Commit 827ccf7

Browse files
committed
add probably accidentally missing super_* calls
1 parent 6c5345f commit 827ccf7

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/librustc_mir/borrow_check/used_muts.rs

+4-6
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ impl GatherUsedMutsVisitor<'_, '_, '_> {
6464
}
6565

6666
impl<'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

Comments
 (0)