Repository navigation
docs(crates): deny missing_docs on the three crates that lacked it - #7614
Merged
Merged
Conversation
22 of 25 crates carry both `#![deny(missing_docs)]` and `#![deny(rustdoc::broken_intra_doc_links)]`. `matching`, `test-support` and `windows-gnu-eh` carried only the broken-link lint, so their public surface had no completeness gate. Measured before changing anything: all three already document every public item. Compiling them with `warn(missing_docs)` reports **zero** warnings, so this adds no documentation - it makes the documentation that already exists impossible to regress. Non-vacuity: a planted undocumented `pub fn` in each crate is reported, 3 for 3, which is what establishes the zero as a real measurement rather than an inert probe. `windows-gnu-eh` gates most of its surface behind `cfg(all(target_os = "windows", target_env = "gnu"))`, which a host build never compiles - the exact blind spot that has bitten this repo before. Verified two ways rather than assumed: the two `pub unsafe extern "C"` items carry `///` docs (read directly), and `cargo check -p windows-gnu-eh --target x86_64-pc-windows-gnu` passes with the lint active, with a planted control on that same target confirming the lint is live there and not silently absent. Workspace `cargo check --workspace --all-features --all-targets` and `cargo fmt --all -- --check` are clean.
This was referenced Sep 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
22 of 25 crates carry both
#![deny(missing_docs)]and#![deny(rustdoc::broken_intra_doc_links)].matching,test-supportandwindows-gnu-ehcarried only the broken-link lint, so their public surface had no completeness gate.This adds the missing lint. Three lines.
This adds no documentation
Measured before changing anything — compiling all three with
warn(missing_docs):They were already fully documented. The change converts "currently documented" into "cannot regress", which is the durable form.
Why the zero is a measurement and not an inert probe
A zero from an instrument nobody has falsified is worth nothing. Positive control: plant one undocumented
pub fnper crate and re-run —3 for 3. The instrument fires, so the zero is real.
The platform blind spot, closed by compiling rather than reasoning
windows-gnu-ehgates most of its surface behindcfg(all(target_os = "windows", target_env = "gnu")). A macOS or Linux host build never compiles that module, so a host-only measurement is structurally incapable of seeing those items — the exact shape that has bitten this repo before (a CI cell whose package list silently excluded the one crate that mattered).Verified two independent ways:
pub unsafe extern "C" fnitems (___register_frame_info,___deregister_frame_info) carry///docs, as doesforce_linkin bothcfgarms.cargo check -p windows-gnu-eh --target x86_64-pc-windows-gnupasses with the lint active — and a planted undocumented item on that same target produceserror: missing documentation for a function, confirming the lint is live there rather than quietly absent.Gates
cargo fmt --all -- --check— cleancargo check --workspace --all-features --all-targets— cleancargo check -p windows-gnu-eh --target x86_64-pc-windows-gnu— clean, non-vacuity proven above