diff options
| author | scalexm <alexandre@scalexm.fr> | 2018-10-25 14:13:24 +0200 |
|---|---|---|
| committer | scalexm <alexandre@scalexm.fr> | 2018-11-03 11:41:55 +0100 |
| commit | af8196b9d3b2e613c3a550a30445309d5feeb764 (patch) | |
| tree | 05211049a6035e514d277309c991a5b7d7a93804 | |
| parent | 142359c2204f8be1d1efbf9ae8558bf7135a1618 (diff) | |
| download | rust-af8196b9d3b2e613c3a550a30445309d5feeb764.tar.gz rust-af8196b9d3b2e613c3a550a30445309d5feeb764.zip | |
Fix doc comment
| -rw-r--r-- | src/librustc/infer/canonical/canonicalizer.rs | 2 | ||||
| -rw-r--r-- | src/librustc/ty/fold.rs | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/librustc/infer/canonical/canonicalizer.rs b/src/librustc/infer/canonical/canonicalizer.rs index 9c70606349b..61a861a8a1c 100644 --- a/src/librustc/infer/canonical/canonicalizer.rs +++ b/src/librustc/infer/canonical/canonicalizer.rs @@ -565,7 +565,7 @@ impl<'cx, 'gcx, 'tcx> Canonicalizer<'cx, 'gcx, 'tcx> { let var = self.canonical_var(info, r.into()); let region = ty::ReLateBound( self.binder_index, - ty::BoundRegion::BrAnon(var.index() as u32) + ty::BoundRegion::BrAnon(var.as_u32()) ); self.tcx().mk_region(region) } diff --git a/src/librustc/ty/fold.rs b/src/librustc/ty/fold.rs index 06cc316f788..8c822adf7b0 100644 --- a/src/librustc/ty/fold.rs +++ b/src/librustc/ty/fold.rs @@ -539,7 +539,7 @@ impl<'a, 'gcx, 'tcx> TyCtxt<'a, 'gcx, 'tcx> { } /// Replace all escaping bound vars. The `fld_r` closure replaces escaping - /// bound regions while the `flr_t` closure replaces escaping bound types. + /// bound regions while the `fld_t` closure replaces escaping bound types. pub fn replace_escaping_bound_vars<T, F, G>( self, value: &T, @@ -560,7 +560,7 @@ impl<'a, 'gcx, 'tcx> TyCtxt<'a, 'gcx, 'tcx> { } /// Replace all types or regions bound by the given `Binder`. The `fld_r` - /// closure replaces bound regions while the `flr_t` closure replaces bound + /// closure replaces bound regions while the `fld_t` closure replaces bound /// types. pub fn replace_bound_vars<T, F, G>( self, |
