rust/tests/ui/lint/unused/useless-comment.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

111 lines
3.0 KiB
Plaintext
Raw Normal View History

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