Diagnostics builds compile again #2744

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

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

What

cargo build --profile diag -p victory --features diagnostics, and therefore the CI's cargo clippy --workspace --all-targets --all-features step, stop at nine errors in victory-gpu on main.

Evidence

error[E0618]: expected function, found `Option<SubmissionTiming>`
    --> crates/victory-gpu/src/host.rs:9127:60
8673 |         let mut timing = (late && submission_timing()).then(|| SubmissionTiming::new(...));
error[E0425]: cannot find function `mb` in this scope
    --> crates/victory-gpu/src/copystat.rs:1349:9

Fix

  • host.rs: the submission's local let mut timing (an Option<SubmissionTiming>) shadows the diagnostics-only fn timing() (VICTORY_GPU_TIMING) at its three uses in the same function. They call self::timing() now.
  • copystat.rs: the "windows cut nearer" line formats with mb(..), which that function never defined. It is defined there as a closure, bytes to MB as f64, as the file's other report functions do.

No behaviour changes. VICTORY_GPU_TIMING stays off unless set.

Tests

  • cargo xwin build --profile diag -p victory --features diagnostics builds.
  • cargo xwin clippy -p victory-gpu --all-targets --all-features finishes with no errors.
  • The resulting diagnostics build ran several play sessions under Proton (2026-11-29).
**@⁠gabrielecabrini** on GitHub · 2026-11-29 16:46 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2744) `gabrielecabrini:fix/diagnostics-build` → `main` · +4 −3 · 2 files · 1 commits · closed without merging ## What `cargo build --profile diag -p victory --features diagnostics`, and therefore the CI's `cargo clippy --workspace --all-targets --all-features` step, stop at nine errors in `victory-gpu` on `main`. ## Evidence error[E0618]: expected function, found `Option<SubmissionTiming>` --> crates/victory-gpu/src/host.rs:9127:60 8673 | let mut timing = (late && submission_timing()).then(|| SubmissionTiming::new(...)); error[E0425]: cannot find function `mb` in this scope --> crates/victory-gpu/src/copystat.rs:1349:9 ## Fix - `host.rs`: the submission's local `let mut timing` (an `Option<SubmissionTiming>`) shadows the diagnostics-only `fn timing()` (`VICTORY_GPU_TIMING`) at its three uses in the same function. They call `self::timing()` now. - `copystat.rs`: the "windows cut nearer" line formats with `mb(..)`, which that function never defined. It is defined there as a closure, bytes to MB as `f64`, as the file's other report functions do. No behaviour changes. `VICTORY_GPU_TIMING` stays off unless set. ## Tests - `cargo xwin build --profile diag -p victory --features diagnostics` builds. - `cargo xwin clippy -p victory-gpu --all-targets --all-features` finishes with no errors. - The resulting diagnostics build ran several play sessions under Proton (2026-11-29).
`cargo build --profile diag --features diagnostics` (and so
`clippy --all-features`) stopped at nine errors in victory-gpu:

- host.rs: the submission's `let mut timing` (an
  Option<SubmissionTiming>) shadows the diagnostics-only `fn timing()`
  (VICTORY_GPU_TIMING) at its three uses in the same function. They call
  `self::timing()` now.
- copystat.rs: the "windows cut nearer" line formats with `mb(..)`, a
  closure the function never defined. It is defined there as the
  file's other lines do (bytes to MB as f64).

No change to what either does; VICTORY_GPU_TIMING stays off unless set.
Built and run on a diagnostics build under Proton (2026-11-29).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 16:49:23 +00:00
github-bot closed this pull request 2026-11-30 17:23:34 +00:00
Author
Owner

@⁠gabrielecabrini on GitHub · 2026-11-30 17:17 UTC · original

Closing: the same change is already on main.

**@⁠gabrielecabrini** on GitHub · 2026-11-30 17:17 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2744#issuecomment-7286022046) Closing: the same change is already on main.

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