Skip to content

GPU: clippy passes on main again - #642

Open
coderanonymus wants to merge 1 commit into
fxceless:mainfrom
coderanonymus:ci-clippy-green
Open

coderanonymus wants to merge 1 commit into
fxceless:mainfrom
coderanonymus:ci-clippy-green

Conversation

@coderanonymus

Copy link
Copy Markdown

Why

CI on main has failed at the first Clippy step since c96b4f2, so the tests haven't run on main since a803c87. 310c6eb fails on three lints:

  • function placed_filler_twins is never used (resource.rs)
  • consider using sort_unstable_by_key (draw.rs)
  • field depth_written is never read (indirect.rs, test build)

What

  • indirect.rs: the timing rig stored the written depth view but only clears it during setup. It draws with depth_tested. The field is dropped. Its heap is still kept alive by _target_heaps.
  • draw.rs: the scissor census sorts by Reverse(count). The order is unchanged.
  • resource.rs: only the diagnostics build's copystat reads placed_filler_twins. It is allowed to be dead without the feature, the same way shadow and pipeline handle theirs.

The resource.rs change is the same as #491 and #530. It's included so that one merge turns CI green. If one of those lands first, this one still merges cleanly or is a trivial conflict.

Verification

  • cargo clippy --workspace --all-targets --locked -- -D warnings and the same with --all-features, targeting x86_64-pc-windows-msvc (cross-checked from Linux): both clean.
  • Not run: cargo test --workspace. It needs Windows, and it hasn't run on main since a803c87. This PR's own CI run will be the first test run in that time.

No game data used.

🤖 Generated with Claude Code

- indirect.rs: the timing rig kept the written depth view it never reads
  after setup; drop the field.
- draw.rs: the scissor census sorts by a reversed key.
- resource.rs: placed_filler_twins is read only by the diagnostics
  build's copystat; allow it to be dead without the feature, as
  shadow and pipeline do.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-25T03:48:35.496059Z
We couldn’t complete this review. Comment @codex review to try again.
3d33ef0 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@JRamos1993

Copy link
Copy Markdown

Five open PRs make clippy pass on main. On current main (9376fd6), three of them do (#642, #755, #841); #530 and #491 (the same commit, d28e0dd) fix one lint of three.

Each PR merged onto 9376fd6, then CI's two clippy steps (cargo clippy --workspace --all-targets [--all-features] --locked -- -D warnings, toolchain 1.98.1, Windows):

tree without features --all-features
main 9376fd6 fails: sort_unstable_by_key (draw.rs), depth_written never read (indirect.rs), placed_filler_twins never used (resource.rs) fails: the first two
+ #642 passes passes
+ #755 passes passes
+ #841 passes passes
+ #530 fails: sort_unstable_by_key, depth_written fails: the same
+ #491 fails: the same fails: the same

The three that pass all make the same sort_unstable_by_key change and differ only in the other two lints:

All three merge onto 9376fd6 without conflicts. #530 and #491 are older and fixed what was failing when they were opened. Merging any one of the three passing PRs makes the other four unnecessary.

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