Bless rustdoc tests.
This commit is contained in:
parent
c544f108fd
commit
f7d5b7afb7
4 changed files with 0 additions and 30 deletions
|
@ -32,11 +32,6 @@ LL | | //! let x = 12;
|
||||||
LL | | //! ```
|
LL | | //! ```
|
||||||
| |_______^
|
| |_______^
|
||||||
|
|
|
|
||||||
note: the lint level is defined here
|
|
||||||
--> $DIR/check-fail.rs:4:9
|
|
||||||
|
|
|
||||||
LL | #![deny(rustdoc::all)]
|
|
||||||
| ^^^^^^^^^^^^
|
|
||||||
= note: `#[deny(rustdoc::invalid_codeblock_attributes)]` implied by `#[deny(rustdoc::all)]`
|
= note: `#[deny(rustdoc::invalid_codeblock_attributes)]` implied by `#[deny(rustdoc::all)]`
|
||||||
= help: the code block will either not be tested if not marked as a rust one or the code will be wrapped inside a main function
|
= help: the code block will either not be tested if not marked as a rust one or the code will be wrapped inside a main function
|
||||||
|
|
||||||
|
|
|
@ -43,11 +43,6 @@ LL | |
|
||||||
LL | | pub fn foo() {}
|
LL | | pub fn foo() {}
|
||||||
| |_______________^
|
| |_______________^
|
||||||
|
|
|
|
||||||
note: the lint level is defined here
|
|
||||||
--> $DIR/check.rs:8:9
|
|
||||||
|
|
|
||||||
LL | #![warn(rustdoc::all)]
|
|
||||||
| ^^^^^^^^^^^^
|
|
||||||
= note: `#[warn(rustdoc::missing_doc_code_examples)]` implied by `#[warn(rustdoc::all)]`
|
= note: `#[warn(rustdoc::missing_doc_code_examples)]` implied by `#[warn(rustdoc::all)]`
|
||||||
|
|
||||||
warning: missing code example in this documentation
|
warning: missing code example in this documentation
|
||||||
|
|
|
@ -30,11 +30,6 @@ warning: function is never used: `foo`
|
||||||
LL | fn foo(x: &dyn std::fmt::Display) {}
|
LL | fn foo(x: &dyn std::fmt::Display) {}
|
||||||
| ^^^
|
| ^^^
|
||||||
|
|
|
|
||||||
note: the lint level is defined here
|
|
||||||
--> $DIR/display-output.rs:9:9
|
|
||||||
|
|
|
||||||
LL | #![warn(unused)]
|
|
||||||
| ^^^^^^
|
|
||||||
= note: `#[warn(dead_code)]` implied by `#[warn(unused)]`
|
= note: `#[warn(dead_code)]` implied by `#[warn(unused)]`
|
||||||
|
|
||||||
warning: 3 warnings emitted
|
warning: 3 warnings emitted
|
||||||
|
|
|
@ -21,11 +21,6 @@ LL | | /// println!("sup");
|
||||||
LL | | /// ```
|
LL | | /// ```
|
||||||
| |_______^
|
| |_______^
|
||||||
|
|
|
|
||||||
note: the lint level is defined here
|
|
||||||
--> $DIR/lint-group.rs:7:9
|
|
||||||
|
|
|
||||||
LL | #![deny(rustdoc::all)]
|
|
||||||
| ^^^^^^^^^^^^
|
|
||||||
= note: `#[deny(rustdoc::private_doc_tests)]` implied by `#[deny(rustdoc::all)]`
|
= note: `#[deny(rustdoc::private_doc_tests)]` implied by `#[deny(rustdoc::all)]`
|
||||||
|
|
||||||
error: missing code example in this documentation
|
error: missing code example in this documentation
|
||||||
|
@ -40,11 +35,6 @@ error: unresolved link to `error`
|
||||||
LL | /// what up, let's make an [error]
|
LL | /// what up, let's make an [error]
|
||||||
| ^^^^^ no item named `error` in scope
|
| ^^^^^ no item named `error` in scope
|
||||||
|
|
|
|
||||||
note: the lint level is defined here
|
|
||||||
--> $DIR/lint-group.rs:7:9
|
|
||||||
|
|
|
||||||
LL | #![deny(rustdoc::all)]
|
|
||||||
| ^^^^^^^^^^^^
|
|
||||||
= note: `#[deny(rustdoc::broken_intra_doc_links)]` implied by `#[deny(rustdoc::all)]`
|
= note: `#[deny(rustdoc::broken_intra_doc_links)]` implied by `#[deny(rustdoc::all)]`
|
||||||
= help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
|
= help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
|
||||||
|
|
||||||
|
@ -54,11 +44,6 @@ error: unclosed HTML tag `unknown`
|
||||||
LL | /// <unknown>
|
LL | /// <unknown>
|
||||||
| ^^^^^^^^^
|
| ^^^^^^^^^
|
||||||
|
|
|
|
||||||
note: the lint level is defined here
|
|
||||||
--> $DIR/lint-group.rs:7:9
|
|
||||||
|
|
|
||||||
LL | #![deny(rustdoc::all)]
|
|
||||||
| ^^^^^^^^^^^^
|
|
||||||
= note: `#[deny(rustdoc::invalid_html_tags)]` implied by `#[deny(rustdoc::all)]`
|
= note: `#[deny(rustdoc::invalid_html_tags)]` implied by `#[deny(rustdoc::all)]`
|
||||||
|
|
||||||
error: aborting due to 5 previous errors
|
error: aborting due to 5 previous errors
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue