Failure to build doc-tests when combining panic=abort
, panic-abort-tests
and build-std
#120578
Labels
-Zbuild-std
Unstable Cargo option: Compile the standard library yourself.
A-panic
Area: Panicking machinery
C-bug
Category: This is a bug.
requires-nightly
This issue requires a nightly compiler in some way.
I tried this code:
> cargo test --doc -Zbuild-std -Zpanic-abort-tests --config=profile.dev.panic='"abort"' --target=x86_64-unknown-linux-gnu
I expected to see this happen: successful test run using
panic_abort
Instead, this happened:
There seems to be a couple of issues here, the
panic=abort
doesn't seem to be applied to rustdoc, so it still uses thepanic_unwind
runtime, and for some reason that runtime has been broken when-Cpanic=abort
is active.Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: