From 5e747c721b5385adbc28e17865720bd8bb1e2bb6 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Mon, 9 Jul 2018 08:13:03 -0700 Subject: [PATCH] Remove a stray `extern` forgotten in #410 --- crates/backend/src/codegen.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/backend/src/codegen.rs b/crates/backend/src/codegen.rs index fd6693ee3..457cc8e30 100644 --- a/crates/backend/src/codegen.rs +++ b/crates/backend/src/codegen.rs @@ -722,7 +722,7 @@ impl ToTokens for ast::ImportFunction { #(#attrs)* #[allow(bad_style, unused_variables)] #[cfg(not(all(target_arch = "wasm32", not(target_os = "emscripten"))))] - #vis extern fn #rust_name(#me #(#arguments),*) #ret { + #vis fn #rust_name(#me #(#arguments),*) #ret { panic!("cannot call wasm-bindgen imported functions on \ non-wasm targets"); }