diff options
| author | Patrick Walton <[email protected]> | 2010-12-15 10:11:33 -0800 |
|---|---|---|
| committer | Patrick Walton <[email protected]> | 2010-12-15 10:11:33 -0800 |
| commit | 42789c4b97413acbd4956a0ac521fcd199f09c00 (patch) | |
| tree | 880d41bc24e74f6f12982a33c28a3091ee52f46e /src | |
| parent | rustc: Resolve tag names in the typechecker (diff) | |
| download | rust-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/Makefile | 1 | ||||
| -rw-r--r-- | src/comp/middle/trans.rs | 1 |
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); |