fork/rust

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

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

master
5.0 KiB113 linesraw
1error: this attribute can only be applied at the crate level
2  --> $DIR/invalid-doc-attr.rs:9:7
3   |
4LL | #[doc(test(no_crate_inject))]
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/invalid-doc-attr.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(test(no_crate_inject))]
19   |  +
20
21error: this attribute can only be applied to a `use` item
22  --> $DIR/invalid-doc-attr.rs:14:7
23   |
24LL | #[doc(inline)]
25   |       ^^^^^^ only applicable on `use` items
26...
27LL | pub fn foo() {}
28   | ------------ not a `use` item
29   |
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
33
34error: this attribute can only be applied at the crate level
35  --> $DIR/invalid-doc-attr.rs:20:12
36   |
37LL |     #![doc(test(no_crate_inject))]
38   |            ^^^^^^^^^^^^^^^^^^^^^
39   |
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
43
44error: conflicting doc inlining attributes
45  --> $DIR/invalid-doc-attr.rs:33:7
46   |
47LL | #[doc(inline)]
48   |       ^^^^^^ this attribute...
49LL | #[doc(no_inline)]
50   |       ^^^^^^^^^ ...conflicts with this attribute
51   |
52   = help: remove one of the conflicting attributes
53
54error: this attribute can only be applied to an `extern crate` item
55  --> $DIR/invalid-doc-attr.rs:39:7
56   |
57LL | #[doc(masked)]
58   |       ^^^^^^ only applicable on `extern crate` items
59...
60LL | pub struct Masked;
61   | ----------------- not an `extern crate` item
62   |
63   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
64   = note: for more information, see issue #82730 <https://github.com/rust-lang/rust/issues/82730>
65   = note: read <https://doc.rust-lang.org/unstable-book/language-features/doc-masked.html> for more information
66
67error: this attribute cannot be applied to an `extern crate self` item
68  --> $DIR/invalid-doc-attr.rs:44:7
69   |
70LL | #[doc(masked)]
71   |       ^^^^^^ not applicable on `extern crate self` items
72...
73LL | pub extern crate self as reexport;
74   | --------------------------------- `extern crate self` defined here
75   |
76   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
77   = note: for more information, see issue #82730 <https://github.com/rust-lang/rust/issues/82730>
78
79error: this attribute can only be applied to an `extern crate` item
80  --> $DIR/invalid-doc-attr.rs:5:8
81   |
82LL | #![doc(masked)]
83   |        ^^^^^^ only applicable on `extern crate` items
84   |
85   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
86   = note: for more information, see issue #82730 <https://github.com/rust-lang/rust/issues/82730>
87   = note: read <https://doc.rust-lang.org/unstable-book/language-features/doc-masked.html> for more information
88
89error: this attribute can only be applied at the crate level
90  --> $DIR/invalid-doc-attr.rs:24:11
91   |
92LL |     #[doc(test(no_crate_inject))]
93   |           ^^^^^^^^^^^^^^^^^^^^^
94   |
95   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
96   = note: for more information, see issue #82730 <https://github.com/rust-lang/rust/issues/82730>
97   = note: read <https://doc.rust-lang.org/nightly/rustdoc/the-doc-attribute.html#at-the-crate-level> for more information
98
99error: this attribute can only be applied to a `use` item
100  --> $DIR/invalid-doc-attr.rs:27:11
101   |
102LL |     #[doc(inline)]
103   |           ^^^^^^ only applicable on `use` items
104...
105LL |     pub fn baz() {}
106   |     ------------ not a `use` item
107   |
108   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
109   = note: for more information, see issue #82730 <https://github.com/rust-lang/rust/issues/82730>
110   = note: read <https://doc.rust-lang.org/nightly/rustdoc/the-doc-attribute.html#inline-and-no_inline> for more information
111
112error: aborting due to 9 previous errors
113