ci: make Clippy pass on a-publier (default and --all-features) (#315) #330
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!330
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-330"
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?
@BE29ZZ on GitHub · 2026-11-26 20:31 UTC · original
BE29ZZ:fix/issue-315-clippy→a-publier· +3 −8 · 4 files · 1 commits · merged 2026-11-26 22:30 UTCFixes #315.
Makes both steps of the
ClippyCI job (cargo clippy --workspace --all-targets --locked -- -D warningsandcargo clippy --workspace --all-targets --all-features --locked -- -D warnings) pass cleanly ona-publier(cd8dfc0) with Rust1.98.1.Changes
crates/victory-loader/src/descriptor_sites.rs:277(test): annotate bothstd::mem::transmutecalls asstd::mem::transmute::<usize, F>(...)(clippy::missing_transmute_annotations, matchingwrite_sites.rs).crates/victory-gpu/src/host/panel.rs:386: replace_withunsafe extern "system" fn() -> isizeinstd::mem::transmute::<unsafe extern "system" fn() -> isize, NtQuery>(p)(clippy::missing_transmute_annotations).crates/victory-gpu/src/watch.rs:3626: remove unnecessary&mutinopen(&title_memory_changed(at, len), ...)(clippy::unnecessary_mut_passed, which also failsvictory-gpuin CI run45883850319).crates/victory-gpu/src/texture.rs:46,1921: remove the unused#[cfg(feature = "diagnostics")] size: u64field onStagingleft behind after5d6bd84(dead_codewarning that would otherwise fail the--all-featuresClippy step;Staging::bytesalready trackstotal).(Note: #322 covers the
transmuteannotations indescriptor_sites.rsandpanel.rs, whilewatch.rs:3626andtexture.rs:46still break the default and--all-featuresClippy steps ona-publier. This PR resolves all four so the fullClippyjob passes.)Verification (Windows x64, Rust
1.98.1, MSVC)cargo clippy --workspace --all-targets --locked -- -D warnings— passed (0 warnings)cargo clippy --workspace --all-targets --all-features --locked -- -D warnings— passed (0 warnings)cargo test -p victory-loader --lib --locked— 51 passed, 0 failedcargo test -p victory-gpu --lib --all-features --locked texture::title_memory_tests— 2 passed, 0 failedcargo test -p xtask --locked— 9 passed, 0 failed (includingrepository_passes_policy)@lerapeurdu62280-debug on GitHub · 2026-11-26 21:12 UTC · original
Combined check of what it takes to turn
a-publier's CI green: this PR + #328 (depth bounds on WARP) + #288 (the AMD descriptor test), merged oncd8dfc0with no conflicts. I ran the CI's own commands on Windows 10 Pro 19045, RX 6600, Rust 1.98.1.Clippy, both steps of the job, clean:
cargo clippy --workspace --all-targets --locked -- -D warnings:Finished, no warnings.… --all-features …:Finished, no warnings.This PR covers all four spots (
descriptor_sites.rs:277,panel.rs:386,texture.rs:46with--all-features,watch.rs:3626). #322 fixes two of them and is contained in it.Tests (
--no-fail-fast, so every crate runs; the CI stops at the first failing binary):cargo test --workspace --locked… --all-features … -- --test-threads=1Every failure comes from this PC's runtime, not from these PRs. Windows 10's in-box D3D12 stops at shader model 6.5 (hardware) and 6.2 (WARP):
victory-shaderGPU tests printno SM 6.6 hardware device (the device supports SM 0x65 only)andno SM 6.6 warp device (… 0x62 only), then fail their "a device ran" check.depth_bounds_pipeline_loads_and_filters_drawsfails earlier, atroot_signature(…).unwrap(): the in-box runtime refuses the directly indexed flags. So I could not exercise #328's fix here; its author's WARP and RX 9060 XT runs, and this repository's CI, are the evidence for it.--all-featuresonly:tests/replay.rsa_frame_is_recorded_and_replayedfails atCreatePipelineState(mesh pipeline,E_INVALIDARG). It fails the same way oncd8dfc0alone.No failure anywhere in the code these three PRs touch.
views_are_made_beside_the_heap_and_copied_in, which fails on every AMD card without #288, passes with it.AI-assisted: yes (Claude Code)
github-bot referenced this pull request2026-11-27 01:33:50 +00:00