Skip to content

Commit

Permalink
Rollup merge of #76565 - matthiaskrgr:box_place, r=oli-obk
Browse files Browse the repository at this point in the history
take reference to Place directly instead of taking reference to Box<Place>

clippy::borrowed_box
  • Loading branch information
tmandry authored Sep 10, 2020
2 parents ae46b9e + 6bfe132 commit 94ae5d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_mir/src/transform/simplify_try.rs
Original file line number Diff line number Diff line change
Expand Up @@ -674,7 +674,7 @@ impl<'a, 'tcx> SimplifyBranchSameOptimizationFinder<'a, 'tcx> {
y_bb_idx: BasicBlock,
) -> StatementEquality {
let helper = |rhs: &Rvalue<'tcx>,
place: &Box<Place<'tcx>>,
place: &Place<'tcx>,
variant_index: &VariantIdx,
side_to_choose| {
let place_type = place.ty(self.body, self.tcx).ty;
Expand Down

0 comments on commit 94ae5d1

Please sign in to comment.