Formats: parenthesize the shift in a texture test (main's clippy step fails on it) #1485

Merged
CwWwWwW merged 1 commit from upstream-pr/1485 into main 2026-11-28 01:48:22 +00:00
CwWwWwW commented 2026-11-27 15:33:39 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by CwWwWwW on 2026-11-27T15:33:39Z.


Problem

After the tree replacement in 5dbf5ce, main's CI run 46021947845 fails at its first step, Clippy, after 43 seconds on a single lint:

error: operator precedence might not be obvious
 --> crates\victory-formats\src\texture.rs:1346:55
  | let tiled: Vec<u8> = (0..l.size).map(|i| (i * 7 >> 3) as u8).collect();
  |                                               ^^^^^^^^^^ help: consider parenthesizing your expression: `(i * 7) >> 3`
  = note: `-D clippy::precedence` implied by `-D warnings`

The file is byte-identical to trustno1-coder/VIctory-NVIDIA@959dcaf, the tree 5dbf5ce was rebased on; that repository has no GitHub Actions check runs, so the lint was inherited unnoticed. Because it fails the first CI step, the later Clippy, diagnostics build and Tests steps never run, which hides the state of the tree.

Change

Parenthesize the shift in the test: (i * 7 >> 3) → ((i * 7) >> 3). The value is the same; only the grouping the lint asks about changes. One line, test code only, no runtime/render/barrier/descriptor change.

Verification (default features, this host)

  • before: cargo clippy -p victory-formats --all-targets --locked -- -D warnings fails with exactly the CI error (reproduced locally)
  • after: the same command is clean (exit 0)
  • cargo test -p victory-formats --lib --locked — 42 passed, 0 failed, 5 ignored
  • git diff --check clean

Scope / what this does not do

It only lets the CI job get past Clippy so the remaining steps become visible. The known test failures recorded in 5dbf5ce's own message — two victory-gpu indirect tests (host_list_budget_starts_empty_at_each_submission, warp_batch_charges_every_execution) that also fail on unmodified VIctory-NVIDIA 959dcaf, and one loader test that failed once — still make the Tests step red and are not addressed here. No game was run; no other repository was modified.

<!-- greyfinch-sync:fxceless/victory-fork:issue:5529206997 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/1485). Originally posted by [CwWwWwW](https://github.com/CwWwWwW) on 2026-11-27T15:33:39Z. --- ## Problem After the tree replacement in 5dbf5ce, `main`'s CI run 46021947845 fails at its first step, **Clippy**, after 43 seconds on a single lint: ``` error: operator precedence might not be obvious --> crates\victory-formats\src\texture.rs:1346:55 | let tiled: Vec<u8> = (0..l.size).map(|i| (i * 7 >> 3) as u8).collect(); | ^^^^^^^^^^ help: consider parenthesizing your expression: `(i * 7) >> 3` = note: `-D clippy::precedence` implied by `-D warnings` ``` The file is **byte-identical** to `trustno1-coder/VIctory-NVIDIA@959dcaf`, the tree 5dbf5ce was rebased on; that repository has no GitHub Actions check runs, so the lint was inherited unnoticed. Because it fails the first CI step, the later `Clippy, diagnostics build` and `Tests` steps never run, which hides the state of the tree. ## Change Parenthesize the shift in the test: `(i * 7 >> 3)` → `((i * 7) >> 3)`. The value is the same; only the grouping the lint asks about changes. One line, test code only, no runtime/render/barrier/descriptor change. ## Verification (default features, this host) - before: `cargo clippy -p victory-formats --all-targets --locked -- -D warnings` fails with exactly the CI error (reproduced locally) - after: the same command is **clean** (exit 0) - `cargo test -p victory-formats --lib --locked` — **42 passed, 0 failed, 5 ignored** - `git diff --check` clean ## Scope / what this does not do It only lets the CI job get past Clippy so the remaining steps become visible. The known test failures recorded in 5dbf5ce's own message — two `victory-gpu` indirect tests (`host_list_budget_starts_empty_at_each_submission`, `warp_batch_charges_every_execution`) that also fail on unmodified VIctory-NVIDIA 959dcaf, and one loader test that failed once — still make the Tests step red and are **not** addressed here. No game was run; no other repository was modified.
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
fxceless/victory-fork!1485
No description provided.