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