Skip to content

Commit 5f8a6ed

Browse files
committed
Use Place directly on make_return_dest, it's Copy
1 parent afcd7fc commit 5f8a6ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustc_codegen_ssa/mir/block.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
619619
let mut llargs = Vec::with_capacity(arg_count);
620620

621621
// Prepare the return value destination
622-
let ret_dest = if let Some((ref dest, _)) = *destination {
622+
let ret_dest = if let Some((dest, _)) = *destination {
623623
let is_intrinsic = intrinsic.is_some();
624624
self.make_return_dest(&mut bx, dest, &fn_abi.ret, &mut llargs, is_intrinsic)
625625
} else {
@@ -1123,7 +1123,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
11231123
fn make_return_dest(
11241124
&mut self,
11251125
bx: &mut Bx,
1126-
dest: &mir::Place<'tcx>,
1126+
dest: mir::Place<'tcx>,
11271127
fn_ret: &ArgAbi<'tcx, Ty<'tcx>>,
11281128
llargs: &mut Vec<Bx::Value>,
11291129
is_intrinsic: bool,

0 commit comments

Comments
 (0)