Stabilize rustdoc CHECK_INVALID_HTML_TAGS check

This commit is contained in:
Guillaume Gomez 2022-09-12 12:07:43 +02:00 committed by Guillaume Gomez
parent c23ed655eb
commit d9570e0510

View File

@ -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
}