1
Fork 0

Do not emit missing_doc_code_examples rustdoc lint on module and a few other items

This commit is contained in:
Guillaume Gomez 2024-11-28 21:22:06 +01:00
parent c1cfab230e
commit 7cf3f8ba7a
12 changed files with 35 additions and 64 deletions

View file

@ -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