CI: fix the red Linux job (unused variable in the POPS test) #39

Closed
github-bot wants to merge 1 commit from gh-pr/39/head into gh-pr/39/base
Owner

@⁠lcg007xd-c on GitHub · 2026-11-25 20:08 UTC · original
lcg007xd-c:ci/linux-clippy-pops-test → main · +2 −0 · 1 files · 1 commits · closed without merging

What this fixes

The portable job is red on main (run 45690169897, at 9ceb7e7). Clippy fails, so the Linux tests never run:

error: unused variable: `out`
    --> crates/victory-shader/src/emit/mod.rs:1314:13

The POPS test from #36 binds out only for the dxil.dll validation, and that code is #[cfg(windows)].

The change

Two lines: #[cfg_attr(not(windows), allow(unused_variables))] on that let, the same allowance the test at mod.rs:1477 already uses. Nothing changes on Windows.

Tested (Linux, Rust 1.98.1)

  • The portable job's clippy step, run exactly as CI runs it: cargo clippy -p victory-core -p victory-pe -p victory-pipeline -p victory-shader -p victory-formats -p victory-game -p xtask --all-targets --locked -- -D warnings is clean, also with --all-features.
  • cargo clippy for x86_64-pc-windows-msvc is clean.
  • The portable tests pass: shader 186, formats 27, core 11, pe 3, pipeline 4, game 3, xtask 4.

🤖 Generated with Claude Code

**@⁠lcg007xd-c** on GitHub · 2026-11-25 20:08 UTC · [original](https://github.com/uiliannn/VItoriaBr/pull/39) `lcg007xd-c:ci/linux-clippy-pops-test` → `main` · +2 −0 · 1 files · 1 commits · closed without merging ## What this fixes The `portable` job is red on `main` (run 45690169897, at 9ceb7e7). Clippy fails, so the Linux tests never run: ``` error: unused variable: `out` --> crates/victory-shader/src/emit/mod.rs:1314:13 ``` The POPS test from #36 binds `out` only for the dxil.dll validation, and that code is `#[cfg(windows)]`. ## The change Two lines: `#[cfg_attr(not(windows), allow(unused_variables))]` on that `let`, the same allowance the test at `mod.rs:1477` already uses. Nothing changes on Windows. ## Tested (Linux, Rust 1.98.1) - The portable job's clippy step, run exactly as CI runs it: `cargo clippy -p victory-core -p victory-pe -p victory-pipeline -p victory-shader -p victory-formats -p victory-game -p xtask --all-targets --locked -- -D warnings` is clean, also with `--all-features`. - `cargo clippy` for `x86_64-pc-windows-msvc` is clean. - The portable tests pass: shader 186, formats 27, core 11, pe 3, pipeline 4, game 3, xtask 4. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
#36's test binds `out` only for the dxil.dll validation, which is
`#[cfg(windows)]`, so the portable job's `clippy -D warnings` fails on
Linux with `unused variable: out` (emit/mod.rs:1314) and its tests never
run. Same allowance as the test at mod.rs:1477.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:42:06 +00:00
github-bot closed this pull request 2026-11-26 03:42:06 +00:00
Author
Owner

@⁠uiliannn on GitHub · 2026-11-25 20:33 UTC · original

Obrigado pela contribuição! O fix do teste POPS no Linux CI acabou de entrar em ca4759f minutos antes.

**@⁠uiliannn** on GitHub · 2026-11-25 20:33 UTC · [original](https://github.com/uiliannn/VItoriaBr/pull/39#issuecomment-7173846359) Obrigado pela contribuição! O fix do teste POPS no Linux CI acabou de entrar em `ca4759f` minutos antes.

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.