Adopting FFI changes for iOS
auto merge of #16742 : vhbit/rust/ios-ffi-fix, r=alexcrichton