Skip to content

Commit a14df27

Browse files
committed
Make move_val take its first argument by copy
Workaround for #2633 -- should allow changes on eholk's branch to compile without segfaulting.
1 parent 52f1904 commit a14df27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rustc/middle/trans/base.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1424,7 +1424,7 @@ fn copy_val_no_check(bcx: block, action: copy_action, dst: ValueRef,
14241424
// FIXME: We always zero out the source. Ideally we would detect the
14251425
// case where a variable is always deinitialized by block exit and thus
14261426
// doesn't need to be dropped. (Issue #839)
1427-
fn move_val(cx: block, action: copy_action, dst: ValueRef,
1427+
fn move_val(+cx: block, action: copy_action, dst: ValueRef,
14281428
src: lval_result, t: ty::t) -> block {
14291429
let _icx = cx.insn_ctxt("move_val");
14301430
let mut src_val = src.val;

0 commit comments

Comments
 (0)