1
1
error: 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
3
3
|
4
4
LL | #[doc(auto_cfg)]
5
5
| ^^^^^^^^
@@ -19,7 +19,7 @@ LL | #![doc(auto_cfg)]
19
19
| ~~~~~~~~~~~~~~~~~
20
20
21
21
error: 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
23
23
|
24
24
LL | #[doc(no_auto_cfg)]
25
25
| ^^^^^^^^^^^
@@ -32,29 +32,52 @@ help: to apply to the crate, use an inner attribute
32
32
LL | #![doc(no_auto_cfg)]
33
33
| ~~~~~~~~~~~~~~~~~~~~
34
34
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
+
35
58
error: `#![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
37
60
|
38
61
LL | #![doc(no_auto_cfg(1))]
39
62
| ^^^^^^^^^^^^^^
40
63
41
64
error: `#![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
43
66
|
44
67
LL | #![doc(no_auto_cfg = 1)]
45
68
| ^^^^^^^^^^^^^^^
46
69
47
70
error: `#![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
49
72
|
50
73
LL | #![doc(auto_cfg(1))]
51
74
| ^^^^^^^^^^^
52
75
53
76
error: `#![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
55
78
|
56
79
LL | #![doc(auto_cfg = 1)]
57
80
| ^^^^^^^^^^^^
58
81
59
- error: aborting due to 6 previous errors
82
+ error: aborting due to 9 previous errors
60
83
0 commit comments