Skip to content

Commit 416b3bf

Browse files
committed
Comments only
1 parent a14df27 commit 416b3bf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/rustc/middle/trans/base.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1424,6 +1424,10 @@ 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+
// n.b. + argument mode on cx is a workaround for #2633. Note that cx isn't
1428+
// passed by value by default because currently, a newtype-like enum whose
1429+
// representation is a box isn't considered to be boxed (and thus, not
1430+
// considered immediate).
14271431
fn move_val(+cx: block, action: copy_action, dst: ValueRef,
14281432
src: lval_result, t: ty::t) -> block {
14291433
let _icx = cx.insn_ctxt("move_val");

0 commit comments

Comments
 (0)