forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add regression test for rust-lang#69264
- Loading branch information
1 parent
fd89197
commit 27e193c
Showing
2 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|