error: missing documentation for a type alias
- --> $DIR/missing-doc.rs:26:1
+ --> $DIR/missing-doc.rs:32:1
|
-26 | type Typedef = String;
+LL | type Typedef = String;
| ^^^^^^^^^^^^^^^^^^^^^^
|
-note: lint level defined here
- --> $DIR/missing-doc.rs:16:9
- |
-16 | #![deny(missing_docs_in_private_items)]
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+ = note: `-D clippy::missing-docs-in-private-items` implied by `-D warnings`
error: missing documentation for a type alias
- --> $DIR/missing-doc.rs:27:1
+ --> $DIR/missing-doc.rs:33:1
|
-27 | pub type PubTypedef = String;
+LL | pub type PubTypedef = String;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: missing documentation for a struct
- --> $DIR/missing-doc.rs:29:1
+ --> $DIR/missing-doc.rs:35:1
|
-29 | struct Foo {
- | _^ starting here...
-30 | | a: isize,
-31 | | b: isize,
-32 | | }
- | |_^ ...ending here
+LL | / struct Foo {
+LL | | a: isize,
+LL | | b: isize,
+LL | | }
+ | |_^
error: missing documentation for a struct field
- --> $DIR/missing-doc.rs:30:5
+ --> $DIR/missing-doc.rs:36:5
|
-30 | a: isize,
+LL | a: isize,
| ^^^^^^^^
error: missing documentation for a struct field
- --> $DIR/missing-doc.rs:31:5
+ --> $DIR/missing-doc.rs:37:5
|
-31 | b: isize,
+LL | b: isize,
| ^^^^^^^^
error: missing documentation for a struct
- --> $DIR/missing-doc.rs:34:1
+ --> $DIR/missing-doc.rs:40:1
|
-34 | pub struct PubFoo {
- | _^ starting here...
-35 | | pub a: isize,
-36 | | b: isize,
-37 | | }
- | |_^ ...ending here
+LL | / pub struct PubFoo {
+LL | | pub a: isize,
+LL | | b: isize,
+LL | | }
+ | |_^
error: missing documentation for a struct field
- --> $DIR/missing-doc.rs:35:5
+ --> $DIR/missing-doc.rs:41:5
|
-35 | pub a: isize,
+LL | pub a: isize,
| ^^^^^^^^^^^^
error: missing documentation for a struct field
- --> $DIR/missing-doc.rs:36:5
+ --> $DIR/missing-doc.rs:42:5
|
-36 | b: isize,
+LL | b: isize,
| ^^^^^^^^
error: missing documentation for a module
- --> $DIR/missing-doc.rs:45:1
+ --> $DIR/missing-doc.rs:51:1
|
-45 | mod module_no_dox {}
+LL | mod module_no_dox {}
| ^^^^^^^^^^^^^^^^^^^^
error: missing documentation for a module
- --> $DIR/missing-doc.rs:46:1
+ --> $DIR/missing-doc.rs:52:1
|
-46 | pub mod pub_module_no_dox {}
+LL | pub mod pub_module_no_dox {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: missing documentation for a function
- --> $DIR/missing-doc.rs:50:1
+ --> $DIR/missing-doc.rs:56:1
|
-50 | pub fn foo2() {}
+LL | pub fn foo2() {}
| ^^^^^^^^^^^^^^^^
error: missing documentation for a function
- --> $DIR/missing-doc.rs:51:1
+ --> $DIR/missing-doc.rs:57:1
|
-51 | fn foo3() {}
+LL | fn foo3() {}
| ^^^^^^^^^^^^
error: missing documentation for a trait
- --> $DIR/missing-doc.rs:68:1
+ --> $DIR/missing-doc.rs:75:1
|
-68 | pub trait C {
- | _^ starting here...
-69 | | fn foo(&self);
-70 | | fn foo_with_impl(&self) {}
-71 | | }
- | |_^ ...ending here
+LL | / pub trait C {
+LL | | fn foo(&self);
+LL | | fn foo_with_impl(&self) {}
+LL | | }
+ | |_^
error: missing documentation for a trait method
- --> $DIR/missing-doc.rs:69:5
+ --> $DIR/missing-doc.rs:76:5
|
-69 | fn foo(&self);
+LL | fn foo(&self);
| ^^^^^^^^^^^^^^
error: missing documentation for a trait method
- --> $DIR/missing-doc.rs:70:5
+ --> $DIR/missing-doc.rs:77:5
|
-70 | fn foo_with_impl(&self) {}
+LL | fn foo_with_impl(&self) {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
error: missing documentation for an associated type
- --> $DIR/missing-doc.rs:80:5
+ --> $DIR/missing-doc.rs:87:5
|
-80 | type AssociatedType;
+LL | type AssociatedType;
| ^^^^^^^^^^^^^^^^^^^^
error: missing documentation for an associated type
- --> $DIR/missing-doc.rs:81:5
+ --> $DIR/missing-doc.rs:88:5
|
-81 | type AssociatedTypeDef = Self;
+LL | type AssociatedTypeDef = Self;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: missing documentation for a method
- --> $DIR/missing-doc.rs:92:5
+ --> $DIR/missing-doc.rs:99:5
|
-92 | pub fn foo() {}
+LL | pub fn foo() {}
| ^^^^^^^^^^^^^^^
error: missing documentation for a method
- --> $DIR/missing-doc.rs:93:5
+ --> $DIR/missing-doc.rs:100:5
|
-93 | fn bar() {}
+LL | fn bar() {}
| ^^^^^^^^^^^
error: missing documentation for a method
- --> $DIR/missing-doc.rs:97:5
+ --> $DIR/missing-doc.rs:104:5
|
-97 | pub fn foo() {}
+LL | pub fn foo() {}
| ^^^^^^^^^^^^^^^
error: missing documentation for a method
- --> $DIR/missing-doc.rs:100:5
- |
-100 | fn foo2() {}
- | ^^^^^^^^^^^^
+ --> $DIR/missing-doc.rs:107:5
+ |
+LL | fn foo2() {}
+ | ^^^^^^^^^^^^
error: missing documentation for an enum
- --> $DIR/missing-doc.rs:126:1
- |
-126 | enum Baz {
- | _^ starting here...
-127 | | BazA {
-128 | | a: isize,
-129 | | b: isize
-130 | | },
-131 | | BarB
-132 | | }
- | |_^ ...ending here
+ --> $DIR/missing-doc.rs:134:1
+ |
+LL | / enum Baz {
+LL | | BazA { a: isize, b: isize },
+LL | | BarB,
+LL | | }
+ | |_^
error: missing documentation for a variant
- --> $DIR/missing-doc.rs:127:5
- |
-127 | BazA {
- | _____^ starting here...
-128 | | a: isize,
-129 | | b: isize
-130 | | },
- | |_____^ ...ending here
+ --> $DIR/missing-doc.rs:135:5
+ |
+LL | BazA { a: isize, b: isize },
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: missing documentation for a struct field
- --> $DIR/missing-doc.rs:128:9
- |
-128 | a: isize,
- | ^^^^^^^^
+ --> $DIR/missing-doc.rs:135:12
+ |
+LL | BazA { a: isize, b: isize },
+ | ^^^^^^^^
error: missing documentation for a struct field
- --> $DIR/missing-doc.rs:129:9
- |
-129 | b: isize
- | ^^^^^^^^
+ --> $DIR/missing-doc.rs:135:22
+ |
+LL | BazA { a: isize, b: isize },
+ | ^^^^^^^^
error: missing documentation for a variant
- --> $DIR/missing-doc.rs:131:5
- |
-131 | BarB
- | ^^^^
+ --> $DIR/missing-doc.rs:136:5
+ |
+LL | BarB,
+ | ^^^^
error: missing documentation for an enum
- --> $DIR/missing-doc.rs:134:1
- |
-134 | pub enum PubBaz {
- | _^ starting here...
-135 | | PubBazA {
-136 | | a: isize,
-137 | | },
-138 | | }
- | |_^ ...ending here
+ --> $DIR/missing-doc.rs:139:1
+ |
+LL | / pub enum PubBaz {
+LL | | PubBazA { a: isize },
+LL | | }
+ | |_^
error: missing documentation for a variant
- --> $DIR/missing-doc.rs:135:5
- |
-135 | PubBazA {
- | _____^ starting here...
-136 | | a: isize,
-137 | | },
- | |_____^ ...ending here
+ --> $DIR/missing-doc.rs:140:5
+ |
+LL | PubBazA { a: isize },
+ | ^^^^^^^^^^^^^^^^^^^^
error: missing documentation for a struct field
- --> $DIR/missing-doc.rs:136:9
- |
-136 | a: isize,
- | ^^^^^^^^
+ --> $DIR/missing-doc.rs:140:15
+ |
+LL | PubBazA { a: isize },
+ | ^^^^^^^^
error: missing documentation for a constant
- --> $DIR/missing-doc.rs:160:1
- |
-160 | const FOO: u32 = 0;
- | ^^^^^^^^^^^^^^^^^^^
+ --> $DIR/missing-doc.rs:160:1
+ |
+LL | const FOO: u32 = 0;
+ | ^^^^^^^^^^^^^^^^^^^
error: missing documentation for a constant
- --> $DIR/missing-doc.rs:167:1
- |
-167 | pub const FOO4: u32 = 0;
- | ^^^^^^^^^^^^^^^^^^^^^^^^
+ --> $DIR/missing-doc.rs:167:1
+ |
+LL | pub const FOO4: u32 = 0;
+ | ^^^^^^^^^^^^^^^^^^^^^^^^
error: missing documentation for a static
- --> $DIR/missing-doc.rs:170:1
- |
-170 | static BAR: u32 = 0;
- | ^^^^^^^^^^^^^^^^^^^^
+ --> $DIR/missing-doc.rs:169:1
+ |
+LL | static BAR: u32 = 0;
+ | ^^^^^^^^^^^^^^^^^^^^
error: missing documentation for a static
- --> $DIR/missing-doc.rs:177:1
- |
-177 | pub static BAR4: u32 = 0;
- | ^^^^^^^^^^^^^^^^^^^^^^^^^
+ --> $DIR/missing-doc.rs:176:1
+ |
+LL | pub static BAR4: u32 = 0;
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^
error: missing documentation for a module
- --> $DIR/missing-doc.rs:180:1
- |
-180 | mod internal_impl {
- | ^
-
-error: missing documentation for a function
- --> $DIR/missing-doc.rs:183:5
- |
-183 | pub fn undocumented1() {}
- | ^^^^^^^^^^^^^^^^^^^^^^^^^
+ --> $DIR/missing-doc.rs:178:1
+ |
+LL | / mod internal_impl {
+LL | | /// dox
+LL | | pub fn documented() {}
+LL | | pub fn undocumented1() {}
+... |
+LL | | }
+LL | | }
+ | |_^
error: missing documentation for a function
- --> $DIR/missing-doc.rs:184:5
- |
-184 | pub fn undocumented2() {}
- | ^^^^^^^^^^^^^^^^^^^^^^^^^
+ --> $DIR/missing-doc.rs:181:5
+ |
+LL | pub fn undocumented1() {}
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^
error: missing documentation for a function
- --> $DIR/missing-doc.rs:185:5
- |
-185 | fn undocumented3() {}
- | ^^^^^^^^^^^^^^^^^^^^^
+ --> $DIR/missing-doc.rs:182:5
+ |
+LL | pub fn undocumented2() {}
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^
error: missing documentation for a function
- --> $DIR/missing-doc.rs:190:9
- |
-190 | pub fn also_undocumented1() {}
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+ --> $DIR/missing-doc.rs:183:5
+ |
+LL | fn undocumented3() {}
+ | ^^^^^^^^^^^^^^^^^^^^^
error: missing documentation for a function
- --> $DIR/missing-doc.rs:191:9
- |
-191 | fn also_undocumented2() {}
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^
+ --> $DIR/missing-doc.rs:188:9
+ |
+LL | pub fn also_undocumented1() {}
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: missing documentation for a function
- --> $DIR/missing-doc.rs:202:1
- |
-202 | fn main() {}
- | ^^^^^^^^^^^^
+ --> $DIR/missing-doc.rs:189:9
+ |
+LL | fn also_undocumented2() {}
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^
-error: aborting due to 40 previous errors
+error: aborting due to 39 previous errors