diff --git a/compiler/rustc_hir_typeck/src/method/suggest.rs b/compiler/rustc_hir_typeck/src/method/suggest.rs index 47a4d4e72dffd..41eeda355ba09 100644 --- a/compiler/rustc_hir_typeck/src/method/suggest.rs +++ b/compiler/rustc_hir_typeck/src/method/suggest.rs @@ -910,8 +910,6 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> { // for instance self.tcx.at(span).type_of(*def_id).subst_identity() != rcvr_ty - && self.tcx.at(span).type_of(*def_id).subst_identity() - != rcvr_ty } (Mode::Path, false, _) => true, _ => false,