]> git.lizzy.rs Git - rust.git/commitdiff
Fix doc comment
authorscalexm <alexandre@scalexm.fr>
Thu, 25 Oct 2018 12:13:24 +0000 (14:13 +0200)
committerscalexm <alexandre@scalexm.fr>
Sat, 3 Nov 2018 10:41:55 +0000 (11:41 +0100)
src/librustc/infer/canonical/canonicalizer.rs
src/librustc/ty/fold.rs

index 9c70606349b5d68ad40a01646f4b216a30852a4a..61a861a8a1cd8b193a08c3a269c1641973498d31 100644 (file)
@@ -565,7 +565,7 @@ fn canonical_var_for_region(
         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)
     }
index 06cc316f7883a971d24f82c84adae2ddf198cda8..8c822adf7b0236bd39b829d1cae1335f7a8c7169 100644 (file)
@@ -539,7 +539,7 @@ pub fn replace_late_bound_regions<T, F>(
     }
 
     /// 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 @@ pub fn replace_escaping_bound_vars<T, F, G>(
     }
 
     /// 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,