File tree Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Original file line number Diff line number Diff line change
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 ;
Original file line number Diff line number Diff line change
1
+ error: unopened HTML tag `script`
2
+ --> remapped_path/remap-path-prefix-lint.rs:8:5
3
+ |
4
+ LL | /// </script>
5
+ | ^^^^^^^^^
6
+ |
7
+ note: the lint level is defined here
8
+ --> remapped_path/remap-path-prefix-lint.rs:6:9
9
+ |
10
+ LL | #![deny(rustdoc::invalid_html_tags)]
11
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^
12
+
13
+ error: aborting due to 1 previous error
14
+
You can’t perform that action at this time.
0 commit comments