Macros§
Statics§
- The
bare_urlslint detects when a URL is not a hyperlink. This is arustdoconly lint, see the documentation in the rustdoc book. - The
broken_intra_doc_linkslint detects failures in resolving intra-doc link targets. This is arustdoconly lint, see the documentation in the rustdoc book. - The
invalid_codeblock_attributeslint detects code block attributes in documentation examples that have potentially mis-typed values. This is arustdoconly lint, see the documentation in the rustdoc book. - The
invalid_html_tagslint detects invalid HTML tags. This is arustdoconly lint, see the documentation in the rustdoc book. - The
invalid_rust_codeblockslint detects Rust code blocks in documentation examples that are invalid (e.g. empty, not parsable as Rust code). This is arustdoconly lint, see the documentation in the rustdoc book. - The
missing_crate_level_docslint detects if documentation is missing at the crate root. This is arustdoconly lint, see the documentation in the rustdoc book. - The
missing_doc_code_exampleslint detects publicly-exported items without code samples in their documentation. This is arustdoconly lint, see the documentation in the rustdoc book. - The
private_doc_testslint detects code samples in docs of private items not documented byrustdoc. This is arustdoconly lint, see the documentation in the rustdoc book. - This is a subset of
broken_intra_doc_linksthat warns when linking from a public item to a private one. This is arustdoconly lint, see the documentation in the rustdoc book. - This lint is warn-by-default. It detects explicit links that are the same as computed automatic links. This usually means the explicit links are removable. This is a
rustdoconly lint, see the documentation in the rustdoc book. - The
unescaped_backtickslint detects unescaped backticks (`), which usually mean broken inline code. This is arustdoconly lint, see the documentation in the rustdoc book. - This compatibility lint checks for Markdown syntax that works in the old engine but not the new one.
Functions§
- This function is used to setup the lint initialization. By default, in rustdoc, everything is “allowed”. Depending if we run in test mode or not, we want some of them to be at their default level. For example, the “INVALID_CODEBLOCK_ATTRIBUTES” lint is activated in both modes.