done is equivalent to mem::uninitialized and thus can be used to trivially construct uninitialized instances of types.
The function is documented "don't use it directly, use done!() macro instead", but it's neither hidden nor marked as unsafe, both should probably be done.
This results in a segmentation fault on my machine:
done
is equivalent tomem::uninitialized
and thus can be used to trivially construct uninitialized instances of types.The function is documented "don't use it directly, use done!() macro instead", but it's neither hidden nor marked as
unsafe
, both should probably be done.This results in a segmentation fault on my machine: