Skip to content

Commit

Permalink
Add regression test for rust-lang#69264
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Aug 6, 2024
1 parent fd89197 commit 27e193c
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/rustdoc-ui/remap-path-prefix-lint.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Regression test for remapped paths in rustdoc errors <https://github.com/rust-lang/rust/issues/69264>.

//@ compile-flags:-Z unstable-options --remap-path-prefix={{src-base}}=remapped_path
//@ rustc-env:RUST_BACKTRACE=0

#![deny(rustdoc::invalid_html_tags)]

/// </script>
pub struct Bar;
14 changes: 14 additions & 0 deletions tests/rustdoc-ui/remap-path-prefix-lint.stderr
Original file line number Diff line number Diff line change
@@ -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
|
LL | #![deny(rustdoc::invalid_html_tags)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^

error: aborting due to 1 previous error

0 comments on commit 27e193c

Please sign in to comment.