Skip to content

hi-cuda: apply cargo fmt to unblock the fmt·test CI gate#86

Merged
davidrhodus merged 2 commits into
mainfrom
fix/hi-cuda-rustfmt
Jul 11, 2026
Merged

hi-cuda: apply cargo fmt to unblock the fmt·test CI gate#86
davidrhodus merged 2 commits into
mainfrom
fix/hi-cuda-rustfmt

Conversation

@davidrhodus

Copy link
Copy Markdown
Contributor

The blocking fmt · test (CPU crates) CI job runs cargo fmt --all --check, which covers the whole workspace including hi-cuda. Recent hi-cuda work (commit 09fbc0e / 3fc2ca8) landed with a handful of method-chain and array-literal expressions that stable rustfmt (1.97) wants wrapped, so the check fails on main and on every PR merged against it.

This is a pure cargo fmt normalization of crates/hi-cuda/src/{lib,gpu}.rs — line wrapping only, no logic change. After it, cargo fmt --all --check passes.

🤖 Generated with Claude Code

davidrhodus and others added 2 commits July 10, 2026 17:32
Recent hi-cuda work (commit 09fbc0e / 3fc2ca8) landed with a few
method-chain and array-literal expressions that stable rustfmt wants
wrapped, so `cargo fmt --all --check` — the blocking `fmt · test` CI job —
fails on main. Pure `cargo fmt` normalization; no logic change.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
The recent speculative-decode work added
`speculative_greedy_next_tokens_paged_with_page_table` (and a call site in
`process_continuous_decode_chunk`) to the `#[cfg(feature = "native-cuda")]`
impl, but not the matching stub in the `#[cfg(not(feature = "native-cuda"))]`
impl every sibling method has. So the default-feature build — which CI's
`cargo test --workspace --exclude hi-mlx` uses — failed to compile with E0599.
Add the stub (bails with the standard "built without native-cuda support"
message), matching the call site's signature. No native-cuda path change.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@davidrhodus davidrhodus merged commit b03abd5 into main Jul 11, 2026
3 checks passed
@davidrhodus davidrhodus deleted the fix/hi-cuda-rustfmt branch July 11, 2026 00:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant