about summary refs log tree commit diff
path: root/compiler/rustc_span/src
diff options
context:
space:
mode:
authorWim Looman <git@nemo157.com>2020-11-04 21:59:35 +0100
committerGuillaume Gomez <guillaume.gomez@huawei.com>2021-10-05 18:04:15 +0200
commit18fdd816b72cbf1547efbb81f164f7a457f17b78 (patch)
tree838520193f9832ddafa6ab4977b415edf5f0208a /compiler/rustc_span/src
parent10cdbd847fd00d093ce89a4fffde5d90c8bb9817 (diff)
downloadrust-18fdd816b72cbf1547efbb81f164f7a457f17b78.tar.gz
rust-18fdd816b72cbf1547efbb81f164f7a457f17b78.zip
Allow adding a set of cfg's to hide from being implicitly doc(cfg)'d
By adding #![doc(cfg_hide(foobar))] to the crate attributes the cfg
 #[cfg(foobar)] (and _only_ that _exact_ cfg) will not be implicitly
treated as a doc(cfg) to render a message in the documentation.
Diffstat (limited to 'compiler/rustc_span/src')
-rw-r--r--compiler/rustc_span/src/symbol.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_span/src/symbol.rs b/compiler/rustc_span/src/symbol.rs
index 77baf7d7381..382dbc377d6 100644
--- a/compiler/rustc_span/src/symbol.rs
+++ b/compiler/rustc_span/src/symbol.rs
@@ -399,6 +399,7 @@ symbols! {
         cfg_attr_multi,
         cfg_doctest,
         cfg_eval,
+        cfg_hide,
         cfg_panic,
         cfg_sanitize,
         cfg_target_abi,
@@ -547,6 +548,7 @@ symbols! {
         doc,
         doc_alias,
         doc_cfg,
+        doc_cfg_hide,
         doc_keyword,
         doc_masked,
         doc_notable_trait,