mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-14 17:07:17 +00:00
268 lines
5.8 KiB
Text
268 lines
5.8 KiB
Text
error: missing documentation for a type alias
|
|
--> $DIR/missing-doc.rs:38:1
|
|
|
|
|
38 | type Typedef = String;
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: `-D clippy::missing-docs-in-private-items` implied by `-D warnings`
|
|
|
|
error: missing documentation for a type alias
|
|
--> $DIR/missing-doc.rs:39:1
|
|
|
|
|
39 | pub type PubTypedef = String;
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: missing documentation for a struct
|
|
--> $DIR/missing-doc.rs:41:1
|
|
|
|
|
41 | / struct Foo {
|
|
42 | | a: isize,
|
|
43 | | b: isize,
|
|
44 | | }
|
|
| |_^
|
|
|
|
error: missing documentation for a struct field
|
|
--> $DIR/missing-doc.rs:42:5
|
|
|
|
|
42 | a: isize,
|
|
| ^^^^^^^^
|
|
|
|
error: missing documentation for a struct field
|
|
--> $DIR/missing-doc.rs:43:5
|
|
|
|
|
43 | b: isize,
|
|
| ^^^^^^^^
|
|
|
|
error: missing documentation for a struct
|
|
--> $DIR/missing-doc.rs:46:1
|
|
|
|
|
46 | / pub struct PubFoo {
|
|
47 | | pub a: isize,
|
|
48 | | b: isize,
|
|
49 | | }
|
|
| |_^
|
|
|
|
error: missing documentation for a struct field
|
|
--> $DIR/missing-doc.rs:47:5
|
|
|
|
|
47 | pub a: isize,
|
|
| ^^^^^^^^^^^^
|
|
|
|
error: missing documentation for a struct field
|
|
--> $DIR/missing-doc.rs:48:5
|
|
|
|
|
48 | b: isize,
|
|
| ^^^^^^^^
|
|
|
|
error: missing documentation for a module
|
|
--> $DIR/missing-doc.rs:57:1
|
|
|
|
|
57 | mod module_no_dox {}
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: missing documentation for a module
|
|
--> $DIR/missing-doc.rs:58:1
|
|
|
|
|
58 | pub mod pub_module_no_dox {}
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: missing documentation for a function
|
|
--> $DIR/missing-doc.rs:62:1
|
|
|
|
|
62 | pub fn foo2() {}
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
error: missing documentation for a function
|
|
--> $DIR/missing-doc.rs:63:1
|
|
|
|
|
63 | fn foo3() {}
|
|
| ^^^^^^^^^^^^
|
|
|
|
error: missing documentation for a trait
|
|
--> $DIR/missing-doc.rs:80:1
|
|
|
|
|
80 | / pub trait C {
|
|
81 | | fn foo(&self);
|
|
82 | | fn foo_with_impl(&self) {}
|
|
83 | | }
|
|
| |_^
|
|
|
|
error: missing documentation for a trait method
|
|
--> $DIR/missing-doc.rs:81:5
|
|
|
|
|
81 | fn foo(&self);
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
error: missing documentation for a trait method
|
|
--> $DIR/missing-doc.rs:82:5
|
|
|
|
|
82 | fn foo_with_impl(&self) {}
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: missing documentation for an associated type
|
|
--> $DIR/missing-doc.rs:92:5
|
|
|
|
|
92 | type AssociatedType;
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: missing documentation for an associated type
|
|
--> $DIR/missing-doc.rs:93:5
|
|
|
|
|
93 | type AssociatedTypeDef = Self;
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: missing documentation for a method
|
|
--> $DIR/missing-doc.rs:104:5
|
|
|
|
|
104 | pub fn foo() {}
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
error: missing documentation for a method
|
|
--> $DIR/missing-doc.rs:105:5
|
|
|
|
|
105 | fn bar() {}
|
|
| ^^^^^^^^^^^
|
|
|
|
error: missing documentation for a method
|
|
--> $DIR/missing-doc.rs:109:5
|
|
|
|
|
109 | pub fn foo() {}
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
error: missing documentation for a method
|
|
--> $DIR/missing-doc.rs:112:5
|
|
|
|
|
112 | fn foo2() {}
|
|
| ^^^^^^^^^^^^
|
|
|
|
error: missing documentation for an enum
|
|
--> $DIR/missing-doc.rs:138:1
|
|
|
|
|
138 | / enum Baz {
|
|
139 | | BazA {
|
|
140 | | a: isize,
|
|
141 | | b: isize
|
|
142 | | },
|
|
143 | | BarB
|
|
144 | | }
|
|
| |_^
|
|
|
|
error: missing documentation for a variant
|
|
--> $DIR/missing-doc.rs:139:5
|
|
|
|
|
139 | / BazA {
|
|
140 | | a: isize,
|
|
141 | | b: isize
|
|
142 | | },
|
|
| |_____^
|
|
|
|
error: missing documentation for a struct field
|
|
--> $DIR/missing-doc.rs:140:9
|
|
|
|
|
140 | a: isize,
|
|
| ^^^^^^^^
|
|
|
|
error: missing documentation for a struct field
|
|
--> $DIR/missing-doc.rs:141:9
|
|
|
|
|
141 | b: isize
|
|
| ^^^^^^^^
|
|
|
|
error: missing documentation for a variant
|
|
--> $DIR/missing-doc.rs:143:5
|
|
|
|
|
143 | BarB
|
|
| ^^^^
|
|
|
|
error: missing documentation for an enum
|
|
--> $DIR/missing-doc.rs:146:1
|
|
|
|
|
146 | / pub enum PubBaz {
|
|
147 | | PubBazA {
|
|
148 | | a: isize,
|
|
149 | | },
|
|
150 | | }
|
|
| |_^
|
|
|
|
error: missing documentation for a variant
|
|
--> $DIR/missing-doc.rs:147:5
|
|
|
|
|
147 | / PubBazA {
|
|
148 | | a: isize,
|
|
149 | | },
|
|
| |_____^
|
|
|
|
error: missing documentation for a struct field
|
|
--> $DIR/missing-doc.rs:148:9
|
|
|
|
|
148 | a: isize,
|
|
| ^^^^^^^^
|
|
|
|
error: missing documentation for a constant
|
|
--> $DIR/missing-doc.rs:172:1
|
|
|
|
|
172 | const FOO: u32 = 0;
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: missing documentation for a constant
|
|
--> $DIR/missing-doc.rs:179:1
|
|
|
|
|
179 | pub const FOO4: u32 = 0;
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: missing documentation for a static
|
|
--> $DIR/missing-doc.rs:182:1
|
|
|
|
|
182 | static BAR: u32 = 0;
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: missing documentation for a static
|
|
--> $DIR/missing-doc.rs:189:1
|
|
|
|
|
189 | pub static BAR4: u32 = 0;
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: missing documentation for a module
|
|
--> $DIR/missing-doc.rs:192:1
|
|
|
|
|
192 | / mod internal_impl {
|
|
193 | | /// dox
|
|
194 | | pub fn documented() {}
|
|
195 | | pub fn undocumented1() {}
|
|
... |
|
|
204 | | }
|
|
205 | | }
|
|
| |_^
|
|
|
|
error: missing documentation for a function
|
|
--> $DIR/missing-doc.rs:195:5
|
|
|
|
|
195 | pub fn undocumented1() {}
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: missing documentation for a function
|
|
--> $DIR/missing-doc.rs:196:5
|
|
|
|
|
196 | pub fn undocumented2() {}
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: missing documentation for a function
|
|
--> $DIR/missing-doc.rs:197:5
|
|
|
|
|
197 | fn undocumented3() {}
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: missing documentation for a function
|
|
--> $DIR/missing-doc.rs:202:9
|
|
|
|
|
202 | pub fn also_undocumented1() {}
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: missing documentation for a function
|
|
--> $DIR/missing-doc.rs:203:9
|
|
|
|
|
203 | fn also_undocumented2() {}
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: aborting due to 39 previous errors
|
|
|