about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJoshua Nelson <jyn514@gmail.com>2021-04-23 10:52:38 -0400
committerGuillaume Gomez <guillaume.gomez@huawei.com>2021-10-05 18:15:30 +0200
commit56e5f614947c7f9ddde17c579e2e17b39260b17d (patch)
treefceae17544d127cc7e0f467628cf05f6c5eae484
parente36a370f08c14ffa2e9663b8af036aca93c9bf2b (diff)
downloadrust-56e5f614947c7f9ddde17c579e2e17b39260b17d.tar.gz
rust-56e5f614947c7f9ddde17c579e2e17b39260b17d.zip
Add `cfg_hide` to the list of known attributes
-rw-r--r--compiler/rustc_passes/src/check_attr.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_passes/src/check_attr.rs b/compiler/rustc_passes/src/check_attr.rs
index 3e59fc4f551..8d3c2bb1c7b 100644
--- a/compiler/rustc_passes/src/check_attr.rs
+++ b/compiler/rustc_passes/src/check_attr.rs
@@ -908,6 +908,7 @@ impl CheckAttrVisitor<'tcx> {
                         // plugins: removed, but rustdoc warns about it itself
                         sym::alias
                         | sym::cfg
+                        | sym::cfg_hide
                         | sym::hidden
                         | sym::html_favicon_url
                         | sym::html_logo_url