about summary refs log tree commit diff
diff options
context:
space:
mode:
authorlcnr <rust@lcnr.de>2022-04-29 15:55:54 +0200
committerlcnr <rust@lcnr.de>2022-05-05 10:53:00 +0200
commitdc184b4e17639807617ac8aeeb51b4ee25817950 (patch)
treebe139a3af542a404c194d8aaf411e56e1e01a0d5
parent209dd2cb0a1cab685b9facdbbd8b62c796f58380 (diff)
downloadrust-dc184b4e17639807617ac8aeeb51b4ee25817950.tar.gz
rust-dc184b4e17639807617ac8aeeb51b4ee25817950.zip
remove unnecessary check
-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);
             };