rust/tests/ui/missing-doc.stderr

269 lines
5.8 KiB
Plaintext

error: missing documentation for a type alias
--> $DIR/missing-doc.rs:28:1
|
28 | 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:29:1
|
29 | pub type PubTypedef = String;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: missing documentation for a struct
--> $DIR/missing-doc.rs:31:1
|
31 | / struct Foo {
32 | | a: isize,
33 | | b: isize,
34 | | }
| |_^
error: missing documentation for a struct field
--> $DIR/missing-doc.rs:32:5
|
32 | a: isize,
| ^^^^^^^^
error: missing documentation for a struct field
--> $DIR/missing-doc.rs:33:5
|
33 | b: isize,
| ^^^^^^^^
error: missing documentation for a struct
--> $DIR/missing-doc.rs:36:1
|
36 | / pub struct PubFoo {
37 | | pub a: isize,
38 | | b: isize,
39 | | }
| |_^
error: missing documentation for a struct field
--> $DIR/missing-doc.rs:37:5
|
37 | pub a: isize,
| ^^^^^^^^^^^^
error: missing documentation for a struct field
--> $DIR/missing-doc.rs:38:5
|
38 | b: isize,
| ^^^^^^^^
error: missing documentation for a module
--> $DIR/missing-doc.rs:47:1
|
47 | mod module_no_dox {}
| ^^^^^^^^^^^^^^^^^^^^
error: missing documentation for a module
--> $DIR/missing-doc.rs:48:1
|
48 | pub mod pub_module_no_dox {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: missing documentation for a function
--> $DIR/missing-doc.rs:52:1
|
52 | pub fn foo2() {}
| ^^^^^^^^^^^^^^^^
error: missing documentation for a function
--> $DIR/missing-doc.rs:53:1
|
53 | fn foo3() {}
| ^^^^^^^^^^^^
error: missing documentation for a trait
--> $DIR/missing-doc.rs:70:1
|
70 | / pub trait C {
71 | | fn foo(&self);
72 | | fn foo_with_impl(&self) {}
73 | | }
| |_^
error: missing documentation for a trait method
--> $DIR/missing-doc.rs:71:5
|
71 | fn foo(&self);
| ^^^^^^^^^^^^^^
error: missing documentation for a trait method
--> $DIR/missing-doc.rs:72:5
|
72 | fn foo_with_impl(&self) {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
error: missing documentation for an associated type
--> $DIR/missing-doc.rs:82:5
|
82 | type AssociatedType;
| ^^^^^^^^^^^^^^^^^^^^
error: missing documentation for an associated type
--> $DIR/missing-doc.rs:83:5
|
83 | type AssociatedTypeDef = Self;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: missing documentation for a method
--> $DIR/missing-doc.rs:94:5
|
94 | pub fn foo() {}
| ^^^^^^^^^^^^^^^
error: missing documentation for a method
--> $DIR/missing-doc.rs:95:5
|
95 | fn bar() {}
| ^^^^^^^^^^^
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:102:5
|
102 | fn foo2() {}
| ^^^^^^^^^^^^
error: missing documentation for an enum
--> $DIR/missing-doc.rs:128:1
|
128 | / enum Baz {
129 | | BazA {
130 | | a: isize,
131 | | b: isize
132 | | },
133 | | BarB
134 | | }
| |_^
error: missing documentation for a variant
--> $DIR/missing-doc.rs:129:5
|
129 | / BazA {
130 | | a: isize,
131 | | b: isize
132 | | },
| |_____^
error: missing documentation for a struct field
--> $DIR/missing-doc.rs:130:9
|
130 | a: isize,
| ^^^^^^^^
error: missing documentation for a struct field
--> $DIR/missing-doc.rs:131:9
|
131 | b: isize
| ^^^^^^^^
error: missing documentation for a variant
--> $DIR/missing-doc.rs:133:5
|
133 | BarB
| ^^^^
error: missing documentation for an enum
--> $DIR/missing-doc.rs:136:1
|
136 | / pub enum PubBaz {
137 | | PubBazA {
138 | | a: isize,
139 | | },
140 | | }
| |_^
error: missing documentation for a variant
--> $DIR/missing-doc.rs:137:5
|
137 | / PubBazA {
138 | | a: isize,
139 | | },
| |_____^
error: missing documentation for a struct field
--> $DIR/missing-doc.rs:138:9
|
138 | a: isize,
| ^^^^^^^^
error: missing documentation for a constant
--> $DIR/missing-doc.rs:162:1
|
162 | const FOO: u32 = 0;
| ^^^^^^^^^^^^^^^^^^^
error: missing documentation for a constant
--> $DIR/missing-doc.rs:169:1
|
169 | pub const FOO4: u32 = 0;
| ^^^^^^^^^^^^^^^^^^^^^^^^
error: missing documentation for a static
--> $DIR/missing-doc.rs:172:1
|
172 | static BAR: u32 = 0;
| ^^^^^^^^^^^^^^^^^^^^
error: missing documentation for a static
--> $DIR/missing-doc.rs:179:1
|
179 | pub static BAR4: u32 = 0;
| ^^^^^^^^^^^^^^^^^^^^^^^^^
error: missing documentation for a module
--> $DIR/missing-doc.rs:182:1
|
182 | / mod internal_impl {
183 | | /// dox
184 | | pub fn documented() {}
185 | | pub fn undocumented1() {}
... |
194 | | }
195 | | }
| |_^
error: missing documentation for a function
--> $DIR/missing-doc.rs:185:5
|
185 | pub fn undocumented1() {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^
error: missing documentation for a function
--> $DIR/missing-doc.rs:186:5
|
186 | pub fn undocumented2() {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^
error: missing documentation for a function
--> $DIR/missing-doc.rs:187:5
|
187 | fn undocumented3() {}
| ^^^^^^^^^^^^^^^^^^^^^
error: missing documentation for a function
--> $DIR/missing-doc.rs:192:9
|
192 | pub fn also_undocumented1() {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: missing documentation for a function
--> $DIR/missing-doc.rs:193:9
|
193 | fn also_undocumented2() {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
error: aborting due to 39 previous errors