Skip to content

Commit

Permalink
Stabilize rustdoc CHECK_INVALID_HTML_TAGS check
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Sep 13, 2022
1 parent 7482e5b commit f92d294
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/librustdoc/passes/html_tags.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,8 @@ struct InvalidHtmlTagsLinter<'a, 'tcx> {
}

pub(crate) fn check_invalid_html_tags(krate: Crate, cx: &mut DocContext<'_>) -> Crate {
if cx.tcx.sess.is_nightly_build() {
let mut coll = InvalidHtmlTagsLinter { cx };
coll.visit_crate(&krate);
}
let mut coll = InvalidHtmlTagsLinter { cx };
coll.visit_crate(&krate);
krate
}

Expand Down

0 comments on commit f92d294

Please sign in to comment.