rustdoc runs some markdown tests twice #42726
Labels
regression-from-stable-to-stable
Performance or correctness regression from one stable version to another.
T-dev-tools
Relevant to the dev-tools subteam, which will review and decide on the PR/issue.
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
Running
rustdoc --test
with 1.18.0 and nightly on the following markdown file:Produces the following:
output
The first 2 tests are run twice (one with the wrong line number though). The last test is only run once. It looks as though it's running all the tests found by hoedown and all the tests run by pulldown-cmark. I'm pretty sure this wasn't the intention of #41290 and #41431 cc. @GuillaumeGomez. Note that this doesn't happen for tests in rust files.
This is also technically a stable to stable regression because the following file passes
rustdoc --test
on 1.17.0 but not on 1.18.0 or later:The text was updated successfully, but these errors were encountered: