Skip to content

Commit 52abd91

Browse files
committed
Brute force and ignorance workaround for tag-and-generic-obj; un-XFAIL it.
1 parent 8382990 commit 52abd91

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/comp/middle/trans.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4409,6 +4409,9 @@ fn trans_args(@block_ctxt cx,
44094409
}
44104410
}
44114411

4412+
val = bcx.build.PointerCast(val, lldestty);
4413+
} else if (mode == ast.alias) {
4414+
auto lldestty = arg_tys.(i);
44124415
val = bcx.build.PointerCast(val, lldestty);
44134416
}
44144417

src/test/run-pass/tag-and-generic-obj.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// xfail-stage0
2-
31
tag colour { red; green; }
42

53
obj foo[T]() {

0 commit comments

Comments
 (0)