Fix visitor for invalid_html_tag lint
This commit is contained in:
parent
f9a65afb27
commit
4a3746e67b
2 changed files with 2 additions and 2 deletions
|
|
@ -105,7 +105,7 @@ impl<'a, 'tcx> DocFolder for InvalidHtmlTagsLinter<'a, 'tcx> {
|
|||
Some(hir_id) => hir_id,
|
||||
None => {
|
||||
// If non-local, no need to check anything.
|
||||
return None;
|
||||
return self.fold_item_recur(item);
|
||||
}
|
||||
};
|
||||
let dox = item.attrs.collapsed_doc_value().unwrap_or_default();
|
||||
|
|
|
|||
|
|
@ -104,8 +104,8 @@ pub const DEFAULT_PASSES: &[ConditionalPass] = &[
|
|||
ConditionalPass::new(STRIP_PRIV_IMPORTS, WhenDocumentPrivate),
|
||||
ConditionalPass::always(COLLECT_INTRA_DOC_LINKS),
|
||||
ConditionalPass::always(CHECK_CODE_BLOCK_SYNTAX),
|
||||
ConditionalPass::always(PROPAGATE_DOC_CFG),
|
||||
ConditionalPass::always(CHECK_INVALID_HTML_TAGS),
|
||||
ConditionalPass::always(PROPAGATE_DOC_CFG),
|
||||
];
|
||||
|
||||
/// The list of default passes run when `--doc-coverage` is passed to rustdoc.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue