rustdoc --persist-doctests
does not work with --test-run-directory
#112191
Labels
A-doctests
Area: Documentation tests, run by rustdoc
C-bug
Category: This is a bug.
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
The combination of
--persist-doctests
doesn't seem to work with--test-run-directory
.Reproduction:
mkdir foo
cd foo
mkdir subdir
Create
subdir/example.rs
with the contents:rustc --crate-type=rlib subdir/example.rs
Verify a basic test works:
rustdoc --edition=2021 -L . --test subdir/example.rs
Verify that persist-doctests works:
rustdoc --edition=2021 -L . --test subdir/example.rs --persist-doctests persist -Zunstable-options
Verify that test-run-directory works:
rustdoc --edition=2021 -L . --test subdir/example.rs --test-run-directory=subdir
Check behavior when both are specified:
rustdoc --edition=2021 -L . --test subdir/example.rs --test-run-directory=subdir --persist-doctests persist -Zunstable-options
Expected behavior: Tests should run successfully.
Actual behavior: Test fails with this error:
Meta
rustc --version --verbose
:cc #56925
The text was updated successfully, but these errors were encountered: