Hacker News new | ask | show | jobs
by dontlaugh 321 days ago
You didn’t describe any data races.

What Rust prevents is very specific.

1 comments

OP described situations where you get observable invariant violations because of torn non-atomic writes. This is basically any case involving e.g. copying of variables that are larger than whatever's atomic for a given architecture. Say, a struct of 4 isize.