2018-08-08 14:28:26 +02:00
|
|
|
error: missing documentation for a type alias
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/lint-missing-doc.rs:11:1
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
|
LL | pub type PubTypedef = String; //~ ERROR: missing documentation for a type alias
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: lint level defined here
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/lint-missing-doc.rs:3:9
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
|
LL | #![deny(missing_docs)]
|
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: missing documentation for a struct
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/lint-missing-doc.rs:18:1
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
|
LL | pub struct PubFoo { //~ ERROR: missing documentation for a struct
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: missing documentation for a struct field
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/lint-missing-doc.rs:19:5
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
|
LL | pub a: isize, //~ ERROR: missing documentation for a struct field
|
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: missing documentation for a module
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/lint-missing-doc.rs:30:1
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
|
LL | pub mod pub_module_no_dox {} //~ ERROR: missing documentation for a module
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: missing documentation for a function
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/lint-missing-doc.rs:34:1
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
|
LL | pub fn foo2() {} //~ ERROR: missing documentation for a function
|
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: missing documentation for a trait
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/lint-missing-doc.rs:52:1
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
|
LL | pub trait C { //~ ERROR: missing documentation for a trait
|
|
|
|
| ^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: missing documentation for a trait method
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/lint-missing-doc.rs:53:5
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
|
LL | fn foo(&self); //~ ERROR: missing documentation for a trait method
|
|
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: missing documentation for a trait method
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/lint-missing-doc.rs:54:5
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
|
LL | fn foo_with_impl(&self) {} //~ ERROR: missing documentation for a trait method
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: missing documentation for an associated type
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/lint-missing-doc.rs:64:5
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
|
LL | type AssociatedType; //~ ERROR: missing documentation for an associated type
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: missing documentation for an associated type
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/lint-missing-doc.rs:65:5
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
|
LL | type AssociatedTypeDef = Self; //~ ERROR: missing documentation for an associated type
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: missing documentation for a method
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/lint-missing-doc.rs:81:5
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
|
LL | pub fn foo() {} //~ ERROR: missing documentation for a method
|
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: missing documentation for an enum
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/lint-missing-doc.rs:118:1
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
|
LL | pub enum PubBaz { //~ ERROR: missing documentation for an enum
|
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: missing documentation for a variant
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/lint-missing-doc.rs:119:5
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
|
LL | PubBazA { //~ ERROR: missing documentation for a variant
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error: missing documentation for a struct field
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/lint-missing-doc.rs:120:9
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
|
LL | a: isize, //~ ERROR: missing documentation for a struct field
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
error: missing documentation for a constant
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/lint-missing-doc.rs:151:1
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
|
LL | pub const FOO4: u32 = 0; //~ ERROR: missing documentation for a const
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: missing documentation for a static
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/lint-missing-doc.rs:161:1
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
|
LL | pub static BAR4: u32 = 0; //~ ERROR: missing documentation for a static
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: missing documentation for a function
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/lint-missing-doc.rs:167:5
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
|
LL | pub fn undocumented1() {} //~ ERROR: missing documentation for a function
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: missing documentation for a function
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/lint-missing-doc.rs:168:5
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
|
LL | pub fn undocumented2() {} //~ ERROR: missing documentation for a function
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: missing documentation for a function
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/lint-missing-doc.rs:174:9
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
|
LL | pub fn also_undocumented1() {} //~ ERROR: missing documentation for a function
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: aborting due to 19 previous errors
|
|
|
|
|