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

Open
github-bot wants to merge 1 commit from github-bot/gh-456 into main AGit
Owner

@⁠JoeY54 on GitHub · 2026-11-27 10:37 UTC · original
JoeY54:fix/upstream-five-gpu-lints → main · +5 −12 · 5 files · 1 commits · open

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.

**@⁠JoeY54** on GitHub · 2026-11-27 10:37 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/456) `JoeY54:fix/upstream-five-gpu-lints` → `main` · +5 −12 · 5 files · 1 commits · open 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 10:39:09 +00:00
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/456/head:github-bot/gh-456'
git switch 'github-bot/gh-456'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-456'
git switch 'github-bot/gh-456'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-456'
git switch 'github-bot/gh-456'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-456'
git switch 'main'
git merge --squash 'github-bot/gh-456'
git switch 'main'
git merge --ff-only 'github-bot/gh-456'
git switch 'main'
git merge 'github-bot/gh-456'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.