chore(fff-core): use as_chunks in flush_seen (clippy 1.98) - #808
Merged
Conversation
clippy 1.98 added chunks_exact_to_as_chunks, which fails CI under -D warnings. SEEN_WORDS is a multiple of 8, so the remainder is always empty and the fixed-size chunk keeps codegen identical or better.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review. 📝 WalkthroughWalkthrough
ChangesBigram filter bitmap scan
Estimated code review effort: 1 (Trivial) | ~2 minutes Merge Risk: ⚪ Minimal · up to This localized lint-compatibility change preserves behavior and has passed the stated checks; no actionable merge-blocking risk remains. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Comment |
dmtrKovalenko
approved these changes
Aug 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No issue. Unblocks CI on #807 and every other open PR.
Root cause
cargo clippy --no-default-features --features zlob -- -D warningsfails onmain:chunks_exact_to_as_chunksis new in clippy 1.98. Stable rolled to 1.98.0 (88d9e12ae) on 2026-08-18;rust-toolchain.tomltrackschannel = "stable"and the clippy job usesdtolnay/rust-toolchain@masterwithtoolchain: stable, so every run since the roll fails. The line itself is from a487120 (#676, 2026-07-14) and was clean under 1.92.Fix
One line in
flush_seen:seen.chunks_exact(8)->seen.as_chunks::<8>().0.iter().SEEN_WORDS = 1024is a multiple of 8, so the remainder slice is always empty and iteration is unchanged. Block type becomes&[u64; 8]instead of&[u64], which gives the vectorizer a static length for the OR-test fold — same or better codegen, no behavior change.Steps to reproduce
Expected: clean. Actual on
main: the error above, exit 101. Under1.92.0it is clean, which is why nothing caught it earlier.How verified
That is the full CI command and it is the only clippy job; no other 1.98 lint fires on the workspace.
Automated triage via Gustav. Honk-Honk 🪿
Summary by CodeRabbit