Skip to content

Commit 28be201

Browse files
committed
Use super_visit_with in a couple of visit_binder methods.
Because it's equivalent but simpler to what's currently there.
1 parent 465d198 commit 28be201

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

compiler/rustc_infer/src/infer/opaque_types.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ where
470470
&mut self,
471471
t: &ty::Binder<'tcx, T>,
472472
) -> ControlFlow<Self::BreakTy> {
473-
t.as_ref().skip_binder().visit_with(self);
473+
t.super_visit_with(self);
474474
ControlFlow::CONTINUE
475475
}
476476

compiler/rustc_middle/src/ty/fold.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ impl<'tcx> TyCtxt<'tcx> {
514514
t: &Binder<'tcx, T>,
515515
) -> ControlFlow<Self::BreakTy> {
516516
self.outer_index.shift_in(1);
517-
let result = t.as_ref().skip_binder().visit_with(self);
517+
let result = t.super_visit_with(self);
518518
self.outer_index.shift_out(1);
519519
result
520520
}

0 commit comments

Comments
 (0)