• Sources: primary
  • Summary: Jana Dönszelmann writes that the next trait solver, the project started in October 2022 to replace rustc's old solver and fix long-standing soundness bugs, will land in Rust 1.102.0, with performance as the last major blocker. One example: in unic-ucd, the new solver unified lifetime variables during borrow checking and rolled them back by copying, which made a long constant table quadratic and the crate 200 times slower to compile than with the old solver. The post, a writeup of a EuroRust 2026 talk, covers how the solver caches results and skips the cache for trivial goals such as i32: Sized.
  • Why it matters: Crates with heavy trait or type-level code may see compile times shift in either direction when 1.102.0 ships, so measure builds on nightly before then.
  • Background: A trait solver answers whether a type satisfies a trait bound by searching impl blocks, where clauses and compiler built-ins, recursively creating subgoals much like a Prolog engine. Because impls with associated types act as functions, the trait system is Turing complete and a single query can do unbounded work. The Chalk project, started in 2015, explored a logic-programming formulation and was retired in favor of the in-compiler next-generation solver.
  • Follow-up: The Rust 1.102.0 release and reports of compile time regressions or new errors from the new solver.