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-
141error: 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
163 |
174LL | #[doc(test(no_crate_inject))]
185 | ^^^^^^^^^^^^^^^^^^^^^
196 |
207 = 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
219help: to apply to the crate, use an inner attribute
2210 |
2311LL | #![doc(test(no_crate_inject))]
2412 | +
2513
2614error: 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
2816 |
2917LL | #[doc(inline)]
3018 | ^^^^^^ only applicable on `use` items
@@ -35,15 +23,15 @@ LL | pub fn foo() {}
3523 = note: read <https://doc.rust-lang.org/nightly/rustdoc/the-doc-attribute.html#inline-and-no_inline> for more information
3624
3725error: 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
3927 |
4028LL | #![doc(test(no_crate_inject))]
4129 | ^^^^^^^^^^^^^^^^^^^^^
4230 |
4331 = note: read <https://doc.rust-lang.org/nightly/rustdoc/the-doc-attribute.html#at-the-crate-level> for more information
4432
4533error: conflicting doc inlining attributes
46- --> $DIR/invalid-doc-attr.rs:30 :7
34+ --> $DIR/invalid-doc-attr.rs:26 :7
4735 |
4836LL | #[doc(inline)]
4937 | ^^^^^^ this attribute...
@@ -53,7 +41,7 @@ LL | #[doc(no_inline)]
5341 = help: remove one of the conflicting attributes
5442
5543error: 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
5745 |
5846LL | #[doc(masked)]
5947 | ^^^^^^ only applicable on `extern crate` items
@@ -64,7 +52,7 @@ LL | pub struct Masked;
6452 = note: read <https://doc.rust-lang.org/unstable-book/language-features/doc-masked.html> for more information
6553
6654error: 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
6856 |
6957LL | #[doc(masked)]
7058 | ^^^^^^ not applicable on `extern crate self` items
@@ -81,15 +69,15 @@ LL | #![doc(masked)]
8169 = note: read <https://doc.rust-lang.org/unstable-book/language-features/doc-masked.html> for more information
8270
8371error: 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
8573 |
8674LL | #[doc(test(no_crate_inject))]
8775 | ^^^^^^^^^^^^^^^^^^^^^
8876 |
8977 = note: read <https://doc.rust-lang.org/nightly/rustdoc/the-doc-attribute.html#at-the-crate-level> for more information
9078
9179error: 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
9381 |
9482LL | #[doc(inline)]
9583 | ^^^^^^ only applicable on `use` items
@@ -99,5 +87,5 @@ LL | pub fn baz() {}
9987 |
10088 = note: read <https://doc.rust-lang.org/nightly/rustdoc/the-doc-attribute.html#inline-and-no_inline> for more information
10189
102- error: aborting due to 10 previous errors
90+ error: aborting due to 9 previous errors
10391
0 commit comments