2020-02-22 00:01:48 +00:00
|
|
|
error: unused doc comment
|
2020-02-15 12:29:45 +00:00
|
|
|
--> $DIR/useless-comment.rs:9:1
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2020-02-15 12:29:45 +00:00
|
|
|
LL | /// foo
|
2020-04-22 04:09:24 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2022-09-18 15:55:36 +00:00
|
|
|
= help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion
|
2020-01-22 23:57:38 +00:00
|
|
|
note: the lint level is defined here
|
2019-03-12 00:49:17 +00:00
|
|
|
--> $DIR/useless-comment.rs:3:9
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
|
LL | #![deny(unused_doc_comments)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
2019-01-24 20:49:03 +00:00
|
|
|
|
2020-02-22 00:01:48 +00:00
|
|
|
error: unused doc comment
|
2020-02-15 12:29:45 +00:00
|
|
|
--> $DIR/useless-comment.rs:32:5
|
|
|
|
|
|
|
|
|
LL | /// bar
|
2020-04-22 04:09:24 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations
|
2020-02-22 00:01:48 +00:00
|
|
|
|
|
|
|
|
= help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion
|
2020-02-15 12:29:45 +00:00
|
|
|
|
|
|
|
error: unused doc comment
|
|
|
|
--> $DIR/useless-comment.rs:13:5
|
|
|
|
|
|
|
|
|
LL | /// a
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
LL | let x = 12;
|
|
|
|
| ----------- rustdoc does not generate documentation for statements
|
2021-07-02 16:00:08 +00:00
|
|
|
|
|
|
|
|
= help: use `//` for a plain comment
|
2020-02-15 12:29:45 +00:00
|
|
|
|
2019-01-24 20:49:03 +00:00
|
|
|
error: unused doc comment
|
2019-03-12 00:49:17 +00:00
|
|
|
--> $DIR/useless-comment.rs:16:5
|
2019-01-24 20:49:03 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | / /// multi-line
|
2019-01-23 18:44:43 +00:00
|
|
|
LL | | /// doc comment
|
|
|
|
LL | | /// that is unused
|
|
|
|
| |______________________^
|
2019-01-24 20:49:03 +00:00
|
|
|
LL | / match x {
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | | /// c
|
2019-01-24 20:49:03 +00:00
|
|
|
LL | | 1 => {},
|
|
|
|
LL | | _ => {}
|
|
|
|
LL | | }
|
|
|
|
| |_____- rustdoc does not generate documentation for expressions
|
2021-07-02 16:00:08 +00:00
|
|
|
|
|
|
|
|
= help: use `//` for a plain comment
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2019-01-24 20:49:03 +00:00
|
|
|
error: unused doc comment
|
2019-03-12 00:49:17 +00:00
|
|
|
--> $DIR/useless-comment.rs:20:9
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | /// c
|
2019-01-24 20:49:03 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
LL | 1 => {},
|
|
|
|
| ------- rustdoc does not generate documentation for match arms
|
2021-07-02 16:00:08 +00:00
|
|
|
|
|
|
|
|
= help: use `//` for a plain comment
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2019-01-24 20:49:03 +00:00
|
|
|
error: unused doc comment
|
2019-03-12 00:49:17 +00:00
|
|
|
--> $DIR/useless-comment.rs:25:5
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | /// foo
|
2019-01-24 20:49:03 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
LL | unsafe {}
|
|
|
|
| --------- rustdoc does not generate documentation for expressions
|
2021-07-02 16:00:08 +00:00
|
|
|
|
|
|
|
|
= help: use `//` for a plain comment
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2019-01-24 20:49:03 +00:00
|
|
|
error: unused doc comment
|
2019-03-12 00:49:17 +00:00
|
|
|
--> $DIR/useless-comment.rs:28:5
|
2019-01-23 18:44:43 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | #[doc = "foo"]
|
2019-01-23 18:44:43 +00:00
|
|
|
| ^^^^^^^^^^^^^^
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | #[doc = "bar"]
|
2019-01-24 20:49:03 +00:00
|
|
|
LL | 3;
|
|
|
|
| - rustdoc does not generate documentation for expressions
|
2021-07-02 16:00:08 +00:00
|
|
|
|
|
|
|
|
= help: use `//` for a plain comment
|
2019-01-23 18:44:43 +00:00
|
|
|
|
2019-01-24 20:49:03 +00:00
|
|
|
error: unused doc comment
|
2019-03-12 00:49:17 +00:00
|
|
|
--> $DIR/useless-comment.rs:29:5
|
2019-01-23 18:44:43 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | #[doc = "bar"]
|
2019-01-23 18:44:43 +00:00
|
|
|
| ^^^^^^^^^^^^^^
|
2019-01-24 20:49:03 +00:00
|
|
|
LL | 3;
|
|
|
|
| - rustdoc does not generate documentation for expressions
|
2021-07-02 16:00:08 +00:00
|
|
|
|
|
|
|
|
= help: use `//` for a plain comment
|
2019-01-24 20:49:03 +00:00
|
|
|
|
|
|
|
error: unused doc comment
|
2019-03-12 00:49:17 +00:00
|
|
|
--> $DIR/useless-comment.rs:35:13
|
2019-01-24 20:49:03 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | let x = /** comment */ 47;
|
2019-01-24 20:49:03 +00:00
|
|
|
| ^^^^^^^^^^^^^^ -- rustdoc does not generate documentation for expressions
|
2021-07-02 16:00:08 +00:00
|
|
|
|
|
|
|
|
= help: use `/* */` for a plain comment
|
2019-01-24 20:49:03 +00:00
|
|
|
|
|
|
|
error: unused doc comment
|
2019-03-12 00:49:17 +00:00
|
|
|
--> $DIR/useless-comment.rs:37:5
|
2019-01-24 20:49:03 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | /// dox
|
2019-01-24 20:49:03 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
LL | / {
|
|
|
|
LL | |
|
|
|
|
LL | | }
|
|
|
|
| |_____- rustdoc does not generate documentation for expressions
|
2021-07-02 16:00:08 +00:00
|
|
|
|
|
|
|
|
= help: use `//` for a plain comment
|
2019-01-23 18:44:43 +00:00
|
|
|
|
2020-02-15 12:29:45 +00:00
|
|
|
error: aborting due to 10 previous errors
|
2018-08-08 12:28:26 +00:00
|
|
|
|