]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc/infer/combine.rs
Various minor/cosmetic improvements to code
[rust.git] / src / librustc / infer / combine.rs
index 0ee03bc4c6e00902d0026a78e23b8be1c63a0a5d..f124623becd93ddd06dd043ee8be273379710716 100644 (file)
@@ -371,7 +371,7 @@ fn relate_item_substs(&mut self,
         if self.ambient_variance == ty::Variance::Invariant {
             // Avoid fetching the variance if we are in an invariant
             // context; no need, and it can induce dependency cycles
-            // (e.g. #41849).
+            // (e.g., #41849).
             relate::relate_substs(self, None, a_subst, b_subst)
         } else {
             let opt_variances = self.tcx().variances_of(item_def_id);
@@ -485,7 +485,6 @@ fn regions(&mut self, r: ty::Region<'tcx>, r2: ty::Region<'tcx>)
                 }
             }
 
-            ty::ReCanonical(..) |
             ty::ReClosureBound(..) => {
                 span_bug!(
                     self.span,