mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-15 01:17:16 +00:00
91 lines
2 KiB
Text
91 lines
2 KiB
Text
error: missing documentation for a type alias
|
|
--> $DIR/missing_doc.rs:16:1
|
|
|
|
|
LL | type Typedef = String;
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: `-D clippy::missing-docs-in-private-items` implied by `-D warnings`
|
|
|
|
error: missing documentation for a module
|
|
--> $DIR/missing_doc.rs:19:1
|
|
|
|
|
LL | mod module_no_dox {}
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: missing documentation for a function
|
|
--> $DIR/missing_doc.rs:25:1
|
|
|
|
|
LL | fn foo3() {}
|
|
| ^^^^^^^^^^^^
|
|
|
|
error: missing documentation for an enum
|
|
--> $DIR/missing_doc.rs:39:1
|
|
|
|
|
LL | / enum Baz {
|
|
LL | | BazA { a: isize, b: isize },
|
|
LL | | BarB,
|
|
LL | | }
|
|
| |_^
|
|
|
|
error: missing documentation for a variant
|
|
--> $DIR/missing_doc.rs:40:5
|
|
|
|
|
LL | BazA { a: isize, b: isize },
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: missing documentation for a struct field
|
|
--> $DIR/missing_doc.rs:40:12
|
|
|
|
|
LL | BazA { a: isize, b: isize },
|
|
| ^^^^^^^^
|
|
|
|
error: missing documentation for a struct field
|
|
--> $DIR/missing_doc.rs:40:22
|
|
|
|
|
LL | BazA { a: isize, b: isize },
|
|
| ^^^^^^^^
|
|
|
|
error: missing documentation for a variant
|
|
--> $DIR/missing_doc.rs:41:5
|
|
|
|
|
LL | BarB,
|
|
| ^^^^
|
|
|
|
error: missing documentation for a constant
|
|
--> $DIR/missing_doc.rs:65:1
|
|
|
|
|
LL | const FOO: u32 = 0;
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: missing documentation for a static
|
|
--> $DIR/missing_doc.rs:74:1
|
|
|
|
|
LL | static BAR: u32 = 0;
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: missing documentation for a module
|
|
--> $DIR/missing_doc.rs:83:1
|
|
|
|
|
LL | / mod internal_impl {
|
|
LL | | /// dox
|
|
LL | | pub fn documented() {}
|
|
LL | | pub fn undocumented1() {}
|
|
... |
|
|
LL | | }
|
|
LL | | }
|
|
| |_^
|
|
|
|
error: missing documentation for a function
|
|
--> $DIR/missing_doc.rs:88:5
|
|
|
|
|
LL | fn undocumented3() {}
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: missing documentation for a function
|
|
--> $DIR/missing_doc.rs:94:9
|
|
|
|
|
LL | fn also_undocumented2() {}
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: aborting due to 13 previous errors
|
|
|