diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2020-09-22 01:11:45 +0200 |
|---|---|---|
| committer | Matthias Krüger <matthias.krueger@famsik.de> | 2020-09-24 13:38:07 +0200 |
| commit | 2ad46acd7fee4e193aff3fd243ca91ca092a42aa (patch) | |
| tree | a620010b30b70387a709e8d0cc261f85b08bada7 | |
| parent | 5562bb6d749df0469cd1407e97252f51ecbef066 (diff) | |
| download | rust-2ad46acd7fee4e193aff3fd243ca91ca092a42aa.tar.gz rust-2ad46acd7fee4e193aff3fd243ca91ca092a42aa.zip | |
EarlyOtherwiseBranch::run_pass(): don't convert Place to Place (clippy::useless_conversion)
| -rw-r--r-- | compiler/rustc_mir/src/transform/early_otherwise_branch.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_mir/src/transform/early_otherwise_branch.rs b/compiler/rustc_mir/src/transform/early_otherwise_branch.rs index 67e679a8b08..7a9089d0f36 100644 --- a/compiler/rustc_mir/src/transform/early_otherwise_branch.rs +++ b/compiler/rustc_mir/src/transform/early_otherwise_branch.rs @@ -91,7 +91,7 @@ impl<'tcx> MirPass<'tcx> for EarlyOtherwiseBranch { let not_equal_rvalue = Rvalue::BinaryOp( not_equal, Operand::Copy(Place::from(second_discriminant_temp)), - Operand::Copy(Place::from(first_descriminant_place)), + Operand::Copy(first_descriminant_place), ); patch.add_statement( end_of_block_location, |
