]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc/infer/equate.rs
Fix Rustdoc ICE when checking blanket impls
[rust.git] / src / librustc / infer / equate.rs
index 854960492c9bd4c897e3f357747a3c1dcdbbecf5..c7b5ddb83410f6c969a0c088aad262c6d7d6ad3e 100644 (file)
@@ -74,6 +74,9 @@ fn tys(&mut self, a: Ty<'tcx>, b: Ty<'tcx>) -> RelateResult<'tcx, Ty<'tcx>> {
         let infcx = self.fields.infcx;
         let a = infcx.type_variables.borrow_mut().replace_if_possible(a);
         let b = infcx.type_variables.borrow_mut().replace_if_possible(b);
+
+        debug!("{}.tys: replacements ({:?}, {:?})", self.tag(), a, b);
+
         match (&a.sty, &b.sty) {
             (&ty::Infer(TyVar(a_id)), &ty::Infer(TyVar(b_id))) => {
                 infcx.type_variables.borrow_mut().equate(a_id, b_id);