GPU: restore clean Clippy checks across build profiles #755

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

@⁠TokyoMkt on GitHub · 2026-11-25 06:43 UTC · original
TokyoMkt:contrib/gpu-clippy-profiles → main · +2 −3 · 3 files · 1 commits · open

What changes

Gate a diagnostics-only accessor on the diagnostics feature, drop an unused stored handle from a test fixture (the fixture still uses it locally to clear depth), and express the existing descending sort with a key. No feature or rendering behavior changes are intended.

Validation

The workspace's strict Clippy checks passed on Windows for default and all-feature builds:

  • cargo clippy --workspace --all-targets --locked -- -D warnings
  • cargo clippy --workspace --all-targets --all-features --locked -- -D warnings
**@⁠TokyoMkt** on GitHub · 2026-11-25 06:43 UTC · [original](https://github.com/fxceless/victory-fork/pull/755) `TokyoMkt:contrib/gpu-clippy-profiles` → `main` · +2 −3 · 3 files · 1 commits · open ## What changes Gate a diagnostics-only accessor on the diagnostics feature, drop an unused stored handle from a test fixture (the fixture still uses it locally to clear depth), and express the existing descending sort with a key. No feature or rendering behavior changes are intended. ## Validation The workspace's strict Clippy checks passed on Windows for default and all-feature builds: - `cargo clippy --workspace --all-targets --locked -- -D warnings` - `cargo clippy --workspace --all-targets --all-features --locked -- -D warnings`
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:50:22 +00:00
Author
Owner

@⁠avt0m4t48 on GitHub · 2026-11-25 07:11 UTC · original

I cross-checked strict workspace Clippy on the exact PR base 8dd30ab and head c1bb996, then applied just this patch to main at a26859f.

Source Default profile All features
Exact PR base and main Failed on unused placed_filler_twins and unnecessary_sort_by Failed on unnecessary_sort_by and unread depth_written
Exact PR head and patched main Passed Passed

Both checks used cargo clippy --offline --locked --workspace --all-targets --target x86_64-pc-windows-msvc --features blake3/pure -- -D warnings, adding --all-features before -- for the second profile. Each snapshot had its own Cargo target directory. Rust was 1.98.1 on Linux. The head without blake3/pure stopped in BLAKE3’s build script because ml64.exe was unavailable. This verifies the cross-target Clippy checks. Native Windows linking and test execution remain unverified here.

#642 addresses the same three lints. The sort and fixture changes match, and the accessor differs in how it handles the non-diagnostics build.

AI-assisted using Codex.

**@⁠avt0m4t48** on GitHub · 2026-11-25 07:11 UTC · [original](https://github.com/fxceless/victory-fork/pull/755#issuecomment-7155589338) I cross-checked strict workspace Clippy on the exact PR base `8dd30ab` and head `c1bb996`, then applied just this patch to main at `a26859f`. | Source | Default profile | All features | | --- | --- | --- | | Exact PR base and main | Failed on unused `placed_filler_twins` and `unnecessary_sort_by` | Failed on `unnecessary_sort_by` and unread `depth_written` | | Exact PR head and patched main | Passed | Passed | Both checks used `cargo clippy --offline --locked --workspace --all-targets --target x86_64-pc-windows-msvc --features blake3/pure -- -D warnings`, adding `--all-features` before `--` for the second profile. Each snapshot had its own Cargo target directory. Rust was 1.98.1 on Linux. The head without `blake3/pure` stopped in BLAKE3’s build script because `ml64.exe` was unavailable. This verifies the cross-target Clippy checks. Native Windows linking and test execution remain unverified here. #642 addresses the same three lints. The sort and fixture changes match, and the accessor differs in how it handles the non-diagnostics build. AI-assisted using Codex.
This pull request has changes conflicting with the target branch.
  • crates/victory-gpu/src/indirect.rs
  • crates/victory-gpu/src/resource.rs
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

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

Merge

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