rustdoc --test
that passes with Rust 1.31.0 and fails with Rust 1.32.0, involving use
paths
#57767
Labels
regression-from-stable-to-stable
Performance or correctness regression from one stable version to another.
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
I'm not sure what changed in here, but a contributor to the book just discovered we have a doctest that passed with stable 1.31.0 and fails to compile with stable 1.32.0.
If I extract the code into a library and remove the rustdoc specific bits (the code hiding
#
s), it compiles successfully with both Rust 1.31.0 and Rust 1.32.0, so I suspect something with rustdoc to be the cause? I'm not entirely sure though.I looked for recent PRs and issues and didn't find anything that looked relevant, other than uniform path stabilization, and I hope it's not that.
This is the one test from the book extracted for reproduction (but still within a markdown file as it is in the book because that seems important):
To reproduce, put this text into
something.md
. If you use Rust 1.31.0 and runrustdoc --test something.md
, it results in 1 test passing. If you use Rust 1.32.0 and runrustdoc --test something.md
, it can't compile the test and results in these compiler errors:The text was updated successfully, but these errors were encountered: