rustc: Use the right "nxt" function in unify_regions

This commit is contained in:
Patrick Walton 2012-03-21 16:12:12 -07:00
parent 75ee4633eb
commit 44bd8da7fd

View file

@ -1692,8 +1692,8 @@ mod unify {
fn record_region_binding<T:copy>(
cx: @uctxt, key: uint,
r: region, base_mt: mt, variance: variance,
nxt: fn(t) -> ures<T>) -> ures<T> {
r: region, variance: variance,
nxt: fn(region) -> ures<T>) -> ures<T> {
let rb = alt cx.st {
in_region_bindings(_, rb) { rb }
@ -1715,7 +1715,7 @@ mod unify {
smallintmap::insert(rb.regions, root, result_region);
// FIXME: This should be re_var instead.
ret nxt(mk_rptr(cx.tcx, re_param(key), base_mt));
ret nxt(re_param(key));
}
// Simple structural type comparison.