1 error: this attribute can only be applied at the crate level
2 --> $DIR/invalid-doc-attr.rs:4:7
4 LL | #[doc(test(no_crate_inject))]
5 | ^^^^^^^^^^^^^^^^^^^^^
7 note: the lint level is defined here
8 --> $DIR/invalid-doc-attr.rs:2:9
10 LL | #![deny(warnings)]
12 = note: `#[deny(invalid_doc_attributes)]` implied by `#[deny(warnings)]`
13 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
14 = note: for more information, see issue #82730 <https://github.com/rust-lang/rust/issues/82730>
15 = note: read https://doc.rust-lang.org/nightly/rustdoc/the-doc-attribute.html#at-the-crate-level for more information
16 help: to apply to the crate, use an inner attribute
18 LL | #![doc(test(no_crate_inject))]
21 error: this attribute can only be applied to a `use` item
22 --> $DIR/invalid-doc-attr.rs:9:7
25 | ^^^^^^ only applicable on `use` items
28 | ------------ not a `use` item
30 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
31 = note: for more information, see issue #82730 <https://github.com/rust-lang/rust/issues/82730>
32 = note: read https://doc.rust-lang.org/nightly/rustdoc/the-doc-attribute.html#inline-and-no_inline for more information
34 error: this attribute can only be applied at the crate level
35 --> $DIR/invalid-doc-attr.rs:15:12
37 LL | #![doc(test(no_crate_inject))]
38 | ^^^^^^^^^^^^^^^^^^^^^
40 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
41 = note: for more information, see issue #82730 <https://github.com/rust-lang/rust/issues/82730>
42 = note: read https://doc.rust-lang.org/nightly/rustdoc/the-doc-attribute.html#at-the-crate-level for more information
44 error: conflicting doc inlining attributes
45 --> $DIR/invalid-doc-attr.rs:28:7
48 | ^^^^^^ this attribute...
49 LL | #[doc(no_inline)]
50 | ^^^^^^^^^ ...conflicts with this attribute
52 = help: remove one of the conflicting attributes
54 error: this attribute can only be applied at the crate level
55 --> $DIR/invalid-doc-attr.rs:19:11
57 LL | #[doc(test(no_crate_inject))]
58 | ^^^^^^^^^^^^^^^^^^^^^
60 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
61 = note: for more information, see issue #82730 <https://github.com/rust-lang/rust/issues/82730>
62 = note: read https://doc.rust-lang.org/nightly/rustdoc/the-doc-attribute.html#at-the-crate-level for more information
64 error: this attribute can only be applied to a `use` item
65 --> $DIR/invalid-doc-attr.rs:22:11
68 | ^^^^^^ only applicable on `use` items
71 | ------------ not a `use` item
73 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
74 = note: for more information, see issue #82730 <https://github.com/rust-lang/rust/issues/82730>
75 = note: read https://doc.rust-lang.org/nightly/rustdoc/the-doc-attribute.html#inline-and-no_inline for more information
77 error: aborting due to 6 previous errors