2020-11-12 13:58:07 +00:00
|
|
|
warning: missing documentation for the crate
|
2021-05-05 03:36:33 +00:00
|
|
|
--> $DIR/check.rs:5:1
|
2020-11-12 13:58:07 +00:00
|
|
|
|
|
2022-09-12 18:10:35 +00:00
|
|
|
LL | / #![feature(rustdoc_missing_doc_code_examples)]
|
2020-11-12 13:58:07 +00:00
|
|
|
LL | |
|
|
|
|
LL | |
|
2022-09-12 18:10:35 +00:00
|
|
|
LL | |
|
|
|
|
... |
|
2020-11-12 13:58:07 +00:00
|
|
|
LL | |
|
|
|
|
LL | | pub fn foo() {}
|
|
|
|
| |_______________^
|
|
|
|
|
|
|
|
|
note: the lint level is defined here
|
2022-09-12 18:10:35 +00:00
|
|
|
--> $DIR/check.rs:9:9
|
2020-11-12 13:58:07 +00:00
|
|
|
|
|
|
|
|
LL | #![warn(missing_docs)]
|
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
|
|
|
warning: missing documentation for a function
|
2022-12-31 01:09:19 +00:00
|
|
|
--> $DIR/check.rs:13:1
|
2020-11-12 13:58:07 +00:00
|
|
|
|
|
|
|
|
LL | pub fn foo() {}
|
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
2021-01-18 06:14:01 +00:00
|
|
|
warning: no documentation found for this crate's top-level module
|
|
|
|
|
|
2022-09-23 18:34:34 +00:00
|
|
|
= help: The following guide may be of use:
|
|
|
|
https://doc.rust-lang.org/$CHANNEL/rustdoc/how-to-write-documentation.html
|
2021-01-18 06:14:01 +00:00
|
|
|
note: the lint level is defined here
|
2022-12-31 01:09:19 +00:00
|
|
|
--> $DIR/check.rs:11:9
|
2021-01-18 06:14:01 +00:00
|
|
|
|
|
2021-03-05 14:50:20 +00:00
|
|
|
LL | #![warn(rustdoc::all)]
|
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
= note: `#[warn(rustdoc::missing_crate_level_docs)]` implied by `#[warn(rustdoc::all)]`
|
2021-01-18 06:14:01 +00:00
|
|
|
|
2020-11-12 13:58:07 +00:00
|
|
|
warning: missing code example in this documentation
|
2021-05-05 03:36:33 +00:00
|
|
|
--> $DIR/check.rs:5:1
|
2020-11-12 13:58:07 +00:00
|
|
|
|
|
2022-09-12 18:10:35 +00:00
|
|
|
LL | / #![feature(rustdoc_missing_doc_code_examples)]
|
|
|
|
LL | |
|
2020-11-12 13:58:07 +00:00
|
|
|
LL | |
|
|
|
|
LL | |
|
2022-09-12 18:10:35 +00:00
|
|
|
... |
|
2020-11-12 13:58:07 +00:00
|
|
|
LL | |
|
|
|
|
LL | | pub fn foo() {}
|
|
|
|
| |_______________^
|
|
|
|
|
|
2022-12-31 01:09:19 +00:00
|
|
|
note: the lint level is defined here
|
|
|
|
--> $DIR/check.rs:10:9
|
|
|
|
|
|
|
|
|
LL | #![warn(rustdoc::missing_doc_code_examples)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2020-11-12 13:58:07 +00:00
|
|
|
|
|
|
|
warning: missing code example in this documentation
|
2022-12-31 01:09:19 +00:00
|
|
|
--> $DIR/check.rs:13:1
|
2020-11-12 13:58:07 +00:00
|
|
|
|
|
|
|
|
LL | pub fn foo() {}
|
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
2021-01-18 06:14:01 +00:00
|
|
|
warning: 5 warnings emitted
|
2020-11-12 13:58:07 +00:00
|
|
|
|