Skip to content

Commit 3449575

Browse files
committed
fix minor rebase artifacts
1 parent cf12a79 commit 3449575

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

src/librustc/ty/fold.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -674,12 +674,11 @@ impl LateBoundRegionsCollector {
674674
}
675675

676676
impl<'tcx> TypeVisitor<'tcx> for LateBoundRegionsCollector {
677-
fn enter_region_binder(&mut self) {
677+
fn visit_binder<T: TypeFoldable<'tcx>>(&mut self, t: &Binder<T>) -> bool {
678678
self.current_depth += 1;
679-
}
680-
681-
fn exit_region_binder(&mut self) {
679+
let r = t.super_visit_with(self);
682680
self.current_depth -= 1;
681+
r
683682
}
684683

685684
fn visit_ty(&mut self, t: Ty<'tcx>) -> bool {

src/librustc_typeck/astconv.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,10 @@ use middle::const_val::ConstVal;
5353
use rustc_const_eval::{eval_const_expr_partial, ConstEvalErr};
5454
use rustc_const_eval::EvalHint::UncheckedExprHint;
5555
use rustc_const_eval::ErrKind::ErroneousReferencedConstant;
56+
use hir;
5657
use hir::def::{self, Def};
5758
use hir::def_id::DefId;
59+
use hir::print as pprust;
5860
use middle::resolve_lifetime as rl;
5961
use rustc::ty::subst::{FnSpace, TypeSpace, SelfSpace, Subst, Substs, ParamSpace};
6062
use rustc::traits;
@@ -67,8 +69,6 @@ use rscope::{self, UnelidableRscope, RegionScope, ElidableRscope,
6769
use rustc::lint;
6870
use rustc_back::slice;
6971
use rustc_const_math::ConstInt;
70-
use rustc_front::print::pprust;
71-
use rustc_front::hir;
7272
use syntax::{abi, ast};
7373
use syntax::codemap::{Span, Pos};
7474
use syntax::errors::DiagnosticBuilder;

0 commit comments

Comments
 (0)