From afcd7fc51de94d51465766fa3a0f584cb0710a84 Mon Sep 17 00:00:00 2001 From: Santiago Pastorino Date: Tue, 31 Mar 2020 14:27:48 -0300 Subject: [PATCH] Use Place directly on codegen_drop_terminator, it's Copy --- src/librustc_codegen_ssa/mir/block.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/librustc_codegen_ssa/mir/block.rs b/src/librustc_codegen_ssa/mir/block.rs index e71a63b7f30..658c3127f69 100644 --- a/src/librustc_codegen_ssa/mir/block.rs +++ b/src/librustc_codegen_ssa/mir/block.rs @@ -299,7 +299,7 @@ fn codegen_drop_terminator( &mut self, helper: TerminatorCodegenHelper<'tcx>, mut bx: Bx, - location: &mir::Place<'tcx>, + location: mir::Place<'tcx>, target: mir::BasicBlock, unwind: Option, ) { @@ -873,7 +873,7 @@ fn codegen_terminator( bx.unreachable(); } - mir::TerminatorKind::Drop { ref location, target, unwind } => { + mir::TerminatorKind::Drop { location, target, unwind } => { self.codegen_drop_terminator(helper, bx, location, target, unwind); }