|
| 1 | +error: this attribute can only be applied at the crate level |
| 2 | + --> $DIR/doc_no_auto_cfg.rs:9:7 |
| 3 | + | |
| 4 | +LL | #[doc(auto_cfg)] |
| 5 | + | ^^^^^^^^ |
| 6 | + | |
| 7 | +note: the lint level is defined here |
| 8 | + --> $DIR/doc_no_auto_cfg.rs:2:9 |
| 9 | + | |
| 10 | +LL | #![deny(warnings)] |
| 11 | + | ^^^^^^^^ |
| 12 | + = note: `#[deny(invalid_doc_attributes)]` implied by `#[deny(warnings)]` |
| 13 | + = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! |
| 14 | + = note: for more information, see issue #82730 <https://github.com/rust-lang/rust/issues/82730> |
| 15 | + = note: read <https://doc.rust-lang.org/nightly/rustdoc/the-doc-attribute.html#at-the-crate-level> for more information |
| 16 | +help: to apply to the crate, use an inner attribute |
| 17 | + | |
| 18 | +LL | #![doc(auto_cfg)] |
| 19 | + | ~~~~~~~~~~~~~~~~~ |
| 20 | + |
| 21 | +error: this attribute can only be applied at the crate level |
| 22 | + --> $DIR/doc_no_auto_cfg.rs:11:7 |
| 23 | + | |
| 24 | +LL | #[doc(no_auto_cfg)] |
| 25 | + | ^^^^^^^^^^^ |
| 26 | + | |
| 27 | + = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! |
| 28 | + = note: for more information, see issue #82730 <https://github.com/rust-lang/rust/issues/82730> |
| 29 | + = note: read <https://doc.rust-lang.org/nightly/rustdoc/the-doc-attribute.html#at-the-crate-level> for more information |
| 30 | +help: to apply to the crate, use an inner attribute |
| 31 | + | |
| 32 | +LL | #![doc(no_auto_cfg)] |
| 33 | + | ~~~~~~~~~~~~~~~~~~~~ |
| 34 | + |
| 35 | +error: `#![doc(no_auto_cfg)]` attribute doesn't expect a value |
| 36 | + --> $DIR/doc_no_auto_cfg.rs:4:8 |
| 37 | + | |
| 38 | +LL | #![doc(no_auto_cfg(1))] |
| 39 | + | ^^^^^^^^^^^^^^ |
| 40 | + |
| 41 | +error: `#![doc(no_auto_cfg)]` attribute doesn't expect a value |
| 42 | + --> $DIR/doc_no_auto_cfg.rs:5:8 |
| 43 | + | |
| 44 | +LL | #![doc(no_auto_cfg = 1)] |
| 45 | + | ^^^^^^^^^^^^^^^ |
| 46 | + |
| 47 | +error: `#![doc(auto_cfg)]` attribute doesn't expect a value |
| 48 | + --> $DIR/doc_no_auto_cfg.rs:6:8 |
| 49 | + | |
| 50 | +LL | #![doc(auto_cfg(1))] |
| 51 | + | ^^^^^^^^^^^ |
| 52 | + |
| 53 | +error: `#![doc(auto_cfg)]` attribute doesn't expect a value |
| 54 | + --> $DIR/doc_no_auto_cfg.rs:7:8 |
| 55 | + | |
| 56 | +LL | #![doc(auto_cfg = 1)] |
| 57 | + | ^^^^^^^^^^^^ |
| 58 | + |
| 59 | +error: aborting due to 6 previous errors |
| 60 | + |
0 commit comments