remove redundant logic

Made redundant in 3f697b85f2
This commit is contained in:
Tshepang Mbambo 2024-02-12 23:08:00 +02:00
parent bdc15928c8
commit c51b9ff8ba

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,