- Rename `broken_intra_doc_links` to `rustdoc::broken_intra_doc_links` - Ensure that the old lint names still work and give deprecation errors - Register lints even when running doctests Otherwise, all `rustdoc::` lints would be ignored. - Register all existing lints as removed This unfortunately doesn't work with `register_renamed` because tool lints have not yet been registered when rustc is running. For similar reasons, `check_backwards_compat` doesn't work either. Call `register_removed` directly instead. - Fix fallout + Rustdoc lints for compiler/ + Rustdoc lints for library/ Note that this does *not* suggest `rustdoc::broken_intra_doc_links` for `rustdoc::intra_doc_link_resolution_failure`, since there was no time when the latter was valid.
38 lines
974 B
Text
38 lines
974 B
Text
error: missing code example in this documentation
|
|
--> $DIR/doc-without-codeblock.rs:1:1
|
|
|
|
|
LL | / #![deny(rustdoc::missing_doc_code_examples)]
|
|
LL | |
|
|
LL | | /// Some docs.
|
|
LL | |
|
|
... |
|
|
LL | | pub fn bar() {}
|
|
LL | | }
|
|
| |_^
|
|
|
|
|
note: the lint level is defined here
|
|
--> $DIR/doc-without-codeblock.rs:1:9
|
|
|
|
|
LL | #![deny(rustdoc::missing_doc_code_examples)]
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: missing code example in this documentation
|
|
--> $DIR/doc-without-codeblock.rs:7:1
|
|
|
|
|
LL | /// And then, the princess died.
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: missing code example in this documentation
|
|
--> $DIR/doc-without-codeblock.rs:10:5
|
|
|
|
|
LL | /// Or maybe not because she saved herself!
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: missing code example in this documentation
|
|
--> $DIR/doc-without-codeblock.rs:3:1
|
|
|
|
|
LL | /// Some docs.
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
error: aborting due to 4 previous errors
|
|
|