Diagnostics build: compile again #2593

Closed
milesah3ad wants to merge 1 commit from upstream-pr/2593 into main
milesah3ad commented 2026-11-29 14:44:38 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by milesah3ad on 2026-11-29T14:44:38Z.


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

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5551809886 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2593). Originally posted by [milesah3ad](https://github.com/milesah3ad) on 2026-11-29T14:44:38Z. --- 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
milesah3ad commented 2026-11-29 14:46:06 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by milesah3ad on 2026-11-29T14:46:06Z.


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

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7257560591 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2593#issuecomment-7257560591). Originally posted by [milesah3ad](https://github.com/milesah3ad) on 2026-11-29T14:46:06Z. --- @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 commented 2026-11-29 22:55:43 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by milesah3ad on 2026-11-29T22:55:43Z.


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!

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7264058797 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2593#issuecomment-7264058797). Originally posted by [milesah3ad](https://github.com/milesah3ad) on 2026-11-29T22:55:43Z. --- 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

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!2593
No description provided.