1
1
error: this attribute can only be applied at the crate level
2
- --> $DIR/invalid-doc-attr.rs:4 :7
2
+ --> $DIR/invalid-doc-attr.rs:9 :7
3
3
|
4
4
LL | #[doc(test(no_crate_inject))]
5
5
| ^^^^^^^^^^^^^^^^^^^^^
@@ -19,7 +19,7 @@ LL | #![doc(test(no_crate_inject))]
19
19
| +
20
20
21
21
error: this attribute can only be applied to a `use` item
22
- --> $DIR/invalid-doc-attr.rs:9 :7
22
+ --> $DIR/invalid-doc-attr.rs:14 :7
23
23
|
24
24
LL | #[doc(inline)]
25
25
| ^^^^^^ only applicable on `use` items
@@ -32,7 +32,7 @@ LL | pub fn foo() {}
32
32
= note: read <https://doc.rust-lang.org/nightly/rustdoc/the-doc-attribute.html#inline-and-no_inline> for more information
33
33
34
34
error: this attribute can only be applied at the crate level
35
- --> $DIR/invalid-doc-attr.rs:15 :12
35
+ --> $DIR/invalid-doc-attr.rs:20 :12
36
36
|
37
37
LL | #![doc(test(no_crate_inject))]
38
38
| ^^^^^^^^^^^^^^^^^^^^^
@@ -42,7 +42,7 @@ LL | #![doc(test(no_crate_inject))]
42
42
= note: read <https://doc.rust-lang.org/nightly/rustdoc/the-doc-attribute.html#at-the-crate-level> for more information
43
43
44
44
error: conflicting doc inlining attributes
45
- --> $DIR/invalid-doc-attr.rs:28 :7
45
+ --> $DIR/invalid-doc-attr.rs:33 :7
46
46
|
47
47
LL | #[doc(inline)]
48
48
| ^^^^^^ this attribute...
@@ -51,8 +51,43 @@ LL | #[doc(no_inline)]
51
51
|
52
52
= help: remove one of the conflicting attributes
53
53
54
+ error: this attribute can only be applied to an `extern crate` item
55
+ --> $DIR/invalid-doc-attr.rs:39:7
56
+ |
57
+ LL | #[doc(masked)]
58
+ | ^^^^^^ only applicable on `extern crate` items
59
+ ...
60
+ LL | pub struct Masked;
61
+ | ----------------- not an `extern crate` item
62
+ |
63
+ = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
64
+ = note: for more information, see issue #82730 <https://github.com/rust-lang/rust/issues/82730>
65
+ = note: read <https://doc.rust-lang.org/unstable-book/language-features/doc-masked.html> for more information
66
+
67
+ error: this attribute cannot be applied to an `extern crate self` item
68
+ --> $DIR/invalid-doc-attr.rs:44:7
69
+ |
70
+ LL | #[doc(masked)]
71
+ | ^^^^^^ not applicable on `extern crate self` items
72
+ ...
73
+ LL | pub extern crate self as reexport;
74
+ | --------------------------------- `extern crate self` defined here
75
+ |
76
+ = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
77
+ = note: for more information, see issue #82730 <https://github.com/rust-lang/rust/issues/82730>
78
+
79
+ error: this attribute can only be applied to an `extern crate` item
80
+ --> $DIR/invalid-doc-attr.rs:5:8
81
+ |
82
+ LL | #![doc(masked)]
83
+ | ^^^^^^ only applicable on `extern crate` items
84
+ |
85
+ = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
86
+ = note: for more information, see issue #82730 <https://github.com/rust-lang/rust/issues/82730>
87
+ = note: read <https://doc.rust-lang.org/unstable-book/language-features/doc-masked.html> for more information
88
+
54
89
error: this attribute can only be applied at the crate level
55
- --> $DIR/invalid-doc-attr.rs:19 :11
90
+ --> $DIR/invalid-doc-attr.rs:24 :11
56
91
|
57
92
LL | #[doc(test(no_crate_inject))]
58
93
| ^^^^^^^^^^^^^^^^^^^^^
@@ -62,7 +97,7 @@ LL | #[doc(test(no_crate_inject))]
62
97
= note: read <https://doc.rust-lang.org/nightly/rustdoc/the-doc-attribute.html#at-the-crate-level> for more information
63
98
64
99
error: this attribute can only be applied to a `use` item
65
- --> $DIR/invalid-doc-attr.rs:22 :11
100
+ --> $DIR/invalid-doc-attr.rs:27 :11
66
101
|
67
102
LL | #[doc(inline)]
68
103
| ^^^^^^ only applicable on `use` items
@@ -74,5 +109,5 @@ LL | pub fn baz() {}
74
109
= note: for more information, see issue #82730 <https://github.com/rust-lang/rust/issues/82730>
75
110
= note: read <https://doc.rust-lang.org/nightly/rustdoc/the-doc-attribute.html#inline-and-no_inline> for more information
76
111
77
- error: aborting due to 6 previous errors
112
+ error: aborting due to 9 previous errors
78
113
0 commit comments