Do not emit missing_doc_code_examples
rustdoc lint on module and a few other items
This commit is contained in:
parent
c1cfab230e
commit
7cf3f8ba7a
12 changed files with 35 additions and 64 deletions
|
@ -1,4 +1,4 @@
|
|||
#![feature(rustdoc_missing_doc_code_examples)] //~ ERROR missing code example in this documentation
|
||||
#![feature(rustdoc_missing_doc_code_examples)]
|
||||
#![deny(rustdoc::missing_doc_code_examples)]
|
||||
|
||||
/// Some docs.
|
||||
|
@ -6,7 +6,6 @@
|
|||
pub struct Foo;
|
||||
|
||||
/// And then, the princess died.
|
||||
//~^ ERROR missing code example in this documentation
|
||||
pub mod foo {
|
||||
/// Or maybe not because she saved herself!
|
||||
//~^ ERROR missing code example in this documentation
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue