about summary refs log tree commit diff
path: root/src/test/rustdoc/doc-cfg-implicit-gate.rs
AgeCommit message (Collapse)AuthorLines
2023-01-11Move /src/test to /testsAlbert Larsan-7/+0
2021-10-05Make cfg implicitly imply doc(cfg)Wim Looman-0/+7
This is only active when the `doc_cfg` feature is active. The implicit cfg can be overridden via #[doc(cfg(...))], so e.g. to hide a #[cfg] you can use something like: ```rust #[cfg(unix)] #[doc(cfg(all()))] pub struct Unix; ``` (since `all()` is always true, it is never shown in the docs)