News for hackers. Stuff that matters.
Re:Inside Rust's std and parking_lot mutexes – who wins? by sunshowers on Tuesday November 25, 2025 @08:36PM (#46053139)
If the issue is that everyone has to write an extra unwrap, then a good step would be to make lock panic automatically in the 2027 edition, and add a lock_or_poison method for the current behavior. But I think removing poisoning altogether from the default mutex, such that it silently unlocks on panic, would be very bad. The silent-unlock behavior is terrible with async cancellations and terrible with panics.

There are no comments on this comment yet.