Make moves explicit in rustc::middle
This commit is contained in:
parent
c5fa613498
commit
d0ed13c4bd
3 changed files with 4 additions and 4 deletions
|
@ -1202,7 +1202,7 @@ fn trans_alt_inner(scope_cx: block,
|
|||
arm_cxs.push(bcx);
|
||||
}
|
||||
|
||||
return controlflow::join_blocks(scope_cx, dvec::unwrap(arm_cxs));
|
||||
return controlflow::join_blocks(scope_cx, dvec::unwrap(move arm_cxs));
|
||||
|
||||
fn mk_fail(bcx: block, sp: span, msg: ~str,
|
||||
done: @mut Option<BasicBlockRef>) -> BasicBlockRef {
|
||||
|
|
|
@ -511,7 +511,7 @@ fn block_(llbb: BasicBlockRef, parent: Option<block>, -kind: block_kind,
|
|||
terminated: false,
|
||||
unreachable: false,
|
||||
parent: parent,
|
||||
kind: kind,
|
||||
kind: move kind,
|
||||
is_lpad: is_lpad,
|
||||
node_info: node_info,
|
||||
fcx: fcx
|
||||
|
|
|
@ -88,9 +88,9 @@ fn expected_found<C: combine,T>(
|
|||
self: &C, +a: T, +b: T) -> ty::expected_found<T> {
|
||||
|
||||
if self.a_is_expected() {
|
||||
ty::expected_found {expected: a, found: b}
|
||||
ty::expected_found {expected: move a, found: move b}
|
||||
} else {
|
||||
ty::expected_found {expected: b, found: a}
|
||||
ty::expected_found {expected: move b, found: move a}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue