about summary refs log tree commit diff
path: root/src/comp
diff options
context:
space:
mode:
authorGraydon Hoare <graydon@mozilla.com>2011-02-07 14:16:40 -0800
committerGraydon Hoare <graydon@mozilla.com>2011-02-07 14:16:40 -0800
commit9d576993f31349f2a7dbf8e40ccdaff9cf66144d (patch)
tree2151a1f1b32508fd02c6fe8259ec7f2f7d2e66ec /src/comp
parentd7f118135b8a3eee7c8788052542e6e1c205a3d9 (diff)
downloadrust-9d576993f31349f2a7dbf8e40ccdaff9cf66144d.tar.gz
rust-9d576993f31349f2a7dbf8e40ccdaff9cf66144d.zip
Add a fixme for last commit.
Diffstat (limited to 'src/comp')
-rw-r--r--src/comp/middle/ty.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/comp/middle/ty.rs b/src/comp/middle/ty.rs
index 92fa13997a3..c3b0e687545 100644
--- a/src/comp/middle/ty.rs
+++ b/src/comp/middle/ty.rs
@@ -1215,6 +1215,10 @@ fn unify(@ty.t expected, @ty.t actual, &unify_handler handler)
     auto eqer = eq_int;
     auto bindings = map.mk_hashmap[int,@ty.t](hasher, eqer);
 
+    // FIXME: this is a slow way of driving types into residual vars that
+    // occur up in the leaves of result type; it can likely be done better
+    // when unification is actually ... down in the leaves.
+
     auto ures = unify_step(bindings, expected, actual, handler);
     while (true) {
         alt (ures) {