From 785b705ae4cc0cc503a79c7bccfcf689bcc7820f Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Thu, 3 Jun 2021 19:57:49 +0200 Subject: [PATCH] Only run HTML check on rustdoc generated items --- src/tools/html-checker/main.rs | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/src/tools/html-checker/main.rs b/src/tools/html-checker/main.rs index a93191191cc0..bf2830254e81 100644 --- a/src/tools/html-checker/main.rs +++ b/src/tools/html-checker/main.rs @@ -11,22 +11,10 @@ fn check_html_file(file: &Path) -> usize { // If a contains only HTML elements and no text, it complains about it. "TRIM_EMPTY_ELEMENT", // FIXME: the three next warnings are about
 elements which are not supposed to
-        //        contain HTML. The solution here would be to replace them with a 
with - // "" + // contain HTML. The solution here would be to replace them with a
"MISSING_ENDTAG_BEFORE", "INSERTING_TAG", "DISCARDING_UNEXPECTED", - // FIXME: mdbook repeats the name attribute on . When the fix is merged upstream, - // this warning can be used again. - "REPEATED_ATTRIBUTE", - // FIXME: mdbook uses "align" attribute on , which is not allowed. - "MISMATCHED_ATTRIBUTE_WARN", - // FIXME: mdbook doesn't add "alt" attribute on images. - "MISSING_ATTRIBUTE", - // FIXME: mdbook doesn't escape `&` (in "&String" for example). - "UNKNOWN_ENTITY", - // Compiler docs have some inlined