Diagnostics build compiles again #2386

Open
FIocker wants to merge 1 commit from upstream-pr/2386 into main
FIocker commented 2026-11-29 12:36:50 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by FIocker on 2026-11-29T12:36:50Z.


cargo build --profile diag -p victory --features diagnostics fails on 829188e9 with 9 errors:

  • In send_runs the local timing (Option<SubmissionTiming>) shadows the free function timing() at its three later calls (E0618). They now call self::timing().
  • The memory lines that moved into log_heap_elsewhere use an mb closure that only log_memory defines (E0425). log_heap_elsewhere now defines its own.

No behaviour change. The release build was unaffected.

Checked: cargo check --workspace --all-targets and cargo check -p victory --features diagnostics are clean.

🤖 Generated with Claude Code

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5550768592 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2386). Originally posted by [FIocker](https://github.com/FIocker) on 2026-11-29T12:36:50Z. --- `cargo build --profile diag -p victory --features diagnostics` fails on 829188e9 with 9 errors: - In `send_runs` the local `timing` (`Option<SubmissionTiming>`) shadows the free function `timing()` at its three later calls (E0618). They now call `self::timing()`. - The memory lines that moved into `log_heap_elsewhere` use an `mb` closure that only `log_memory` defines (E0425). `log_heap_elsewhere` now defines its own. No behaviour change. The release build was unaffected. Checked: `cargo check --workspace --all-targets` and `cargo check -p victory --features diagnostics` are clean. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Dukestar69 commented 2026-11-29 12:51:32 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Dukestar69 on 2026-11-29T12:51:32Z.

Review: APPROVED


Tested locally merged onto main (829188e9).

  • Merge: Clean 7-line merge across crates/victory-gpu/src/copystat.rs and host.rs.
  • Tests (RTX 5090): cargo test -p victory-gpu --features diagnostics --lib replay:: compiled cleanly and passed (29 passed; 0 failed; 1 ignored) with 0 new warnings.

Clean fix restoring --features diagnostics compilation (fixes #2164). LGTM.

Synthetic tests only (no game files used). AI-assisted (Gemini 4 Neon).

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:review:6102949391 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2386#pullrequestreview-6102949391). Originally posted by [Dukestar69](https://github.com/Dukestar69) on 2026-11-29T12:51:32Z. **Review:** APPROVED --- Tested locally merged onto `main` (`829188e9`). - **Merge**: Clean 7-line merge across `crates/victory-gpu/src/copystat.rs` and `host.rs`. - **Tests (RTX 5090)**: `cargo test -p victory-gpu --features diagnostics --lib replay::` compiled cleanly and passed (`29 passed; 0 failed; 1 ignored`) with 0 new warnings. Clean fix restoring `--features diagnostics` compilation (fixes #2164). LGTM. Synthetic tests only (no game files used). AI-assisted (Gemini 4 Neon).
grosterr commented 2026-11-29 16:43:31 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by grosterr on 2026-11-29T16:43:31Z.


Tested on top of 829188e plus 16 other open PRs: cargo build --release -p victory --features diagnostics compiles with it, and fails without it. The build runs: a few minutes of play in the open world, with no crash. VICTORY_GPU_TIMES=1 gives the per-pipeline card times. (RTX 3060 12 GB, Windows 11.)

Posted by Claude Code on behalf of the machine's owner.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7259128183 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2386#issuecomment-7259128183). Originally posted by [grosterr](https://github.com/grosterr) on 2026-11-29T16:43:31Z. --- Tested on top of `829188e` plus 16 other open PRs: `cargo build --release -p victory --features diagnostics` compiles with it, and fails without it. The build runs: a few minutes of play in the open world, with no crash. `VICTORY_GPU_TIMES=1` gives the per-pipeline card times. (RTX 3060 12 GB, Windows 11.) Posted by Claude Code on behalf of the machine's owner.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/2386:upstream-pr/2386'
git switch 'upstream-pr/2386'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/2386'
git switch 'upstream-pr/2386'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/2386'
git switch 'upstream-pr/2386'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/2386'
git switch 'main'
git merge --squash 'upstream-pr/2386'
git switch 'main'
git merge --ff-only 'upstream-pr/2386'
git switch 'main'
git merge 'upstream-pr/2386'
git push origin 'main'
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
trustno1-coder/VIctory-NVIDIA!2386
No description provided.