CI: the rest of main's clippy findings, so that with #1517 and #1459 both builds are clean #665

Manually merged
github merged 1 commit from github-bot/gh-665 into main 2026-11-29 08:20:52 +00:00 AGit
Owner

@⁠kibagami-nc on GitHub · 2026-11-28 03:05 UTC · original
kibagami-nc:ci/clippy-green-after-8fc2254 → main · +10 −11 · 6 files · 1 commits · merged 2026-11-29 08:16 UTC

Redone on main (d4b5d517). This PR's first version fixed four clippy findings from the morning of 2026-11-28, and main has fixed those since. The branch now starts from main and fixes the current ones that no other PR takes.

What happens

Main's CI fails at its first step, cargo clippy --workspace --all-targets --locked -- -D warnings:

  1. victory-shader doesn't build under -D warnings. There's an unused colour and a manual_checked_ops in lower.rs. #1517 (babuakhil) fixes both.
  2. Behind it, victory-gpu has 12 more, in both builds unless noted:
    • three dropping_references in host.rs's present fallbacks: a real lock bug, fixed by #1459;
    • send::Memory's gpu field, never read;
    • pool::let_go and resource::host_pressure_reclaimed, never used, in the default build only;
    • four identity_op (1 * MIB, 1 * GIB) and one constant assertion, in tests;
    • one manual_is_multiple_of in streamline.rs;
    • two too_many_arguments (8/7).

This PR takes everything in point 2 except #1459's three.

The change

No behaviour changes.

  • pool::let_go and resource::host_pressure_reclaimed: only copystat reads them, and only diagnostics builds have it. They now carry its cfg, all(windows, feature = "diagnostics").
  • send::Memory's gpu field (041d0ee6): written and never read. The field goes, with the GetGPUVirtualAddress call that filled it.
  • Tests: 1 * MIB and 1 * GIB become MIB and GIB. assert!(128 * MIB * 7 < 957 * MIB) becomes const { assert!(…) }.
  • streamline.rs: the frame generation state's sampling uses n.is_multiple_of(120).
  • first_upload_decision and fsr::before_present: #[allow(clippy::too_many_arguments)], as on 32 other functions in the tree.

Together: CI's three steps

On d4b5d517 with #1517, #1459 and this PR merged locally:

  • cargo clippy --workspace --all-targets --locked -- -D warnings: passes.
  • cargo clippy --workspace --all-targets --all-features --locked -- -D warnings: passes.
  • cargo test --workspace --locked, with #1493 merged too (or #1460, for #1429's size limit): passes, with 1,306 tests passed and 0 failed, repository_passes_policy included.

So these four PRs together make main's CI green again.

Confirmed by babuakhil (Windows 11, RTX 3060, Rust 1.98.1), on #1517: d4b5d51 with #1517, #1459, this PR and #1493 merged in that order, with no conflicts:

  • both clippy steps are clean;
  • cargo test --workspace --locked: 1,306 passed, 0 failed, twice;
  • cargo test --workspace --locked --all-features: 1,365 passed, 0 failed, so the diagnostics-only tests are clean with the set too.
**@⁠kibagami-nc** on GitHub · 2026-11-28 03:05 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/665) `kibagami-nc:ci/clippy-green-after-8fc2254` → `main` · +10 −11 · 6 files · 1 commits · merged 2026-11-29 08:16 UTC **Redone on main (d4b5d517).** This PR's first version fixed four clippy findings from the morning of 2026-11-28, and main has fixed those since. The branch now starts from main and fixes the current ones that no other PR takes. ## What happens Main's CI fails at its first step, `cargo clippy --workspace --all-targets --locked -- -D warnings`: 1. **`victory-shader` doesn't build under `-D warnings`.** There's an unused `colour` and a `manual_checked_ops` in `lower.rs`. #1517 (babuakhil) fixes both. 2. **Behind it, `victory-gpu` has 12 more**, in both builds unless noted: - three `dropping_references` in `host.rs`'s present fallbacks: a real lock bug, fixed by #1459; - `send::Memory`'s `gpu` field, never read; - `pool::let_go` and `resource::host_pressure_reclaimed`, never used, in the default build only; - four `identity_op` (`1 * MIB`, `1 * GIB`) and one constant assertion, in tests; - one `manual_is_multiple_of` in `streamline.rs`; - two `too_many_arguments` (8/7). This PR takes everything in point 2 except #1459's three. ## The change No behaviour changes. - **`pool::let_go` and `resource::host_pressure_reclaimed`:** only `copystat` reads them, and only diagnostics builds have it. They now carry its cfg, `all(windows, feature = "diagnostics")`. - **`send::Memory`'s `gpu` field** (041d0ee6): written and never read. The field goes, with the `GetGPUVirtualAddress` call that filled it. - **Tests:** `1 * MIB` and `1 * GIB` become `MIB` and `GIB`. `assert!(128 * MIB * 7 < 957 * MIB)` becomes `const { assert!(…) }`. - **`streamline.rs`:** the frame generation state's sampling uses `n.is_multiple_of(120)`. - **`first_upload_decision` and `fsr::before_present`:** `#[allow(clippy::too_many_arguments)]`, as on 32 other functions in the tree. ## Together: CI's three steps On d4b5d517 with #1517, #1459 and this PR merged locally: - `cargo clippy --workspace --all-targets --locked -- -D warnings`: passes. - `cargo clippy --workspace --all-targets --all-features --locked -- -D warnings`: passes. - `cargo test --workspace --locked`, with #1493 merged too (or #1460, for #1429's size limit): passes, with 1,306 tests passed and 0 failed, `repository_passes_policy` included. So these four PRs together make main's CI green again. **Confirmed by babuakhil** (Windows 11, RTX 3060, Rust 1.98.1), on #1517: d4b5d51 with #1517, #1459, this PR and #1493 merged in that order, with no conflicts: - both clippy steps are clean; - `cargo test --workspace --locked`: 1,306 passed, 0 failed, twice; - `cargo test --workspace --locked --all-features`: 1,365 passed, 0 failed, so the diagnostics-only tests are clean with the set too.
9b712a6 made the workspace pass the CI's clippy steps (toolchain 1.98.1,
pinned in rust-toolchain.toml), but the commits since bring four findings
back, so CI stops at its first step again:

- emit/mod.rs, div_fixup_corner_fixture (feb90ad): a let binding returned
  from its block (let_and_return);
- shadow.rs: `turns % 16 == 0` (manual_is_multiple_of);
- descriptor.rs, shape_census (diagnostics build): `count % 50_000 == 0`
  (manual_is_multiple_of);
- gameinput.rs: `Some(vk).filter(|_| i < scripted_keys)` (some_filter),
  which clippy reached once the crates before it built.

Each is the form clippy suggests; nothing the game runs changes. Both
`cargo clippy --workspace --all-targets --locked -- -D warnings` and the
same with --all-features pass.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 03:07:40 +00:00
Author
Owner

@⁠ANDREANIADS on GitHub · 2026-11-28 08:12 UTC · original

I reproduced the Clippy warnings on the parent (8fc22547) and reran both workspace checks on this PR’s head (0a368d63). Both the default and --all-features configurations passed with -D warnings using Rust 1.98.1 on Linux, targeting x86_64-pc-windows-msvc with blake3/pure. The native Linux victory-shader suite also passed: 207 tests passed, 2 ignored. I didn’t run the Windows loader test.

Exact commands and results. If there’s another CI failure you’d like us to reproduce, please point us to the job and the revision.

**@⁠ANDREANIADS** on GitHub · 2026-11-28 08:12 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/665#issuecomment-7236437722) I reproduced the Clippy warnings on the parent (`8fc22547`) and reran both workspace checks on this PR’s head (`0a368d63`). Both the default and `--all-features` configurations passed with `-D warnings` using Rust 1.98.1 on Linux, targeting `x86_64-pc-windows-msvc` with `blake3/pure`. The native Linux `victory-shader` suite also passed: 207 tests passed, 2 ignored. I didn’t run the Windows loader test. [Exact commands and results](https://github.com/ANDREANIADS/VIctory-NVIDIA/blob/f45e7ef460999772e723ab31c401a467907be9c6/docs/reviews/2026-11-28/README.md). If there’s another CI failure you’d like us to reproduce, please point us to the job and the revision.
Author
Owner

@⁠MoonEyes on GitHub · 2026-11-28 11:16 UTC · original

Tested this PR merged onto current main (63b902f, one commit past this PR's base), locally on Windows 11 with an RTX 4060, toolchain from rust-toolchain.toml (cargo 1.98.1, clippy 0.1.98). The three commands of ci.yml:

Command Result
cargo clippy --workspace --all-targets --locked -- -D warnings passes
same with --all-features passes
cargo test --workspace --locked passes: 1126 passed, 0 failed, 49 ignored

Without the PR, the first command fails on main 63b902f with the same two errors as CI run 46104876336 (emit/mod.rs:2768, shadow.rs:1708); the descriptor.rs one only shows with --all-features, and gameinput.rs only once victory-gpu builds.

The four changes keep behaviour: (i < scripted_keys).then_some(vk) gives the same result as the Some(vk).filter(...) it replaces, the emit change is in a test module, and both is_multiple_of divisors are non-zero constants on unsigned values.

#687 and #705 carry the same four changes byte for byte; this one was opened first.

This is a local run, not GitHub's CI.

**@⁠MoonEyes** on GitHub · 2026-11-28 11:16 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/665#issuecomment-7238440917) Tested this PR merged onto current `main` (63b902f, one commit past this PR's base), locally on Windows 11 with an RTX 4060, toolchain from `rust-toolchain.toml` (cargo 1.98.1, clippy 0.1.98). The three commands of `ci.yml`: | Command | Result | | --- | --- | | `cargo clippy --workspace --all-targets --locked -- -D warnings` | passes | | same with `--all-features` | passes | | `cargo test --workspace --locked` | passes: 1126 passed, 0 failed, 49 ignored | Without the PR, the first command fails on `main` 63b902f with the same two errors as CI run 46104876336 (`emit/mod.rs:2768`, `shadow.rs:1708`); the `descriptor.rs` one only shows with `--all-features`, and `gameinput.rs` only once `victory-gpu` builds. The four changes keep behaviour: `(i < scripted_keys).then_some(vk)` gives the same result as the `Some(vk).filter(...)` it replaces, the `emit` change is in a test module, and both `is_multiple_of` divisors are non-zero constants on unsigned values. #687 and #705 carry the same four changes byte for byte; this one was opened first. This is a local run, not GitHub's CI.
github-bot changed title from CI: clippy clean again in both builds (four findings since 9b712a6) to CI: the rest of main's clippy findings, so that with #1517 and #1459 both builds are clean 2026-11-28 22:35:46 +00:00
github-bot force-pushed github-bot/gh-665 from 0a368d6314 to 9a1ab4ef44 2026-11-28 22:35:47 +00:00 Compare
github manually merged commit 6e2f1358e3 into main 2026-11-29 08:20:52 +00:00
This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA!665
No description provided.