diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2017-11-22 16:52:29 -0500 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2017-12-04 09:14:38 -0500 |
| commit | 2e63bb34199545042c049f67be3e3253520a85fc (patch) | |
| tree | 41fe5ce381ff879bfcae68d536d0bc15fab97c82 | |
| parent | 243bf3f7180e1d35a0ed9934346345c83eeeb4c1 (diff) | |
| download | rust-2e63bb34199545042c049f67be3e3253520a85fc.tar.gz rust-2e63bb34199545042c049f67be3e3253520a85fc.zip | |
fix debruijn account in `for_each_free_region`
| -rw-r--r-- | src/librustc/ty/fold.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc/ty/fold.rs b/src/librustc/ty/fold.rs index fbbc0e92bcd..069dc0275cb 100644 --- a/src/librustc/ty/fold.rs +++ b/src/librustc/ty/fold.rs @@ -247,7 +247,7 @@ impl<'a, 'gcx, 'tcx> TyCtxt<'a, 'gcx, 'tcx> { fn visit_region(&mut self, r: ty::Region<'tcx>) -> bool { match *r { - ty::ReLateBound(debruijn, _) if debruijn.depth < self.current_depth => { + ty::ReLateBound(debruijn, _) if debruijn.depth <= self.current_depth => { /* ignore bound regions */ } _ => (self.callback)(r), |
