Repository navigation
docs: fix rustdoc links; ci: strict per-crate rustdoc and no-default clippy - #8256
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
cargo doc -D warningswas failing on master. This fixes the three rustdoc errors:crates/fast_io/src/dir_sandbox/at_syscalls/rename.rs: the publicconfined_copy_then_unlinklinked to the privateanchor_confined_endpoint.crates/engine/src/local_copy/executor/file/guard.rs: the publicabortlinked to the privateSelf::note_literal.crates/engine/src/lib.rs: the crate docs linkedAsyncFileCopierandCopyProgress. Both exist only under theasyncfeature, socargo doc -p enginewithout 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-featuresRUSTDOCFLAGS="-D warnings" cargo doc --workspace --no-depsRUSTDOCFLAGS="-D warnings" cargo doc -p engine --no-depsand-p fast_io --no-depscargo clippy -p core --no-default-features --all-targets -- -D warningscargo fmt --all -- --check,tools/ci/check_rustfmt_all.py, workspace clippy (all features), and the unsafe-owner, dead-code and no-placeholders gatesCoverage gap
CI's
rustdoc linksjob inci.ymlruns withRUSTDOCFLAGS="-D rustdoc::broken_intra_doc_links"and does not use-D warnings. Links from public docs to private items fall underrustdoc::private_intra_doc_links, so CI never fails on them. It also builds only the whole workspace, never-p enginealone. Feature unification there enablesasync, which hides the feature-gated links. The job is also not one of the required contexts.Conventional commit prefix
docs: