Skip to content

Commit 325cbe2

Browse files
committed
---
yaml --- r: 3177 b: refs/heads/master c: d90ad44 h: refs/heads/master i: 3175: be3e04d v: v3
1 parent 4f076b5 commit 325cbe2

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 5b341443da8a281e4ebd32a6a4da8b2f73c12f92
2+
refs/heads/master: d90ad442b412448f66e7f4401f1d26d9f2e66454

trunk/src/comp/middle/trans.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3456,12 +3456,16 @@ mod ivec {
34563456
cx.fcx.lcx.ccx.tcx.sess.bug("non-istr/ivec in trans_append");
34573457
}
34583458
}
3459+
34593460
// Gather the various type descriptors we'll need.
34603461

3461-
auto rslt = get_tydesc(cx, t, false, none);
3462+
// FIXME (issue #511): This is needed to prevent a leak.
3463+
auto no_tydesc_info = none;
3464+
3465+
auto rslt = get_tydesc(cx, t, false, no_tydesc_info);
34623466
auto vec_tydesc = rslt.val;
34633467
auto bcx = rslt.bcx;
3464-
rslt = get_tydesc(bcx, unit_ty, false, none);
3468+
rslt = get_tydesc(bcx, unit_ty, false, no_tydesc_info);
34653469
auto unit_tydesc = rslt.val;
34663470
bcx = rslt.bcx;
34673471

trunk/src/test/run-pass/interior-vec.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
11
// xfail-stage0
2-
// xfail-stage1
3-
// xfail-stage2
4-
// xfail-stage3
5-
6-
// works, but leaks in the compiler :(
72

83
import rusti::ivec_len;
94

0 commit comments

Comments
 (0)