diff options
| author | Wim Looman <git@nemo157.com> | 2020-11-03 19:45:16 +0100 |
|---|---|---|
| committer | Guillaume Gomez <guillaume.gomez@huawei.com> | 2021-10-05 17:25:44 +0200 |
| commit | 10cdbd847fd00d093ce89a4fffde5d90c8bb9817 (patch) | |
| tree | 565637fa1346110af2b1b1aa415cd1d1b2fe025a /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | |
| parent | 074f63648bd2368d5ca19aed02b5763a144e5d05 (diff) | |
| download | rust-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
