Diagnostics build: compile again #2593

Closed
github-bot wants to merge 1 commit from github-bot/gh-2593 into main AGit
Owner

@⁠milesah3ad on GitHub · 2026-11-29 14:44 UTC · original
milesah3ad:fix-diagnostics-build → main · +4 −3 · 2 files · 1 commits · closed without merging

The `diagnostics` feature no longer compiles on main (829188e9): 9 errors.

  • copystat.rs `log_heap_elsewhere`: the windows-trim report calls `mb()`, which isn't in scope there (each other report defines its own), so add one.
  • host.rs submit: the local `timing` (`Option`) shadows the module fn `timing()`, so the three diagnostics `if timing()` checks call the Option. They now name the fn by its path (`crate::host::timing()`).

Release builds are unaffected. Checked with `cargo check --release --features diagnostics -p victory` (fails on main, passes with this).

🤖 Generated with Claude Code

https://claude.ai/code/session_01YPhfiX2HTdGjHQHvB9b9DE

**@⁠milesah3ad** on GitHub · 2026-11-29 14:44 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2593) `milesah3ad:fix-diagnostics-build` → `main` · +4 −3 · 2 files · 1 commits · closed without merging The \`diagnostics\` feature no longer compiles on main (829188e9): 9 errors. - **copystat.rs** \`log_heap_elsewhere\`: the windows-trim report calls \`mb()\`, which isn't in scope there (each other report defines its own), so add one. - **host.rs** submit: the local \`timing\` (\`Option<SubmissionTiming>\`) shadows the module fn \`timing()\`, so the three diagnostics \`if timing()\` checks call the Option. They now name the fn by its path (\`crate::host::timing()\`). Release builds are unaffected. Checked with \`cargo check --release --features diagnostics -p victory\` (fails on main, passes with this). 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01YPhfiX2HTdGjHQHvB9b9DE
The diagnostics feature no longer compiled on main (9 errors):

- copystat.rs log_heap_elsewhere: the windows-trim line calls mb(), which
  is not in scope there (each other report defines its own); add one.
- host.rs submit: the local `timing` (Option<SubmissionTiming>) shadows the
  module fn timing(), so the three diagnostics `if timing()` checks call the
  Option; name the fn by its path.

Release builds are unaffected. Checked with
cargo check --release --features diagnostics -p victory.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01YPhfiX2HTdGjHQHvB9b9DE
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 14:45:02 +00:00
Author
Owner

@⁠milesah3ad on GitHub · 2026-11-29 14:46 UTC · original

@⁠trustno1-coder small one when you have a moment: --features diagnostics doesn't compile on main since the combine merge (829188e9). This is the 4-line fix (two files, release builds untouched). Verified with cargo check --release --features diagnostics -p victory. Thanks for all the work on this fork.

**@⁠milesah3ad** on GitHub · 2026-11-29 14:46 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2593#issuecomment-7257560591) @⁠trustno1-coder small one when you have a moment: `--features diagnostics` doesn't compile on main since the combine merge (829188e9). This is the 4-line fix (two files, release builds untouched). Verified with `cargo check --release --features diagnostics -p victory`. Thanks for all the work on this fork.
github-bot closed this pull request 2026-11-29 22:58:40 +00:00
Author
Owner

@⁠milesah3ad on GitHub · 2026-11-29 22:55 UTC · original

Superseded by 41adb551 on main, which makes the same two changes (the windows-cut line's mb helper and the shadowed timing() in submit). The diagnostics build compiles on main again, so I'm closing this one. Thanks!

**@⁠milesah3ad** on GitHub · 2026-11-29 22:55 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2593#issuecomment-7264058797) Superseded by 41adb551 on main, which makes the same two changes (the windows-cut line's `mb` helper and the shadowed `timing()` in submit). The diagnostics build compiles on main again, so I'm closing this one. Thanks!

Pull request closed

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/trustno1-coder--VIctory-NVIDIA!2593
No description provided.