gpu: fix five Clippy diagnostics not covered by #409 #456

Open
JoeY54 wants to merge 1 commit from upstream-pr/456 into main
JoeY54 commented 2026-11-27 10:37:34 +00:00 (Migrated from github.com)

Imported from avatarmanz/VIctory-7900XTX. Originally posted by JoeY54 on 2026-11-27T10:37:34Z.


Fix five diagnostics still present on main at 014d52dedf, without warning suppressions:

  • panel.rs: explicitly type the source function pointer in transmute.
  • place.rs and its host.rs caller: rename from_upload(&self) to uses_upload.
  • texture.rs: remove the unused diagnostics-only Staging.size field (the used byte accounting remains).
  • rtstamps.rs: use HashMap::entry and is_multiple_of.

This deliberately excludes the descriptor_sites, list::totals and watch changes already covered by #409 (and partially #169/#241/#362). It also excludes the depth-bounds test adjustment in #169. No CI configuration or tests changed.

Validation on Windows 11, Rust 1.98.1 MSVC, exact head cf24b29ffa:

  • cargo clippy --workspace --all-targets --locked --keep-going -- -D warnings: these five diagnostics gone; exit 101 from the six existing diagnostics covered by #409 (four loader transmute annotations, totals dead_code, watch borrow).
  • Same command with --all-features: these five diagnostics gone; exit 101 from four loader annotations and watch borrow. Initial attempt hit Windows access denied launching a generated build script; ordinary retry outside the sandbox completed linting with those expected remaining errors.
  • cargo xtask policy: 272 files pass.
  • cargo test -p xtask --locked: 9/9.
  • git diff --check: pass.

For separate integration evidence, these exact five-file changes were also included in JoeY54/VIctory-5090#3 alongside the other lint and depth-bounds fixes; that CI run passed both Clippy configurations and both workspace test jobs. That is combined-patch evidence, not a claim that this minimal branch passes all CI alone. No GPU tests were rerun on this minimal branch.

AI-assisted with OpenAI Codex; authored by JoeY54. No game assets or derived data.

<!-- greyfinch-sync:avatarmanz/VIctory-7900XTX:issue:5525190469 --> Imported from [avatarmanz/VIctory-7900XTX](https://github.com/avatarmanz/VIctory-7900XTX/pull/456). Originally posted by [JoeY54](https://github.com/JoeY54) on 2026-11-27T10:37:34Z. --- Fix five diagnostics still present on main at 014d52dedf837d1ac660a0bd256c4704be9eeb40, without warning suppressions: - panel.rs: explicitly type the source function pointer in transmute. - place.rs and its host.rs caller: rename from_upload(&self) to uses_upload. - texture.rs: remove the unused diagnostics-only Staging.size field (the used byte accounting remains). - rtstamps.rs: use HashMap::entry and is_multiple_of. This deliberately excludes the descriptor_sites, list::totals and watch changes already covered by #409 (and partially #169/#241/#362). It also excludes the depth-bounds test adjustment in #169. No CI configuration or tests changed. Validation on Windows 11, Rust 1.98.1 MSVC, exact head cf24b29ffa160c39247b5e23d46018fba78fe44d: - cargo clippy --workspace --all-targets --locked --keep-going -- -D warnings: these five diagnostics gone; exit 101 from the six existing diagnostics covered by #409 (four loader transmute annotations, totals dead_code, watch borrow). - Same command with --all-features: these five diagnostics gone; exit 101 from four loader annotations and watch borrow. Initial attempt hit Windows access denied launching a generated build script; ordinary retry outside the sandbox completed linting with those expected remaining errors. - cargo xtask policy: 272 files pass. - cargo test -p xtask --locked: 9/9. - git diff --check: pass. For separate integration evidence, these exact five-file changes were also included in JoeY54/VIctory-5090#3 alongside the other lint and depth-bounds fixes; [that CI run](https://github.com/JoeY54/VIctory-5090/actions/runs/45981380699) passed both Clippy configurations and both workspace test jobs. That is combined-patch evidence, not a claim that this minimal branch passes all CI alone. No GPU tests were rerun on this minimal branch. AI-assisted with OpenAI Codex; authored by JoeY54. No game assets or derived data.
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/456:upstream-pr/456'
git switch 'upstream-pr/456'

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/456'
git switch 'upstream-pr/456'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/456'
git switch 'upstream-pr/456'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/456'
git switch 'main'
git merge --squash 'upstream-pr/456'
git switch 'main'
git merge --ff-only 'upstream-pr/456'
git switch 'main'
git merge 'upstream-pr/456'
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
avatarmanz/VIctory-7900XTX!456
No description provided.