Skip to content

Commit 9d57699

Browse files
committed
Add a fixme for last commit.
1 parent d7f1181 commit 9d57699

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/comp/middle/ty.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1215,6 +1215,10 @@ fn unify(@ty.t expected, @ty.t actual, &unify_handler handler)
12151215
auto eqer = eq_int;
12161216
auto bindings = map.mk_hashmap[int,@ty.t](hasher, eqer);
12171217

1218+
// FIXME: this is a slow way of driving types into residual vars that
1219+
// occur up in the leaves of result type; it can likely be done better
1220+
// when unification is actually ... down in the leaves.
1221+
12181222
auto ures = unify_step(bindings, expected, actual, handler);
12191223
while (true) {
12201224
alt (ures) {

0 commit comments

Comments
 (0)