aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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 92fa1399..c3b0e687 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) {