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