@@ -220,6 +220,7 @@ impl ToTokens for ast::Struct {
220
220
( quote ! {
221
221
#[ automatically_derived]
222
222
impl #wasm_bindgen:: describe:: WasmDescribe for #name {
223
+ #[ cfg_attr( wasm_bindgen_unstable_test_coverage, coverage( off) ) ]
223
224
fn describe( ) {
224
225
use #wasm_bindgen:: __wbindgen_if_not_std;
225
226
use #wasm_bindgen:: describe:: * ;
@@ -293,6 +294,7 @@ impl ToTokens for ast::Struct {
293
294
#[ doc( hidden) ]
294
295
// `allow_delayed` is whether it's ok to not actually free the `ptr` immediately
295
296
// if it's still borrowed.
297
+ #[ cfg_attr( wasm_bindgen_unstable_test_coverage, coverage( off) ) ]
296
298
pub unsafe extern "C" fn #free_fn( ptr: u32 , allow_delayed: u32 ) {
297
299
use #wasm_bindgen:: __rt:: alloc:: rc:: Rc ;
298
300
@@ -401,6 +403,7 @@ impl ToTokens for ast::Struct {
401
403
}
402
404
403
405
impl #wasm_bindgen:: describe:: WasmDescribeVector for #name {
406
+ #[ cfg_attr( wasm_bindgen_unstable_test_coverage, coverage( off) ) ]
404
407
fn describe_vector( ) {
405
408
use #wasm_bindgen:: describe:: * ;
406
409
inform( VECTOR ) ;
@@ -484,6 +487,7 @@ impl ToTokens for ast::StructField {
484
487
const _: ( ) = {
485
488
#[ cfg_attr( all( target_arch = "wasm32" , target_os = "unknown" ) , no_mangle) ]
486
489
#[ doc( hidden) ]
490
+ #[ cfg_attr( wasm_bindgen_unstable_test_coverage, coverage( off) ) ]
487
491
pub unsafe extern "C" fn #getter( js: u32 )
488
492
-> #wasm_bindgen:: convert:: WasmRet <<#ty as #wasm_bindgen:: convert:: IntoWasmAbi >:: Abi >
489
493
{
@@ -525,6 +529,7 @@ impl ToTokens for ast::StructField {
525
529
const _: ( ) = {
526
530
#[ no_mangle]
527
531
#[ doc( hidden) ]
532
+ #[ cfg_attr( wasm_bindgen_unstable_test_coverage, coverage( off) ) ]
528
533
pub unsafe extern "C" fn #setter(
529
534
js: u32 ,
530
535
#( #args, ) *
@@ -781,6 +786,7 @@ impl TryToTokens for ast::Export {
781
786
all( target_arch = "wasm32" , target_os = "unknown" ) ,
782
787
export_name = #export_name,
783
788
) ]
789
+ #[ cfg_attr( wasm_bindgen_unstable_test_coverage, coverage( off) ) ]
784
790
pub unsafe extern "C" fn #generated_name( #( #args) , * ) -> #wasm_bindgen:: convert:: WasmRet <#projection:: Abi > {
785
791
#start_check
786
792
@@ -932,6 +938,7 @@ impl ToTokens for ast::ImportType {
932
938
use #wasm_bindgen:: __rt:: core;
933
939
934
940
impl WasmDescribe for #rust_name {
941
+ #[ cfg_attr( wasm_bindgen_unstable_test_coverage, coverage( off) ) ]
935
942
fn describe( ) {
936
943
#description
937
944
}
@@ -1222,6 +1229,7 @@ impl ToTokens for ast::StringEnum {
1222
1229
1223
1230
#[ automatically_derived]
1224
1231
impl #wasm_bindgen:: describe:: WasmDescribe for #enum_name {
1232
+ #[ cfg_attr( wasm_bindgen_unstable_test_coverage, coverage( off) ) ]
1225
1233
fn describe( ) {
1226
1234
use #wasm_bindgen:: describe:: * ;
1227
1235
inform( STRING_ENUM ) ;
@@ -1563,6 +1571,7 @@ impl ToTokens for ast::Enum {
1563
1571
1564
1572
#[ automatically_derived]
1565
1573
impl #wasm_bindgen:: describe:: WasmDescribe for #enum_name {
1574
+ #[ cfg_attr( wasm_bindgen_unstable_test_coverage, coverage( off) ) ]
1566
1575
fn describe( ) {
1567
1576
use #wasm_bindgen:: describe:: * ;
1568
1577
inform( ENUM ) ;
@@ -1599,6 +1608,7 @@ impl ToTokens for ast::Enum {
1599
1608
}
1600
1609
1601
1610
impl #wasm_bindgen:: describe:: WasmDescribeVector for #enum_name {
1611
+ #[ cfg_attr( wasm_bindgen_unstable_test_coverage, coverage( off) ) ]
1602
1612
fn describe_vector( ) {
1603
1613
use #wasm_bindgen:: describe:: * ;
1604
1614
inform( VECTOR ) ;
@@ -1795,6 +1805,7 @@ impl<'a, T: ToTokens> ToTokens for Descriptor<'a, T> {
1795
1805
#( #attrs) *
1796
1806
#[ no_mangle]
1797
1807
#[ doc( hidden) ]
1808
+ #[ cfg_attr( wasm_bindgen_unstable_test_coverage, coverage( off) ) ]
1798
1809
pub extern "C" fn #name( ) {
1799
1810
use #wasm_bindgen:: describe:: * ;
1800
1811
// See definition of `link_mem_intrinsics` for what this is doing
0 commit comments