Skip to content

GPU: restore clean Clippy checks across build profiles - #755

Open
TokyoMkt wants to merge 1 commit into
fxceless:mainfrom
TokyoMkt:contrib/gpu-clippy-profiles
Open

TokyoMkt wants to merge 1 commit into
fxceless:mainfrom
TokyoMkt:contrib/gpu-clippy-profiles

Conversation

@TokyoMkt

Copy link
Copy Markdown

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

Copy link
Copy Markdown

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants