rustdoc: Tracking issue for --no-run · Issue #87022 · rust-lang/rust (original) (raw)

About tracking issues

Tracking issues are used to record the overall progress of implementation.
They are also used as hubs connecting to other relevant issues, e.g., bugs or open design questions.
A tracking issue is however not meant for large scale discussion, questions, or bug reports about a feature.
Instead, open a dedicated issue for the specific matter and add the relevant feature gate label.

Steps

Unresolved Questions

Implementation history

The cargo issue here rust-lang/cargo#6424 points out that we don't have a tracking issue on the librustdoc side for how we can make doc examples compile when we run cargo check --all-targets or cargo build --all-targets. By hook or by crook it would be great to remove this surprising edge case.

Also probably even more surprising cargo test --no-run also doesn't compile the doc tests.

Maybe we need a cargo test --sligtly-run-doctests?