2017-02-07 20:05:30 +00:00
|
|
|
error: missing documentation for a type alias
|
2024-03-08 01:32:38 +00:00
|
|
|
--> tests/ui/missing_doc.rs:19:1
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | type Typedef = String;
|
2017-02-07 20:05:30 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2018-08-01 14:30:44 +00:00
|
|
|
= note: `-D clippy::missing-docs-in-private-items` implied by `-D warnings`
|
2023-08-01 12:02:21 +00:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::missing_docs_in_private_items)]`
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: missing documentation for a module
|
2024-03-08 01:32:38 +00:00
|
|
|
--> tests/ui/missing_doc.rs:22:1
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | mod module_no_dox {}
|
2017-02-07 20:05:30 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: missing documentation for a function
|
2024-03-08 01:32:38 +00:00
|
|
|
--> tests/ui/missing_doc.rs:28:1
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | fn foo3() {}
|
2017-02-07 20:05:30 +00:00
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: missing documentation for an enum
|
2024-03-08 01:32:38 +00:00
|
|
|
--> tests/ui/missing_doc.rs:42:1
|
2018-12-27 15:57:55 +00:00
|
|
|
|
|
|
|
|
LL | / enum Baz {
|
|
|
|
LL | | BazA { a: isize, b: isize },
|
|
|
|
LL | | BarB,
|
|
|
|
LL | | }
|
|
|
|
| |_^
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: missing documentation for a variant
|
2024-03-08 01:32:38 +00:00
|
|
|
--> tests/ui/missing_doc.rs:43:5
|
2018-12-27 15:57:55 +00:00
|
|
|
|
|
|
|
|
LL | BazA { a: isize, b: isize },
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: missing documentation for a struct field
|
2024-03-08 01:32:38 +00:00
|
|
|
--> tests/ui/missing_doc.rs:43:12
|
2018-12-27 15:57:55 +00:00
|
|
|
|
|
|
|
|
LL | BazA { a: isize, b: isize },
|
|
|
|
| ^^^^^^^^
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: missing documentation for a struct field
|
2024-03-08 01:32:38 +00:00
|
|
|
--> tests/ui/missing_doc.rs:43:22
|
2018-12-27 15:57:55 +00:00
|
|
|
|
|
|
|
|
LL | BazA { a: isize, b: isize },
|
|
|
|
| ^^^^^^^^
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: missing documentation for a variant
|
2024-03-08 01:32:38 +00:00
|
|
|
--> tests/ui/missing_doc.rs:44:5
|
2018-12-27 15:57:55 +00:00
|
|
|
|
|
|
|
|
LL | BarB,
|
|
|
|
| ^^^^
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: missing documentation for a constant
|
2024-03-08 01:32:38 +00:00
|
|
|
--> tests/ui/missing_doc.rs:68:1
|
2018-12-27 15:57:55 +00:00
|
|
|
|
|
|
|
|
LL | const FOO: u32 = 0;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: missing documentation for a static
|
2024-03-08 01:32:38 +00:00
|
|
|
--> tests/ui/missing_doc.rs:77:1
|
2018-12-27 15:57:55 +00:00
|
|
|
|
|
|
|
|
LL | static BAR: u32 = 0;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: missing documentation for a module
|
2024-03-08 01:32:38 +00:00
|
|
|
--> tests/ui/missing_doc.rs:86:1
|
2018-12-27 15:57:55 +00:00
|
|
|
|
|
|
|
|
LL | / mod internal_impl {
|
|
|
|
LL | | /// dox
|
|
|
|
LL | | pub fn documented() {}
|
|
|
|
LL | | pub fn undocumented1() {}
|
|
|
|
... |
|
|
|
|
LL | | }
|
|
|
|
LL | | }
|
|
|
|
| |_^
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: missing documentation for a function
|
2024-03-08 01:32:38 +00:00
|
|
|
--> tests/ui/missing_doc.rs:91:5
|
2018-12-27 15:57:55 +00:00
|
|
|
|
|
|
|
|
LL | fn undocumented3() {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: missing documentation for a function
|
2024-03-08 01:32:38 +00:00
|
|
|
--> tests/ui/missing_doc.rs:97:9
|
2018-12-27 15:57:55 +00:00
|
|
|
|
|
|
|
|
LL | fn also_undocumented2() {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2017-02-07 20:05:30 +00:00
|
|
|
|
2024-03-08 01:32:38 +00:00
|
|
|
error: missing documentation for a struct
|
|
|
|
--> tests/ui/missing_doc.rs:123:1
|
|
|
|
|
|
|
|
|
LL | / pub struct Test {
|
|
|
|
LL | | /// Dox
|
|
|
|
LL | | a: u8,
|
|
|
|
LL | | }
|
|
|
|
| |_^
|
|
|
|
|
|
|
|
error: missing documentation for a struct field
|
|
|
|
--> tests/ui/missing_doc.rs:125:5
|
|
|
|
|
|
|
|
|
LL | a: u8,
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
error: aborting due to 15 previous errors
|
2018-01-16 16:06:27 +00:00
|
|
|
|