Skip to content

Commit

Permalink
Rollup merge of #120987 - tshepang:redundant, r=compiler-errors
Browse files Browse the repository at this point in the history
remove redundant logic

Made redundant in 3f697b8
  • Loading branch information
matthiaskrgr authored Feb 13, 2024
2 parents 5d1e919 + c51b9ff commit 7427460
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions compiler/rustc_hir_typeck/src/method/suggest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1073,12 +1073,6 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
// for instance
self.tcx.at(span).type_of(*def_id).instantiate_identity()
!= rcvr_ty
&& self
.tcx
.at(span)
.type_of(*def_id)
.instantiate_identity()
!= rcvr_ty
}
(Mode::Path, false, _) => true,
_ => false,
Expand Down

0 comments on commit 7427460

Please sign in to comment.