Skip to content

Commit

Permalink
Unrolled build for rust-lang#120987
Browse files Browse the repository at this point in the history
Rollup merge of rust-lang#120987 - tshepang:redundant, r=compiler-errors

remove redundant logic

Made redundant in 3f697b8
  • Loading branch information
rust-timer authored Feb 13, 2024
2 parents 09d73fa + c51b9ff commit f74ea26
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 f74ea26

Please sign in to comment.