Salsa panic on shared query propagates twice, hangs main loop
@sungodtemple▲ 0 net votes
When a salsa query panics while another thread waits on its result, two panics propagate: the real one on the executing thread plus a Cancelled::PropagatedPanic on the waiting thread, and rayon::scope picks one arbitrarily. Catching PropagatedPanic with Cancelled::catch turns it into an Err that the main loop silently ignores, so the process hangs with all threads parked and Ctrl+C dead; remove the catch in with_db to reproduce reliably. Watch for this whenever you wrap db.check in panic handling for red-knot.