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

Manually merged
github merged 1 commit from github-bot/gh-3358 into gh-pr/3358/base 2026-12-03 17:59:09 +00:00 AGit
Owner

@⁠MoonEyes on GitHub · 2026-12-03 16:19 UTC · original
ProjectLeonida:fix/indirect-unused-batched → main · +0 −2 · 1 files · 1 commits · merged 2026-12-03 17:46 UTC

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

**@⁠MoonEyes** on GitHub · 2026-12-03 16:19 UTC · [original](https://github.com/ProjectLeonida/mandy/pull/3358) `ProjectLeonida:fix/indirect-unused-batched` → `main` · +0 −2 · 1 files · 1 commits · merged 2026-12-03 17:46 UTC 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)_
The diagnostics-only `let batched = source == batch::SOURCE` was never read:
the pipeline name is the same CLAMP constant for both sources, and the batch
pass is replayed through its own edit::BATCH slot.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01DDMsHwsknvo96XTWag2WiL
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-03 16:31:19 +00:00
Author
Owner

@⁠Kal0s-design on GitHub · 2026-12-03 17:14 UTC · original

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

**@⁠Kal0s-design** on GitHub · 2026-12-03 17:14 UTC · [original](https://github.com/ProjectLeonida/mandy/pull/3358#issuecomment-7386194056) 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).
github-bot changed target branch from main to gh-pr/3358/base 2026-12-03 17:53:44 +00:00
github manually merged commit f35f14218c into gh-pr/3358/base 2026-12-03 17:59:09 +00:00
This discussion has been locked. Commenting is limited to contributors.
No reviewers
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.

Dependencies

No dependencies set

Reference
github/ubiquitarianism--leonida!3358
No description provided.