Clippy: victory-shader is clean again with -D warnings (10 lints, no behaviour change) #3
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/Belobug--VIctory-Belobug-AMD!3
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3"
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?
@MamaLeVrai on GitHub · 2026-11-25 11:09 UTC · original
MamaLeVrai:clippy-clean→main· +21 −27 · 4 files · 1 commits · opencargo clippy --workspace --all-targets --locked -- -D warningsfails onmain(4cbe9d7) first invictory-shaderwith 10 errors (Windows 11, RX 6950 XT, Rust 1.98.1; the same with--all-features). This fixes those, with no change of behaviour:native.rs: the literal0x4D45_4Dis written0x004D_454D(same value); a type aliasPatchfor theVICTORY_SHADER_PATCHentries;next > u32::from(SGPRS)isnext > SGPRS(SGPRSis already au32).emit/bitcode.rs:Module::int_valuewas never used; removed.emit/lower.rs: a type aliasHandleKeyfor the key ofhandles;self.scalar.get(&site).is_none()is!self.scalar.contains_key(&site)(twice);half_inputs: { let hi = ...; hi }is the expression itself.emit/mod.rs: a type aliasPsvInterp; thelet plain = match ... ; plainis thematch.Checks.
cargo clippy -p victory-shader --all-targets --no-deps -- -D warnings, with and without--all-features: clean.cargo test -p victory-shader --lib: 264 passed, 2 failed, 6 ignored; the two failures are the same two tests that fail onmainwithout this change (see issue #2), so they are not from it.What this does not do. Other crates still fail clippy:
victory-gpuhas 38 errors in its library (and 44 with its tests), socargo clippy --workspacestill fails. I left them: they touch many files of the GPU code that you are working in, and I did not want to conflict with it. Say so if you want them in a second PR.AI-assisted (Claude Code); no game data.
🤖 Generated with Claude Code
@Ekabusto on GitHub · 2026-11-25 12:47 UTC · original
Checked locally: builds,
cargo clippy -p victory-shader --all-targets --no-depsgoes from 12 warnings onmainto 0, andcargo test -p victory-shader --libpasses (266 passed, 6 ignored). All 10 changes are mechanical with no change of behaviour (the0x004D_454Dliteral is the same value;SGPRSis already au32). No conflicts withmainor the other open PRs. Looks good to me.Reviewed on Windows 11 (build 26300), Rust 1.98.1, each PR in its own worktree; no game data, not run in the game. AI-assisted (Claude Code).
@ySKELLETONX on GitHub · 2026-11-25 16:36 UTC · original
Tested on an RX 7600 XT 16 GB (RDNA3, Navi 33), driver 32.0.32015.2008, Windows 11 Pro build 26300, Rust 1.98.1, at
688b1ab:cargo test -p victory-shader --lib --locked: 266 passed, 0 failed, 6 ignored, hardware dispatch tests included (mainat01aadd1: 266 passed). Two runs, with #140 applied on top. Without it, parallelvictory-shaderruns here sometimes crash inside WARP (d3d10warp.dll, STATUS_ACCESS_VIOLATION).maindoes that too, so it has nothing to do with this PR, but it made the first run of this PR look broken. Workspace tests only; not run in the title.@copilot-pull-request-reviewer[bot] on GitHub · 2026-11-25 11:09 UTC · original · reviewed
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
@vdomas7 on GitHub · 2026-11-25 11:19 UTC · original · approved these changes
github-bot referenced this pull request2026-11-27 17:08:09 +00:00
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.