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