Remix.run Logo
hansvm 3 days 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.

3 days ago | parent [-]
[deleted]