Skip to content

Commit f74ea26

Browse files
authored
Unrolled build for rust-lang#120987
Rollup merge of rust-lang#120987 - tshepang:redundant, r=compiler-errors remove redundant logic Made redundant in 3f697b8
2 parents 09d73fa + c51b9ff commit f74ea26

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

compiler/rustc_hir_typeck/src/method/suggest.rs

-6
Original file line numberDiff line numberDiff line change
@@ -1073,12 +1073,6 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
10731073
// for instance
10741074
self.tcx.at(span).type_of(*def_id).instantiate_identity()
10751075
!= rcvr_ty
1076-
&& self
1077-
.tcx
1078-
.at(span)
1079-
.type_of(*def_id)
1080-
.instantiate_identity()
1081-
!= rcvr_ty
10821076
}
10831077
(Mode::Path, false, _) => true,
10841078
_ => false,

0 commit comments

Comments
 (0)