Armin Ronacher makes the case to abolish Rust lock poisoning

mitsuhiko · x · 2026-11-25

Armin Ronacher argues Rust's mutex poisoning should be removed or made exceptional. He's never seen real-world code that handles PoisonError correctly, and plenty that mishandles it. Josh Triplett notes the stdlib has never seen one report of successful poison recovery. With panic="abort" poisoning never triggers; idiomatic lock().unwrap() picks the worst of both worlds. The libs team is debating making non-poisoning locks the default next edition.

Original post →

More from coding & agent

coding & agent channel →