Drop the unused batched binding in indirect::make_from #3358

Merged
leonida/mandy
MoonEyes merged 1 commit from fix/indirect-unused-batched into main 2026-12-03 17:46:35 +00:00

Pull request successfully merged and closed

MoonEyes commented 2026-12-03 16:19:19 +00:00

Claimed in the coordination issue as: #3174 (claim comment in #3312)

Refs: #3174 (does not close it: the field 0 is never read warning on Slot in book.rs:247 is a separate fix, because that field keeps the descriptor heap alive)

What and why

Removes the diagnostics-only let batched = source == batch::SOURCE in indirect::make_from. It was never read since the file was created: the pipeline name is the same CLAMP constant for both sources, and the batch pass is replayed through its own edit::BATCH slot. No #[allow], no other code changes.

Tested

  • cargo check -p leonida-gpu --features diagnostics --locked --target x86_64-pc-windows-msvc from Linux (read-only reviewer): no warning left in indirect.rs; no new warning without the feature or with --all-targets.
  • python -I scripts/check_no_game_data.py: clean.
  • No red/green test: the proof is the compiler output, which is not testable as a unit test.

GPUs tested: n/a

AI-assisted: yes. Written with Claude Sonnet 5.5; independently reviewed read-only by Claude Opus 5.5 (verdict OK).

Checklist

  • Based on current main and merges cleanly.
  • One topic.
  • No game data, keys or decryption.
  • Not a translator rule.

Generated by Claude Code

Claimed in the coordination issue as: #3174 (claim comment in #3312) Refs: #3174 (does not close it: the `field 0 is never read` warning on `Slot` in `book.rs:247` is a separate fix, because that field keeps the descriptor heap alive) ### What and why Removes the diagnostics-only `let batched = source == batch::SOURCE` in `indirect::make_from`. It was never read since the file was created: the pipeline name is the same `CLAMP` constant for both sources, and the batch pass is replayed through its own `edit::BATCH` slot. No `#[allow]`, no other code changes. ### Tested - `cargo check -p leonida-gpu --features diagnostics --locked --target x86_64-pc-windows-msvc` from Linux (read-only reviewer): no warning left in `indirect.rs`; no new warning without the feature or with `--all-targets`. - `python -I scripts/check_no_game_data.py`: clean. - No red/green test: the proof is the compiler output, which is not testable as a unit test. GPUs tested: n/a AI-assisted: yes. Written with Claude Sonnet 5.5; independently reviewed read-only by Claude Opus 5.5 (verdict OK). ### Checklist - [x] Based on current `main` and merges cleanly. - [x] One topic. - [x] No game data, keys or decryption. - [x] Not a translator rule. --- _Generated by [Claude Code](https://claude.ai/code)_
Kal0s-design commented 2026-12-03 17:14:33 +00:00

Ran natively on Windows 11, head f35f14218 merged into current main (717b90233, clean merge).

No findings. Measured with MSVC Rust on leonida-gpu:

check main merge
cargo check -p leonida-gpu --all-targets --features diagnostics 2 warnings (batched unused in indirect.rs:532, Slot field 0 in book.rs:247) only the book.rs one left
cargo clippy -p leonida-gpu --all-targets --features diagnostics -- -D warnings 10 errors 9, the indirect.rs one is gone
same clippy without diagnostics clean clean

With #3361 merged on top as well, cargo check --features diagnostics has no warnings left. The 8 clippy errors that remain with diagnostics are already on main and outside this file (census.rs, shown.rs, copystat.rs, host.rs, replay/play*.rs).

Not checked: running the leonida-gpu tests (compile-only check; the change only removes an unused binding).

GPUs tested: n/a (CPU-only tests).
AI-assisted: yes (Claude Code).

Ran natively on Windows 11, head `f35f14218` merged into current `main` (`717b90233`, clean merge). No findings. Measured with MSVC Rust on `leonida-gpu`: | check | `main` | merge | |---|---|---| | `cargo check -p leonida-gpu --all-targets --features diagnostics` | 2 warnings (`batched` unused in `indirect.rs:532`, `Slot` field 0 in `book.rs:247`) | only the `book.rs` one left | | `cargo clippy -p leonida-gpu --all-targets --features diagnostics -- -D warnings` | 10 errors | 9, the `indirect.rs` one is gone | | same clippy without `diagnostics` | clean | clean | With #3361 merged on top as well, `cargo check --features diagnostics` has no warnings left. The 8 clippy errors that remain with `diagnostics` are already on `main` and outside this file (`census.rs`, `shown.rs`, `copystat.rs`, `host.rs`, `replay/play*.rs`). Not checked: running the `leonida-gpu` tests (compile-only check; the change only removes an unused binding). GPUs tested: n/a (CPU-only tests). AI-assisted: yes (Claude Code).
Sign in to join this conversation.
No description provided.