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.

141 lines
3.4 KiB
Plaintext
Raw Normal View History

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
|
2019-03-09 15:03:44 +03:00
LL | pub type PubTypedef = String;
| ^^^^^^^^^^^^^^^^^^^
2018-08-08 14:28:26 +02:00
|
2020-01-22 23:57:38 +00:00
note: the lint level is 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
|
2019-03-09 15:03:44 +03:00
LL | pub struct PubFoo {
2018-08-08 14:28:26 +02:00
| ^^^^^^^^^^^^^^^^^
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
|
2019-03-09 15:03:44 +03:00
LL | pub a: isize,
2018-08-08 14:28:26 +02:00
| ^^^^^^^^^^^^
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
|
2019-03-09 15:03:44 +03:00
LL | pub mod pub_module_no_dox {}
2018-08-08 14:28:26 +02:00
| ^^^^^^^^^^^^^^^^^^^^^^^^^
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
|
2019-03-09 15:03:44 +03:00
LL | pub fn foo2() {}
2018-08-08 14:28:26 +02:00
| ^^^^^^^^^^^^^
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
|
2019-03-09 15:03:44 +03:00
LL | pub trait C {
2018-08-08 14:28:26 +02:00
| ^^^^^^^^^^^
2020-03-21 19:47:23 -05:00
error: missing documentation for an associated function
2018-12-25 08:56:47 -07:00
--> $DIR/lint-missing-doc.rs:53:5
2018-08-08 14:28:26 +02:00
|
2019-03-09 15:03:44 +03:00
LL | fn foo(&self);
2018-08-08 14:28:26 +02:00
| ^^^^^^^^^^^^^^
2020-03-21 19:47:23 -05:00
error: missing documentation for an associated function
2018-12-25 08:56:47 -07:00
--> $DIR/lint-missing-doc.rs:54:5
2018-08-08 14:28:26 +02:00
|
2019-03-09 15:03:44 +03:00
LL | fn foo_with_impl(&self) {}
2018-08-08 14:28:26 +02:00
| ^^^^^^^^^^^^^^^^^^^^^^^
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
|
2019-03-09 15:03:44 +03:00
LL | type AssociatedType;
| ^^^^^^^^^^^^^^^^^^^
2018-08-08 14:28:26 +02:00
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
|
2019-03-09 15:03:44 +03:00
LL | type AssociatedTypeDef = Self;
| ^^^^^^^^^^^^^^^^^^^^^^
2018-08-08 14:28:26 +02:00
2020-03-21 19:47:23 -05:00
error: missing documentation for an associated function
2018-12-25 08:56:47 -07:00
--> $DIR/lint-missing-doc.rs:81:5
2018-08-08 14:28:26 +02:00
|
2019-03-09 15:03:44 +03:00
LL | pub fn foo() {}
2018-08-08 14:28:26 +02:00
| ^^^^^^^^^^^^
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
|
2019-03-09 15:03:44 +03:00
LL | pub enum PubBaz {
2018-08-08 14:28:26 +02:00
| ^^^^^^^^^^^^^^^
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
|
2019-03-09 15:03:44 +03:00
LL | PubBazA {
2018-08-08 14:28:26 +02:00
| ^^^^^^^
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
|
2019-03-09 15:03:44 +03:00
LL | a: isize,
2018-08-08 14:28:26 +02:00
| ^^^^^^^^
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
|
2019-03-09 15:03:44 +03:00
LL | pub const FOO4: u32 = 0;
| ^^^^^^^^^^^^^^^^^^^
2018-08-08 14:28:26 +02:00
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
|
2019-03-09 15:03:44 +03:00
LL | pub static BAR4: u32 = 0;
| ^^^^^^^^^^^^^^^^^^^^
2018-08-08 14:28:26 +02:00
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
|
2019-03-09 15:03:44 +03:00
LL | pub fn undocumented1() {}
2018-08-08 14:28:26 +02:00
| ^^^^^^^^^^^^^^^^^^^^^^
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
|
2019-03-09 15:03:44 +03:00
LL | pub fn undocumented2() {}
2018-08-08 14:28:26 +02:00
| ^^^^^^^^^^^^^^^^^^^^^^
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
|
2019-03-09 15:03:44 +03:00
LL | pub fn also_undocumented1() {}
2018-08-08 14:28:26 +02:00
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
2020-09-21 23:48:39 +02:00
error: missing documentation for a function
--> $DIR/lint-missing-doc.rs:189:5
|
LL | pub fn extern_fn_undocumented(f: f32) -> f32;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2020-09-21 23:48:39 +02:00
error: missing documentation for a static
--> $DIR/lint-missing-doc.rs:194:5
|
LL | pub static EXTERN_STATIC_UNDOCUMENTED: u8;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2020-09-21 23:48:39 +02:00
error: missing documentation for a foreign type
--> $DIR/lint-missing-doc.rs:199:5
|
LL | pub type ExternTyUndocumented;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2020-09-21 23:48:39 +02:00
error: aborting due to 22 previous errors
2018-08-08 14:28:26 +02:00