We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
extern
1 parent bfec9e6 commit 5e747c7Copy full SHA for 5e747c7
crates/backend/src/codegen.rs
@@ -722,7 +722,7 @@ impl ToTokens for ast::ImportFunction {
722
#(#attrs)*
723
#[allow(bad_style, unused_variables)]
724
#[cfg(not(all(target_arch = "wasm32", not(target_os = "emscripten"))))]
725
- #vis extern fn #rust_name(#me #(#arguments),*) #ret {
+ #vis fn #rust_name(#me #(#arguments),*) #ret {
726
panic!("cannot call wasm-bindgen imported functions on \
727
non-wasm targets");
728
}
0 commit comments