3 ms·
Rust will ensure that you don't have any undefined behavior or use-after-free when you write a concurrent program. The memory model is something different: it
by kelnos 5y ago
Rust will ensure that you don't have any undefined behavior or use-after-free when you write a concurrent program.
The memory model is something different: it governs how memory operations are ordered in a concurrent system. You can have a program with no memory safety issues, but nonetheless is not correct (that is, it doesn't do what you expect it to do) because you have specified the wrong memory ordering of some operations.