aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPatrick Walton <[email protected]>2010-12-15 10:11:33 -0800
committerPatrick Walton <[email protected]>2010-12-15 10:11:33 -0800
commit42789c4b97413acbd4956a0ac521fcd199f09c00 (patch)
tree880d41bc24e74f6f12982a33c28a3091ee52f46e /src
parentrustc: Resolve tag names in the typechecker (diff)
downloadrust-42789c4b97413acbd4956a0ac521fcd199f09c00.tar.xz
rust-42789c4b97413acbd4956a0ac521fcd199f09c00.zip
rustc: Fix bug involving extracting any variant element beyond the first. Un-XFAIL alt-tag.rs.
Diffstat (limited to 'src')
-rw-r--r--src/Makefile1
-rw-r--r--src/comp/middle/trans.rs1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/Makefile b/src/Makefile
index c77b8994..64ff6b46 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -519,6 +519,7 @@ TEST_XFAILS_LLVM := $(TASK_XFAILS) \
TEST_XFAILS_SELF := $(filter-out \
$(addprefix test/run-pass/, \
+ alt-tag.rs \
arith-0.rs \
arith-1.rs \
arith-2.rs \
diff --git a/src/comp/middle/trans.rs b/src/comp/middle/trans.rs
index 6f2145b6..103c0ce3 100644
--- a/src/comp/middle/trans.rs
+++ b/src/comp/middle/trans.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,
llsubval);
this_cx = subpat_res.bcx;
+ i += 1;
}
ret res(this_cx, llval);