diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2024-11-28 21:22:06 +0100 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2024-11-28 21:22:06 +0100 |
| commit | 7cf3f8ba7a4a7c8b9dc7a44ccc1702fa7d0d2d1c (patch) | |
| tree | 89d635525e73976b7332f48044d5933806d004f9 /tests/rustdoc-ui/lints/doc-without-codeblock.stderr | |
| parent | c1cfab230ebb2e9cb9f4ea69773fef956c706a71 (diff) | |
| download | rust-7cf3f8ba7a4a7c8b9dc7a44ccc1702fa7d0d2d1c.tar.gz rust-7cf3f8ba7a4a7c8b9dc7a44ccc1702fa7d0d2d1c.zip | |
Do not emit `missing_doc_code_examples` rustdoc lint on module and a few other items
Diffstat (limited to 'tests/rustdoc-ui/lints/doc-without-codeblock.stderr')
| -rw-r--r-- | tests/rustdoc-ui/lints/doc-without-codeblock.stderr | 26 |
1 files changed, 4 insertions, 22 deletions
diff --git a/tests/rustdoc-ui/lints/doc-without-codeblock.stderr b/tests/rustdoc-ui/lints/doc-without-codeblock.stderr index ebf2a2d54f7..d230f160693 100644 --- a/tests/rustdoc-ui/lints/doc-without-codeblock.stderr +++ b/tests/rustdoc-ui/lints/doc-without-codeblock.stderr @@ -1,14 +1,8 @@ error: missing code example in this documentation - --> $DIR/doc-without-codeblock.rs:1:1 + --> $DIR/doc-without-codeblock.rs:10:5 | -LL | / #![feature(rustdoc_missing_doc_code_examples)] -LL | | #![deny(rustdoc::missing_doc_code_examples)] -LL | | -LL | | /// Some docs. -... | -LL | | } -LL | | } - | |_^ +LL | /// Or maybe not because she saved herself! + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | note: the lint level is defined here --> $DIR/doc-without-codeblock.rs:2:9 @@ -17,22 +11,10 @@ LL | #![deny(rustdoc::missing_doc_code_examples)] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: missing code example in this documentation - --> $DIR/doc-without-codeblock.rs:8:1 - | -LL | /// And then, the princess died. - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -error: missing code example in this documentation - --> $DIR/doc-without-codeblock.rs:11:5 - | -LL | /// Or maybe not because she saved herself! - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -error: missing code example in this documentation --> $DIR/doc-without-codeblock.rs:4:1 | LL | /// Some docs. | ^^^^^^^^^^^^^^ -error: aborting due to 4 previous errors +error: aborting due to 2 previous errors |
