|
| 1 | +warning: unexpected `cfg` condition name: `foo` |
| 2 | + --> $DIR/doc-cfg-2.rs:3:11 |
| 3 | + | |
| 4 | +LL | #[doc(cfg(foo), cfg(bar))] |
| 5 | + | ^^^ |
| 6 | + | |
| 7 | + = help: expected names are: `FALSE` and `test` and 31 more |
| 8 | + = help: to expect this configuration use `--check-cfg=cfg(foo)` |
| 9 | + = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg.html> for more information about checking conditional configuration |
| 10 | + = note: `#[warn(unexpected_cfgs)]` on by default |
| 11 | + |
| 12 | +warning: unexpected `cfg` condition name: `bar` |
| 13 | + --> $DIR/doc-cfg-2.rs:3:21 |
| 14 | + | |
| 15 | +LL | #[doc(cfg(foo), cfg(bar))] |
| 16 | + | ^^^ |
| 17 | + | |
| 18 | + = help: to expect this configuration use `--check-cfg=cfg(bar)` |
| 19 | + = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg.html> for more information about checking conditional configuration |
| 20 | + |
| 21 | +error: only `hide` or `show` are allowed in `#[doc(auto_cfg(...))]` |
| 22 | + --> $DIR/doc-cfg-2.rs:6:16 |
| 23 | + | |
| 24 | +LL | #[doc(auto_cfg(42))] |
| 25 | + | ^^ |
| 26 | + | |
| 27 | + = note: `#[deny(invalid_doc_attributes)]` on by default |
| 28 | + |
| 29 | +error: `#![doc(auto_cfg(hide(...)))]` only accepts identifiers or key/value items |
| 30 | + --> $DIR/doc-cfg-2.rs:7:21 |
| 31 | + | |
| 32 | +LL | #[doc(auto_cfg(hide(true)))] |
| 33 | + | ^^^^ |
| 34 | + |
| 35 | +error: `#![doc(auto_cfg(hide(...)))]` only accepts identifiers or key/value items |
| 36 | + --> $DIR/doc-cfg-2.rs:8:21 |
| 37 | + | |
| 38 | +LL | #[doc(auto_cfg(hide(42)))] |
| 39 | + | ^^ |
| 40 | + |
| 41 | +error: `#![doc(auto_cfg(hide(...)))]` only accepts identifiers or key/value items |
| 42 | + --> $DIR/doc-cfg-2.rs:9:21 |
| 43 | + | |
| 44 | +LL | #[doc(auto_cfg(hide("a")))] |
| 45 | + | ^^^ |
| 46 | + |
| 47 | +error: expected boolean for `#[doc(auto_cfg = ...)]` |
| 48 | + --> $DIR/doc-cfg-2.rs:10:18 |
| 49 | + | |
| 50 | +LL | #[doc(auto_cfg = 42)] |
| 51 | + | ^^ |
| 52 | + |
| 53 | +error: expected boolean for `#[doc(auto_cfg = ...)]` |
| 54 | + --> $DIR/doc-cfg-2.rs:11:18 |
| 55 | + | |
| 56 | +LL | #[doc(auto_cfg = "a")] |
| 57 | + | ^^^ |
| 58 | + |
| 59 | +error: aborting due to 6 previous errors; 2 warnings emitted |
| 60 | + |
0 commit comments