rustdoc: Add support for --remap-path-prefix
Adds --remap-path-prefix as an unstable option. This is implemented to mimic the behavior of rustc's --remap-path-prefix but with minor adjustments. This flag similarly takes in two paths, a prefix to replace and a replacement string.
This commit is contained in:
parent
212841e17c
commit
d9f78cb793
11 changed files with 135 additions and 7 deletions
|
@ -0,0 +1,21 @@
|
|||
|
||||
running 1 test
|
||||
test remapped_path/remap-path-prefix-failed-doctest-output.rs - SomeStruct (line 11) ... FAILED
|
||||
|
||||
failures:
|
||||
|
||||
---- remapped_path/remap-path-prefix-failed-doctest-output.rs - SomeStruct (line 11) stdout ----
|
||||
Test executable failed (exit status: 101).
|
||||
|
||||
stderr:
|
||||
thread 'main' panicked at remapped_path/remap-path-prefix-failed-doctest-output.rs:3:1:
|
||||
oh no
|
||||
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
|
||||
|
||||
|
||||
|
||||
failures:
|
||||
remapped_path/remap-path-prefix-failed-doctest-output.rs - SomeStruct (line 11)
|
||||
|
||||
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in $TIME
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue