1- error: this attribute can only be applied at the crate level
1+ error: this attribute can only be applied at module level
22 --> $DIR/invalid-doc-attr.rs:7:7
33 |
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
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+ |
417LL | #[doc(test(no_crate_inject))]
518 | ^^^^^^^^^^^^^^^^^^^^^
619 |
720 = 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
921help: to apply to the crate, use an inner attribute
1022 |
1123LL | #![doc(test(no_crate_inject))]
1224 | +
1325
1426error: 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
1628 |
1729LL | #[doc(inline)]
1830 | ^^^^^^ only applicable on `use` items
@@ -23,15 +35,15 @@ LL | pub fn foo() {}
2335 = note: read <https://doc.rust-lang.org/nightly/rustdoc/the-doc-attribute.html#inline-and-no_inline> for more information
2436
2537error: 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
2739 |
2840LL | #![doc(test(no_crate_inject))]
2941 | ^^^^^^^^^^^^^^^^^^^^^
3042 |
3143 = note: read <https://doc.rust-lang.org/nightly/rustdoc/the-doc-attribute.html#at-the-crate-level> for more information
3244
3345error: conflicting doc inlining attributes
34- --> $DIR/invalid-doc-attr.rs:26 :7
46+ --> $DIR/invalid-doc-attr.rs:30 :7
3547 |
3648LL | #[doc(inline)]
3749 | ^^^^^^ this attribute...
@@ -41,7 +53,7 @@ LL | #[doc(no_inline)]
4153 = help: remove one of the conflicting attributes
4254
4355error: 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
4557 |
4658LL | #[doc(masked)]
4759 | ^^^^^^ only applicable on `extern crate` items
@@ -52,7 +64,7 @@ LL | pub struct Masked;
5264 = note: read <https://doc.rust-lang.org/unstable-book/language-features/doc-masked.html> for more information
5365
5466error: 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
5668 |
5769LL | #[doc(masked)]
5870 | ^^^^^^ not applicable on `extern crate self` items
@@ -69,15 +81,15 @@ LL | #![doc(masked)]
6981 = note: read <https://doc.rust-lang.org/unstable-book/language-features/doc-masked.html> for more information
7082
7183error: 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
7385 |
7486LL | #[doc(test(no_crate_inject))]
7587 | ^^^^^^^^^^^^^^^^^^^^^
7688 |
7789 = note: read <https://doc.rust-lang.org/nightly/rustdoc/the-doc-attribute.html#at-the-crate-level> for more information
7890
7991error: 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
8193 |
8294LL | #[doc(inline)]
8395 | ^^^^^^ only applicable on `use` items
@@ -87,5 +99,5 @@ LL | pub fn baz() {}
8799 |
88100 = note: read <https://doc.rust-lang.org/nightly/rustdoc/the-doc-attribute.html#inline-and-no_inline> for more information
89101
90- error: aborting due to 9 previous errors
102+ error: aborting due to 10 previous errors
91103
0 commit comments