Skip to content

fix(core): clear the two clippy errors failing nightly verify - #1720

Merged
inureyes merged 1 commit into
mainfrom
fix/nightly-clippy-ffi-tests
Sep 9, 2026
Merged

inureyes merged 1 commit into
mainfrom
fix/nightly-clippy-ffi-tests

Conversation

@inureyes

@inureyes inureyes commented Sep 9, 2026

Copy link
Copy Markdown
Member

cargo clippy --workspace --all-targets -- -D warnings has failed on main since 897a50f. The PR gate stays green because it does not run that scope, so the only place this shows up is Nightly verify, which has been red every night since 2026-09-05 (runs 34262127778 and its four predecessors, all failing at the same two lines).

Both lints are in test_compiled_softcap_sdpa_gqa_decode_matches_repeated_reference: an f32 -> f32 cast on the fill closure's return value, and b * h_q * 1 * d, where the 1 is the decode q_len that the &[b, h_q, 1, d] shape literal on the same line already states. The element count is identical either way, so the test's inputs and expectations do not move; a comment keeps the q_len readable.

Validated on M1 Ultra: cargo clippy --workspace --all-targets --features metal,accelerate -- -D warnings clean, cargo fmt --all -- --check clean, and the three ffi_tests::test_compiled_softcap_sdpa_gqa* tests pass.

`cargo clippy --workspace --all-targets -- -D warnings` has failed on main since 897a50f, so every Nightly verify run since 2026-09-05 is red while the PR CI stays green. Two lints in one test, both in `test_compiled_softcap_sdpa_gqa_decode_matches_repeated_reference`: an `f32 -> f32` cast on the `fill` closure's return, and `b * h_q * 1 * d` where the `1` is the decode q_len that the shape literal next to it already spells out. The element count and the test's numbers are unchanged.

Validated: workspace clippy clean, `cargo fmt --all -- --check` clean, and the three `ffi_tests::test_compiled_softcap_sdpa_gqa*` tests pass.
@inureyes
inureyes merged commit 11845bf into main Sep 9, 2026
13 checks passed
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