From c0d3b291d55122d319ddc28010675afdaab73dfc Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Tue, 4 Dec 2012 16:03:50 -0800 Subject: [PATCH] librustc: Shot in the dark to try to unbreak Windows. rs=me --- src/librustc/middle/typeck/infer/unify.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librustc/middle/typeck/infer/unify.rs b/src/librustc/middle/typeck/infer/unify.rs index 5fa4acecdc8..452e950dba6 100644 --- a/src/librustc/middle/typeck/infer/unify.rs +++ b/src/librustc/middle/typeck/infer/unify.rs @@ -43,7 +43,7 @@ impl infer_ctxt { match (*var_val) { redirect(ref vid) => { let node = self.get(vb, (*vid)); - if node.root != (*vid) { + if node.root.ne(vid) { // Path compression vb.vals.insert((*vid).to_uint(), redirect(node.root)); }