1
- error: this attribute can only be applied at the crate level
1
+ error: this attribute can only be applied at module level
2
2
--> $DIR/invalid-doc-attr.rs:7:7
3
3
|
4
+ LL | #[doc(test(attr(allow(warnings))))]
5
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
6
+ |
7
+ = note: read <https://doc.rust-lang.org/nightly/rustdoc/the-doc-attribute.html#at-the-module-level> for more information
8
+ = note: `#[deny(invalid_doc_attributes)]` on by default
9
+ help: to apply to the crate, use an inner attribute at the crate level
10
+ |
11
+ LL | #![doc(test(attr(allow(warnings))))]
12
+ | +
13
+
14
+ error: this attribute can only be applied at the crate level
15
+ --> $DIR/invalid-doc-attr.rs:11:7
16
+ |
4
17
LL | #[doc(test(no_crate_inject))]
5
18
| ^^^^^^^^^^^^^^^^^^^^^
6
19
|
7
20
= note: read <https://doc.rust-lang.org/nightly/rustdoc/the-doc-attribute.html#at-the-crate-level> for more information
8
- = note: `#[deny(invalid_doc_attributes)]` on by default
9
21
help: to apply to the crate, use an inner attribute
10
22
|
11
23
LL | #![doc(test(no_crate_inject))]
12
24
| +
13
25
14
26
error: this attribute can only be applied to a `use` item
15
- --> $DIR/invalid-doc-attr.rs:11 :7
27
+ --> $DIR/invalid-doc-attr.rs:15 :7
16
28
|
17
29
LL | #[doc(inline)]
18
30
| ^^^^^^ only applicable on `use` items
@@ -23,15 +35,15 @@ LL | pub fn foo() {}
23
35
= note: read <https://doc.rust-lang.org/nightly/rustdoc/the-doc-attribute.html#inline-and-no_inline> for more information
24
36
25
37
error: this attribute can only be applied at the crate level
26
- --> $DIR/invalid-doc-attr.rs:16 :12
38
+ --> $DIR/invalid-doc-attr.rs:20 :12
27
39
|
28
40
LL | #![doc(test(no_crate_inject))]
29
41
| ^^^^^^^^^^^^^^^^^^^^^
30
42
|
31
43
= note: read <https://doc.rust-lang.org/nightly/rustdoc/the-doc-attribute.html#at-the-crate-level> for more information
32
44
33
45
error: conflicting doc inlining attributes
34
- --> $DIR/invalid-doc-attr.rs:26 :7
46
+ --> $DIR/invalid-doc-attr.rs:30 :7
35
47
|
36
48
LL | #[doc(inline)]
37
49
| ^^^^^^ this attribute...
@@ -41,7 +53,7 @@ LL | #[doc(no_inline)]
41
53
= help: remove one of the conflicting attributes
42
54
43
55
error: this attribute can only be applied to an `extern crate` item
44
- --> $DIR/invalid-doc-attr.rs:32 :7
56
+ --> $DIR/invalid-doc-attr.rs:36 :7
45
57
|
46
58
LL | #[doc(masked)]
47
59
| ^^^^^^ only applicable on `extern crate` items
@@ -52,7 +64,7 @@ LL | pub struct Masked;
52
64
= note: read <https://doc.rust-lang.org/unstable-book/language-features/doc-masked.html> for more information
53
65
54
66
error: this attribute cannot be applied to an `extern crate self` item
55
- --> $DIR/invalid-doc-attr.rs:36 :7
67
+ --> $DIR/invalid-doc-attr.rs:40 :7
56
68
|
57
69
LL | #[doc(masked)]
58
70
| ^^^^^^ not applicable on `extern crate self` items
@@ -69,15 +81,15 @@ LL | #![doc(masked)]
69
81
= note: read <https://doc.rust-lang.org/unstable-book/language-features/doc-masked.html> for more information
70
82
71
83
error: this attribute can only be applied at the crate level
72
- --> $DIR/invalid-doc-attr.rs:19 :11
84
+ --> $DIR/invalid-doc-attr.rs:23 :11
73
85
|
74
86
LL | #[doc(test(no_crate_inject))]
75
87
| ^^^^^^^^^^^^^^^^^^^^^
76
88
|
77
89
= note: read <https://doc.rust-lang.org/nightly/rustdoc/the-doc-attribute.html#at-the-crate-level> for more information
78
90
79
91
error: this attribute can only be applied to a `use` item
80
- --> $DIR/invalid-doc-attr.rs:21 :11
92
+ --> $DIR/invalid-doc-attr.rs:25 :11
81
93
|
82
94
LL | #[doc(inline)]
83
95
| ^^^^^^ only applicable on `use` items
@@ -87,5 +99,5 @@ LL | pub fn baz() {}
87
99
|
88
100
= note: read <https://doc.rust-lang.org/nightly/rustdoc/the-doc-attribute.html#inline-and-no_inline> for more information
89
101
90
- error: aborting due to 9 previous errors
102
+ error: aborting due to 10 previous errors
91
103
0 commit comments