Clippy passes on rx9070xt again: small warnings fixed, the GPU crate's newer ones let through there alone #246
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!246
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-246"
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?
@thejacte on GitHub · 2026-11-26 11:22 UTC · original
thejacte:ci/rx9070xt-green→rx9070xt· +342 −56 · 10 files · 3 commits · closed without mergingWith the pinned toolchain (1.98.1),
cargo clippy --workspace --all-targets --locked -- -D warningsfails onrx9070xt: it stops at the first of 41 warnings, so CI fails for every pull request against this branch.Fixed by hand (outside victory-gpu, no change in behaviour):
(i * 7) >> 3.transmutes name their types,transmute::<usize, F>.warmand DirectStorage:x % n == 0->x.is_multiple_of(n); the divisors are constants (1000, 4096).Commandenum keeps its large variant (#[allow(clippy::large_enum_variant)], parsed once).Let through in victory-gpu only (
#![allow(...)]incrates/victory-gpu/src/lib.rs), so every other crate stays as strict as before:manual_is_multiple_of,large_enum_variant,precedence,too_many_arguments,unnecessary_sort_by,cloned_ref_to_slice_refs,wrong_self_convention,unnecessary_cast,needless_borrow,mem_replace_with_default,if_same_then_else,unusual_byte_groupings.dead_code,unused_variables,unused_assignments,private_interfaces,dropping_copy_types.One pull request each can take one off later. Nothing in the GPU code itself changes, so this should not conflict with work in progress there.
Checked (Windows 11, RX 9070 XT, driver 32.0.32029.2010, Ryzen 7 9800X3D):
cargo clippy --workspace --all-targets --locked -- -D warnings: passescargo clippy --workspace --all-targets --all-features --locked -- -D warnings: passescargo test --workspace --locked: 916 passed, 0 failed, with one test skipped (below)cargo xtask policy --staged: okFound along the way, not changed here:
emit::size_tests::the_record_count_of_a_structured_buffer_read_by_indexcrashes the test process (0xc0000005) on the RX 9070 XT hardware adapter every time; it passes on WARP (VICTORY_WARP=1), so a CI runner without a GPU is not affected. It looks like the driver's compiler crash the game also hits on 26 pipelines here.batchedincrates/victory-gpu/src/indirect.rs:310is computed but unused, so the single and the batched clamp pipelines get the same name, and replay's--skip-clamps/--batch-clampscan take a batched one for a single one. I can open an issue or a separate PR.🤖 Generated with Claude Code
github-bot referenced this pull request2026-11-26 19:22:36 +00:00
@thejacte on GitHub · 2026-11-26 21:00 UTC · original
Superseded by #341.
rx9070xtwas rebuilt on avatarmanz's fork and no longer needs the lint exceptions this PR added. What still fails clippy there is fixed in four lines.Pull request closed