rust/tests/ui/lint/lint-missing-doc.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

153 lines
3.7 KiB
Plaintext
Raw Normal View History

2018-08-08 07:28:26 -05:00
error: missing documentation for a type alias
2018-12-25 09:56:47 -06:00
--> $DIR/lint-missing-doc.rs:11:1
2018-08-08 07:28:26 -05:00
|
2019-03-09 06:03:44 -06:00
LL | pub type PubTypedef = String;
| ^^^^^^^^^^^^^^^^^^^
2018-08-08 07:28:26 -05:00
|
2020-01-22 17:57:38 -06:00
note: the lint level is defined here
2018-12-25 09:56:47 -06:00
--> $DIR/lint-missing-doc.rs:3:9
2018-08-08 07:28:26 -05:00
|
LL | #![deny(missing_docs)]
| ^^^^^^^^^^^^
error: missing documentation for a struct
2018-12-25 09:56:47 -06:00
--> $DIR/lint-missing-doc.rs:18:1
2018-08-08 07:28:26 -05:00
|
2019-03-09 06:03:44 -06:00
LL | pub struct PubFoo {
2018-08-08 07:28:26 -05:00
| ^^^^^^^^^^^^^^^^^
error: missing documentation for a struct field
2018-12-25 09:56:47 -06:00
--> $DIR/lint-missing-doc.rs:19:5
2018-08-08 07:28:26 -05:00
|
2019-03-09 06:03:44 -06:00
LL | pub a: isize,
2018-08-08 07:28:26 -05:00
| ^^^^^^^^^^^^
error: missing documentation for a module
2018-12-25 09:56:47 -06:00
--> $DIR/lint-missing-doc.rs:30:1
2018-08-08 07:28:26 -05:00
|
2019-03-09 06:03:44 -06:00
LL | pub mod pub_module_no_dox {}
2018-08-08 07:28:26 -05:00
| ^^^^^^^^^^^^^^^^^^^^^^^^^
error: missing documentation for a function
2018-12-25 09:56:47 -06:00
--> $DIR/lint-missing-doc.rs:34:1
2018-08-08 07:28:26 -05:00
|
2019-03-09 06:03:44 -06:00
LL | pub fn foo2() {}
2018-08-08 07:28:26 -05:00
| ^^^^^^^^^^^^^
error: missing documentation for a trait
2018-12-25 09:56:47 -06:00
--> $DIR/lint-missing-doc.rs:52:1
2018-08-08 07:28:26 -05:00
|
2019-03-09 06:03:44 -06:00
LL | pub trait C {
2018-08-08 07:28:26 -05:00
| ^^^^^^^^^^^
error: missing documentation for a method
2018-12-25 09:56:47 -06:00
--> $DIR/lint-missing-doc.rs:53:5
2018-08-08 07:28:26 -05:00
|
2019-03-09 06:03:44 -06:00
LL | fn foo(&self);
2018-08-08 07:28:26 -05:00
| ^^^^^^^^^^^^^^
error: missing documentation for a method
2018-12-25 09:56:47 -06:00
--> $DIR/lint-missing-doc.rs:54:5
2018-08-08 07:28:26 -05:00
|
2019-03-09 06:03:44 -06:00
LL | fn foo_with_impl(&self) {}
2018-08-08 07:28:26 -05:00
| ^^^^^^^^^^^^^^^^^^^^^^^
error: missing documentation for an associated function
--> $DIR/lint-missing-doc.rs:55:5
|
LL | fn foo_no_self();
| ^^^^^^^^^^^^^^^^^
error: missing documentation for an associated function
--> $DIR/lint-missing-doc.rs:56:5
|
LL | fn foo_no_self_with_impl() {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
2018-08-08 07:28:26 -05:00
error: missing documentation for an associated type
--> $DIR/lint-missing-doc.rs:66:5
2018-08-08 07:28:26 -05:00
|
2019-03-09 06:03:44 -06:00
LL | type AssociatedType;
| ^^^^^^^^^^^^^^^^^^^
2018-08-08 07:28:26 -05:00
error: missing documentation for an associated type
--> $DIR/lint-missing-doc.rs:67:5
2018-08-08 07:28:26 -05:00
|
2019-03-09 06:03:44 -06:00
LL | type AssociatedTypeDef = Self;
| ^^^^^^^^^^^^^^^^^^^^^^
2018-08-08 07:28:26 -05:00
2020-03-21 19:47:23 -05:00
error: missing documentation for an associated function
--> $DIR/lint-missing-doc.rs:83:5
2018-08-08 07:28:26 -05:00
|
2019-03-09 06:03:44 -06:00
LL | pub fn foo() {}
2018-08-08 07:28:26 -05:00
| ^^^^^^^^^^^^
error: missing documentation for an enum
--> $DIR/lint-missing-doc.rs:120:1
2018-08-08 07:28:26 -05:00
|
2019-03-09 06:03:44 -06:00
LL | pub enum PubBaz {
2018-08-08 07:28:26 -05:00
| ^^^^^^^^^^^^^^^
error: missing documentation for a variant
--> $DIR/lint-missing-doc.rs:121:5
2018-08-08 07:28:26 -05:00
|
2019-03-09 06:03:44 -06:00
LL | PubBazA {
2018-08-08 07:28:26 -05:00
| ^^^^^^^
error: missing documentation for a struct field
--> $DIR/lint-missing-doc.rs:122:9
2018-08-08 07:28:26 -05:00
|
2019-03-09 06:03:44 -06:00
LL | a: isize,
2018-08-08 07:28:26 -05:00
| ^^^^^^^^
error: missing documentation for a constant
--> $DIR/lint-missing-doc.rs:153:1
2018-08-08 07:28:26 -05:00
|
2019-03-09 06:03:44 -06:00
LL | pub const FOO4: u32 = 0;
| ^^^^^^^^^^^^^^^^^^^
2018-08-08 07:28:26 -05:00
error: missing documentation for a static
--> $DIR/lint-missing-doc.rs:163:1
2018-08-08 07:28:26 -05:00
|
2019-03-09 06:03:44 -06:00
LL | pub static BAR4: u32 = 0;
| ^^^^^^^^^^^^^^^^^^^^
2018-08-08 07:28:26 -05:00
error: missing documentation for a function
--> $DIR/lint-missing-doc.rs:169:5
2018-08-08 07:28:26 -05:00
|
2019-03-09 06:03:44 -06:00
LL | pub fn undocumented1() {}
2018-08-08 07:28:26 -05:00
| ^^^^^^^^^^^^^^^^^^^^^^
error: missing documentation for a function
--> $DIR/lint-missing-doc.rs:170:5
2018-08-08 07:28:26 -05:00
|
2019-03-09 06:03:44 -06:00
LL | pub fn undocumented2() {}
2018-08-08 07:28:26 -05:00
| ^^^^^^^^^^^^^^^^^^^^^^
error: missing documentation for a function
--> $DIR/lint-missing-doc.rs:176:9
2018-08-08 07:28:26 -05:00
|
2019-03-09 06:03:44 -06:00
LL | pub fn also_undocumented1() {}
2018-08-08 07:28:26 -05:00
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
2020-09-21 16:48:39 -05:00
error: missing documentation for a function
--> $DIR/lint-missing-doc.rs:191:5
2020-09-21 16:48:39 -05:00
|
LL | pub fn extern_fn_undocumented(f: f32) -> f32;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2020-09-21 16:48:39 -05:00
error: missing documentation for a static
--> $DIR/lint-missing-doc.rs:196:5
2020-09-21 16:48:39 -05:00
|
LL | pub static EXTERN_STATIC_UNDOCUMENTED: u8;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2020-09-21 16:48:39 -05:00
error: missing documentation for a foreign type
--> $DIR/lint-missing-doc.rs:201:5
2020-09-21 16:48:39 -05:00
|
LL | pub type ExternTyUndocumented;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2020-09-21 16:48:39 -05:00
error: aborting due to 24 previous errors
2018-08-08 07:28:26 -05:00