rustc: Fix bug involving extracting any variant element beyond the first. Un-XFAIL alt-tag.rs.
This commit is contained in:
parent
2a8350e8d9
commit
42789c4b97
2 changed files with 2 additions and 0 deletions
|
@ -519,6 +519,7 @@ TEST_XFAILS_LLVM := $(TASK_XFAILS) \
|
||||||
|
|
||||||
TEST_XFAILS_SELF := $(filter-out \
|
TEST_XFAILS_SELF := $(filter-out \
|
||||||
$(addprefix test/run-pass/, \
|
$(addprefix test/run-pass/, \
|
||||||
|
alt-tag.rs \
|
||||||
arith-0.rs \
|
arith-0.rs \
|
||||||
arith-1.rs \
|
arith-1.rs \
|
||||||
arith-2.rs \
|
arith-2.rs \
|
||||||
|
|
|
@ -1425,6 +1425,7 @@ impure fn trans_pat_binding(@block_ctxt cx, @ast.pat pat, ValueRef llval)
|
||||||
auto subpat_res = trans_pat_binding(this_cx, subpat,
|
auto subpat_res = trans_pat_binding(this_cx, subpat,
|
||||||
llsubval);
|
llsubval);
|
||||||
this_cx = subpat_res.bcx;
|
this_cx = subpat_res.bcx;
|
||||||
|
i += 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
ret res(this_cx, llval);
|
ret res(this_cx, llval);
|
||||||
|
|
Loading…
Reference in a new issue