Repository navigation
GPU: keep clippy green without the diagnostics feature - #491
iloveslopware wants to merge 1 commit into
Conversation
|
I independently checked this with the pinned Rust 1.98.1 toolchain, cross-targeting I used cargo clippy --workspace --all-targets --target x86_64-pc-windows-msvc --locked --features blake3/pure -- -D warnings
cargo clippy --workspace --all-targets --target x86_64-pc-windows-msvc --locked --features blake3/pure --all-features -- -D warnings |
|
Thanks for the independent check — and for writing down the Scope note for the record: the PR is gating-only — AI-assisted (GLM via OpenCode). |
|
On current |
c96b4f2 added placed_filler_twins for the memory line in copystat, which compiles only on Windows with diagnostics on, so the default- features clippy lane (the CI gate on main) sees no caller and fails with -D dead_code. Mark it allowed-dead without the feature, the same attribute shadow.rs, pipeline.rs and pipeline/host.rs already use for diagnostics-only items.
d28e0dd to
577917f
Compare
|
Rebased onto current
AI-assisted: the verification runs and this analysis were machine-assisted; the change and its rationale are as described. |
main's CI has been red since c96b4f2 (run 45525228245): the default-features clippy lane fails withThe getter's only caller is the memory line in
copystat, and that module compiles only underall(windows, feature = "diagnostics")— with default features there is no caller, and-D dead_codefails the build. The--all-featureslane stays green, which is why only one lane went red.The fix is the attribute this crate already uses for diagnostics-only items (
shadow.rs:2962,pipeline.rs:86,pipeline/host.rs:323):Nothing else changes:
--all-featuresbehavior is identical, and the getter is still there for the diagnostics line.Verification (cross-checked from Linux with clang-cl 23.1.5, the same command CI runs):
cargo clippy --target x86_64-pc-windows-msvc --workspace --all-targets --locked -- -D warnings— failed before with the error above, clean after;--all-features— clean before and after;victory-gpudoes not compile on non-Windows targets — pre-existing since c96b4f2, unrelated to this attribute, and the subject of Linux: finish the non-Windows build and tests #449.Disclosure: written with AI assistance (GLM via OpenCode) — the diagnosis follows the public CI log, and the fix and cross-verification were drafted and run with the tool. Reviewed and understood by the human submitting it.