11error: 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
33 |
44LL | #[doc(test(no_crate_inject))]
55 | ^^^^^^^^^^^^^^^^^^^^^
@@ -19,7 +19,7 @@ LL | #![doc(test(no_crate_inject))]
1919 | +
2020
2121error: 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
2323 |
2424LL | #[doc(inline)]
2525 | ^^^^^^ only applicable on `use` items
@@ -32,7 +32,7 @@ LL | pub fn foo() {}
3232 = note: read <https://doc.rust-lang.org/nightly/rustdoc/the-doc-attribute.html#inline-and-no_inline> for more information
3333
3434error: 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
3636 |
3737LL | #![doc(test(no_crate_inject))]
3838 | ^^^^^^^^^^^^^^^^^^^^^
@@ -42,7 +42,7 @@ LL | #![doc(test(no_crate_inject))]
4242 = note: read <https://doc.rust-lang.org/nightly/rustdoc/the-doc-attribute.html#at-the-crate-level> for more information
4343
4444error: conflicting doc inlining attributes
45- --> $DIR/invalid-doc-attr.rs:28 :7
45+ --> $DIR/invalid-doc-attr.rs:33 :7
4646 |
4747LL | #[doc(inline)]
4848 | ^^^^^^ this attribute...
@@ -51,8 +51,43 @@ LL | #[doc(no_inline)]
5151 |
5252 = help: remove one of the conflicting attributes
5353
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+
5489error: 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
5691 |
5792LL | #[doc(test(no_crate_inject))]
5893 | ^^^^^^^^^^^^^^^^^^^^^
@@ -62,7 +97,7 @@ LL | #[doc(test(no_crate_inject))]
6297 = note: read <https://doc.rust-lang.org/nightly/rustdoc/the-doc-attribute.html#at-the-crate-level> for more information
6398
6499error: 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
66101 |
67102LL | #[doc(inline)]
68103 | ^^^^^^ only applicable on `use` items
@@ -74,5 +109,5 @@ LL | pub fn baz() {}
74109 = note: for more information, see issue #82730 <https://github.com/rust-lang/rust/issues/82730>
75110 = note: read <https://doc.rust-lang.org/nightly/rustdoc/the-doc-attribute.html#inline-and-no_inline> for more information
76111
77- error: aborting due to 6 previous errors
112+ error: aborting due to 9 previous errors
78113
0 commit comments