CI: clippy clean again on Rust 1.98.1, in both builds #957

Open
0xkn0wh3r3 wants to merge 1 commit from upstream-pr/957 into main
0xkn0wh3r3 commented 2026-11-28 10:00:56 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by 0xkn0wh3r3 on 2026-11-28T10:00:56Z.


Both CI clippy runs (cargo clippy --workspace --all-targets --locked -- -D warnings, with and without --all-features) fail on main with lints that the pinned 1.98.1 toolchain reports. Every open PR is red because of them.

Lints fixed

Lint Where Change
manual_is_multiple_of victory-gpu/src/descriptor.rs (descriptor census) count.is_multiple_of(50_000)
manual_is_multiple_of victory-gpu/src/shadow.rs (worker spin loop) turns.is_multiple_of(16)
some_filter victory-hle/src/modules/gameinput.rs (scripted keys of the stand-in pad) (i < scripted_keys).then_some(vk), the same choice
let_and_return victory-shader/src/emit/mod.rs (a test helper) return the expression

No change in behaviour. #816 carries the same four edits inside a larger pool change. This PR has only them, so the other open PRs can go green without waiting for it. Whichever merges second has a trivial conflict, or none.

Checks

  • Both CI clippy commands finish clean on this branch: default Finished in 34 s, --all-features Finished in 41 s.
  • cargo test -p victory-hle -p victory-gpu -p victory-shader --locked:
    • victory-hle: 188 passed.
    • victory-shader: 293 passed.
    • victory-gpu: 453 passed.
      • The first victory-gpu run, on a loaded machine, failed descriptor::host::tests::views_off_their_elements_get_a_copy_of_their_bytes once.
      • That test passed 3 of 3 times alone, and the full victory-gpu suite then passed.
      • It doesn't touch the changed lines.

cargo fmt --check is not clean on main (3,777 diffs in about 150 files), but CI doesn't run it. Reformatting would conflict with every open PR, so it is left alone.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5538991306 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/957). Originally posted by [0xkn0wh3r3](https://github.com/0xkn0wh3r3) on 2026-11-28T10:00:56Z. --- Both CI clippy runs (`cargo clippy --workspace --all-targets --locked -- -D warnings`, with and without `--all-features`) fail on main with lints that the pinned 1.98.1 toolchain reports. Every open PR is red because of them. ## Lints fixed | Lint | Where | Change | |---|---|---| | `manual_is_multiple_of` | `victory-gpu/src/descriptor.rs` (descriptor census) | `count.is_multiple_of(50_000)` | | `manual_is_multiple_of` | `victory-gpu/src/shadow.rs` (worker spin loop) | `turns.is_multiple_of(16)` | | `some_filter` | `victory-hle/src/modules/gameinput.rs` (scripted keys of the stand-in pad) | `(i < scripted_keys).then_some(vk)`, the same choice | | `let_and_return` | `victory-shader/src/emit/mod.rs` (a test helper) | return the expression | No change in behaviour. #816 carries the same four edits inside a larger pool change. This PR has only them, so the other open PRs can go green without waiting for it. Whichever merges second has a trivial conflict, or none. ## Checks - Both CI clippy commands finish clean on this branch: default `Finished` in 34 s, `--all-features` `Finished` in 41 s. - `cargo test -p victory-hle -p victory-gpu -p victory-shader --locked`: - victory-hle: 188 passed. - victory-shader: 293 passed. - victory-gpu: 453 passed. - The first victory-gpu run, on a loaded machine, failed `descriptor::host::tests::views_off_their_elements_get_a_copy_of_their_bytes` once. - That test passed 3 of 3 times alone, and the full victory-gpu suite then passed. - It doesn't touch the changed lines. `cargo fmt --check` is not clean on main (3,777 diffs in about 150 files), but CI doesn't run it. Reformatting would conflict with every open PR, so it is left alone.
t91a60 commented 2026-11-28 14:52:25 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by t91a60 on 2026-11-28T14:52:25Z.


Verified locally on Windows 11 with the pinned Rust 1.98.1, offline (--locked):

  • cargo clippy --workspace --all-targets --locked -- -D warnings → exit 0
  • same with --all-features → exit 0
  • on main (63b902f) the same commands fail (3 sites: let_and_return in
    victory-shader emit/mod.rs, manual_is_multiple_of in victory-gpu shadow.rs and descriptor.rs)
  • cargo test --workspace --locked → green

The branch is main + one commit and merges cleanly. The hunks are behaviour-preserving
(is_multiple_of is exact for unsigned ints, MSRV 1.88 ≥ 1.87). Note that some_filter in
gameinput.rs doesn't fire under the CI flags; harmless to keep.
#665, #687 and #705 contain the same hunks, so #957 looks like the one to merge.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7241002563 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/957#issuecomment-7241002563). Originally posted by [t91a60](https://github.com/t91a60) on 2026-11-28T14:52:25Z. --- Verified locally on Windows 11 with the pinned Rust 1.98.1, offline (--locked): - cargo clippy --workspace --all-targets --locked -- -D warnings → exit 0 - same with --all-features → exit 0 - on main (63b902f) the same commands fail (3 sites: let_and_return in victory-shader emit/mod.rs, manual_is_multiple_of in victory-gpu shadow.rs and descriptor.rs) - cargo test --workspace --locked → green The branch is main + one commit and merges cleanly. The hunks are behaviour-preserving (is_multiple_of is exact for unsigned ints, MSRV 1.88 ≥ 1.87). Note that some_filter in gameinput.rs doesn't fire under the CI flags; harmless to keep. #665, #687 and #705 contain the same hunks, so #957 looks like the one to merge.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/957:upstream-pr/957'
git switch 'upstream-pr/957'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/957'
git switch 'upstream-pr/957'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/957'
git switch 'upstream-pr/957'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/957'
git switch 'main'
git merge --squash 'upstream-pr/957'
git switch 'main'
git merge --ff-only 'upstream-pr/957'
git switch 'main'
git merge 'upstream-pr/957'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
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.

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