doctest doesn't run under the same profile as the rest of the tests #139603
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.
I have some code that is very optimization-sensitive when it comes to performance. As such, in CI I always run
cargo test --release
, but noticed my doctests take an order of magnitude or so longer to complete. I've always assumed that rustdoc builds the documentation tests under the same profile settings as the rest of the tests, but this doesn't seem to be the case as I verified in this playground repro.The unit test fails in debug mode and passes in release mode, while the doctest fails in both.
Meta
Issue occurs in stable, beta, nightly on playground
The text was updated successfully, but these errors were encountered: