Skip to content

docs: repair the three rustdoc links the doc gate reports - #7789

Open
oferchen wants to merge 2 commits into
masterfrom
docs/rustdoc-link-repairs
Open

docs: repair the three rustdoc links the doc gate reports#7789
oferchen wants to merge 2 commits into
masterfrom
docs/rustdoc-link-repairs

Conversation

@oferchen

@oferchen oferchen commented Sep 9, 2026

Copy link
Copy Markdown
Owner

Three intra-doc links the rustdoc job reports as broken:

  • crates/fast_io/src/dir_sandbox/at_syscalls/nested.rs
  • crates/fast_io/src/pinned_root.rs
  • crates/transfer/src/receiver/basis.rs

One line each, no behaviour touched.

The rustdoc-links job is currently continue-on-error: true (ci.yml:242), so
these were reported and discarded rather than blocking. Making that job blocking
and required is a separate change — this one just empties the list it reports so
the flip has nothing pending behind it.

Rebased onto current master; the commit replays clean and its footprint is
exactly the three lines.

The rustdoc-links job runs only on ubuntu with --all-features, so it is
structurally blind to a link whose target is behind a target_os cfg. Run
on macOS, the job's own command exits 101:

  crates/fast_io/src/pinned_root.rs:57 links
  crate::pinned_root::open_o_path, which is
  cfg(any(target_os = "linux", target_os = "android")). The link resolves
  on the runner and is unresolvable everywhere else, so `cargo doc` fails
  for anyone building docs off Linux. The doc text already says the item
  "stays Linux-only", so backtick-only is the accurate spelling; the
  target sits in the same module a reader is already in.

That hard error aborted the run before two later crates were documented,
which is how a second and third finding stayed hidden until it was fixed:

  crates/fast_io/src/dir_sandbox/at_syscalls/nested.rs:178 links public
  documentation at anchor_parent, which is pub(super).
  crates/transfer/src/receiver/basis.rs:163 links InplaceBackupSpec's
  public documentation at crate::disk_commit::make_backup_copy, which is
  private.

Both are private_intra_doc_links warnings on every platform, so both are
already in the job's output on the runner. Same repair as dc09505: a
public page does not link an item its reader cannot open.

After this, both of the job's steps exit 0 with no errors and no
warnings, on --all-features and on default features.
@oferchen
oferchen enabled auto-merge (squash) September 9, 2026 12:08
@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Sep 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant