1 error: unknown `doc` attribute `as_ptr`
2 --> $DIR/doc-attr.rs:7:7
7 note: the lint level is defined here
8 --> $DIR/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>
16 error: invalid `doc` attribute
17 --> $DIR/doc-attr.rs:12:7
22 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
23 = note: for more information, see issue #82730 <https://github.com/rust-lang/rust/issues/82730>
25 error: invalid `doc` attribute
26 --> $DIR/doc-attr.rs:15:7
28 LL | #[doc("hello", "bar")]
31 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
32 = note: for more information, see issue #82730 <https://github.com/rust-lang/rust/issues/82730>
34 error: invalid `doc` attribute
35 --> $DIR/doc-attr.rs:15:16
37 LL | #[doc("hello", "bar")]
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>
43 error: unknown `doc` attribute `foo::bar`
44 --> $DIR/doc-attr.rs:20:7
46 LL | #[doc(foo::bar, crate::bar::baz = "bye")]
49 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
50 = note: for more information, see issue #82730 <https://github.com/rust-lang/rust/issues/82730>
52 error: unknown `doc` attribute `crate::bar::baz`
53 --> $DIR/doc-attr.rs:20:17
55 LL | #[doc(foo::bar, crate::bar::baz = "bye")]
56 | ^^^^^^^^^^^^^^^^^^^^^^^
58 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
59 = note: for more information, see issue #82730 <https://github.com/rust-lang/rust/issues/82730>
61 error: unknown `doc` attribute `as_ptr`
62 --> $DIR/doc-attr.rs:3:8
67 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
68 = note: for more information, see issue #82730 <https://github.com/rust-lang/rust/issues/82730>
70 error: aborting due to 7 previous errors