Clippy: main is clean again with -D warnings, with and without --all-features (3 lints) #841

Open
github-bot wants to merge 2 commits from github-bot/gh-841 into main AGit
Owner

@⁠MamaLeVrai on GitHub · 2026-11-25 10:12 UTC · original
MamaLeVrai:clippy-clean → main · +7 −6 · 4 files · 2 commits · open

On main (0b0074e), cargo clippy --workspace --all-targets --locked -- -D warnings fails in victory-gpu on this machine (Windows 11, RX 6950 XT, Rust 1.98.1), with and without --all-features. Four lints (three of them were already there when I opened this; shadow.rs got the fourth since), none changing behaviour:

  • placed_filler_twins (resource.rs) is read only by the diagnostics memory report (copystat.rs, which is built with the diagnostics feature only), so it was dead code without that feature: it is compiled with the feature now (#[cfg(all(windows, feature = "diagnostics"))]).
  • Rig::depth_written (indirect.rs) is kept next to depth_tested but never read: renamed _depth_written, as the struct's other kept fields (_kept, _target_heaps) are.
  • The scissor census in draw.rs sorts with sort_unstable_by_key(|r| Reverse(r.1)) instead of sort_unstable_by(|a, b| b.1.cmp(&a.1)).
  • shadow.rs (the own-view write census): n % 16384 == 0 is n.is_multiple_of(16384).

Checks: cargo clippy --workspace --all-targets --locked -- -D warnings and the same with --all-features: clean. cargo test --workspace --locked: the crates before victory-gpu pass; in victory-gpu the library's tests pass apart from the intermittent failures that main has (the budget test, see #849; the crash of the test binary, see #850). The title was not run.

AI-assisted (Claude Code); no game data.

🤖 Generated with Claude Code

**@⁠MamaLeVrai** on GitHub · 2026-11-25 10:12 UTC · [original](https://github.com/fxceless/victory-fork/pull/841) `MamaLeVrai:clippy-clean` → `main` · +7 −6 · 4 files · 2 commits · open On `main` (`0b0074e`), `cargo clippy --workspace --all-targets --locked -- -D warnings` fails in `victory-gpu` on this machine (Windows 11, RX 6950 XT, Rust 1.98.1), with and without `--all-features`. Four lints (three of them were already there when I opened this; `shadow.rs` got the fourth since), none changing behaviour: - `placed_filler_twins` (`resource.rs`) is read only by the diagnostics memory report (`copystat.rs`, which is built with the `diagnostics` feature only), so it was dead code without that feature: it is compiled with the feature now (`#[cfg(all(windows, feature = "diagnostics"))]`). - `Rig::depth_written` (`indirect.rs`) is kept next to `depth_tested` but never read: renamed `_depth_written`, as the struct's other kept fields (`_kept`, `_target_heaps`) are. - The scissor census in `draw.rs` sorts with `sort_unstable_by_key(|r| Reverse(r.1))` instead of `sort_unstable_by(|a, b| b.1.cmp(&a.1))`. - `shadow.rs` (the own-view write census): `n % 16384 == 0` is `n.is_multiple_of(16384)`. **Checks:** `cargo clippy --workspace --all-targets --locked -- -D warnings` and the same with `--all-features`: clean. `cargo test --workspace --locked`: the crates before `victory-gpu` pass; in `victory-gpu` the library's tests pass apart from the intermittent failures that `main` has (the budget test, see #849; the crash of the test binary, see #850). The title was not run. AI-assisted (Claude Code); no game data. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Three lints, none changing behaviour:
- placed_filler_twins is read only by the diagnostics memory report: compiled with the feature
  that reads it (it was dead code without it);
- Rig::depth_written (indirect.rs) is kept next to depth_tested but never read: _depth_written, as
  the struct's other kept fields are named;
- the scissor census sorts with sort_unstable_by_key and Reverse.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
The fourth lint of the newest main (n % 16384 == 0 in the own-view write census); same value.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:52:20 +00:00
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/841/head:github-bot/gh-841'
git switch 'github-bot/gh-841'

Merge

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