mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-10 15:14:29 +00:00
92 lines
2.1 KiB
Text
92 lines
2.1 KiB
Text
error: missing documentation for a type alias
|
|
--> tests/ui/missing_doc.rs:19:1
|
|
|
|
|
LL | type Typedef = String;
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: `-D clippy::missing-docs-in-private-items` implied by `-D warnings`
|
|
= help: to override `-D warnings` add `#[allow(clippy::missing_docs_in_private_items)]`
|
|
|
|
error: missing documentation for a module
|
|
--> tests/ui/missing_doc.rs:22:1
|
|
|
|
|
LL | mod module_no_dox {}
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: missing documentation for a function
|
|
--> tests/ui/missing_doc.rs:28:1
|
|
|
|
|
LL | fn foo3() {}
|
|
| ^^^^^^^^^^^^
|
|
|
|
error: missing documentation for an enum
|
|
--> tests/ui/missing_doc.rs:42:1
|
|
|
|
|
LL | / enum Baz {
|
|
LL | | BazA { a: isize, b: isize },
|
|
LL | | BarB,
|
|
LL | | }
|
|
| |_^
|
|
|
|
error: missing documentation for a variant
|
|
--> tests/ui/missing_doc.rs:43:5
|
|
|
|
|
LL | BazA { a: isize, b: isize },
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: missing documentation for a struct field
|
|
--> tests/ui/missing_doc.rs:43:12
|
|
|
|
|
LL | BazA { a: isize, b: isize },
|
|
| ^^^^^^^^
|
|
|
|
error: missing documentation for a struct field
|
|
--> tests/ui/missing_doc.rs:43:22
|
|
|
|
|
LL | BazA { a: isize, b: isize },
|
|
| ^^^^^^^^
|
|
|
|
error: missing documentation for a variant
|
|
--> tests/ui/missing_doc.rs:44:5
|
|
|
|
|
LL | BarB,
|
|
| ^^^^
|
|
|
|
error: missing documentation for a constant
|
|
--> tests/ui/missing_doc.rs:68:1
|
|
|
|
|
LL | const FOO: u32 = 0;
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: missing documentation for a static
|
|
--> tests/ui/missing_doc.rs:77:1
|
|
|
|
|
LL | static BAR: u32 = 0;
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: missing documentation for a module
|
|
--> tests/ui/missing_doc.rs:86:1
|
|
|
|
|
LL | / mod internal_impl {
|
|
LL | | /// dox
|
|
LL | | pub fn documented() {}
|
|
LL | | pub fn undocumented1() {}
|
|
... |
|
|
LL | | }
|
|
LL | | }
|
|
| |_^
|
|
|
|
error: missing documentation for a function
|
|
--> tests/ui/missing_doc.rs:91:5
|
|
|
|
|
LL | fn undocumented3() {}
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: missing documentation for a function
|
|
--> tests/ui/missing_doc.rs:97:9
|
|
|
|
|
LL | fn also_undocumented2() {}
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: aborting due to 13 previous errors
|
|
|