]> git.lizzy.rs Git - rust.git/blobdiff - src/librustdoc/passes/mod.rs
Add `unclosed_html_tags` lint
[rust.git] / src / librustdoc / passes / mod.rs
index 75a659666673f528f19c6de0c8a9050e92a0382d..3819aaee56000ef44f773d8bfabf198bdfc7232d 100644 (file)
@@ -45,6 +45,9 @@
 mod calculate_doc_coverage;
 pub use self::calculate_doc_coverage::CALCULATE_DOC_COVERAGE;
 
+mod html_tags;
+pub use self::html_tags::CHECK_INVALID_HTML_TAGS;
+
 /// A single pass over the cleaned documentation.
 ///
 /// Runs in the compiler context, so it has access to types and traits and the like.
@@ -87,6 +90,7 @@ pub enum Condition {
     CHECK_CODE_BLOCK_SYNTAX,
     COLLECT_TRAIT_IMPLS,
     CALCULATE_DOC_COVERAGE,
+    CHECK_INVALID_HTML_TAGS,
 ];
 
 /// The list of passes run by default.
@@ -101,6 +105,7 @@ pub enum Condition {
     ConditionalPass::always(COLLECT_INTRA_DOC_LINKS),
     ConditionalPass::always(CHECK_CODE_BLOCK_SYNTAX),
     ConditionalPass::always(PROPAGATE_DOC_CFG),
+    ConditionalPass::always(CHECK_INVALID_HTML_TAGS),
 ];
 
 /// The list of default passes run when `--doc-coverage` is passed to rustdoc.