2019-01-24 14:49:03 -06:00
|
|
|
error: unused doc comment
|
|
|
|
--> $DIR/useless_comment.rs:9:1
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-01-24 14:49:03 -06:00
|
|
|
LL | /// foo //~ ERROR unused doc comment
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
LL | mac!();
|
|
|
|
| ------- rustdoc does not generate documentation for macro expansions
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
note: lint level defined here
|
2019-01-24 14:49:03 -06:00
|
|
|
--> $DIR/useless_comment.rs:3:9
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | #![deny(unused_doc_comments)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
2019-01-24 14:49:03 -06:00
|
|
|
= help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion
|
2018-08-08 07:28:26 -05:00
|
|
|
|
2019-01-24 14:49:03 -06:00
|
|
|
error: unused doc comment
|
|
|
|
--> $DIR/useless_comment.rs:13:5
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-01-24 14:49:03 -06:00
|
|
|
LL | /// a //~ ERROR unused doc comment
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
LL | let x = 12;
|
|
|
|
| ----------- rustdoc does not generate documentation for statements
|
|
|
|
|
|
|
|
error: unused doc comment
|
|
|
|
--> $DIR/useless_comment.rs:16:5
|
|
|
|
|
|
|
|
|
LL | / /// multi-line //~ unused doc comment
|
2019-01-23 12:44:43 -06:00
|
|
|
LL | | /// doc comment
|
|
|
|
LL | | /// that is unused
|
|
|
|
| |______________________^
|
2019-01-24 14:49:03 -06:00
|
|
|
LL | / match x {
|
|
|
|
LL | | /// c //~ ERROR unused doc comment
|
|
|
|
LL | | 1 => {},
|
|
|
|
LL | | _ => {}
|
|
|
|
LL | | }
|
|
|
|
| |_____- rustdoc does not generate documentation for expressions
|
2018-08-08 07:28:26 -05:00
|
|
|
|
2019-01-24 14:49:03 -06:00
|
|
|
error: unused doc comment
|
|
|
|
--> $DIR/useless_comment.rs:20:9
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-01-24 14:49:03 -06:00
|
|
|
LL | /// c //~ ERROR unused doc comment
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
LL | 1 => {},
|
|
|
|
| ------- rustdoc does not generate documentation for match arms
|
2018-08-08 07:28:26 -05:00
|
|
|
|
2019-01-24 14:49:03 -06:00
|
|
|
error: unused doc comment
|
|
|
|
--> $DIR/useless_comment.rs:25:5
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-01-24 14:49:03 -06:00
|
|
|
LL | /// foo //~ ERROR unused doc comment
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
LL | unsafe {}
|
|
|
|
| --------- rustdoc does not generate documentation for expressions
|
2018-08-08 07:28:26 -05:00
|
|
|
|
2019-01-24 14:49:03 -06:00
|
|
|
error: unused doc comment
|
|
|
|
--> $DIR/useless_comment.rs:28:5
|
2019-01-23 12:44:43 -06:00
|
|
|
|
|
2019-01-24 14:49:03 -06:00
|
|
|
LL | #[doc = "foo"] //~ ERROR unused doc comment
|
2019-01-23 12:44:43 -06:00
|
|
|
| ^^^^^^^^^^^^^^
|
2019-01-24 14:49:03 -06:00
|
|
|
LL | #[doc = "bar"] //~ ERROR unused doc comment
|
|
|
|
LL | 3;
|
|
|
|
| - rustdoc does not generate documentation for expressions
|
2019-01-23 12:44:43 -06:00
|
|
|
|
2019-01-24 14:49:03 -06:00
|
|
|
error: unused doc comment
|
|
|
|
--> $DIR/useless_comment.rs:29:5
|
2019-01-23 12:44:43 -06:00
|
|
|
|
|
2019-01-24 14:49:03 -06:00
|
|
|
LL | #[doc = "bar"] //~ ERROR unused doc comment
|
2019-01-23 12:44:43 -06:00
|
|
|
| ^^^^^^^^^^^^^^
|
2019-01-24 14:49:03 -06:00
|
|
|
LL | 3;
|
|
|
|
| - rustdoc does not generate documentation for expressions
|
|
|
|
|
|
|
|
error: unused doc comment
|
|
|
|
--> $DIR/useless_comment.rs:32:5
|
|
|
|
|
|
|
|
|
LL | /// bar //~ ERROR unused doc comment
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
LL | mac!();
|
|
|
|
| ------- rustdoc does not generate documentation for macro expansions
|
|
|
|
|
|
|
|
|
= 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:35:13
|
|
|
|
|
|
|
|
|
LL | let x = /** comment */ 47; //~ ERROR unused doc comment
|
|
|
|
| ^^^^^^^^^^^^^^ -- rustdoc does not generate documentation for expressions
|
|
|
|
|
|
|
|
error: unused doc comment
|
|
|
|
--> $DIR/useless_comment.rs:37:5
|
|
|
|
|
|
|
|
|
LL | /// dox //~ ERROR unused doc comment
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
LL | / {
|
|
|
|
LL | |
|
|
|
|
LL | | }
|
|
|
|
| |_____- rustdoc does not generate documentation for expressions
|
2019-01-23 12:44:43 -06:00
|
|
|
|
2019-01-24 14:49:03 -06:00
|
|
|
error: aborting due to 10 previous errors
|
2018-08-08 07:28:26 -05:00
|
|
|
|