Skip to content

Commit 4423b88

Browse files
committed
---
yaml --- r: 2972 b: refs/heads/master c: 4571172 h: refs/heads/master v: v3
1 parent 8512405 commit 4423b88

File tree

3 files changed

+31
-444
lines changed

3 files changed

+31
-444
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: f54f2799c33729f124332d69deb7205237a0f018
2+
refs/heads/master: 4571172c03bec1ea7ab2af6fff640ba9b479aed0

trunk/src/comp/middle/ty.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2574,9 +2574,11 @@ mod unify {
25742574

25752575
fn resolve_type_var(&ty_ctxt tcx, &@var_bindings vb, int vid)
25762576
-> fixup_result {
2577+
if ((vid as uint) >= ufind::set_count(vb.sets)) { ret fix_err(vid); }
2578+
25772579
auto root_id = ufind::find(vb.sets, vid as uint);
25782580
alt (smallintmap::find[t](vb.types, root_id)) {
2579-
case (none[t]) { ret fix_ok(mk_var(tcx, vid)); }
2581+
case (none[t]) { ret fix_err(vid); }
25802582
case (some[t](?rt)) { ret fixup_vars(tcx, vb, rt); }
25812583
}
25822584
}

0 commit comments

Comments
 (0)