We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fd89197 commit 27e193cCopy full SHA for 27e193c
tests/rustdoc-ui/remap-path-prefix-lint.rs
@@ -0,0 +1,9 @@
1
+// Regression test for remapped paths in rustdoc errors <https://github.com/rust-lang/rust/issues/69264>.
2
+
3
+//@ compile-flags:-Z unstable-options --remap-path-prefix={{src-base}}=remapped_path
4
+//@ rustc-env:RUST_BACKTRACE=0
5
6
+#![deny(rustdoc::invalid_html_tags)]
7
8
+/// </script>
9
+pub struct Bar;
tests/rustdoc-ui/remap-path-prefix-lint.stderr
@@ -0,0 +1,14 @@
+error: unopened HTML tag `script`
+ --> remapped_path/remap-path-prefix-lint.rs:8:5
+ |
+LL | /// </script>
+ | ^^^^^^^^^
+note: the lint level is defined here
+ --> remapped_path/remap-path-prefix-lint.rs:6:9
10
+LL | #![deny(rustdoc::invalid_html_tags)]
11
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^
12
13
+error: aborting due to 1 previous error
14
0 commit comments