rust/tests/ui/missing-doc.stderr

259 lines
5.7 KiB
Plaintext
Raw Normal View History

error: missing documentation for a type alias
--> $DIR/missing-doc.rs:10:1
|
2018-12-27 15:57:55 +00:00
LL | 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:11:1
|
2018-12-27 15:57:55 +00:00
LL | pub type PubTypedef = String;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: missing documentation for a struct
--> $DIR/missing-doc.rs:13:1
|
2018-12-27 15:57:55 +00:00
LL | / struct Foo {
LL | | a: isize,
LL | | b: isize,
LL | | }
| |_^
error: missing documentation for a struct field
--> $DIR/missing-doc.rs:14:5
|
2018-12-27 15:57:55 +00:00
LL | a: isize,
| ^^^^^^^^
error: missing documentation for a struct field
--> $DIR/missing-doc.rs:15:5
|
2018-12-27 15:57:55 +00:00
LL | b: isize,
| ^^^^^^^^
error: missing documentation for a struct
--> $DIR/missing-doc.rs:18:1
|
2018-12-27 15:57:55 +00:00
LL | / pub struct PubFoo {
LL | | pub a: isize,
LL | | b: isize,
LL | | }
| |_^
error: missing documentation for a struct field
--> $DIR/missing-doc.rs:19:5
|
2018-12-27 15:57:55 +00:00
LL | pub a: isize,
| ^^^^^^^^^^^^
error: missing documentation for a struct field
--> $DIR/missing-doc.rs:20:5
|
2018-12-27 15:57:55 +00:00
LL | b: isize,
| ^^^^^^^^
error: missing documentation for a module
--> $DIR/missing-doc.rs:29:1
|
2018-12-27 15:57:55 +00:00
LL | mod module_no_dox {}
| ^^^^^^^^^^^^^^^^^^^^
error: missing documentation for a module
--> $DIR/missing-doc.rs:30:1
|
2018-12-27 15:57:55 +00:00
LL | pub mod pub_module_no_dox {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: missing documentation for a function
--> $DIR/missing-doc.rs:34:1
|
2018-12-27 15:57:55 +00:00
LL | pub fn foo2() {}
| ^^^^^^^^^^^^^^^^
error: missing documentation for a function
--> $DIR/missing-doc.rs:35:1
|
2018-12-27 15:57:55 +00:00
LL | fn foo3() {}
| ^^^^^^^^^^^^
error: missing documentation for a trait
--> $DIR/missing-doc.rs:53:1
|
2018-12-27 15:57:55 +00:00
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:54:5
|
2018-12-27 15:57:55 +00:00
LL | fn foo(&self);
| ^^^^^^^^^^^^^^
error: missing documentation for a trait method
--> $DIR/missing-doc.rs:55:5
|
2018-12-27 15:57:55 +00:00
LL | fn foo_with_impl(&self) {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
error: missing documentation for an associated type
--> $DIR/missing-doc.rs:65:5
|
2018-12-27 15:57:55 +00:00
LL | type AssociatedType;
| ^^^^^^^^^^^^^^^^^^^^
error: missing documentation for an associated type
--> $DIR/missing-doc.rs:66:5
|
2018-12-27 15:57:55 +00:00
LL | type AssociatedTypeDef = Self;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: missing documentation for a method
--> $DIR/missing-doc.rs:77:5
2018-12-10 05:27:19 +00:00
|
2018-12-27 15:57:55 +00:00
LL | pub fn foo() {}
2018-12-10 05:27:19 +00:00
| ^^^^^^^^^^^^^^^
error: missing documentation for a method
--> $DIR/missing-doc.rs:78:5
2018-12-27 15:57:55 +00:00
|
LL | fn bar() {}
| ^^^^^^^^^^^
error: missing documentation for a method
--> $DIR/missing-doc.rs:82:5
2018-12-27 15:57:55 +00:00
|
LL | pub fn foo() {}
| ^^^^^^^^^^^^^^^
error: missing documentation for a method
--> $DIR/missing-doc.rs:85:5
2018-12-27 15:57:55 +00:00
|
LL | fn foo2() {}
| ^^^^^^^^^^^^
error: missing documentation for an enum
--> $DIR/missing-doc.rs:112:1
2018-12-27 15:57:55 +00:00
|
LL | / enum Baz {
LL | | BazA { a: isize, b: isize },
LL | | BarB,
LL | | }
| |_^
error: missing documentation for a variant
--> $DIR/missing-doc.rs:113:5
2018-12-27 15:57:55 +00:00
|
LL | BazA { a: isize, b: isize },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: missing documentation for a struct field
--> $DIR/missing-doc.rs:113:12
2018-12-27 15:57:55 +00:00
|
LL | BazA { a: isize, b: isize },
| ^^^^^^^^
error: missing documentation for a struct field
--> $DIR/missing-doc.rs:113:22
2018-12-27 15:57:55 +00:00
|
LL | BazA { a: isize, b: isize },
| ^^^^^^^^
error: missing documentation for a variant
--> $DIR/missing-doc.rs:114:5
2018-12-27 15:57:55 +00:00
|
LL | BarB,
| ^^^^
error: missing documentation for an enum
--> $DIR/missing-doc.rs:117:1
2018-12-27 15:57:55 +00:00
|
LL | / pub enum PubBaz {
LL | | PubBazA { a: isize },
LL | | }
| |_^
error: missing documentation for a variant
--> $DIR/missing-doc.rs:118:5
2018-12-27 15:57:55 +00:00
|
LL | PubBazA { a: isize },
| ^^^^^^^^^^^^^^^^^^^^
error: missing documentation for a struct field
--> $DIR/missing-doc.rs:118:15
2018-12-27 15:57:55 +00:00
|
LL | PubBazA { a: isize },
| ^^^^^^^^
error: missing documentation for a constant
--> $DIR/missing-doc.rs:138:1
2018-12-27 15:57:55 +00:00
|
LL | const FOO: u32 = 0;
| ^^^^^^^^^^^^^^^^^^^
error: missing documentation for a constant
--> $DIR/missing-doc.rs:145:1
2018-12-27 15:57:55 +00:00
|
LL | pub const FOO4: u32 = 0;
| ^^^^^^^^^^^^^^^^^^^^^^^^
error: missing documentation for a static
--> $DIR/missing-doc.rs:147:1
2018-12-27 15:57:55 +00:00
|
LL | static BAR: u32 = 0;
| ^^^^^^^^^^^^^^^^^^^^
error: missing documentation for a static
--> $DIR/missing-doc.rs:154:1
2018-12-27 15:57:55 +00:00
|
LL | pub static BAR4: u32 = 0;
| ^^^^^^^^^^^^^^^^^^^^^^^^^
error: missing documentation for a module
--> $DIR/missing-doc.rs:156:1
2018-12-27 15:57:55 +00:00
|
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:159:5
2018-12-27 15:57:55 +00:00
|
LL | pub fn undocumented1() {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^
error: missing documentation for a function
--> $DIR/missing-doc.rs:160:5
2018-12-27 15:57:55 +00:00
|
LL | pub fn undocumented2() {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^
error: missing documentation for a function
--> $DIR/missing-doc.rs:161:5
2018-12-27 15:57:55 +00:00
|
LL | fn undocumented3() {}
| ^^^^^^^^^^^^^^^^^^^^^
error: missing documentation for a function
--> $DIR/missing-doc.rs:166:9
2018-12-27 15:57:55 +00:00
|
LL | pub fn also_undocumented1() {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: missing documentation for a function
--> $DIR/missing-doc.rs:167:9
2018-12-27 15:57:55 +00:00
|
LL | fn also_undocumented2() {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
2018-01-16 16:06:27 +00:00
error: aborting due to 39 previous errors