diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2020-09-23 20:25:56 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2020-10-03 14:16:23 +0200 |
| commit | e6027a42e109fef10f4fc27ebede50d1b3d203f0 (patch) | |
| tree | c4b918f40dcd4d015415d445b53f176cc60a0f0a /compiler/rustc_session/src | |
| parent | 782013564efc06ef02614ba35a4e67dee4fcb8e7 (diff) | |
| download | rust-e6027a42e109fef10f4fc27ebede50d1b3d203f0.tar.gz rust-e6027a42e109fef10f4fc27ebede50d1b3d203f0.zip | |
Add `unclosed_html_tags` lint
Diffstat (limited to 'compiler/rustc_session/src')
| -rw-r--r-- | compiler/rustc_session/src/lint/builtin.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/compiler/rustc_session/src/lint/builtin.rs b/compiler/rustc_session/src/lint/builtin.rs index 0cc97fb4541..ce2a14b4481 100644 --- a/compiler/rustc_session/src/lint/builtin.rs +++ b/compiler/rustc_session/src/lint/builtin.rs @@ -1882,6 +1882,16 @@ declare_lint! { } declare_lint! { + /// The `invalid_html_tags` lint detects invalid HTML tags. This is a + /// `rustdoc` only lint, see the documentation in the [rustdoc book]. + /// + /// [rustdoc book]: ../../../rustdoc/lints.html#invalid_html_tags + pub INVALID_HTML_TAGS, + Warn, + "detects invalid HTML tags in doc comments" +} + +declare_lint! { /// The `where_clauses_object_safety` lint detects for [object safety] of /// [where clauses]. /// @@ -2699,6 +2709,7 @@ declare_lint_pass! { INVALID_CODEBLOCK_ATTRIBUTES, MISSING_CRATE_LEVEL_DOCS, MISSING_DOC_CODE_EXAMPLES, + INVALID_HTML_TAGS, PRIVATE_DOC_TESTS, WHERE_CLAUSES_OBJECT_SAFETY, PROC_MACRO_DERIVE_RESOLUTION_FALLBACK, |
