Repository navigation
bench_picks: the MXFP8 plane pair has a name, so clippy's type_complexity ratchet holds at 0 - #1159
Conversation
…xity ratchet holds at 0
There was a problem hiding this comment.
Verdict: CLEAN: The type alias preserves both signatures and changes no executable code.
Checked
Duplicates: 1 new type checked; no duplicate owner found. No dryer pairs were available.
Complexity: no function bodies or control flow changed.
Silent failure: 0 new sites.
Tests: no tests changed; mutation checks do not apply. Expanding Mxfp8Planes and removing its declaration reproduces the base file exactly. No build or runtime tests were run during this review.
Gates: no tests, pins, thresholds, or lint levels changed.
Escape catalog: no patterns matched.
Notes
dryer did not run; crapper failed because its Python module was missing.
Card check: needs-gpu. This pull request changes crates/gpu-gates/src/bin/bench_picks.rs and carries no gate run on a card (CONTRIBUTING's evidence list); a maintainer adds gpu-verified after one.
🔨 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. |
bench_picks의 MXFP8 plane 튜플에 타입 이름을 붙여 clippy type_complexity 경고를 0으로 되돌렸습니다.
What and why
clippy::type_complexityfires on the(DeviceTensor<u32>, DeviceTensor<u32>)pair incrates/gpu-gates/src/bin/bench_picks.rs(mxfp8_planes, line 394 on main), which pushes the^warning:count above the ratchet intools/lint-ratchet.txt(0). This names the pairMxfp8Planesand uses the name in the two places that spelled the tuple out,mxfp8_enqandmxfp8_planes. Behavior does not change. One file, +5/-2.Release notes: internal: clippy's type_complexity warning in bench_picks is gone, so the lint ratchet holds at 0.
Code shape
The review reads these first. A box left unticked needs one line of why.
copying it (
AGENTS.md"Common code first",docs/rust-quality.mdR14). Where I found an existing copy, Inamed it below.
(tensor shapes, the attention kind, the quant). A common owner gained no per-model branch, flag or trait method.
tools/check-comments.sh).PIN(YYYY-MM-DD):and its reason.
cargo fmtandcargo clippyare clean on what I touched; the lint count did not go up. Skipped (explicit phase skip)Duplication found or removed (
path:line), or "none": none. The tuple was spelled twice in this file and both uses now share the alias.What I ran
Tested on upstream base
04950bfffand PR headc70bccdb6d7545d31a0f2493f0dd28ff25035dd7.lintrunscargo clippy --target x86_64-unknown-linux-gnu --workspace --all-targetswith the workspace feature set of thelintrecipe, using rustc 1.99.1 and rustfmt 1.10.0-stable.Hardware (if the change is for a machine)
Not a machine change: a type alias in a gate binary, with no kernel or gate behavior touched.
AI help
AI 코딩 에이전트가 코드를 작성한 후 설명을 썼고, 테스트를 마쳤습니다. diff 리뷰와 PR 초안 리뷰는 제가 직접 했습니다.