fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
1.6 KiB40 linesraw
1error: this attribute can only be applied at the crate level
2  --> $DIR/doc_cfg_hide.rs:9:7
3   |
4LL | #[doc(cfg_hide(doc))]
5   |       ^^^^^^^^^^^^^
6   |
7   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
8   = note: for more information, see issue #82730 <https://github.com/rust-lang/rust/issues/82730>
9   = note: read <https://doc.rust-lang.org/nightly/rustdoc/the-doc-attribute.html#at-the-crate-level> for more information
10note: the lint level is defined here
11  --> $DIR/doc_cfg_hide.rs:2:9
12   |
13LL | #![deny(warnings)]
14   |         ^^^^^^^^
15   = note: `#[deny(invalid_doc_attributes)]` implied by `#[deny(warnings)]`
16help: to apply to the crate, use an inner attribute
17   |
18LL | #![doc(cfg_hide(doc))]
19   |  +
20
21error: `#[doc(cfg_hide(...)]` takes a list of attributes
22  --> $DIR/doc_cfg_hide.rs:4:8
23   |
24LL | #![doc(cfg_hide = "test")]
25   |        ^^^^^^^^^^^^^^^^^
26   |
27   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
28   = note: for more information, see issue #82730 <https://github.com/rust-lang/rust/issues/82730>
29
30error: `#[doc(cfg_hide(...)]` takes a list of attributes
31  --> $DIR/doc_cfg_hide.rs:6:8
32   |
33LL | #![doc(cfg_hide)]
34   |        ^^^^^^^^
35   |
36   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
37   = note: for more information, see issue #82730 <https://github.com/rust-lang/rust/issues/82730>
38
39error: aborting due to 3 previous errors
40