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,8 +1,8 @@
error: missing code example in this documentation
--> $DIR/lint-missing-doc-code-example.rs:20:1
--> $DIR/lint-missing-doc-code-example.rs:38:3
|
LL | pub mod module1 {
| ^^^^^^^^^^^^^^^
LL | /// doc
| ^^^^^^^
|
note: the lint level is defined here
--> $DIR/lint-missing-doc-code-example.rs:3:9
@ -10,12 +10,6 @@ note: the lint level is defined here
LL | #![deny(rustdoc::missing_doc_code_examples)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: missing code example in this documentation
--> $DIR/lint-missing-doc-code-example.rs:38:3
|
LL | /// doc
| ^^^^^^^
error: missing code example in this documentation
--> $DIR/lint-missing-doc-code-example.rs:50:1
|
@ -34,5 +28,5 @@ error: missing code example in this documentation
LL | /// Doc
| ^^^^^^^
error: aborting due to 5 previous errors
error: aborting due to 4 previous errors