Repository navigation
Cache two more Clippy passes per module - #50
Merged
charliermarsh merged 2 commits intoAug 30, 2026
Merged
charliermarsh merged 2 commits into
charliermarsh merged 2 commits into
Conversation
charliermarsh
marked this pull request as ready for review
August 30, 2026 14:57
charliermarsh
merged commit Aug 30, 2026
5bd3512
into
charlie/1.98/incremental-clippy-source-inputs
3 checks passed
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.
Cache
UnnecessaryWrapsandNeedlessBorrowsForGenericArgsthrough the existing module lint queries, bringing the audited set to 56 passes covering 62 lint kinds. This builds on #49 and uses the source-file input support from astral-experiments/ohm-rust#73.Track the source span actually read when constructing a suggestion, including after walking macro contexts. The borrower-analysis stack remains local to each module traversal and its nested bodies. Compilers without the source-input query retain whole-crate traversal.
Six paired Ruff edits with identical preparation and unprofiled release builds averaged 36.80s on #49 and 36.39s with this change: 1.1% faster overall, winning four of six pairs. Compiler invocations, flags, and diagnostic payloads matched. This is a small preliminary gain; the no-change Cargo loop remained about 0.32s.
All 13 incremental regressions passed with the matching Ohm compiler, comparing diagnostics and metadata against uncached traversal at one and four compiler threads. The new cases cover cross-module trait changes, nested borrower state, macro suggestion text, configuration, inherited MSRV, and expectations. An untimed observer confirmed that unchanged modules skip callbacks, and a deliberately untracked source edit reproduced stale suggestions.
cargo fixit --clippy --Zdangerous-parallel-fixesalso produced the same edits and remaining warnings as #49.