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