I honestly don't know, I was just mentioning that the general "less UB ⇒ win" is not that clear ![]()
Some kind of FrozenCell<T : ?Sized> that would wrap a MaybeUninit<T> and use @scottmcm .freeze() method under the hood might be a way to emulate your suggestion while making this "less-UB" be opt-in ![]()
- At which point I'd be looking forward to
FrozenCellcausing an ICE at some point