3 ms·
> sound if it was only used after clean exits. yes, except maybe if a Drop constructor is run unexpectedly on the exit or similar generally I think using it w
by dathinab 3y ago
> sound if it was only used after clean exits.
yes, except maybe if a Drop constructor is run unexpectedly on the exit or similar
generally I think using it with anything which has pointers and/or runs Drop in it is brittle and prone to bugs
in turn most things which do not have pointers should be fine with a clean exit
and anything which only consists of memory where any bit combination is always valid should always be sound even on a abort (e.g. a `[u8]` allocated directly in that memory region or a `[T]` where `T` only has primitive non-allocating types)