Skip to content

Commit 63e0423

Browse files
authored
Rollup merge of #112358 - Nilstrieb:fancy-more-borrowck-cleanups, r=compiler-errors
Remove default visitor impl in region constraint generation I wanted to group it together with other possibly minor borrowck cleanups but that's all I have right now so I rather put it up than forget about it before doing something else. r? `@compiler-errors`
2 parents 53881f9 + 459bd2c commit 63e0423

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)