Skip to content

fix(docs): repair broken intra-doc links under -D warnings#144

Merged
zackees merged 1 commit intomainfrom
fix/rustdoc-intra-doc-links
Apr 19, 2026
Merged

fix(docs): repair broken intra-doc links under -D warnings#144
zackees merged 1 commit intomainfrom
fix/rustdoc-intra-doc-links

Conversation

@zackees
Copy link
Copy Markdown
Member

@zackees zackees commented Apr 19, 2026

Summary

The Documentation workflow (runs/24624181584, job/72000122089) failed on main because cargo doc --workspace --no-deps with RUSTDOCFLAGS=-D warnings promotes rustdoc::broken_intra_doc_links and rustdoc::private_intra_doc_links to errors. Five links in the v2.1.20 tree were broken:

  • crates/fbuild-deploy/src/esp32_native.rs:38,40 — linked bare Esp32Deployer::use_native_{verify,write}. The struct is in the sibling esp32 module and the fields are private. Switched both to the public builder methods on the fully qualified path: super::esp32::Esp32Deployer::with_native_{verify,write}.
  • crates/fbuild-deploy/src/esp32_native.rs:233 — public fn try_write_deployment_native linked private LoggingProgressBridge. Dropped the link (kept the code-span name) — the bridge is an impl detail, not part of the public surface.
  • crates/fbuild-daemon/src/log_layer.rs:2 — linked bare BroadcastHub::log_tx. The type lives in crate::context. Fully qualified.
  • crates/fbuild-build/src/build_fingerprint/fast_path.rs:114 — linked bare hash_watch_set_stamps. The function is one module up (super::hash_watch_set_stamps) and wasn't imported into fast_path. Qualified.

Test plan

  • RUSTDOCFLAGS="-D warnings" uv run cargo doc --workspace --no-deps — clean, no errors or warnings
  • Re-run Documentation workflow on this branch to confirm green

🤖 Generated with Claude Code

The Documentation workflow runs `cargo doc --workspace --no-deps`
with `RUSTDOCFLAGS=-D warnings`, which turns
`rustdoc::broken_intra_doc_links` and
`rustdoc::private_intra_doc_links` into hard errors. The v2.1.20
tree had five such links:

- esp32_native.rs module docs linked `Esp32Deployer::use_native_{verify,write}`
  as bare paths. The struct lives in the sibling `esp32` module and
  the fields are private — switched both links to the public builder
  methods `super::esp32::Esp32Deployer::with_native_{verify,write}`.
- `try_write_deployment_native` linked private `LoggingProgressBridge`
  from a public doc comment. Dropped the link (kept the code-span
  name) since the bridge is an impl detail.
- log_layer.rs module docs linked bare `BroadcastHub::log_tx`.
  `BroadcastHub` lives in `crate::context` — fully qualified.
- fast_path.rs field doc linked bare `hash_watch_set_stamps`. The
  function lives one module up and wasn't imported — switched to
  `super::hash_watch_set_stamps`.

Verified with `RUSTDOCFLAGS="-D warnings" uv run cargo doc --workspace --no-deps`.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 19, 2026

Warning

Rate limit exceeded

@zackees has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 24 minutes and 3 seconds before requesting another review.

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 24 minutes and 3 seconds.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 75bd0990-3965-4ae2-9110-b2457a3e86b8

📥 Commits

Reviewing files that changed from the base of the PR and between 41de280 and c84607c.

📒 Files selected for processing (3)
  • crates/fbuild-build/src/build_fingerprint/fast_path.rs
  • crates/fbuild-daemon/src/log_layer.rs
  • crates/fbuild-deploy/src/esp32_native.rs
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/rustdoc-intra-doc-links

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@zackees zackees merged commit 7fde7d9 into main Apr 19, 2026
77 checks passed
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