The comment on the Sync impl for AtomicUsize is:
// Any platform without atomics is unlikely to have multiple cores, so
// writing via Cell will not be a race condition.
While this may be true in practice, it's still technically incorrect and could open the door for bad codegen. Is there some background on why this impl is required even for platforms that don't support atomics?
The comment on the
Syncimpl forAtomicUsizeis:While this may be true in practice, it's still technically incorrect and could open the door for bad codegen. Is there some background on why this impl is required even for platforms that don't support atomics?