Skip to content

Commit 459bd2c

Browse files
committed
Remove default visitor impl in region constraint generation
1 parent e410606 commit 459bd2c

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

compiler/rustc_borrowck/src/constraint_generation.rs

+2-6
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ use rustc_infer::infer::InferCtxt;
44
use rustc_middle::mir::visit::TyContext;
55
use rustc_middle::mir::visit::Visitor;
66
use rustc_middle::mir::{
7-
BasicBlock, BasicBlockData, Body, Local, Location, Place, PlaceRef, ProjectionElem, Rvalue,
8-
SourceInfo, Statement, StatementKind, Terminator, TerminatorKind, UserTypeProjection,
7+
Body, Local, Location, Place, PlaceRef, ProjectionElem, Rvalue, SourceInfo, Statement,
8+
StatementKind, Terminator, TerminatorKind, UserTypeProjection,
99
};
1010
use rustc_middle::ty::subst::SubstsRef;
1111
use rustc_middle::ty::visit::TypeVisitable;
@@ -49,10 +49,6 @@ struct ConstraintGeneration<'cg, 'tcx> {
4949
}
5050

5151
impl<'cg, 'tcx> Visitor<'tcx> for ConstraintGeneration<'cg, 'tcx> {
52-
fn visit_basic_block_data(&mut self, bb: BasicBlock, data: &BasicBlockData<'tcx>) {
53-
self.super_basic_block_data(bb, data);
54-
}
55-
5652
/// We sometimes have `substs` within an rvalue, or within a
5753
/// call. Make them live at the location where they appear.
5854
fn visit_substs(&mut self, substs: &SubstsRef<'tcx>, location: Location) {

0 commit comments

Comments
 (0)