Skip to content

Commit 2ad46ac

Browse files
committed
EarlyOtherwiseBranch::run_pass(): don't convert Place to Place (clippy::useless_conversion)
1 parent 5562bb6 commit 2ad46ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_mir/src/transform/early_otherwise_branch.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ impl<'tcx> MirPass<'tcx> for EarlyOtherwiseBranch {
9191
let not_equal_rvalue = Rvalue::BinaryOp(
9292
not_equal,
9393
Operand::Copy(Place::from(second_discriminant_temp)),
94-
Operand::Copy(Place::from(first_descriminant_place)),
94+
Operand::Copy(first_descriminant_place),
9595
);
9696
patch.add_statement(
9797
end_of_block_location,

0 commit comments

Comments
 (0)