12 ms·
> an if let expression over an RWLock assumed (reasonably, but incorrectly) in its else branch that the lock had been released. Instant and virulently contagiou
by kflansburg 11mo ago
> an if let expression over an RWLock assumed (reasonably, but incorrectly) in its else branch that the lock had been released. Instant and virulently contagious deadlock.
I believe this behavior is changing in the 2024 edition: https://doc.rust-lang.org/edition-guide/rust-2024/temporary-if-let-scope.html https://doc.rust-lang.org/edition-guide/rust-2024/temporary-...
- kibwen 11mo ago> I believe this behavior is changing Past tense, the 2024 edition stabilized in (and has been the default edition for `cargo new` since) Rust 1.85.
- kflansburg 11mo agoYes, I've already performed the upgrade for my projects, but since they hit this bug, I'm guessing they haven't.
- kibwen 11mo agoThey may have upgraded by now, their source links to a thread from a year ago, prior to the 2024 edition, which may be when they encountered that particular bug.
- kflansburg 11mo agoI see now that this incident happened in September 2024 as well.