From dc184b4e17639807617ac8aeeb51b4ee25817950 Mon Sep 17 00:00:00 2001 From: lcnr Date: Fri, 29 Apr 2022 15:55:54 +0200 Subject: [PATCH] remove unnecessary check --- compiler/rustc_typeck/src/coherence/inherent_impls.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/compiler/rustc_typeck/src/coherence/inherent_impls.rs b/compiler/rustc_typeck/src/coherence/inherent_impls.rs index 359828effa6c..8c2e91ab8f1e 100644 --- a/compiler/rustc_typeck/src/coherence/inherent_impls.rs +++ b/compiler/rustc_typeck/src/coherence/inherent_impls.rs @@ -137,9 +137,7 @@ impl<'tcx> InherentCollect<'tcx> { return; } - if self.tcx.features().rustc_attrs - && self.tcx.has_attr(def_id, sym::rustc_has_incoherent_inherent_impls) - { + if self.tcx.has_attr(def_id, sym::rustc_has_incoherent_inherent_impls) { let hir::ItemKind::Impl(hir::Impl { items, .. }) = item.kind else { bug!("expected `impl` item: {:?}", item); };