Rollup merge of #120987 - tshepang:redundant, r=compiler-errors

remove redundant logic

Made redundant in 3f697b85f2
This commit is contained in:
Matthias Krüger 2024-02-13 06:27:40 +01:00 committed by GitHub
commit 7427460ea9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 6 deletions

View File

@ -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,