enable unsafe_destructor to fix compile bug in HEAD rust