Skip to content

Commit 74ef21d

Browse files
committed
---
yaml --- r: 13535 b: refs/heads/master c: 416b3bf h: refs/heads/master i: 13533: 32e4a62 13531: 3e9362e 13527: 1ddd0ae 13519: 3406ca4 13503: cb66784 v: v3
1 parent 0c86f59 commit 74ef21d

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: a14df270dc18cd13965e741967eaeac443e20466
2+
refs/heads/master: 416b3bfea444e67d6c18e3578193376e6ca2b659
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
55
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf

trunk/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)