rust-clippy/tests/ui/missing-doc.stderr

259 lines
5.8 KiB
Text
Raw Normal View History

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