Skip to content

Commit afcd7fc

Browse files
committed
Use Place directly on codegen_drop_terminator, it's Copy
1 parent 017620f commit afcd7fc

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
@@ -299,7 +299,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
299299
&mut self,
300300
helper: TerminatorCodegenHelper<'tcx>,
301301
mut bx: Bx,
302-
location: &mir::Place<'tcx>,
302+
location: mir::Place<'tcx>,
303303
target: mir::BasicBlock,
304304
unwind: Option<mir::BasicBlock>,
305305
) {
@@ -873,7 +873,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
873873
bx.unreachable();
874874
}
875875

876-
mir::TerminatorKind::Drop { ref location, target, unwind } => {
876+
mir::TerminatorKind::Drop { location, target, unwind } => {
877877
self.codegen_drop_terminator(helper, bx, location, target, unwind);
878878
}
879879

0 commit comments

Comments
 (0)