From a14df270dc18cd13965e741967eaeac443e20466 Mon Sep 17 00:00:00 2001 From: Tim Chevalier Date: Sat, 16 Jun 2012 14:06:40 -0700 Subject: [PATCH] Make move_val take its first argument by copy Workaround for #2633 -- should allow changes on eholk's branch to compile without segfaulting. --- src/rustc/middle/trans/base.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rustc/middle/trans/base.rs b/src/rustc/middle/trans/base.rs index 69280657a0d..c9b28d4ef8b 100644 --- a/src/rustc/middle/trans/base.rs +++ b/src/rustc/middle/trans/base.rs @@ -1424,7 +1424,7 @@ fn copy_val_no_check(bcx: block, action: copy_action, dst: ValueRef, // FIXME: We always zero out the source. Ideally we would detect the // case where a variable is always deinitialized by block exit and thus // doesn't need to be dropped. (Issue #839) -fn move_val(cx: block, action: copy_action, dst: ValueRef, +fn move_val(+cx: block, action: copy_action, dst: ValueRef, src: lval_result, t: ty::t) -> block { let _icx = cx.insn_ctxt("move_val"); let mut src_val = src.val;