ci: make Clippy pass on a-publier (default and --all-features) (#315) #330

Manually merged
github merged 1 commit from github-bot/gh-330 into a-publier 2026-11-27 00:57:56 +00:00 AGit
Owner

@⁠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 UTC

Fixes #315.

Makes both steps of the Clippy CI job (cargo clippy --workspace --all-targets --locked -- -D warnings and cargo clippy --workspace --all-targets --all-features --locked -- -D warnings) pass cleanly on a-publier (cd8dfc0) with Rust 1.98.1.

Changes

  • crates/victory-loader/src/descriptor_sites.rs:277 (test): annotate both std::mem::transmute calls as std::mem::transmute::<usize, F>(...) (clippy::missing_transmute_annotations, matching write_sites.rs).
  • crates/victory-gpu/src/host/panel.rs:386: replace _ with unsafe extern "system" fn() -> isize in std::mem::transmute::<unsafe extern "system" fn() -> isize, NtQuery>(p) (clippy::missing_transmute_annotations).
  • crates/victory-gpu/src/watch.rs:3626: remove unnecessary &mut in open(&title_memory_changed(at, len), ...) (clippy::unnecessary_mut_passed, which also fails victory-gpu in CI run 45883850319).
  • crates/victory-gpu/src/texture.rs:46,1921: remove the unused #[cfg(feature = "diagnostics")] size: u64 field on Staging left behind after 5d6bd84 (dead_code warning that would otherwise fail the --all-features Clippy step; Staging::bytes already tracks total).

(Note: #322 covers the transmute annotations in descriptor_sites.rs and panel.rs, while watch.rs:3626 and texture.rs:46 still break the default and --all-features Clippy steps on a-publier. This PR resolves all four so the full Clippy job 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 failed
  • cargo test -p victory-gpu --lib --all-features --locked texture::title_memory_tests — 2 passed, 0 failed
  • cargo test -p xtask --locked — 9 passed, 0 failed (including repository_passes_policy)
**@⁠BE29ZZ** on GitHub · 2026-11-26 20:31 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/pull/330) `BE29ZZ:fix/issue-315-clippy` → `a-publier` · +3 −8 · 4 files · 1 commits · merged 2026-11-26 22:30 UTC Fixes #315. Makes both steps of the `Clippy` CI job (`cargo clippy --workspace --all-targets --locked -- -D warnings` and `cargo clippy --workspace --all-targets --all-features --locked -- -D warnings`) pass cleanly on `a-publier` (`cd8dfc0`) with Rust `1.98.1`. ### Changes - `crates/victory-loader/src/descriptor_sites.rs:277` (test): annotate both `std::mem::transmute` calls as `std::mem::transmute::<usize, F>(...)` (`clippy::missing_transmute_annotations`, matching `write_sites.rs`). - `crates/victory-gpu/src/host/panel.rs:386`: replace `_` with `unsafe extern "system" fn() -> isize` in `std::mem::transmute::<unsafe extern "system" fn() -> isize, NtQuery>(p)` (`clippy::missing_transmute_annotations`). - `crates/victory-gpu/src/watch.rs:3626`: remove unnecessary `&mut` in `open(&title_memory_changed(at, len), ...)` (`clippy::unnecessary_mut_passed`, which also fails `victory-gpu` in CI run `45883850319`). - `crates/victory-gpu/src/texture.rs:46,1921`: remove the unused `#[cfg(feature = "diagnostics")] size: u64` field on `Staging` left behind after `5d6bd84` (`dead_code` warning that would otherwise fail the `--all-features` Clippy step; `Staging::bytes` already tracks `total`). *(Note: #322 covers the `transmute` annotations in `descriptor_sites.rs` and `panel.rs`, while `watch.rs:3626` and `texture.rs:46` still break the default and `--all-features` Clippy steps on `a-publier`. This PR resolves all four so the full `Clippy` job 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 failed - `cargo test -p victory-gpu --lib --all-features --locked texture::title_memory_tests` — 2 passed, 0 failed - `cargo test -p xtask --locked` — 9 passed, 0 failed (including `repository_passes_policy`)
- Add explicit type annotations to std::mem::transmute in victory-loader/src/descriptor_sites.rs and victory-gpu/src/host/panel.rs (clippy::missing_transmute_annotations)
- Remove unnecessary &mut borrow in victory-gpu/src/watch.rs (clippy::unnecessary_mut_passed)
- Remove unused diagnostics-only Staging::size field in victory-gpu/src/texture.rs (dead_code under --all-features)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 20:33:04 +00:00
Author
Owner

@⁠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 on cd8dfc0 with 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:46 with --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):

passed failed
cargo test --workspace --locked 1003 37
… --all-features … -- --test-threads=1 1056 38

Every 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):

  • 36 victory-shader GPU tests print no SM 6.6 hardware device (the device supports SM 0x65 only) and no SM 6.6 warp device (… 0x62 only), then fail their "a device ran" check.
  • depth_bounds_pipeline_loads_and_filters_draws fails earlier, at root_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-features only: tests/replay.rs a_frame_is_recorded_and_replayed fails at CreatePipelineState (mesh pipeline, E_INVALIDARG). It fails the same way on cd8dfc0 alone.

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)

**@⁠lerapeurdu62280-debug** on GitHub · 2026-11-26 21:12 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/pull/330#issuecomment-7203492125) 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 on `cd8dfc0` with 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:46` with `--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): | | passed | failed | |---|---|---| | `cargo test --workspace --locked` | 1003 | 37 | | `… --all-features … -- --test-threads=1` | 1056 | 38 | Every 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): - 36 `victory-shader` GPU tests print `no SM 6.6 hardware device (the device supports SM 0x65 only)` and `no SM 6.6 warp device (… 0x62 only)`, then fail their "a device ran" check. - `depth_bounds_pipeline_loads_and_filters_draws` fails earlier, at `root_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-features` only: `tests/replay.rs` `a_frame_is_recorded_and_replayed` fails at `CreatePipelineState` (mesh pipeline, `E_INVALIDARG`). It fails the same way on `cd8dfc0` alone. 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 manually merged commit 392766f8e0 into a-publier 2026-11-27 00:57:56 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.