GPU: keep clippy green without the diagnostics feature #491
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/fxceless--victory-fork!491
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-491"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@iloveslopware on GitHub · 2026-11-25 01:30 UTC · original
iloveslopware:main-clippy-diagnostics→main· +3 −1 · 1 files · 1 commits · openmain's CI has been red sincec96b4f2(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 sincec96b4f2, unrelated to this attribute, and the subject of #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.
@avt0m4t48 on GitHub · 2026-11-25 01:51 UTC · original
I independently checked this with the pinned Rust 1.98.1 toolchain, cross-targeting
x86_64-pc-windows-msvcfrom Linux. The basec96b4f2b8365bf43d54ab074940923ef8267f4c6failed onplaced_filler_twinswith-D dead-code. The PR headd28e0ddd1e142263b971a39323164ade3615303dpassed workspace Clippy for all targets with warnings denied, both with the project's default features and with--all-features.I used
--features blake3/purein both revisions to run the cross-check without Microsoft'sml64.exe. The source trees were unmodified. This covers the Windows-target lint regression. Native Windows CI and runtime tests were outside this check.@iloveslopware on GitHub · 2026-11-25 02:31 UTC · original
Thanks for the independent check — and for writing down the
blake3/pureroute to a cross-target lint run withoutml64.exe; that's a tidier recipe than theCC/ARclang-cl/llvm-ar overrides I used, for anyone without LLVM onPATH.Scope note for the record: the PR is gating-only —
#[cfg_attr(not(feature = "diagnostics"), allow(dead_code))]onplaced_filler_twins, the same patterncopystatalready uses; no behavior change on any target or feature set. Native CI still needs maintainer approval to run, as you say.AI-assisted (GLM via OpenCode).
@JRamos1993 on GitHub · 2026-11-25 12:43 UTC · original
On current
main(9376fd6) this patch still merges and fixesplaced_filler_twins, but CI's clippy now fails on two newer lints as well (sort_unstable_by_keyin draw.rs,depth_writtennever read in indirect.rs), with and without--all-features. #642, #755 and #841 fix all three. Comparison: #642@iloveslopware on GitHub · 2026-11-25 19:22 UTC · original
Rebased onto current
main(d510ee4) — thanks @JRamos1993 for the check. Re-verified against the new base:d510ee4still fails withplaced_filler_twinsnever-used (2 hits — thecopystatcaller stays Windows+diagnostics-gated, so that lane sees no caller); on this branch it's 2 -> 0.is_multiple_of,contains_key+insert,depth_written,sort_unstable_by_key) are pre-existing onmain— the inventory is identical without this patch — and are covered by #642/#755/#841, so this diff deliberately leaves them alone.AI-assisted: the verification runs and this analysis were machine-assisted; the change and its rationale are as described.
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.