The Wire · Showcase
CLIPPY FIXES NESTED INDEX TRAP, RUST CORE ROLLS UP 28 MERGES
By RepoJournal · Filed · About Rust
Clippy's `needless_range_loop` stops suggesting wrong rewrites when indexes nest or follow field accesses, closing four separate bug reports in one fix.
The linter was confidently breaking code by suggesting incorrect transformations when index access followed other field operations or when indexes nested, but that's fixed now [1]. In parallel, a second Clippy patch tightened up `redundant_pattern_matching` to properly parenthesize guarded `matches!` suggestions, preventing silent precedence changes in patterns that bind tighter than `&&` [2]. The Rust compiler side shipped a 28-PR rollup [4] landing L4Re target revival, splatted function pointer support, delegation return-value wrapping via `From::from`, and bootstrap fixes that restore `./x clippy` after recent check-kind refactoring broke it [3]. Across the language ecosystem, crates.io is separating GitHub identities from canonical Rust usernames in its user API [6], while the registry continues dependency maintenance with TypeScript and Storybook updates [5], plus a clean removal of the deprecated `gh_encrypted_token` column [7]. All told: 142 commits, 22 PRs across five repos, with the Clippy correctness wins being the most immediately valuable for daily lint runs.
One email a day. Unsubscribe in one click.
Keep up with Rust in about 3 minutes a day: what actually shipped — the commits, pull requests, releases, and security advisories that matter.
One email a day. Unsubscribe in one click. Read a past issue →
Action items
- → Pull latest Clippy to get the nested index fix in your next lint pass rust-lang/rust-clippy [plan]
- → Monitor crates.io username changes if you're using the user lookup API rust-lang/crates.io [monitor]
- → Update Rust toolchain to pick up the 28-PR rollup, especially if you use delegation rust-lang/rust [plan]
References
- [1] Fix `needless_range_loop` suggests wrongly for nested index ↗ rust-lang/rust-clippy
- [2] `redundant_pattern_matching`: parenthesize guarded `matches!` suggestion ↗ rust-lang/rust-clippy
- [3] Rollup merge of #160606 - Zalathar:check-kind, r=Kobzol rust-lang/miri
- [4] Rollup of 28 pull requests ↗ rust-lang/rust
- [5] Update dependency typescript-eslint to v8.66.0 ↗ rust-lang/crates.io
- [6] Use crates.io usernames for user lookups and responses ↗ rust-lang/crates.io
- [7] Merge pull request #14259 from carols10cents/remove-users-gh-encrypted-token rust-lang/crates.io