Skip to content

Commit 94ae5d1

Browse files
authored
Rollup merge of #76565 - matthiaskrgr:box_place, r=oli-obk
take reference to Place directly instead of taking reference to Box<Place> clippy::borrowed_box
2 parents ae46b9e + 6bfe132 commit 94ae5d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_mir/src/transform/simplify_try.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -674,7 +674,7 @@ impl<'a, 'tcx> SimplifyBranchSameOptimizationFinder<'a, 'tcx> {
674674
y_bb_idx: BasicBlock,
675675
) -> StatementEquality {
676676
let helper = |rhs: &Rvalue<'tcx>,
677-
place: &Box<Place<'tcx>>,
677+
place: &Place<'tcx>,
678678
variant_index: &VariantIdx,
679679
side_to_choose| {
680680
let place_type = place.ty(self.body, self.tcx).ty;

0 commit comments

Comments
 (0)