The Wire · Showcase
RUST ADOPTS LLM POLICY, NEXT-SOLVER HITS NIGHTLY
By RepoJournal · Filed · About Rust
The Rust project formalized its stance on LLM contributions while the next-generation trait solver just landed on nightly.
The Rust project is formalizing how AI-assisted contributions are handled, with the blog post spelling out the new LLM policy now live on inside-rust [1]. More consequential for the compiler's future, the next-solver has been enabled on nightly [2], a major milestone that will reshape how trait solving works. Clippy is tightening its lints: `manual_assert_eq` will no longer fire on byte buffers, saving you from massive debug noise when comparing `[u8]` slices [3]. And `unnecessary_fold` now catches the classic `fold`-over-`Option` pattern, suggesting `map_or` instead [4]. On the rustc side, a rollup of 19 PRs includes building rustc with `-Zembed-metadata=no` and erroring on projection of dyn noncompat types in the old solver [5]. A revert lands for the premature result receiver panic change [6], so expect that behavior to come back. The crates.io index saw routine bors updates [7], nothing requiring your attention.
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
- → Update your clippy lints: expect `manual_assert_eq` to skip byte slices and `unnecessary_fold` to suggest `map_or` for Option folds rust-lang/rust-clippy [plan]
- → Review the new LLM policy if you contribute to rust-lang/rust or its subprojects rust-lang/blog.rust-lang.org [monitor]
- → Test your code against the next-solver on nightly and report regressions rust-lang/rust [plan]
References
- [1] [rust-lang/rust is adopting an LLM policy] Github → GitHub rust-lang/blog.rust-lang.org
- [2] next-solver is now on nightly ↗ rust-lang/blog.rust-lang.org
- [3] Avoid `manual_assert_eq` for byte slice-like types ↗ rust-lang/rust-clippy
- [4] unnecessary_fold: lint folding over an Option's iterator ↗ rust-lang/rust-clippy
- [5] Auto merge of #161505 - JonathanBrouwer:rollup-IS2Ut1i, r=JonathanBrouwer rust-lang/rust
- [6] Revert "Do not panic when the result receiver is dropped prematurely" rust-lang/rust
- [7] Update crate `tatara-build-remote` rust-lang/crates.io-index