@@ -276,7 +276,7 @@ impl ToTokens for ast::Struct {
276
276
277
277
#[ link( wasm_import_module = "__wbindgen_placeholder__" ) ]
278
278
#[ cfg( all( target_arch = "wasm32" , target_os = "unknown" ) ) ]
279
- extern "C" {
279
+ unsafe extern "C" {
280
280
fn #new_fn( ptr: u32 ) -> u32 ;
281
281
}
282
282
@@ -382,7 +382,7 @@ impl ToTokens for ast::Struct {
382
382
383
383
#[ link( wasm_import_module = "__wbindgen_placeholder__" ) ]
384
384
#[ cfg( all( target_arch = "wasm32" , target_os = "unknown" ) ) ]
385
- extern "C" {
385
+ unsafe extern "C" {
386
386
fn #unwrap_fn( ptr: u32 ) -> u32 ;
387
387
}
388
388
@@ -1067,7 +1067,7 @@ impl ToTokens for ast::ImportType {
1067
1067
fn instanceof( val: & JsValue ) -> bool {
1068
1068
#[ link( wasm_import_module = "__wbindgen_placeholder__" ) ]
1069
1069
#[ cfg( all( target_arch = "wasm32" , target_os = "unknown" ) ) ]
1070
- extern "C" {
1070
+ unsafe extern "C" {
1071
1071
fn #instanceof_shim( val: u32 ) -> u32 ;
1072
1072
}
1073
1073
#[ cfg( not( all( target_arch = "wasm32" , target_os = "unknown" ) ) ) ]
@@ -1762,7 +1762,7 @@ fn static_init(wasm_bindgen: &syn::Path, ty: &syn::Type, shim_name: &Ident) -> T
1762
1762
quote ! {
1763
1763
#[ link( wasm_import_module = "__wbindgen_placeholder__" ) ]
1764
1764
#[ cfg( all( target_arch = "wasm32" , target_os = "unknown" ) ) ]
1765
- extern "C" {
1765
+ unsafe extern "C" {
1766
1766
fn #shim_name( ) -> #abi_ret;
1767
1767
}
1768
1768
@@ -1843,7 +1843,7 @@ fn extern_fn(
1843
1843
#[ cfg( all( target_arch = "wasm32" , target_os = "unknown" ) ) ]
1844
1844
#( #attrs) *
1845
1845
#[ link( wasm_import_module = "__wbindgen_placeholder__" ) ]
1846
- extern "C" {
1846
+ unsafe extern "C" {
1847
1847
fn #import_name( #( #abi_arguments) , * ) -> #abi_ret;
1848
1848
}
1849
1849
0 commit comments