Merge remote-tracking branch 'origin/trunk' into list-replace

This commit is contained in:
Brendan Hansknecht 2022-02-27 00:28:08 -08:00
commit b802d681a3
90 changed files with 5667 additions and 313 deletions

View file

@ -3619,7 +3619,12 @@ fn expose_function_to_host_help_c_abi_v2<'a, 'ctx, 'env>(
_ => (&params[..], &param_types[..]),
};
debug_assert_eq!(params.len(), param_types.len());
debug_assert!(
params.len() == param_types.len(),
"when exposing a function to the host, params.len() was {}, but param_types.len() was {}",
params.len(),
param_types.len()
);
let it = params.iter().zip(param_types).map(|(arg, fastcc_type)| {
let arg_type = arg.get_type();