Skip to content

fix(docs): repair intra-doc links the rustdoc gate rejects - #10

Merged
h4x0r merged 1 commit into
mainfrom
fix/rustdoc-links
Aug 7, 2026
Merged

fix(docs): repair intra-doc links the rustdoc gate rejects#10
h4x0r merged 1 commit into
mainfrom
fix/rustdoc-links

Conversation

@h4x0r

@h4x0r h4x0r commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

The fleet reusable CI workflow added a rustdoc gate this repo had never run:

RUSTDOCFLAGS="-D warnings" cargo doc --no-deps --workspace --all-features

It fails on main. One broken link:

File Link Why it broke Fix
core/src/backing.rs:33 [`VhdxReader::open_reader`] VhdxReader is not in scope in backing; it lives in the private reader module and reaches the public API only via the crate-root re-export pub use reader::VhdxReader [`crate::VhdxReader::open_reader`]

Reference form only — no prose meaning changed, no lint silenced, nothing made
pub to satisfy a link.

Control. With the fix applied the gate exits 0. Reverting the link and
re-running made it fail again — error: unresolved link to 'VhdxReader::open_reader' --> core/src/backing.rs:33:37, exit 101 — then the link was restored and the gate
re-confirmed at exit 0. Also green locally: cargo fmt --check, cargo clippy --workspace --all-features --all-targets -- -D warnings, cargo test --workspace --all-features.

🤖 Generated with Claude Code

The fleet reusable CI workflow added a rustdoc gate

    RUSTDOCFLAGS="-D warnings" cargo doc --no-deps --workspace --all-features

that this repo had never run. It fails on `main`.

Broken link (1):

- `core/src/backing.rs:33` — [`VhdxReader::open_reader`] on the `ReadSeekSend`
  trait docs. `VhdxReader` is not in scope in `backing`; it lives in the private
  `reader` module and reaches the public API only through the crate-root
  re-export `pub use reader::VhdxReader`. Path corrected to
  [`crate::VhdxReader::open_reader`], which is the form that resolves — the
  bare name does not, and `crate::reader::VhdxReader` would point at a private
  module. Reference form only; wording unchanged.

Control (mandatory): with the fix applied the gate exits 0. Reverting the one
link back to [`VhdxReader::open_reader`] and re-running made the gate fail again
with `error: unresolved link to 'VhdxReader::open_reader' --> core/src/backing.rs:33:37`,
exit 101; the link was then restored and the gate re-confirmed at exit 0. The
gate is proven able to fail for the reason it exists.

No lint was silenced — no `#![allow(rustdoc::broken_intra_doc_links)]` and no
item made public to satisfy a link.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@h4x0r
h4x0r merged commit 143de4d into main Aug 7, 2026
14 checks passed
@h4x0r
h4x0r deleted the fix/rustdoc-links branch August 9, 2026 15:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant