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
This commit is contained in:
Tyler Mandry 2020-09-10 12:20:11 -07:00 committed by GitHub
commit 94ae5d1866
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -674,7 +674,7 @@ impl<'a, 'tcx> SimplifyBranchSameOptimizationFinder<'a, 'tcx> {
y_bb_idx: BasicBlock, y_bb_idx: BasicBlock,
) -> StatementEquality { ) -> StatementEquality {
let helper = |rhs: &Rvalue<'tcx>, let helper = |rhs: &Rvalue<'tcx>,
place: &Box<Place<'tcx>>, place: &Place<'tcx>,
variant_index: &VariantIdx, variant_index: &VariantIdx,
side_to_choose| { side_to_choose| {
let place_type = place.ty(self.body, self.tcx).ty; let place_type = place.ty(self.body, self.tcx).ty;