Clippy: victory-gpu and victory-hle pass with -D warnings, the diagnostics build too (CI, with #3) #266
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!266
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-266"
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?
@ySKELLETONX on GitHub · 2026-11-26 14:42 UTC · original
ySKELLETONX:ci/clippy-victory-gpu→main· +75 −32 · 16 files · 1 commits · openCI runs
cargo clippy --workspace --all-targets -- -D warnings, then the same with--all-features, thencargo test --workspace, and has failed at the first clippy step on everymainpush since01aadd1, so the tests never run. #3 makesvictory-shaderpass; past it, clippy stopped at 46 lints invictory-gpu, then 1 invictory-hle, then 7 more invictory-gpu's diagnostics build. This clears those. With #3 and this, both clippy steps pass (checked by merging #3 on top). No behaviour changes.What changes
list.rs,depth_bounds_test.rs),is_multiple_of,as_chunks::<32>()forchunks_exact(32), parentheses aroundgiven * PAGE >> 20, a cast to the same type,sort_unstable_by_keywithReversefor a descendingsort_unstable_by.view_count,then_somewould read the buffer member of the view's union for every view. It is anifinstead, so it is read only for buffer views and the SAFETY comment still holds.frame::wait'swaitwas renamed_wait, which broke the diagnostics build that logs it. It is allowed unused without the feature instead.describe_slotandwatch::layoutare built only with the feature.card.rs,host.rs,shadow.rs).too_many_argumentsondispatch_hash;type_complexityon 9 locals, fields and signatures;items_after_test_moduleon xmem's tests (moving the memory log above them would conflict with #14, #16 and #39);dead_codeonprofile::RSPand onqueue::test_queue(its last test went in161dc7f).Checked (Windows 11, Ryzen 7 5700X3D + RX 7600 XT, no game data)
cargo clippy --workspace --all-targets --locked -- -D warningsand the same with--all-features: both passcargo test -p victory-gpu --lib: 113 passed; with--features diagnostics: 116 passedcargo build --profile diag -p victory --features diagnostics: buildsvictory-hle: the same 5xmemfailures as onmainmain; it went after the samevictory-gpulints, credit to @towiice.What still keeps CI red after this, in the Tests step
xmemtests: #14 or #16victory-shader's test binary dying ind3d10warp.dll: #140xtask'srepository_passes_policy:crates/victory-shader/src/emit/lower.rsis 630,716 bytes, over the 512 KiB limit. An entry inEXCEPTIONSor splitting the file is your call (the README already mentions it).query::tests::occlusion_queries_around_draws_not_run_stay_visible(#116) and the watch tests (#102, #115)One thing I noticed (not changed here)
Shader::hair(hair strands, andidle_without_rays, including the program that activates the screen probes' rays) is read only byskipped_shader/is_skipped, and all three callers indraw.rsare#[cfg(feature = "diagnostics")]. So a release build runs these programs, and only the diagnostics build leaves them out. The README says the probes' ray program "is left out on purpose while rays do not run". If that should hold for release builds too, the skip needs to move out of the diagnostics cfg; I left it as it is and only noted it beside the field.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.