Skip to content

docs: fix rustdoc links; ci: strict per-crate rustdoc and no-default clippy - #8256

Merged
oferchen merged 4 commits into
masterfrom
fix/master-lint-and-rustdoc
Oct 29, 2026
Merged

oferchen merged 4 commits into
masterfrom
fix/master-lint-and-rustdoc

Conversation

@oferchen

Copy link
Copy Markdown
Owner

Summary

  • cargo doc -D warnings was failing on master. This fixes the three rustdoc errors:
    • crates/fast_io/src/dir_sandbox/at_syscalls/rename.rs: the public confined_copy_then_unlink linked to the private anchor_confined_endpoint.
    • crates/engine/src/local_copy/executor/file/guard.rs: the public abort linked to the private Self::note_literal.
    • crates/engine/src/lib.rs: the crate docs linked AsyncFileCopier and CopyProgress. Both exist only under the async feature, so cargo doc -p engine without that feature could not resolve them.
      Each link is now plain code formatting, as the repo already does for re-exported and feature-gated items. This is a comments-only change.

Test plan

  • RUSTDOCFLAGS="-D warnings" cargo doc --workspace --no-deps --all-features
  • RUSTDOCFLAGS="-D warnings" cargo doc --workspace --no-deps
  • RUSTDOCFLAGS="-D warnings" cargo doc -p engine --no-deps and -p fast_io --no-deps
  • cargo clippy -p core --no-default-features --all-targets -- -D warnings
  • cargo fmt --all -- --check, tools/ci/check_rustfmt_all.py, workspace clippy (all features), and the unsafe-owner, dead-code and no-placeholders gates

Coverage gap

CI's rustdoc links job in ci.yml runs with RUSTDOCFLAGS="-D rustdoc::broken_intra_doc_links" and does not use -D warnings. Links from public docs to private items fall under rustdoc::private_intra_doc_links, so CI never fails on them. It also builds only the whole workspace, never -p engine alone. Feature unification there enables async, which hides the feature-gated links. The job is also not one of the required contexts.

Conventional commit prefix

docs:

@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Oct 28, 2026
@oferchen oferchen changed the title docs: fix rustdoc links to private and feature-gated items docs: fix rustdoc links; ci: strict per-crate rustdoc and no-default clippy Oct 28, 2026
@oferchen

Copy link
Copy Markdown
Owner Author

Added the CI changes for task #495 on top of the doc fixes: rustdoc now also denies private_intra_doc_links, runs on master pushes, and documents every crate alone; a new non-required job runs clippy --no-default-features --all-targets per crate. All 27 crates pass both locally on master plus this branch.

Carries the session_fork.rs fix from #8253 so this branch's macOS jobs stop
failing on the master test-harness race: on EPERM for our own child, SIGKILL
the leader before a blocking WNOWAIT wait, and accept a setpgid refusal when the
child already leads its own group. The content is identical to #8253, so the
two merge without conflict.
@oferchen
oferchen merged commit e15bcb7 into master Oct 29, 2026
88 checks passed
@oferchen
oferchen deleted the fix/master-lint-and-rustdoc branch October 29, 2026 06:37
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