diff options
| author | Wim Looman <git@nemo157.com> | 2020-11-04 21:59:35 +0100 |
|---|---|---|
| committer | Guillaume Gomez <guillaume.gomez@huawei.com> | 2021-10-05 18:04:15 +0200 |
| commit | 18fdd816b72cbf1547efbb81f164f7a457f17b78 (patch) | |
| tree | 838520193f9832ddafa6ab4977b415edf5f0208a /compiler/rustc_span/src | |
| parent | 10cdbd847fd00d093ce89a4fffde5d90c8bb9817 (diff) | |
| download | rust-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.rs | 2 |
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, |
