Include racy reads in Rust memory model with `MaybeInvalid<T>`
Rust Internals [Unofficial]
May 25, 2026
Reading arbitrary values can be UB if the values have validity invariants, such as bool. The model would have to promise only ever reading a value that has ever been written. Or seqlocks would have to be limited to MaybeUninit or perhaps zerocopy::FromBytes types.
Discussion in the ATmosphere