Clippy: victory-shader is clean again with -D warnings (10 lints, no behaviour change) #3
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from Belobug/VIctory-Belobug-AMD. Originally posted by MamaLeVrai on 2026-11-25T11:09:31Z.
cargo 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
Imported from Belobug/VIctory-Belobug-AMD. Originally posted by copilot-pull-request-reviewer[bot] on 2026-11-25T11:09:45Z.
Review: COMMENTED
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.
Imported from Belobug/VIctory-Belobug-AMD. Originally posted by Ekabusto on 2026-11-25T12:47:21Z.
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).
Imported from Belobug/VIctory-Belobug-AMD. Originally posted by ySKELLETONX on 2026-11-25T16:36:16Z.
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.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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.