Merge branch 'master' into optimizations

This commit is contained in:
vms 2021-04-20 00:37:08 +03:00
commit eb8ed94125

View File

@ -118,7 +118,9 @@ fn generate_wrapper_functions(extern_item: &ast_types::AstExternModItem) -> Toke
#[cfg(target_arch = "wasm32")] #[cfg(target_arch = "wasm32")]
#[doc(hidden)] #[doc(hidden)]
#[allow(clippy::all)] #[allow(clippy::all)]
#visibility unsafe fn #func_name(#(#arg_names: #arg_types), *) #return_type { #visibility fn #func_name(#(#arg_names: #arg_types), *) #return_type {
unsafe {
// make complex arguments manually droppable // make complex arguments manually droppable
#arg_transforms #arg_transforms
@ -130,6 +132,8 @@ fn generate_wrapper_functions(extern_item: &ast_types::AstExternModItem) -> Toke
// return value conversation from Wasm type to a Rust type // return value conversation from Wasm type to a Rust type
#epilog #epilog
}
} }
}; };