rust/tests/ui/missing-doc.stderr

269 lines
5.8 KiB
Plaintext
Raw Normal View History

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