diff options
| author | lcnr <rust@lcnr.de> | 2022-04-29 15:55:54 +0200 |
|---|---|---|
| committer | lcnr <rust@lcnr.de> | 2022-05-05 10:53:00 +0200 |
| commit | dc184b4e17639807617ac8aeeb51b4ee25817950 (patch) | |
| tree | be139a3af542a404c194d8aaf411e56e1e01a0d5 | |
| parent | 209dd2cb0a1cab685b9facdbbd8b62c796f58380 (diff) | |
| download | rust-dc184b4e17639807617ac8aeeb51b4ee25817950.tar.gz rust-dc184b4e17639807617ac8aeeb51b4ee25817950.zip | |
remove unnecessary check
| -rw-r--r-- | compiler/rustc_typeck/src/coherence/inherent_impls.rs | 4 |
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); }; |
