Skip to content

Commit 4a3746e

Browse files
Fix visitor for invalid_html_tag lint
1 parent f9a65af commit 4a3746e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/librustdoc/passes/html_tags.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ impl<'a, 'tcx> DocFolder for InvalidHtmlTagsLinter<'a, 'tcx> {
105105
Some(hir_id) => hir_id,
106106
None => {
107107
// If non-local, no need to check anything.
108-
return None;
108+
return self.fold_item_recur(item);
109109
}
110110
};
111111
let dox = item.attrs.collapsed_doc_value().unwrap_or_default();

src/librustdoc/passes/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@ pub const DEFAULT_PASSES: &[ConditionalPass] = &[
104104
ConditionalPass::new(STRIP_PRIV_IMPORTS, WhenDocumentPrivate),
105105
ConditionalPass::always(COLLECT_INTRA_DOC_LINKS),
106106
ConditionalPass::always(CHECK_CODE_BLOCK_SYNTAX),
107-
ConditionalPass::always(PROPAGATE_DOC_CFG),
108107
ConditionalPass::always(CHECK_INVALID_HTML_TAGS),
108+
ConditionalPass::always(PROPAGATE_DOC_CFG),
109109
];
110110

111111
/// The list of default passes run when `--doc-coverage` is passed to rustdoc.

0 commit comments

Comments
 (0)