Skip to content

docs(engine): fix the broken am_root intra-doc link - #7522

Merged
oferchen merged 1 commit into
masterfrom
fix/rustdoc-am-root-link
Aug 26, 2026
Merged

oferchen merged 1 commit into
masterfrom
fix/rustdoc-am-root-link

Conversation

@oferchen

Copy link
Copy Markdown
Owner

Problem

The Pages workflow has been failing on master. Its "Build rustdoc" step runs

cargo doc --workspace --all-features --no-deps --locked

with RUSTDOCFLAGS: "-D rustdoc::broken_intra_doc_links" (.github/workflows/pages.yml:26,47), and that promotion turns one bad link into a hard exit 101 for the whole workspace:

error: unresolved link to `super::super::types::LocalCopyOptions::am_root`
   --> crates/engine/src/local_copy/options/path_behavior.rs:433:27
    |
433 |     /// [`Self::am_root`](super::super::types::LocalCopyOptions::am_root): that
    |                           ^^^ no item named `types` in module `local_copy`
error: could not document `engine`

Root cause

The path has one super too many. path_behavior.rs lives in crates/engine/src/local_copy/options/, so super is options and types is reached as super::types - the file's own import on line 4 already reads use super::types::LocalCopyOptions;. Two levels up lands in local_copy, which has no types child.

Fix

am_root is an accessor on LocalCopyOptions (options/metadata/accessors.rs:148) and the doc comment is inside impl LocalCopyOptions, so the shortcut form resolves without any explicit path - the same shape the sibling links in this file already use ([Self::devices_enabled], [Self::specials_enabled]).

The link is deliberately kept on the previous line rather than starting its own. A line beginning [Self::am_root]: that would be parsed by CommonMark as a link reference definition, not a link, which would break rendering and silently drop the reference.

Verification

  • cargo doc --workspace --all-features --no-deps --locked with the workflow's exact RUSTDOCFLAGS: exit 0, zero errors (previously exit 101).
  • The link genuinely resolves rather than being dropped - the generated HTML contains:
    deliberately NOT <a href="struct.LocalCopyOptions.html#method.am_root" title="method engine::local_copy::LocalCopyOptions::am_root"><code>Self::am_root</code></a>: that
  • cargo fmt --all -- --check: exit 0.
  • cargo clippy -p engine --all-targets --all-features --no-deps -- -D warnings: exit 0.

Doc-comment text only; no code, no behaviour change.

Noted, not fixed here

cargo doc also emits two warnings in fast_io (operator_open_create_new / operator_open_recv documenting links to the private operator_open_with). Those are the private_intra_doc_links lint, which the workflow does not promote to an error, so they are not the cause of the failure and are left out of this change.

`super::super::types::LocalCopyOptions::am_root` is one module level too
high: path_behavior.rs lives in local_copy/options/, so types is reached
through a single `super` - the file's own `use super::types::LocalCopyOptions`
already says so. rustdoc reported "no item named `types` in module
`local_copy`", and because pages.yml sets
RUSTDOCFLAGS="-D rustdoc::broken_intra_doc_links" that aborted the whole
`cargo doc --workspace` run with exit 101, failing the Pages workflow.

`am_root` is an accessor on LocalCopyOptions and the doc comment sits inside
`impl LocalCopyOptions`, so the shortcut form resolves on its own - matching
the sibling `[`Self::devices_enabled`]` links a few lines above. The link is
kept on the previous line so it is not the first thing on its line followed
by a colon, which CommonMark would otherwise read as a link reference
definition rather than a link.

Verified: `cargo doc --workspace --all-features --no-deps --locked` under the
workflow's RUSTDOCFLAGS exits 0, and the rendered page resolves the anchor to
struct.LocalCopyOptions.html#method.am_root.
@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Aug 26, 2026
@oferchen
oferchen merged commit 4eded9e into master Aug 26, 2026
70 checks passed
@oferchen
oferchen deleted the fix/rustdoc-am-root-link branch August 26, 2026 13:35
oferchen added a commit that referenced this pull request Sep 1, 2026
* docs: align the upstream reference and testsuite gate to 3.5.0

The gate moved to the rsync 3.5.0 Python corpus on 2026-08-19 (#7387) and the
TCP legs followed on 2026-08-20 (#7408), but README.md and SECURITY.md still
described a 3.4.4-gated world and carried outcome figures that no longer match
the committed manifests.

Every number below is counted from tools/ci/upstream-3.5.0-expect.*.txt with

  awk '!/^#/ && NF {c[$NF]++; t++} END {print t, c["pass"], c["fail"], c["skip"]}'

  leg              pass  fail  skip  corpus   was
  non-root, pipe    254     6    85     345   252/8/89 of 349
  root, pipe        282     7    56     345   280/9/60 of 349
  non-root, tcp     101    21    33     155   100/22/36 of 158
  root, tcp         113    27    15     155   112/28/18 of 158

The corpus column was the durable error: it was already 345/155 when #7533 last
refreshed these tables, so the skip and corpus columns were carried forward
untouched while only the pass/fail pair was re-measured. Both docs now name the
command that produces the row, so the next refresh is a re-run rather than a
transcription. The divergence unions fall the same way: 7 distinct tests across
the two full-corpus legs, not 9, and 32 across all four, not 34.

Other corrections:

- The 3.4.4 shell corpus is not run by any workflow. _interop.yml states
  explicitly that it does not drive it, and run_upstream_testsuite.sh defaults
  to UPSTREAM_VERSION=3.5.0. "Against 3.4.4 all tests pass and the roster is
  empty" was reporting an empty roster as a measurement.
- The interop version lists in two README sections were hand copies of
  versions= in tools/ci/run_interop.sh, which is what drifted last time. They
  now point at the script; the per-version protocol table stays, since it
  carries columns the script does not.
- The nightly 3.5.0dev tracker badge is removed from the badge row. Every other
  badge there is a gate, and "3.5.0dev" one glyph from "3.5.0" read as a fifth
  one. The workflow and its explanatory paragraph both stay - it tracks the
  moving RsyncProject master, which the release gate cannot see - but its header
  comment claimed the required gate was still pinned to 3.4.4, which is false.

CHANGELOG: the Unreleased section stopped at #7522. Added the 51 pull requests
merged since, grouped into the existing sections and derived from their titles
via git log v0.6.4..origin/master.

* docs: name the one dispatch-only workflow that still pins 3.4.4
oferchen added a commit that referenced this pull request Sep 2, 2026
`## [Unreleased]` last covered the #7304-#7522 era. Measured against the 60
most recently merged pull requests, 44 were absent; of the most recent 45,
43 were absent. Nothing from #7574 onward was recorded at all.

Each entry is derived from what the pull request actually landed - the merge
commit and the body - not from its title. Three cases where those differ:

  * #7616 ships far more than the doc-alias correction its body describes:
    the `upstream_version` pin moves to 3.5.0 and `--version` starts naming
    `quic`, `sd-notify`, `vmsplice` and `send_zc`.
  * #7618 also adds the pull-request rustdoc-link job its body says was
    filed separately, which is what closes the master-only-gate recurrence.
  * #7602's squash carries the closed #7597 as its first commit, so the
    directory-obstacle half is recorded under #7602.

#7587 is deliberately not recorded. Its merge commit is empty: the change
had already landed as #7563, which the section already names.

Entries extend the existing Keep a Changelog groups and the bold
sub-groupings. Clusters that are one story carry one entry with several
references: the FERROR_XFER routing and its two-phase drain (#7576, #7581),
the connection-FSM close edge and the accept loop that outlives a session
error (#7579, #7590), the three detaching daemon suites (#7578, #7588,
#7592), the io_uring and SEND_ZC work (#7593, #7600, #7610), the citation
retargets (#7601, #7603, #7604), and the accept-loop pin flake (#7615,
#7620).

Only `## [Unreleased]` is touched; every released section, including the
3.4.4 statements that were correct when written, is byte-identical.
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