rust-clippy/tests/ui/missing-doc.stderr
2018-12-10 08:22:07 +01:00

258 lines
5.8 KiB
Text

error: missing documentation for a type alias
--> $DIR/missing-doc.rs:32:1
|
32 | 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:33:1
|
33 | pub type PubTypedef = String;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: missing documentation for a struct
--> $DIR/missing-doc.rs:35:1
|
35 | / struct Foo {
36 | | a: isize,
37 | | b: isize,
38 | | }
| |_^
error: missing documentation for a struct field
--> $DIR/missing-doc.rs:36:5
|
36 | a: isize,
| ^^^^^^^^
error: missing documentation for a struct field
--> $DIR/missing-doc.rs:37:5
|
37 | b: isize,
| ^^^^^^^^
error: missing documentation for a struct
--> $DIR/missing-doc.rs:40:1
|
40 | / pub struct PubFoo {
41 | | pub a: isize,
42 | | b: isize,
43 | | }
| |_^
error: missing documentation for a struct field
--> $DIR/missing-doc.rs:41:5
|
41 | pub a: isize,
| ^^^^^^^^^^^^
error: missing documentation for a struct field
--> $DIR/missing-doc.rs:42:5
|
42 | b: isize,
| ^^^^^^^^
error: missing documentation for a module
--> $DIR/missing-doc.rs:51:1
|
51 | mod module_no_dox {}
| ^^^^^^^^^^^^^^^^^^^^
error: missing documentation for a module
--> $DIR/missing-doc.rs:52:1
|
52 | pub mod pub_module_no_dox {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: missing documentation for a function
--> $DIR/missing-doc.rs:56:1
|
56 | pub fn foo2() {}
| ^^^^^^^^^^^^^^^^
error: missing documentation for a function
--> $DIR/missing-doc.rs:57:1
|
57 | fn foo3() {}
| ^^^^^^^^^^^^
error: missing documentation for a trait
--> $DIR/missing-doc.rs:75:1
|
75 | / pub trait C {
76 | | fn foo(&self);
77 | | fn foo_with_impl(&self) {}
78 | | }
| |_^
error: missing documentation for a trait method
--> $DIR/missing-doc.rs:76:5
|
76 | fn foo(&self);
| ^^^^^^^^^^^^^^
error: missing documentation for a trait method
--> $DIR/missing-doc.rs:77:5
|
77 | fn foo_with_impl(&self) {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
error: missing documentation for an associated type
--> $DIR/missing-doc.rs:87:5
|
87 | type AssociatedType;
| ^^^^^^^^^^^^^^^^^^^^
error: missing documentation for an associated type
--> $DIR/missing-doc.rs:88:5
|
88 | type AssociatedTypeDef = Self;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: missing documentation for a method
--> $DIR/missing-doc.rs:99:5
|
99 | pub fn foo() {}
| ^^^^^^^^^^^^^^^
error: missing documentation for a method
--> $DIR/missing-doc.rs:100:5
|
100 | fn bar() {}
| ^^^^^^^^^^^
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:107:5
|
107 | fn foo2() {}
| ^^^^^^^^^^^^
error: missing documentation for an enum
--> $DIR/missing-doc.rs:134:1
|
134 | / enum Baz {
135 | | BazA { a: isize, b: isize },
136 | | BarB,
137 | | }
| |_^
error: missing documentation for a variant
--> $DIR/missing-doc.rs:135:5
|
135 | BazA { a: isize, b: isize },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: missing documentation for a struct field
--> $DIR/missing-doc.rs:135:12
|
135 | BazA { a: isize, b: isize },
| ^^^^^^^^
error: missing documentation for a struct field
--> $DIR/missing-doc.rs:135:22
|
135 | BazA { a: isize, b: isize },
| ^^^^^^^^
error: missing documentation for a variant
--> $DIR/missing-doc.rs:136:5
|
136 | BarB,
| ^^^^
error: missing documentation for an enum
--> $DIR/missing-doc.rs:139:1
|
139 | / pub enum PubBaz {
140 | | PubBazA { a: isize },
141 | | }
| |_^
error: missing documentation for a variant
--> $DIR/missing-doc.rs:140:5
|
140 | PubBazA { a: isize },
| ^^^^^^^^^^^^^^^^^^^^
error: missing documentation for a struct field
--> $DIR/missing-doc.rs:140:15
|
140 | PubBazA { a: isize },
| ^^^^^^^^
error: missing documentation for a constant
--> $DIR/missing-doc.rs:160:1
|
160 | const FOO: u32 = 0;
| ^^^^^^^^^^^^^^^^^^^
error: missing documentation for a constant
--> $DIR/missing-doc.rs:167:1
|
167 | pub const FOO4: u32 = 0;
| ^^^^^^^^^^^^^^^^^^^^^^^^
error: missing documentation for a static
--> $DIR/missing-doc.rs:169:1
|
169 | static BAR: u32 = 0;
| ^^^^^^^^^^^^^^^^^^^^
error: missing documentation for a static
--> $DIR/missing-doc.rs:176:1
|
176 | pub static BAR4: u32 = 0;
| ^^^^^^^^^^^^^^^^^^^^^^^^^
error: missing documentation for a module
--> $DIR/missing-doc.rs:178:1
|
178 | / mod internal_impl {
179 | | /// dox
180 | | pub fn documented() {}
181 | | pub fn undocumented1() {}
... |
190 | | }
191 | | }
| |_^
error: missing documentation for a function
--> $DIR/missing-doc.rs:181:5
|
181 | pub fn undocumented1() {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^
error: missing documentation for a function
--> $DIR/missing-doc.rs:182:5
|
182 | pub fn undocumented2() {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^
error: missing documentation for a function
--> $DIR/missing-doc.rs:183:5
|
183 | fn undocumented3() {}
| ^^^^^^^^^^^^^^^^^^^^^
error: missing documentation for a function
--> $DIR/missing-doc.rs:188:9
|
188 | pub fn also_undocumented1() {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: missing documentation for a function
--> $DIR/missing-doc.rs:189:9
|
189 | fn also_undocumented2() {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
error: aborting due to 39 previous errors