From edad892cc4c9e2738c97c9804c2bdca986d9f551 Mon Sep 17 00:00:00 2001 From: Jesse Bakker Date: Tue, 28 Feb 2023 17:53:25 +0100 Subject: [PATCH] Remove duplicate guard in diagnostic method suggest This was leftover after refactoring in c183110cc26a --- compiler/rustc_hir_typeck/src/method/suggest.rs | 2 -- 1 file changed, 2 deletions(-) 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,