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

Merged
MoonEyes merged 1 commit from upstream-pr/3358 into main 2026-12-03 17:46:35 +00:00
MoonEyes commented 2026-12-03 16:19:19 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-12-03T16:19:19Z.


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

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5630415623 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3358). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-12-03T16:19:19Z. --- 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 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by Kal0s-design on 2026-12-03T17:14:33Z.


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).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7386194056 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3358#issuecomment-7386194056). Originally posted by [Kal0s-design](https://github.com/Kal0s-design) on 2026-12-03T17:14:33Z. --- 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 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
ProjectLeonida/mandy!3358
No description provided.