External Publication
Visit Post

Include racy reads in Rust memory model with `MaybeInvalid<T>`

Rust Internals [Unofficial] May 10, 2026
Source

wyfo:

Writes remain non-racing plain writes, so assume_valid cannot return torn values. This is in my opinion the biggest advantage, as it removes an entire class of problems (for example the Drop issue of RFC 3301).

By "cannot return torn values" you mean that the cases where values would be torn, it'll just be UB instead, right?

Though I'm not sure exactly on your subsequent point: what is "the Drop issue of RFC 3301" that you're avoiding? (That's a long RFC and even longer discussion, so I have no idea what exactly you're referring to.)

Discussion in the ATmosphere

Loading comments...