11error: this attribute can only be applied at the crate level
2- --> $DIR/doc_no_auto_cfg.rs:9 :7
2+ --> $DIR/doc_no_auto_cfg.rs:11 :7
33 |
44LL | #[doc(auto_cfg)]
55 | ^^^^^^^^
@@ -19,7 +19,7 @@ LL | #![doc(auto_cfg)]
1919 | ~~~~~~~~~~~~~~~~~
2020
2121error: this attribute can only be applied at the crate level
22- --> $DIR/doc_no_auto_cfg.rs:11 :7
22+ --> $DIR/doc_no_auto_cfg.rs:13 :7
2323 |
2424LL | #[doc(no_auto_cfg)]
2525 | ^^^^^^^^^^^
@@ -32,29 +32,52 @@ help: to apply to the crate, use an inner attribute
3232LL | #![doc(no_auto_cfg)]
3333 | ~~~~~~~~~~~~~~~~~~~~
3434
35+ error: `doc(no_auto_cfg)` is enabled by default before the 2024 edition
36+ --> $DIR/doc_no_auto_cfg.rs:3:8
37+ |
38+ LL | #![doc(no_auto_cfg)]
39+ | ^^^^^^^^^^^
40+ |
41+ = note: `#[deny(unused_attributes)]` implied by `#[deny(warnings)]`
42+
43+ error: `doc(no_auto_cfg)` is enabled by default before the 2024 edition
44+ --> $DIR/doc_no_auto_cfg.rs:5:18
45+ |
46+ LL | #![doc(auto_cfg, no_auto_cfg)]
47+ | ^^^^^^^^^^^
48+
49+ error: please don't specify both `doc(auto_cfg)` and `doc(no_auto_cfg)`
50+ --> $DIR/doc_no_auto_cfg.rs:3:8
51+ |
52+ LL | #![doc(no_auto_cfg)]
53+ | ^^^^^^^^^^^
54+ LL |
55+ LL | #![doc(auto_cfg, no_auto_cfg)]
56+ | ----------- the other is specified here
57+
3558error: `#![doc(no_auto_cfg)]` attribute doesn't expect a value
36- --> $DIR/doc_no_auto_cfg.rs:4 :8
59+ --> $DIR/doc_no_auto_cfg.rs:6 :8
3760 |
3861LL | #![doc(no_auto_cfg(1))]
3962 | ^^^^^^^^^^^^^^
4063
4164error: `#![doc(no_auto_cfg)]` attribute doesn't expect a value
42- --> $DIR/doc_no_auto_cfg.rs:5 :8
65+ --> $DIR/doc_no_auto_cfg.rs:7 :8
4366 |
4467LL | #![doc(no_auto_cfg = 1)]
4568 | ^^^^^^^^^^^^^^^
4669
4770error: `#![doc(auto_cfg)]` attribute doesn't expect a value
48- --> $DIR/doc_no_auto_cfg.rs:6 :8
71+ --> $DIR/doc_no_auto_cfg.rs:8 :8
4972 |
5073LL | #![doc(auto_cfg(1))]
5174 | ^^^^^^^^^^^
5275
5376error: `#![doc(auto_cfg)]` attribute doesn't expect a value
54- --> $DIR/doc_no_auto_cfg.rs:7 :8
77+ --> $DIR/doc_no_auto_cfg.rs:9 :8
5578 |
5679LL | #![doc(auto_cfg = 1)]
5780 | ^^^^^^^^^^^^
5881
59- error: aborting due to 6 previous errors
82+ error: aborting due to 9 previous errors
6083
0 commit comments