4 ms·
> Regardless, code that doesn't use unsafe can't have two threads concurrently writing the same memory. It's a bit messier than that. Basically the only concur
by hansvm 1y ago
> Regardless, code that doesn't use unsafe can't have two threads concurrently writing the same memory.
It's a bit messier than that. Basically the only concurrency-related bug I ever actually want help with from the compiler is memory ordering issues. Rust chose to make those particular racey memory writes safe instead of unsafe.
- deleted 1y ago[deleted]