Skip to content

Commit d61567b

Browse files
committed
Remove some unnecessary dereferences.
1 parent 3f0964c commit d61567b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

compiler/rustc_mir_transform/src/inline.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,7 @@ impl<'tcx> Inliner<'tcx> {
639639
);
640640
let dest_ty = dest.ty(caller_body, self.tcx);
641641
let temp =
642-
Place::from(self.new_call_temp(caller_body, &callsite, dest_ty, return_block));
642+
Place::from(self.new_call_temp(caller_body, callsite, dest_ty, return_block));
643643
caller_body[callsite.block].statements.push(Statement {
644644
source_info: callsite.source_info,
645645
kind: StatementKind::Assign(Box::new((temp, dest))),
@@ -658,15 +658,15 @@ impl<'tcx> Inliner<'tcx> {
658658
true,
659659
self.new_call_temp(
660660
caller_body,
661-
&callsite,
661+
callsite,
662662
destination.ty(caller_body, self.tcx).ty,
663663
return_block,
664664
),
665665
)
666666
};
667667

668668
// Copy the arguments if needed.
669-
let args = self.make_call_args(args, &callsite, caller_body, &callee_body, return_block);
669+
let args = self.make_call_args(args, callsite, caller_body, &callee_body, return_block);
670670

671671
let mut integrator = Integrator {
672672
args: &args,

0 commit comments

Comments
 (0)