mirror of https://github.com/rust-lang/rust.git
Rollup merge of #120987 - tshepang:redundant, r=compiler-errors
remove redundant logic
Made redundant in 3f697b85f2
This commit is contained in:
commit
7427460ea9
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue