Fix handling of ignored arguments in FFI wrappers for rust functions

Fixes #16441.
auto merge of #16484 : dotdash/rust/empty_struct_wrapper_arg, r=luqmana

Fixes #16441.