Repository navigation
Conversation
`RUSTDOCFLAGS="-D warnings" cargo doc` failed on main:
- enums/device.rs: FanControlPolicy linked to
Device::get_fan_control_policy(), which does not exist; it now links
to Device::fan_control_policy().
- enums/device.rs: the Blackwell variant's URL was bare; it is now in
angle brackets like the other architectures.
- enum_wrappers/device.rs: DetachGpuState and PcieLinkState linked to
Device::remove(), which exists only on Linux, so the link was broken
in macOS and Windows doc builds. The doc is now set with cfg_attr:
the link on Linux, plain text naming the Linux requirement elsewhere.
The `UnexpectedVariant` entry in 41 error lists ended mid-sentence
("for which you can read the docs for"); it now uses the wording the
other four entries already had ("check that error's docs for more
info").
A new Rustdoc CI job runs `cargo doc --workspace --no-deps
--all-features` on ubuntu-latest with RUSTDOCFLAGS=-D warnings.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
RUSTDOCFLAGS="-D warnings" cargo docfails onmain, with 2 errors on Linux and 4 on macOS. This PR fixes them and adds a CI job so new ones fail the build.Fixes
FanControlPolicy(enums/device.rs): it linked toDevice::get_fan_control_policy(), which doesn't exist. It now links toDevice::fan_control_policy().Blackwellvariant: its URL was bare. It is now in angle brackets, like the other architectures.DetachGpuStateandPcieLinkState(enum_wrappers/device.rs): they linked toDevice::remove(), which is#[cfg(target_os = "linux")], so the link broke in macOS and Windows doc builds. Each doc is now set withcfg_attr: the link on Linux, and plain text naming the Linux requirement elsewhere. On docs.rs, which builds Linux, the text is unchanged.UnexpectedVariantwording: in 41 error lists the entry ended mid-sentence ("for which you can read the docs for"). It now uses the wording that four other entries already had ("check that error's docs for more info").A new Rustdoc CI job runs
cargo doc --workspace --no-deps --all-featureson ubuntu-latest withRUSTDOCFLAGS=-D warnings.Decisions for the reviewer
remove()links were, would not fail CI. I kept it Linux-only because docs.rs builds Linux, and because macOS runners have been slow to start (one waited 15 minutes and never ran on docs: document NoPermission for the fan control setters #148). Adding it to the os matrix is a one-line change if you want that coverage.Testing
RUSTDOCFLAGS="-D warnings" cargo doc --workspace --no-depspasses on macOS and with--target x86_64-unknown-linux-gnu, with and without--all-features. The review also checked--features serdealone on Linux.remove()andfan_control_policylinks.cargo clippy --all-targets --all-features -- -D warningsis clean.not(target_os = "linux")branch as macOS.Review
A fresh-agent review returned "merge". It verified the 41/4 counts against base and head, the rendered links, and that
RUSTDOCFLAGSreaches cargo in CI. It had two minor notes:🤖 Generated with Claude Code