about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2020-11-16 15:32:26 +0100
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2020-11-16 16:44:41 +0100
commitbbd302bab469a1da3804a4b998817ccbf15c874e (patch)
tree22d8a56fb2aa6adc6313ec8d04a53c793243a1ed
parent7986bb8c463ea6c61788983e4016243bef97acdc (diff)
downloadrust-bbd302bab469a1da3804a4b998817ccbf15c874e.tar.gz
rust-bbd302bab469a1da3804a4b998817ccbf15c874e.zip
Add test to ensure that "invalid HTML tag" lint isn't fired in code blocks
-rw-r--r--src/test/rustdoc-ui/invalid-html-tags.rs21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/test/rustdoc-ui/invalid-html-tags.rs b/src/test/rustdoc-ui/invalid-html-tags.rs
index 56ca7e79d43..9c2fc4beb5e 100644
--- a/src/test/rustdoc-ui/invalid-html-tags.rs
+++ b/src/test/rustdoc-ui/invalid-html-tags.rs
@@ -87,3 +87,24 @@ pub fn h() {}
 /// <!--
 //~^ ERROR Unclosed HTML comment
 pub fn i() {}
+
+/// hello
+///
+/// ```
+/// uiapp.run(&env::args().collect::<Vec<_>>());
+/// ```
+pub fn j() {}
+
+// Check that nested codeblocks are working as well
+/// hello
+///
+/// ``````markdown
+/// normal markdown
+///
+/// ```
+/// uiapp.run(&env::args().collect::<Vec<_>>());
+/// ```
+///
+/// <Vec<_> shouldn't warn!
+/// ``````
+pub fn k() {}