about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--compiler/rustc_typeck/src/coherence/inherent_impls.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/compiler/rustc_typeck/src/coherence/inherent_impls.rs b/compiler/rustc_typeck/src/coherence/inherent_impls.rs
index 359828effa6..8c2e91ab8f1 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);
             };