cargo check
doesn't check documentation code fences
#4565
Labels
C-feature-request
Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`
Command-check
Considering a lot of people would use the output of
cargo check
in their editors to verify correctness of their code before running their tests, one would assume thatcargo check --all
would run compiler checks of the code in the docs tests, unfortunately that doesn't seem to be the case.Current Behavior
It's possible for
cargo check --all
to run clean butcargo test
to fail with compiler errors.Expected Behavior
When docs have code fences that have compiler errors:
cargo check --all
and a new command option:
cargo check --docs
would fail.
The text was updated successfully, but these errors were encountered: