diff options
| author | Tyler Mandry <tmandry@gmail.com> | 2020-09-10 12:20:11 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-10 12:20:11 -0700 |
| commit | 94ae5d186695c8bc9d7137a13cdf63b8ff9320b5 (patch) | |
| tree | 462a26e428c7e6c5262d333268644b851148bfd1 | |
| parent | ae46b9e483774ffcc0662e0775b6ee1e856f0e44 (diff) | |
| parent | 6bfe132067890abba67b6710060a88d4ad91abfe (diff) | |
| download | rust-94ae5d186695c8bc9d7137a13cdf63b8ff9320b5.tar.gz rust-94ae5d186695c8bc9d7137a13cdf63b8ff9320b5.zip | |
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
| -rw-r--r-- | compiler/rustc_mir/src/transform/simplify_try.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_mir/src/transform/simplify_try.rs b/compiler/rustc_mir/src/transform/simplify_try.rs index a7a3548189e..a320d00614d 100644 --- a/compiler/rustc_mir/src/transform/simplify_try.rs +++ b/compiler/rustc_mir/src/transform/simplify_try.rs @@ -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; |
