mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
rustc: Work around leak when translating interior vectors. Un-XFAIL interior-vec.rs.
This commit is contained in:
parent
5b341443da
commit
d90ad442b4
@ -3456,12 +3456,16 @@ mod ivec {
|
||||
cx.fcx.lcx.ccx.tcx.sess.bug("non-istr/ivec in trans_append");
|
||||
}
|
||||
}
|
||||
|
||||
// Gather the various type descriptors we'll need.
|
||||
|
||||
auto rslt = get_tydesc(cx, t, false, none);
|
||||
// FIXME (issue #511): This is needed to prevent a leak.
|
||||
auto no_tydesc_info = none;
|
||||
|
||||
auto rslt = get_tydesc(cx, t, false, no_tydesc_info);
|
||||
auto vec_tydesc = rslt.val;
|
||||
auto bcx = rslt.bcx;
|
||||
rslt = get_tydesc(bcx, unit_ty, false, none);
|
||||
rslt = get_tydesc(bcx, unit_ty, false, no_tydesc_info);
|
||||
auto unit_tydesc = rslt.val;
|
||||
bcx = rslt.bcx;
|
||||
|
||||
|
@ -1,9 +1,4 @@
|
||||
// xfail-stage0
|
||||
// xfail-stage1
|
||||
// xfail-stage2
|
||||
// xfail-stage3
|
||||
|
||||
// works, but leaks in the compiler :(
|
||||
|
||||
import rusti::ivec_len;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user