未验证 提交 94ae5d18 编写于 作者: T Tyler Mandry 提交者: GitHub

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
......@@ -674,7 +674,7 @@ fn statement_equality(
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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册