|
1 | 1 | error: unused doc comment |
2 | | - --> $DIR/useless-comment.rs:9:1 |
| 2 | + --> $DIR/useless-comment.rs:13:5 |
3 | 3 | | |
4 | | -LL | /// foo |
5 | | - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
6 | | -LL | mac!(); |
7 | | - | ------- rustdoc does not generate documentation for macro expansions |
| 4 | +LL | /// a |
| 5 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 6 | +LL | let x = 12; |
| 7 | + | ----------- rustdoc does not generate documentation for statements |
8 | 8 | | |
9 | 9 | note: the lint level is defined here |
10 | 10 | --> $DIR/useless-comment.rs:3:9 |
11 | 11 | | |
12 | 12 | LL | #![deny(unused_doc_comments)] |
13 | 13 | | ^^^^^^^^^^^^^^^^^^^ |
14 | | - = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion |
15 | | - |
16 | | -error: unused doc comment |
17 | | - --> $DIR/useless-comment.rs:13:5 |
18 | | - | |
19 | | -LL | /// a |
20 | | - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
21 | | -LL | let x = 12; |
22 | | - | ----------- rustdoc does not generate documentation for statements |
23 | 14 |
|
24 | 15 | error: unused doc comment |
25 | 16 | --> $DIR/useless-comment.rs:16:5 |
@@ -68,16 +59,6 @@ LL | #[doc = "bar"] |
68 | 59 | LL | 3; |
69 | 60 | | - rustdoc does not generate documentation for expressions |
70 | 61 |
|
71 | | -error: unused doc comment |
72 | | - --> $DIR/useless-comment.rs:32:5 |
73 | | - | |
74 | | -LL | /// bar |
75 | | - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
76 | | -LL | mac!(); |
77 | | - | ------- rustdoc does not generate documentation for macro expansions |
78 | | - | |
79 | | - = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion |
80 | | - |
81 | 62 | error: unused doc comment |
82 | 63 | --> $DIR/useless-comment.rs:35:13 |
83 | 64 | | |
|
94 | 75 | LL | | } |
95 | 76 | | |_____- rustdoc does not generate documentation for expressions |
96 | 77 |
|
97 | | -error: aborting due to 10 previous errors |
| 78 | +error: aborting due to 8 previous errors |
98 | 79 |
|
0 commit comments