Skip to content
Opensource internals
  • Posts

Diagnostics

Did You Mean a Hyphen?: How rustc Repairs Unicode Confusables While Parsing

Oct 21, 2026 5 min read Jay Hubbert

rustc repairs unicode confusables by looking them up in a static table, substituting the ASCII token and continuing to parse, so recovery costs nothing extra.

RustInternalsCompilerLexerDiagnosticsUnicode

Read more →

rustc's Trait Solver Doesn't Write Error Messages: It Writes Proof Trees

Oct 21, 2026 6 min read Jay Hubbert

rustc’s next-gen trait solver never constructs error messages while solving; it records a proof tree and replays it later, with caches bypassed, to find the real cause of a …

RustInternalsCompilerTrait solverDiagnosticsPerformance

Read more →

The Borrow Checker Blames the Most Interesting Constraint: BFS, Then a Ranking

Oct 21, 2026 5 min read Jay Hubbert

rustc finds the blame for a lifetime error with a breadth-first search for the shortest constraint path, then ranks constraints by how interesting they are for diagnostics and …

RustInternalsCompilerBorrow checkDiagnostics

Read more →

© 2026 Jay Hubbert · Built with Hugo 0.168.0

RSS ·