rust-clippy/tests/ui/missing_doc.stderr

160 lines
3.6 KiB
Text
Raw Normal View History

error: missing documentation for a type alias
2022-10-19 18:34:00 +00:00
--> $DIR/missing_doc.rs:16:1
|
2018-12-27 15:57:55 +00:00
LL | type Typedef = String;
| ^^^^^^^^^^^^^^^^^^^^^^
|
= note: `-D clippy::missing-docs-in-private-items` implied by `-D warnings`
error: missing documentation for a type alias
2022-10-19 18:34:00 +00:00
--> $DIR/missing_doc.rs:17:1
|
2018-12-27 15:57:55 +00:00
LL | pub type PubTypedef = String;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: missing documentation for a module
2022-10-19 18:34:00 +00:00
--> $DIR/missing_doc.rs:19:1
|
2018-12-27 15:57:55 +00:00
LL | mod module_no_dox {}
| ^^^^^^^^^^^^^^^^^^^^
error: missing documentation for a module
2022-10-19 18:34:00 +00:00
--> $DIR/missing_doc.rs:20:1
|
2018-12-27 15:57:55 +00:00
LL | pub mod pub_module_no_dox {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: missing documentation for a function
2022-10-19 18:34:00 +00:00
--> $DIR/missing_doc.rs:24:1
|
2018-12-27 15:57:55 +00:00
LL | pub fn foo2() {}
| ^^^^^^^^^^^^^^^^
error: missing documentation for a function
2022-10-19 18:34:00 +00:00
--> $DIR/missing_doc.rs:25:1
|
2018-12-27 15:57:55 +00:00
LL | fn foo3() {}
| ^^^^^^^^^^^^
error: missing documentation for an enum
2022-10-19 18:34:00 +00:00
--> $DIR/missing_doc.rs:39:1
2018-12-27 15:57:55 +00:00
|
LL | / enum Baz {
LL | | BazA { a: isize, b: isize },
LL | | BarB,
LL | | }
| |_^
error: missing documentation for a variant
2022-10-19 18:34:00 +00:00
--> $DIR/missing_doc.rs:40:5
2018-12-27 15:57:55 +00:00
|
LL | BazA { a: isize, b: isize },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: missing documentation for a struct field
2022-10-19 18:34:00 +00:00
--> $DIR/missing_doc.rs:40:12
2018-12-27 15:57:55 +00:00
|
LL | BazA { a: isize, b: isize },
| ^^^^^^^^
error: missing documentation for a struct field
2022-10-19 18:34:00 +00:00
--> $DIR/missing_doc.rs:40:22
2018-12-27 15:57:55 +00:00
|
LL | BazA { a: isize, b: isize },
| ^^^^^^^^
error: missing documentation for a variant
2022-10-19 18:34:00 +00:00
--> $DIR/missing_doc.rs:41:5
2018-12-27 15:57:55 +00:00
|
LL | BarB,
| ^^^^
error: missing documentation for an enum
2022-10-19 18:34:00 +00:00
--> $DIR/missing_doc.rs:44:1
2018-12-27 15:57:55 +00:00
|
LL | / pub enum PubBaz {
LL | | PubBazA { a: isize },
LL | | }
| |_^
error: missing documentation for a variant
2022-10-19 18:34:00 +00:00
--> $DIR/missing_doc.rs:45:5
2018-12-27 15:57:55 +00:00
|
LL | PubBazA { a: isize },
| ^^^^^^^^^^^^^^^^^^^^
error: missing documentation for a struct field
2022-10-19 18:34:00 +00:00
--> $DIR/missing_doc.rs:45:15
2018-12-27 15:57:55 +00:00
|
LL | PubBazA { a: isize },
| ^^^^^^^^
error: missing documentation for a constant
2022-10-19 18:34:00 +00:00
--> $DIR/missing_doc.rs:65:1
2018-12-27 15:57:55 +00:00
|
LL | const FOO: u32 = 0;
| ^^^^^^^^^^^^^^^^^^^
error: missing documentation for a constant
2022-10-19 18:34:00 +00:00
--> $DIR/missing_doc.rs:72:1
2018-12-27 15:57:55 +00:00
|
LL | pub const FOO4: u32 = 0;
| ^^^^^^^^^^^^^^^^^^^^^^^^
error: missing documentation for a static
2022-10-19 18:34:00 +00:00
--> $DIR/missing_doc.rs:74:1
2018-12-27 15:57:55 +00:00
|
LL | static BAR: u32 = 0;
| ^^^^^^^^^^^^^^^^^^^^
error: missing documentation for a static
2022-10-19 18:34:00 +00:00
--> $DIR/missing_doc.rs:81:1
2018-12-27 15:57:55 +00:00
|
LL | pub static BAR4: u32 = 0;
| ^^^^^^^^^^^^^^^^^^^^^^^^^
error: missing documentation for a module
2022-10-19 18:34:00 +00:00
--> $DIR/missing_doc.rs:83: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 | | }
| |_^
error: missing documentation for a function
2022-10-19 18:34:00 +00:00
--> $DIR/missing_doc.rs:86:5
2018-12-27 15:57:55 +00:00
|
LL | pub fn undocumented1() {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^
error: missing documentation for a function
2022-10-19 18:34:00 +00:00
--> $DIR/missing_doc.rs:87:5
2018-12-27 15:57:55 +00:00
|
LL | pub fn undocumented2() {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^
error: missing documentation for a function
2022-10-19 18:34:00 +00:00
--> $DIR/missing_doc.rs:88:5
2018-12-27 15:57:55 +00:00
|
LL | fn undocumented3() {}
| ^^^^^^^^^^^^^^^^^^^^^
error: missing documentation for a function
2022-10-19 18:34:00 +00:00
--> $DIR/missing_doc.rs:93:9
2018-12-27 15:57:55 +00:00
|
LL | pub fn also_undocumented1() {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: missing documentation for a function
2022-10-19 18:34:00 +00:00
--> $DIR/missing_doc.rs:94:9
2018-12-27 15:57:55 +00:00
|
LL | fn also_undocumented2() {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
2020-01-09 00:04:53 +00:00
error: aborting due to 24 previous errors
2018-01-16 16:06:27 +00:00