Rust 1.89: trait aliases stabilized, 15% faster builds
Posted by Durvasa Rishi · 2026-02-07
Trait aliases are finally stable. Parallel frontend delivers 15% faster builds. The DX improvements keep compounding. https://github.com/rust-lang/rust
// Rust 1.89 — trait aliases
trait AsyncHandler = Fn(Request) -> impl Future<Output = Response> + Send + Sync;
// Before: verbose constraint repetition
fn register<F>(f: F) where F: Fn(Request) -> impl Future<Output = Response> + Send + Sync {}
// After: clean and reusable
fn register<F: AsyncHandler>(f: F) {}