rustdoc: doctest-xcompile passes when it shouldn't #139924
Labels
A-cross
Area: Cross compilation
A-doctests
Area: Documentation tests, run by rustdoc
C-bug
Category: This is a bug.
requires-nightly
This issue requires a nightly compiler in some way.
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
In the following example, both doctests pass, even though they are identical except for the annotation (one of them is
no_run
, the othercompile_fail
).Command to run:
cargo test --doc -Zdoctest-xcompile -Zbuild-std=core,panic_abort --target riscv32imac-unknown-none-elf
Since the no_run test case compiles, I would expect the compile_fail example to fail. I can only trigger this behaviour if I reference
esp_hal
- I'm not sure if other third party dependencies would trigger it. Without the external dependency, the annotation works as expected.The text was updated successfully, but these errors were encountered: