about summary refs log tree commit diff
path: root/compiler/rustc_feature
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2021-11-02 23:48:50 +0100
committerGitHub <noreply@github.com>2021-11-02 23:48:50 +0100
commite38844a9d837ebe6f8f6e79445e9dead579c387e (patch)
tree3a944e98a5d153d11e483fa484932b4ad53b30e5 /compiler/rustc_feature
parent673aafe70e70df837da98ae28644da713ba58ced (diff)
parentd7afbf61d87bf345597624cccdfb1036439697b9 (diff)
downloadrust-e38844a9d837ebe6f8f6e79445e9dead579c387e.tar.gz
rust-e38844a9d837ebe6f8f6e79445e9dead579c387e.zip
Rollup merge of #90502 - GuillaumeGomez:split-doc-cfg-feature, r=jyn514
Split doc_cfg and doc_auto_cfg features

Part of #90497.

With this feature, `doc_cfg` won't pick up items automatically anymore.

cc `@Mark-Simulacrum`
r? `@jyn514`
Diffstat (limited to 'compiler/rustc_feature')
-rw-r--r--compiler/rustc_feature/src/active.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/rustc_feature/src/active.rs b/compiler/rustc_feature/src/active.rs
index 892166469cc..1c6f1344e8a 100644
--- a/compiler/rustc_feature/src/active.rs
+++ b/compiler/rustc_feature/src/active.rs
@@ -689,6 +689,9 @@ declare_features! (
     /// not changed from prior instances of the same struct (RFC #2528)
     (incomplete, type_changing_struct_update, "1.58.0", Some(86555), None),
 
+    /// Tells rustdoc to automatically generate `#[doc(cfg(...))]`.
+    (active, doc_auto_cfg, "1.58.0", Some(43781), None),
+
     // -------------------------------------------------------------------------
     // feature-group-end: actual feature gates
     // -------------------------------------------------------------------------