Skip to content

Commit 22bf5fd

Browse files
committed
Remove useless methods in visit.
1 parent 8a515aa commit 22bf5fd

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

compiler/rustc_mir_transform/src/const_prop.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -854,12 +854,6 @@ impl<'tcx> MutVisitor<'tcx> for ConstPropagator<'_, 'tcx> {
854854
}
855855
}
856856

857-
fn visit_constant(&mut self, constant: &mut Constant<'tcx>, location: Location) {
858-
trace!("visit_constant: {:?}", constant);
859-
self.super_constant(constant, location);
860-
self.eval_constant(constant);
861-
}
862-
863857
fn visit_assign(
864858
&mut self,
865859
place: &mut Place<'tcx>,

0 commit comments

Comments
 (0)