Skip to content

Commit 4fa3eff

Browse files
committed
fix debruijn account in for_each_free_region
1 parent ec25ed5 commit 4fa3eff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc/ty/fold.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ impl<'a, 'gcx, 'tcx> TyCtxt<'a, 'gcx, 'tcx> {
247247

248248
fn visit_region(&mut self, r: ty::Region<'tcx>) -> bool {
249249
match *r {
250-
ty::ReLateBound(debruijn, _) if debruijn.depth < self.current_depth => {
250+
ty::ReLateBound(debruijn, _) if debruijn.depth <= self.current_depth => {
251251
/* ignore bound regions */
252252
}
253253
_ => (self.callback)(r),

0 commit comments

Comments
 (0)