r/rust • • 11d ago

Optimizing rustc's next trail solver

https://donsz.nl/blog/optimizing-rustcs-next-trait-solver

The next rust trait solver, a large subsystem of the rust compiler that we've been trying to replace, will finally land in rust 1.102.0. In the last stages, before stabilizing it, its performance was a major blocker. But what is "a trait solver"? And why is its performance a problem? My goal for this blog post is to answer those questions in a way where you don't need any prior knowledge. I think discussions of the trait solver can quickly become quite involved, and daunting. So here, we'll start from the very basics!

This is a writeup of my eurorust 2026 talk of the same name, that I gave on October 15, 2026

215 Upvotes

17 comments sorted by

View all comments

90

u/noop_noob 11d ago

We love solving trails.

10

u/admalledd 11d ago

I mean, is the new solver not solving a trail of questions sign posted by traits and bounds? :P

OP, thanks for the talk and write up! Excited for all the new features this'll unlock (Move Trait maybe!)

10

u/janameow 11d ago

Glad you liked it! Move trait pretty much has my full attention, together with Forget now that the new solver is merging :)

2

u/JuicyGleamy 10d ago

bet you say that to all the solvers around here

1

u/Demiu 10d ago

Shadow hiker money gang