Skip to content

Commit c51b9ff

Browse files
committedFeb 12, 2024
remove redundant logic
Made redundant in 3f697b8
1 parent bdc1592 commit c51b9ff

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)
Please sign in to comment.