about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorWim Looman <git@nemo157.com>2020-11-03 19:45:16 +0100
committerGuillaume Gomez <guillaume.gomez@huawei.com>2021-10-05 17:25:44 +0200
commit10cdbd847fd00d093ce89a4fffde5d90c8bb9817 (patch)
tree565637fa1346110af2b1b1aa415cd1d1b2fe025a /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent074f63648bd2368d5ca19aed02b5763a144e5d05 (diff)
downloadrust-10cdbd847fd00d093ce89a4fffde5d90c8bb9817.tar.gz
rust-10cdbd847fd00d093ce89a4fffde5d90c8bb9817.zip
Make cfg implicitly imply doc(cfg)
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)
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions