fork/rust

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

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

master
3.0 KiB110 linesraw
1error: unused doc comment
2  --> $DIR/useless-comment.rs:9:1
3   |
4LL | /// foo
5   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations
6   |
7   = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion
8note: the lint level is defined here
9  --> $DIR/useless-comment.rs:3:9
10   |
11LL | #![deny(unused_doc_comments)]
12   |         ^^^^^^^^^^^^^^^^^^^
13
14error: unused doc comment
15  --> $DIR/useless-comment.rs:32:5
16   |
17LL |     /// bar
18   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations
19   |
20   = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion
21
22error: unused doc comment
23  --> $DIR/useless-comment.rs:13:5
24   |
25LL |     /// a
26   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
27LL |     let x = 12;
28   |     ----------- rustdoc does not generate documentation for statements
29   |
30   = help: use `//` for a plain comment
31
32error: unused doc comment
33  --> $DIR/useless-comment.rs:16:5
34   |
35LL | /     /// multi-line
36LL | |     /// doc comment
37LL | |     /// that is unused
38   | |______________________^
39LL | /     match x {
40LL | |         /// c
41LL | |         1 => {},
42LL | |         _ => {}
43LL | |     }
44   | |_____- rustdoc does not generate documentation for expressions
45   |
46   = help: use `//` for a plain comment
47
48error: unused doc comment
49  --> $DIR/useless-comment.rs:20:9
50   |
51LL |         /// c
52   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
53LL |         1 => {},
54   |         ------- rustdoc does not generate documentation for match arms
55   |
56   = help: use `//` for a plain comment
57
58error: unused doc comment
59  --> $DIR/useless-comment.rs:25:5
60   |
61LL |     /// foo
62   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
63LL |     unsafe {}
64   |     --------- rustdoc does not generate documentation for expressions
65   |
66   = help: use `//` for a plain comment
67
68error: unused doc comment
69  --> $DIR/useless-comment.rs:28:5
70   |
71LL |     #[doc = "foo"]
72   |     ^^^^^^^^^^^^^^
73LL |     #[doc = "bar"]
74LL |     3;
75   |     - rustdoc does not generate documentation for expressions
76   |
77   = help: use `//` for a plain comment
78
79error: unused doc comment
80  --> $DIR/useless-comment.rs:29:5
81   |
82LL |     #[doc = "bar"]
83   |     ^^^^^^^^^^^^^^
84LL |     3;
85   |     - rustdoc does not generate documentation for expressions
86   |
87   = help: use `//` for a plain comment
88
89error: unused doc comment
90  --> $DIR/useless-comment.rs:35:13
91   |
92LL |     let x = /** comment */ 47;
93   |             ^^^^^^^^^^^^^^ -- rustdoc does not generate documentation for expressions
94   |
95   = help: use `/* */` for a plain comment
96
97error: unused doc comment
98  --> $DIR/useless-comment.rs:37:5
99   |
100LL |       /// dox
101   |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
102LL | /     {
103LL | |
104LL | |     }
105   | |_____- rustdoc does not generate documentation for expressions
106   |
107   = help: use `//` for a plain comment
108
109error: aborting due to 10 previous errors
110