Skip to content

Commit 4999d44

Browse files
committed
trans: fix borrow violation
1 parent 88ec89d commit 4999d44

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustc/middle/trans/base.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1258,7 +1258,7 @@ pub fn trans_block_cleanups(bcx: block, cleanups: ~[cleanup]) -> block {
12581258
}
12591259

12601260
pub fn trans_block_cleanups_(bcx: block,
1261-
cleanups: ~[cleanup],
1261+
cleanups: &[cleanup],
12621262
/* cleanup_cx: block, */
12631263
is_lpad: bool) -> block {
12641264
let _icx = bcx.insn_ctxt("trans_block_cleanups");
@@ -1317,7 +1317,7 @@ pub fn cleanup_and_leave(bcx: block,
13171317
dest: sub_cx.llbb
13181318
});
13191319
bcx = trans_block_cleanups_(sub_cx,
1320-
block_cleanups(cur),
1320+
inf.cleanups,
13211321
is_lpad);
13221322
}
13231323
_ => ()

0 commit comments

Comments
 (0)