GPU: restore clean Clippy checks across build profiles #755

Open
TokyoMkt wants to merge 1 commit from upstream-pr/755 into main
TokyoMkt commented 2026-11-25 06:43:56 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by TokyoMkt on 2026-11-25T06:43:56Z.


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
<!-- greyfinch-sync:fxceless/victory-fork:issue:6598868311 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/755). Originally posted by [TokyoMkt](https://github.com/TokyoMkt) on 2026-11-25T06:43:56Z. --- ## 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`
avt0m4t48 commented 2026-11-25 08:08:58 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by avt0m4t48 on 2026-11-25T07:11:35Z.


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.

<!-- greyfinch-sync:fxceless/victory-fork:comment:7155589338 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/755#issuecomment-7155589338). Originally posted by [avt0m4t48](https://github.com/avt0m4t48) on 2026-11-25T07:11:35Z. --- 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 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/755:upstream-pr/755'
git switch 'upstream-pr/755'

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/755'
git switch 'upstream-pr/755'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/755'
git switch 'upstream-pr/755'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/755'
git switch 'main'
git merge --squash 'upstream-pr/755'
git switch 'main'
git merge --ff-only 'upstream-pr/755'
git switch 'main'
git merge 'upstream-pr/755'
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
fxceless/victory-fork!755
No description provided.