mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 01:04:03 +00:00
fd005b06bb
add test and bless
159 lines
3.8 KiB
Plaintext
159 lines
3.8 KiB
Plaintext
error: missing documentation for a type alias
|
|
--> $DIR/lint-missing-doc.rs:12:1
|
|
|
|
|
LL | pub type PubTypedef = String;
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
note: the lint level is defined here
|
|
--> $DIR/lint-missing-doc.rs:3:9
|
|
|
|
|
LL | #![deny(missing_docs)]
|
|
| ^^^^^^^^^^^^
|
|
|
|
error: missing documentation for a struct
|
|
--> $DIR/lint-missing-doc.rs:19:1
|
|
|
|
|
LL | pub struct PubFoo {
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
error: missing documentation for a struct field
|
|
--> $DIR/lint-missing-doc.rs:20:5
|
|
|
|
|
LL | pub a: isize,
|
|
| ^^^^^^^^^^^^
|
|
|
|
error: missing documentation for a module
|
|
--> $DIR/lint-missing-doc.rs:31:1
|
|
|
|
|
LL | pub mod pub_module_no_dox {}
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: missing documentation for a function
|
|
--> $DIR/lint-missing-doc.rs:35:1
|
|
|
|
|
LL | pub fn foo2() {}
|
|
| ^^^^^^^^^^^^^
|
|
|
|
error: missing documentation for a trait
|
|
--> $DIR/lint-missing-doc.rs:53:1
|
|
|
|
|
LL | pub trait C {
|
|
| ^^^^^^^^^^^
|
|
|
|
error: missing documentation for a method
|
|
--> $DIR/lint-missing-doc.rs:54:5
|
|
|
|
|
LL | fn foo(&self);
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
error: missing documentation for a method
|
|
--> $DIR/lint-missing-doc.rs:55:5
|
|
|
|
|
LL | fn foo_with_impl(&self) {}
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: missing documentation for an associated function
|
|
--> $DIR/lint-missing-doc.rs:56:5
|
|
|
|
|
LL | fn foo_no_self();
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
error: missing documentation for an associated function
|
|
--> $DIR/lint-missing-doc.rs:57:5
|
|
|
|
|
LL | fn foo_no_self_with_impl() {}
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: missing documentation for an associated type
|
|
--> $DIR/lint-missing-doc.rs:67:5
|
|
|
|
|
LL | type AssociatedType;
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: missing documentation for an associated type
|
|
--> $DIR/lint-missing-doc.rs:68:5
|
|
|
|
|
LL | type AssociatedTypeDef = Self;
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: missing documentation for an associated function
|
|
--> $DIR/lint-missing-doc.rs:84:5
|
|
|
|
|
LL | pub fn foo() {}
|
|
| ^^^^^^^^^^^^
|
|
|
|
error: missing documentation for an enum
|
|
--> $DIR/lint-missing-doc.rs:121:1
|
|
|
|
|
LL | pub enum PubBaz {
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
error: missing documentation for a variant
|
|
--> $DIR/lint-missing-doc.rs:122:5
|
|
|
|
|
LL | PubBazA {
|
|
| ^^^^^^^
|
|
|
|
error: missing documentation for a struct field
|
|
--> $DIR/lint-missing-doc.rs:123:9
|
|
|
|
|
LL | a: isize,
|
|
| ^^^^^^^^
|
|
|
|
error: missing documentation for a constant
|
|
--> $DIR/lint-missing-doc.rs:154:1
|
|
|
|
|
LL | pub const FOO4: u32 = 0;
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: missing documentation for a static
|
|
--> $DIR/lint-missing-doc.rs:164:1
|
|
|
|
|
LL | pub static BAR4: u32 = 0;
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: missing documentation for a function
|
|
--> $DIR/lint-missing-doc.rs:170:5
|
|
|
|
|
LL | pub fn undocumented1() {}
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: missing documentation for a function
|
|
--> $DIR/lint-missing-doc.rs:171:5
|
|
|
|
|
LL | pub fn undocumented2() {}
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: missing documentation for a function
|
|
--> $DIR/lint-missing-doc.rs:177:9
|
|
|
|
|
LL | pub fn also_undocumented1() {}
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: missing documentation for a function
|
|
--> $DIR/lint-missing-doc.rs:192:5
|
|
|
|
|
LL | pub fn extern_fn_undocumented(f: f32) -> f32;
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: missing documentation for a static
|
|
--> $DIR/lint-missing-doc.rs:197:5
|
|
|
|
|
LL | pub static EXTERN_STATIC_UNDOCUMENTED: u8;
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: missing documentation for a foreign type
|
|
--> $DIR/lint-missing-doc.rs:202:5
|
|
|
|
|
LL | pub type ExternTyUndocumented;
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: missing documentation for a trait alias
|
|
--> $DIR/lint-missing-doc.rs:206:1
|
|
|
|
|
LL | pub trait T = Sync;
|
|
| ^^^^^^^^^^^
|
|
|
|
error: aborting due to 25 previous errors
|
|
|