Merge pull request #1652 from fitzgen/fix-some-warnings

Fix some warnings
This commit is contained in:
Nick Fitzgerald 2019-07-09 13:43:28 -07:00 committed by GitHub
commit 15cc4fbb0b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 6 deletions

View File

@ -977,7 +977,9 @@ impl TryToTokens for ast::ImportFunction {
}
#[cfg(not(all(target_arch = "wasm32", not(target_os = "emscripten"))))]
unsafe fn #import_name(#(#abi_arguments),*) -> #abi_ret {
drop((#(#abi_argument_names),*));
#(
drop(#abi_argument_names);
)*
panic!("cannot call wasm-bindgen imported functions on \
non-wasm targets");
}

View File

@ -1,5 +1,5 @@
mod custom_section;
mod getters_setters;
mod opt_args_and_ret;
mod simple_fn;
mod simple_struct;
pub mod custom_section;
pub mod getters_setters;
pub mod opt_args_and_ret;
pub mod simple_fn;
pub mod simple_struct;