Remove useless methods in visit.

This commit is contained in:
Camille GILLOT 2023-03-05 20:32:29 +00:00
parent 8a515aab76
commit 22bf5fd848

View File

@ -854,12 +854,6 @@ impl<'tcx> MutVisitor<'tcx> for ConstPropagator<'_, 'tcx> {
}
}
fn visit_constant(&mut self, constant: &mut Constant<'tcx>, location: Location) {
trace!("visit_constant: {:?}", constant);
self.super_constant(constant, location);
self.eval_constant(constant);
}
fn visit_assign(
&mut self,
place: &mut Place<'tcx>,