rustdoc does not filter correctly doctests when their name contain spaces. #88263
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.
Consider this file
main.rs
:If one run
rustdoc main.rs --test --test-args 'Iter<T, P>::len'
, he will expect that onlythe doctest of
Iter<T, P>::len
will be run. But the two doctests will be run.Below is the output of
rustdoc main.rs --test --test-args 'Iter<T, P>::len'
The problem seems to be the space: it looks like, in the example above,
rustdoc
will run all tests that matches 'P>::len' (in the argument'Iter<T, P>::len'
there is a space between the,
and theP
).Meta
This bug is present since at least one year in all releases.
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: