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.

159 lines
3.8 KiB
Plaintext
Raw Normal View History

2018-08-08 20:28:26 +08:00
error: missing documentation for a type alias
2023-06-06 17:50:24 +08:00
--> $DIR/lint-missing-doc.rs:16:1
2018-08-08 20:28:26 +08:00
|
2019-03-09 20:03:44 +08:00
LL | pub type PubTypedef = String;
| ^^^^^^^^^^^^^^^^^^^
2018-08-08 20:28:26 +08:00
|
2020-01-23 07:57:38 +08:00
note: the lint level is defined here
2023-06-06 17:50:24 +08:00
--> $DIR/lint-missing-doc.rs:4:9
2018-08-08 20:28:26 +08:00
|
LL | #![deny(missing_docs)]
| ^^^^^^^^^^^^
error: missing documentation for a struct
2023-06-06 17:50:24 +08:00
--> $DIR/lint-missing-doc.rs:23:1
2018-08-08 20:28:26 +08:00
|
2019-03-09 20:03:44 +08:00
LL | pub struct PubFoo {
2018-08-08 20:28:26 +08:00
| ^^^^^^^^^^^^^^^^^
error: missing documentation for a struct field
2023-06-06 17:50:24 +08:00
--> $DIR/lint-missing-doc.rs:24:5
2018-08-08 20:28:26 +08:00
|
2019-03-09 20:03:44 +08:00
LL | pub a: isize,
2018-08-08 20:28:26 +08:00
| ^^^^^^^^^^^^
error: missing documentation for a module
2023-06-06 17:50:24 +08:00
--> $DIR/lint-missing-doc.rs:35:1
2018-08-08 20:28:26 +08:00
|
2019-03-09 20:03:44 +08:00
LL | pub mod pub_module_no_dox {}
2018-08-08 20:28:26 +08:00
| ^^^^^^^^^^^^^^^^^^^^^^^^^
error: missing documentation for a function
2023-06-06 17:50:24 +08:00
--> $DIR/lint-missing-doc.rs:39:1
2018-08-08 20:28:26 +08:00
|
2019-03-09 20:03:44 +08:00
LL | pub fn foo2() {}
2018-08-08 20:28:26 +08:00
| ^^^^^^^^^^^^^
error: missing documentation for a trait
2023-06-06 17:50:24 +08:00
--> $DIR/lint-missing-doc.rs:57:1
2018-08-08 20:28:26 +08:00
|
2019-03-09 20:03:44 +08:00
LL | pub trait C {
2018-08-08 20:28:26 +08:00
| ^^^^^^^^^^^
error: missing documentation for a method
2023-06-06 17:50:24 +08:00
--> $DIR/lint-missing-doc.rs:58:5
2018-08-08 20:28:26 +08:00
|
2019-03-09 20:03:44 +08:00
LL | fn foo(&self);
2018-08-08 20:28:26 +08:00
| ^^^^^^^^^^^^^^
error: missing documentation for a method
2023-06-06 17:50:24 +08:00
--> $DIR/lint-missing-doc.rs:59:5
2018-08-08 20:28:26 +08:00
|
2019-03-09 20:03:44 +08:00
LL | fn foo_with_impl(&self) {}
2018-08-08 20:28:26 +08:00
| ^^^^^^^^^^^^^^^^^^^^^^^
error: missing documentation for an associated function
2023-06-06 17:50:24 +08:00
--> $DIR/lint-missing-doc.rs:60:5
|
LL | fn foo_no_self();
| ^^^^^^^^^^^^^^^^^
error: missing documentation for an associated function
2023-06-06 17:50:24 +08:00
--> $DIR/lint-missing-doc.rs:61:5
|
LL | fn foo_no_self_with_impl() {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
2018-08-08 20:28:26 +08:00
error: missing documentation for an associated type
2023-06-06 17:50:24 +08:00
--> $DIR/lint-missing-doc.rs:71:5
2018-08-08 20:28:26 +08:00
|
2019-03-09 20:03:44 +08:00
LL | type AssociatedType;
| ^^^^^^^^^^^^^^^^^^^
2018-08-08 20:28:26 +08:00
error: missing documentation for an associated type
2023-06-06 17:50:24 +08:00
--> $DIR/lint-missing-doc.rs:72:5
2018-08-08 20:28:26 +08:00
|
2019-03-09 20:03:44 +08:00
LL | type AssociatedTypeDef = Self;
| ^^^^^^^^^^^^^^^^^^^^^^
2018-08-08 20:28:26 +08:00
2020-03-22 08:47:23 +08:00
error: missing documentation for an associated function
2023-06-06 17:50:24 +08:00
--> $DIR/lint-missing-doc.rs:88:5
2018-08-08 20:28:26 +08:00
|
2019-03-09 20:03:44 +08:00
LL | pub fn foo() {}
2018-08-08 20:28:26 +08:00
| ^^^^^^^^^^^^
error: missing documentation for an enum
2023-06-06 17:50:24 +08:00
--> $DIR/lint-missing-doc.rs:125:1
2018-08-08 20:28:26 +08:00
|
2019-03-09 20:03:44 +08:00
LL | pub enum PubBaz {
2018-08-08 20:28:26 +08:00
| ^^^^^^^^^^^^^^^
error: missing documentation for a variant
2023-06-06 17:50:24 +08:00
--> $DIR/lint-missing-doc.rs:126:5
2018-08-08 20:28:26 +08:00
|
2019-03-09 20:03:44 +08:00
LL | PubBazA {
2018-08-08 20:28:26 +08:00
| ^^^^^^^
error: missing documentation for a struct field
2023-06-06 17:50:24 +08:00
--> $DIR/lint-missing-doc.rs:127:9
2018-08-08 20:28:26 +08:00
|
2019-03-09 20:03:44 +08:00
LL | a: isize,
2018-08-08 20:28:26 +08:00
| ^^^^^^^^
error: missing documentation for a constant
2023-06-06 17:50:24 +08:00
--> $DIR/lint-missing-doc.rs:158:1
2018-08-08 20:28:26 +08:00
|
2019-03-09 20:03:44 +08:00
LL | pub const FOO4: u32 = 0;
| ^^^^^^^^^^^^^^^^^^^
2018-08-08 20:28:26 +08:00
error: missing documentation for a static
2023-06-06 17:50:24 +08:00
--> $DIR/lint-missing-doc.rs:168:1
2018-08-08 20:28:26 +08:00
|
2019-03-09 20:03:44 +08:00
LL | pub static BAR4: u32 = 0;
| ^^^^^^^^^^^^^^^^^^^^
2018-08-08 20:28:26 +08:00
2020-09-22 05:48:39 +08:00
error: missing documentation for a function
2023-06-06 17:50:24 +08:00
--> $DIR/lint-missing-doc.rs:196:5
2020-09-22 05:48:39 +08:00
|
LL | pub fn extern_fn_undocumented(f: f32) -> f32;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2020-09-22 05:48:39 +08:00
error: missing documentation for a static
2023-06-06 17:50:24 +08:00
--> $DIR/lint-missing-doc.rs:201:5
2020-09-22 05:48:39 +08:00
|
LL | pub static EXTERN_STATIC_UNDOCUMENTED: u8;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2020-09-22 05:48:39 +08:00
error: missing documentation for a foreign type
2023-06-06 17:50:24 +08:00
--> $DIR/lint-missing-doc.rs:206:5
2020-09-22 05:48:39 +08:00
|
LL | pub type ExternTyUndocumented;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2020-09-22 05:48:39 +08:00
error: missing documentation for a trait alias
2023-06-06 17:50:24 +08:00
--> $DIR/lint-missing-doc.rs:210:1
|
LL | pub trait T = Sync;
| ^^^^^^^^^^^
2023-07-16 00:43:45 +08:00
error: missing documentation for a function
--> $DIR/lint-missing-doc.rs:174:5
|
LL | pub fn undocumented1() {}
| ^^^^^^^^^^^^^^^^^^^^^^
error: missing documentation for a function
--> $DIR/lint-missing-doc.rs:175:5
|
LL | pub fn undocumented2() {}
| ^^^^^^^^^^^^^^^^^^^^^^
error: missing documentation for a function
--> $DIR/lint-missing-doc.rs:181:9
|
LL | pub fn also_undocumented1() {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: aborting due to 25 previous errors
2018-08-08 20:28:26 +08:00