Repository navigation
lint: qdot's activation helpers imported only where the AVX2 paths use them - #688
Conversation
…e them On aarch64 the three helpers imported at crates/qdot/src/lib.rs:71 have no user, so clippy warns about unused imports there; the x86_64 lint does not see it. The import moves under the same cfg as its callers.
There was a problem hiding this comment.
Verdict: MUST_FIX: Two scalar documentation links lose their targets on aarch64.
Must fix
1. Qualify the remaining scalar documentation links
crates/qdot/src/lib.rs:73 removes the helper names from scope on aarch64. The ungated quantize_q8f0_col still links to both short names at crates/qdot/src/lib.rs:3700. Generating private documentation on that architecture produces unresolved intra-doc links. This is a kind B broken-comment defect.
Fixing both links now takes two lines and avoids a separate documentation repair. Replace lines 3700–3701 with:
/// even (mainline's F16C conversion, [`gguf::quant::f32_to_f16_bits`] here), codes
/// `round_half_even(v * id)` with [`gguf::quant::q80_inverse`]'s `id`.
Checked
Duplicates: 0 new functions, types or constants; dryer reported 0 candidate pairs.
Complexity: crapper flagged no functions; no function body changed.
Silent failure: 0 changed sites; executable helper uses retain matching x86_64 guards.
Tests: no tests changed; mutation checking is not applicable.
Gates: no gates, thresholds or lint levels changed.
Escape catalog: no patterns matched.
Notes
Static review only; no builds or tests run here. The PR reports aarch64 lint and formatting checks; x86_64 lint was not run.
🔨 Shingler, bloomery's review bot: approves a clean pull request and requests changes on a must-fix (how it works)
quantize_q8f0_col is built on every architecture, so its doc links to f32_to_f16_bits and q80_inverse name the gguf::quant paths now that the short names are imported only on x86_64.
There was a problem hiding this comment.
Since the last review: must-fix 1 is fixed. Both scalar links now use full paths at crates/qdot/src/lib.rs:3700.
Verdict: CLEAN: The earlier aarch64 documentation defect is fixed.
Checked
Duplicates: 0 new items; dryer reported 0 candidate pairs.
Complexity: crapper flagged no functions; no function body changed.
Silent failure: 0 changed sites; this increment changes only two documentation links.
Tests: no tests changed; mutation checking is not applicable.
Gates: no gates, thresholds or lint levels changed.
Links: both target functions and their module are public and available on aarch64 and x86_64.
Escape catalog: no patterns matched.
Notes
Static review only; rustdoc, builds and tests were not run here.
🔨 Shingler, bloomery's review bot: approves a clean pull request and requests changes on a must-fix (how it works)
|
The review is done and the contribution check passed, so I'm merging this. |
qdot의 aarch64 unused imports 경고를 없애는 clippy 정리 PR입니다.
What and why
On aarch64,
just linton main reports an unused imports warning incrates/qdot/src/lib.rs.f32_to_f16_bits,non_finite_activationandq80_inverseare used only by the x86_64 AVX2 quantizers, so the import now carries the same#[cfg(target_arch = "x86_64")]. x86_64 imports all three as before. The doc link onquantize_q8k_blocknamesgguf::quant::non_finite_activationin full so rustdoc still resolves it on aarch64. No behavior change.The warning came in with f956b65. The x86_64 lint enables the cfg that uses these imports, which is why it never showed there.
Release notes: internal: clears an aarch64-only clippy warning.
Code shape
gguf::quantowners.allowadded and no lint moved; the import is gated on the condition of its callers.cargo fmtandcargo clippyare clean on what I touched; the lint count did not go up.Duplication found or removed (
path:line), or "none": none.What I ran
just linton main, aarch64: 8^warning:lines, including the qdot unused imports warning.just lintwith this change, aarch64: the qdot warning is gone. The two other warnings (crates/model-hf/src/arch/qwen35moe/folder.rsandcrates/refset/src/arch/qwen4exp/mtp.rs) are left to ci: lint every pull request against the clippy ratchet #685.cargo fmt --check: clean.quantize_q8k_block_avx2,quantize_q8_block_avx2,quantize_q8f0_col_avx2) sits under the same cfg.Hardware (if the change is for a machine)
aarch64 only (DGX Spark, GB10). No GPU path is involved.
What I ran into
This does not block the PR. I did not run the x86_64 lint on this head. The other two aarch64 warnings are still open on main until #685 lands.
AI help
AI 코딩 에이전트가 코드를 작성한 후 설명을 썼고, 테스트를 마쳤습니다. diff 리뷰와 PR 초안 리뷰는 제가 직접 했습니다.