Fix for unsafe_destructor feature gate