2 ms·
Only if there is a data race - if there is no data race C++ lets you do it. Rust doesn't let you do things that don't have a race but cannot be proven within t
by bluGill 10mo ago
Only if there is a data race - if there is no data race C++ lets you do it. Rust doesn't let you do things that don't have a race but cannot be proven within the context of rust to not have a data race.
- steveklabnik 10mo agoIn safe Rust, yes, you must prove it. But in unsafe Rust, it's up to you. It's the exact same thing.