rustwasm / wasm-bindgen

Facilitating high-level interactions between Wasm modules and JavaScript
https://rustwasm.github.io/docs/wasm-bindgen/
Apache License 2.0
7.69k stars 1.06k forks source link

Cannot get tests to work #465

Closed ghost closed 6 years ago

ghost commented 6 years ago

I am currently checking out the webidl crate, but all the tests fail for me. Even though they are fine on travis.

I have attached the complete build process. In this case, I only tested the simple::method test, but all the other tests panic as well.

Here is also the last travis build: https://travis-ci.org/rustwasm/wasm-bindgen/jobs/403197340#L1374

Apparently, the panic is procedural macro API is used outside of a procedural macro.

I suspect that I have forgotten something simple in the configuration, but I am stumped.

$ git checkout 115304f
Note: checking out '115304f'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at 115304f Merge pull request #462 from dorayakikun/master
$ cargo --version
cargo 1.29.0-nightly (af9e40c26 2018-07-05)
$ rustup show
Default host: x86_64-unknown-linux-gnu

installed toolchains
--------------------

stable-x86_64-unknown-linux-gnu
nightly-x86_64-unknown-linux-gnu (default)

installed targets for active toolchain
--------------------------------------

wasm32-unknown-unknown
x86_64-unknown-linux-gnu

active toolchain
----------------

nightly-x86_64-unknown-linux-gnu (default)
rustc 1.29.0-nightly (64f7de921 2018-07-12)
$ node --version
v8.11.1
$ yarn --version
1.7.0
$ yarn install v1.7.0
[1/4] Resolving packages...
[2/4] Fetching packages...
info fsevents@1.2.4: The platform "linux" is incompatible with this module.
info "fsevents@1.2.4" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
[4/4] Building fresh packages...
Done in 24.63s.
$ cd crates/webidl/
$ cargo build
    Updating registry `https://github.com/rust-lang/crates.io-index`
   Compiling libc v0.2.42
   Compiling siphasher v0.2.2                                                                          
   Compiling unicode-xid v0.1.0                                                                        
   Compiling string_cache_shared v0.3.0                                                                
   Compiling winapi-build v0.1.1                                                                       
   Compiling void v1.0.2                                                                               
   Compiling serde v1.0.70                                                                             
   Compiling typenum v1.10.0                                                                           
   Compiling ucd-util v0.1.1                                                                           
   Compiling regex v0.2.11                                                                             
   Compiling lazy_static v1.0.1                                                                        
   Compiling winapi v0.2.8                                                                             
   Compiling precomputed-hash v0.1.1                                                                   
   Compiling utf8-ranges v1.0.0                                                                        
   Compiling ordermap v0.3.5                                                                           
   Compiling fixedbitset v0.1.9                                                                        
   Compiling either v1.5.0                                                                             
   Compiling bit-vec v0.4.4                                                                            
   Compiling term v0.4.6                                                                               
   Compiling regex-syntax v0.4.2                                                                       
   Compiling lalrpop-util v0.15.2                                                                      
   Compiling diff v0.1.11                                                                              
   Compiling ena v0.5.0                                                                                
   Compiling arrayref v0.3.4                                                                           
   Compiling byte-tools v0.2.0                                                                         
   Compiling fake-simd v0.1.2                                                                          
   Compiling cc v1.0.18                                                                                
   Compiling unicode-xid v0.0.4                                                                        
   Compiling strsim v0.6.0                                                                             
   Compiling quote v0.3.15                                                                             
   Compiling wasm-bindgen-shared v0.2.11 (file:///home/jrakow/sync/workspace/rust/wasm-bindgen/crates/shared)
   Compiling rustc-demangle v0.1.8                                                                     
   Compiling itoa v0.4.2                                                                               
   Compiling cfg-if v0.1.4                                                                             
   Compiling dtoa v0.4.3                                                                               
   Compiling unicode-segmentation v1.2.1                                                               
   Compiling unreachable v1.0.0                                                                        
   Compiling proc-macro2 v0.3.8                                                                        
   Compiling proc-macro2 v0.4.6                                                                        
   Compiling phf_shared v0.7.22                                                                        
   Compiling kernel32-sys v0.2.2                                                                       
   Compiling regex-syntax v0.5.6                                                                       
   Compiling itertools v0.7.8                                                                          
   Compiling rand v0.4.2                                                                               
   Compiling memchr v2.0.1                                                                             
   Compiling block-buffer v0.3.3                                                                       
   Compiling bit-set v0.4.0                                                                            
   Compiling petgraph v0.4.12                                                                          
   Compiling synom v0.11.3                                                                             
   Compiling ascii-canvas v1.0.0                                                                       
   Compiling log v0.4.3                                                                                
   Compiling new_debug_unreachable v1.0.1                                                              
   Compiling thread_local v0.3.5                                                                       
   Compiling heck v0.3.0                                                                               
   Compiling backtrace-sys v0.1.23                                                                     
   Compiling quote v0.5.2                                                                              
   Compiling quote v0.6.3                                                                              
   Compiling aho-corasick v0.6.6                                                                       
   Compiling syn v0.11.11                                                                              
   Compiling syn v0.14.4                                                                               
   Compiling phf_generator v0.7.22                                                                     
   Compiling atty v0.1.2                                                                               
   Compiling string_cache_codegen v0.4.1                                                               
   Compiling generic-array v0.9.0                                                                      
   Compiling backtrace v0.3.9                                                                          
   Compiling digest v0.7.5                                                                             
   Compiling string_cache v0.7.3                                                                       
   Compiling sha2 v0.7.1                                                                               
   Compiling synstructure v0.6.1                                                                       
^[[6;1~                                                                                                   Compiling failure_derive v0.1.1                                                                     
   Compiling failure v0.1.1                                                                            
   Compiling serde_derive v1.0.70                                                                      
   Compiling serde_json v1.0.22                                                                        
   Compiling lalrpop-snap v0.15.2                                                                      
   Compiling docopt v0.8.3                                                                             
   Compiling wasm-bindgen-backend v0.2.11 (file:///home/jrakow/sync/workspace/rust/wasm-bindgen/crates/backend)
   Compiling lalrpop v0.15.2                                                                           
   Compiling webidl v0.6.0                                                                             
   Compiling wasm-bindgen-webidl v0.2.11 (file:///home/jrakow/sync/workspace/rust/wasm-bindgen/crates/webidl)
    Finished dev [unoptimized + debuginfo] target(s) in 7m 56s
$ env RUST_BACKTRACE=1 cargo test simple::method -- --nocapture
   Compiling byteorder v1.2.3                                                                          
   Compiling memory_units v0.3.0                                                                       
   Compiling safemem v0.2.0                                                                            
   Compiling nan-preserving-float v0.1.0                                                               
   Compiling remove_dir_all v0.5.1                                                                     
   Compiling tempfile v3.0.2                                                                           
   Compiling parity-wasm v0.31.0                                                                       
   Compiling base64 v0.9.2                                                                             
   Compiling wasmi v0.3.0                                                                              
   Compiling wasm-gc-api v0.1.6                                                                        
   Compiling wasm-bindgen-cli-support v0.2.11 (file:///home/jrakow/sync/workspace/rust/wasm-bindgen/crates/cli-support)
   Compiling wasm-bindgen-test-project-builder v0.2.11 (file:///home/jrakow/sync/workspace/rust/wasm-bindgen/crates/test-project-builder)
   Compiling wasm-bindgen-webidl v0.2.11 (file:///home/jrakow/sync/workspace/rust/wasm-bindgen/crates/webidl)
    Finished dev [unoptimized + debuginfo] target(s) in 1m 08s                                         
     Running /home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps/wasm_bindgen_webidl-172efad068a61bb2

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running /home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps/all-77f396ded80bcb37

running 1 test
···················································
running "cargo" "build" "-vv" "--target" "wasm32-unknown-unknown"
test simple::method ... test simple::method has been running for over 60 seconds
exit: exit code: 0
stdout ---
cargo:rustc-env=WBG_VERSION=115304f76
cargo:rerun-if-changed=src/parser/grammar.lalrpop
processing file `src/parser/grammar.lalrpop`
generated WebIDL bindings = '''
# [ allow ( bad_style ) ] pub struct Foo { obj : :: wasm_bindgen :: JsValue , } impl :: wasm_bindgen :: describe :: WasmDescribe for Foo { fn describe ( ) { :: wasm_bindgen :: JsValue :: describe ( ) ; } } impl :: wasm_bindgen :: convert :: IntoWasmAbi for Foo { type Abi = < :: wasm_bindgen :: JsValue as :: wasm_bindgen :: convert :: IntoWasmAbi > :: Abi ; fn into_abi ( self , extra : & mut :: wasm_bindgen :: convert :: Stack ) -> Self :: Abi { self . obj . into_abi ( extra ) } } impl :: wasm_bindgen :: convert :: FromWasmAbi for Foo { type Abi = < :: wasm_bindgen :: JsValue as :: wasm_bindgen :: convert :: FromWasmAbi > :: Abi ; unsafe fn from_abi ( js : Self :: Abi , extra : & mut :: wasm_bindgen :: convert :: Stack , ) -> Self { Foo { obj : :: wasm_bindgen :: JsValue :: from_abi ( js , extra ) , } } } impl < 'a > :: wasm_bindgen :: convert :: IntoWasmAbi for & 'a Foo { type Abi = < & 'a :: wasm_bindgen :: JsValue as :: wasm_bindgen :: convert :: IntoWasmAbi > :: Abi ; fn into_abi ( self , extra : & mut :: wasm_bindgen :: convert :: Stack ) -> Self :: Abi { ( & self . obj ) . into_abi ( extra ) } } impl :: wasm_bindgen :: convert :: RefFromWasmAbi for Foo { type Abi = < :: wasm_bindgen :: JsValue as :: wasm_bindgen :: convert :: RefFromWasmAbi > :: Abi ; type Anchor = :: wasm_bindgen :: __rt :: core :: mem :: ManuallyDrop < Foo > ; unsafe fn ref_from_abi ( js : Self :: Abi , extra : & mut :: wasm_bindgen :: convert :: Stack , ) -> Self :: Anchor { let tmp = < :: wasm_bindgen :: JsValue as :: wasm_bindgen :: convert :: RefFromWasmAbi > :: ref_from_abi ( js , extra ) ; :: wasm_bindgen :: __rt :: core :: mem :: ManuallyDrop :: new ( Foo { obj : :: wasm_bindgen :: __rt :: core :: mem :: ManuallyDrop :: into_inner ( tmp ) , } ) } } impl From < :: wasm_bindgen :: JsValue > for Foo { fn from ( obj : :: wasm_bindgen :: JsValue ) -> Foo { Foo { obj } } } impl From < Foo > for :: wasm_bindgen :: JsValue { fn from ( obj : Foo ) -> :: wasm_bindgen :: JsValue { obj . obj } } # [ no_mangle ] # [ allow ( non_snake_case ) ] # [ doc ( hidden ) ] pub extern fn __wbindgen_describe___widl_f_new_Foo ( ) { use wasm_bindgen :: describe :: * ; inform ( FUNCTION ) ; inform ( 1u32 ) ; < f64 as WasmDescribe > :: describe ( ) ; inform ( 1 ) ; < Foo as WasmDescribe > :: describe ( ) ; } impl Foo { # [ allow ( bad_style ) ] # [ cfg ( all ( target_arch = "wasm32" , not ( target_os = "emscripten" ) ) ) ] pub fn new ( value : f64 ) -> Result < Foo , :: wasm_bindgen :: JsValue > { :: wasm_bindgen :: __rt :: link_this_library ( ) ; # [ wasm_import_module = "__wbindgen_placeholder__" ] extern { fn __widl_f_new_Foo ( value : < f64 as :: wasm_bindgen :: convert :: IntoWasmAbi > :: Abi , exn_data_ptr : * mut u32 ) -> < Foo as :: wasm_bindgen :: convert :: FromWasmAbi > :: Abi ; } unsafe { let mut exn_data = [ 0 ; 2 ] ; let exn_data_ptr = exn_data . as_mut_ptr ( ) ; let _ret = { let mut __stack = :: wasm_bindgen :: convert :: GlobalStack :: new ( ) ; let value = < f64 as :: wasm_bindgen :: convert :: IntoWasmAbi > :: into_abi ( value , & mut __stack ) ; __widl_f_new_Foo ( value , exn_data_ptr ) } ; if exn_data [ 0 ] == 1 { return Err ( < :: wasm_bindgen :: JsValue as :: wasm_bindgen :: convert :: FromWasmAbi > :: from_abi ( exn_data [ 1 ] , & mut :: wasm_bindgen :: convert :: GlobalStack :: new ( ) ) ) } Ok ( < Foo as :: wasm_bindgen :: convert :: FromWasmAbi > :: from_abi ( _ret , & mut :: wasm_bindgen :: convert :: GlobalStack :: new ( ) , ) ) } } # [ allow ( bad_style , unused_variables ) ] # [ cfg ( not ( all ( target_arch = "wasm32" , not ( target_os = "emscripten" ) ) ) ) ] pub fn new ( value : f64 ) -> Result < Foo , :: wasm_bindgen :: JsValue > { panic ! ( "cannot call wasm-bindgen imported functions on \
                        non-wasm targets" ) ; } } # [ no_mangle ] # [ allow ( non_snake_case ) ] # [ doc ( hidden ) ] pub extern fn __wbindgen_describe___widl_f_my_cmp_Foo ( ) { use wasm_bindgen :: describe :: * ; inform ( FUNCTION ) ; inform ( 2u32 ) ; < & Foo as WasmDescribe > :: describe ( ) ; < Foo as WasmDescribe > :: describe ( ) ; inform ( 1 ) ; < bool as WasmDescribe > :: describe ( ) ; } impl Foo { # [ allow ( bad_style ) ] # [ cfg ( all ( target_arch = "wasm32" , not ( target_os = "emscripten" ) ) ) ] pub fn my_cmp ( & self , bar : Foo ) -> bool { :: wasm_bindgen :: __rt :: link_this_library ( ) ; # [ wasm_import_module = "__wbindgen_placeholder__" ] extern { fn __widl_f_my_cmp_Foo ( self_ : < & Foo as :: wasm_bindgen :: convert :: IntoWasmAbi > :: Abi , bar : < Foo as :: wasm_bindgen :: convert :: IntoWasmAbi > :: Abi ) -> < bool as :: wasm_bindgen :: convert :: FromWasmAbi > :: Abi ; } unsafe { let _ret = { let mut __stack = :: wasm_bindgen :: convert :: GlobalStack :: new ( ) ; let self_ = < & Foo as :: wasm_bindgen :: convert :: IntoWasmAbi > :: into_abi ( self , & mut __stack ) ; let bar = < Foo as :: wasm_bindgen :: convert :: IntoWasmAbi > :: into_abi ( bar , & mut __stack ) ; __widl_f_my_cmp_Foo ( self_ , bar ) } ; < bool as :: wasm_bindgen :: convert :: FromWasmAbi > :: from_abi ( _ret , & mut :: wasm_bindgen :: convert :: GlobalStack :: new ( ) , ) } } # [ allow ( bad_style , unused_variables ) ] # [ cfg ( not ( all ( target_arch = "wasm32" , not ( target_os = "emscripten" ) ) ) ) ] pub fn my_cmp ( & self , bar : Foo ) -> bool { panic ! ( "cannot call wasm-bindgen imported functions on \
                        non-wasm targets" ) ; } } # [ allow ( non_upper_case_globals ) ] # [ wasm_custom_section = "__wasm_bindgen_unstable" ] const __WASM_BINDGEN_GENERATED_test0_0_0_1_0 : [ u8 ; 639usize ] = * b"{\x02\0\0{\"exports\":[],\"enums\":[],\"imports\":[{\"module\":null,\"version\":null,\"js_namespace\":null,\"kind\":{\"kind\":\"type\"}},{\"module\":null,\"version\":null,\"js_namespace\":null,\"kind\":{\"kind\":\"function\",\"shim\":\"__widl_f_new_Foo\",\"catch\":true,\"method\":{\"class\":\"Foo\",\"kind\":\"Constructor\"},\"structural\":false,\"function\":{\"name\":\"new\"}}},{\"module\":null,\"version\":null,\"js_namespace\":null,\"kind\":{\"kind\":\"function\",\"shim\":\"__widl_f_my_cmp_Foo\",\"catch\":false,\"method\":{\"class\":\"Foo\",\"kind\":{\"Operation\":{\"is_static\":false,\"kind\":\"Regular\"}}},\"structural\":false,\"function\":{\"name\":\"myCmp\"}}}],\"structs\":[],\"version\":\"0.2.11 (115304f76)\",\"schema_version\":\"6\"}" ;
'''

stderr ---
       Fresh siphasher v0.2.2
       Fresh libc v0.2.42
       Fresh unicode-xid v0.1.0
       Fresh winapi-build v0.1.1
       Fresh string_cache_shared v0.3.0
       Fresh void v1.0.2
       Fresh lazy_static v1.0.1
       Fresh winapi v0.2.8
       Fresh ucd-util v0.1.1
       Fresh term v0.4.6
       Fresh ordermap v0.3.5
       Fresh fixedbitset v0.1.9
       Fresh either v1.5.0
       Fresh precomputed-hash v0.1.1
       Fresh utf8-ranges v1.0.0
       Fresh bit-vec v0.4.4
       Fresh diff v0.1.11
       Fresh ena v0.5.0
       Fresh lalrpop-util v0.15.2
       Fresh regex-syntax v0.4.2
       Fresh byte-tools v0.2.0
       Fresh arrayref v0.3.4
       Fresh cc v1.0.18
       Fresh unicode-xid v0.0.4
       Fresh strsim v0.6.0
       Fresh fake-simd v0.1.2
       Fresh quote v0.3.15
   Compiling wasm-bindgen-shared v0.2.11 (file:///home/jrakow/sync/workspace/rust/wasm-bindgen/crates/shared)
   Compiling rustc-demangle v0.1.8
   Compiling dtoa v0.4.3
   Compiling itoa v0.4.2
   Compiling cfg-if v0.1.4
   Compiling unicode-segmentation v1.2.1
       Fresh phf_shared v0.7.22
     Running `rustc --crate-name build_script_build /home/jrakow/sync/workspace/rust/wasm-bindgen/crates/shared/build.rs --crate-type bin --emit=dep-info,link -C debuginfo=2 -C metadata=903c964829a493cc -C extra-filename=-903c964829a493cc --out-dir /home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/build/wasm-bindgen-shared-903c964829a493cc -C incremental=/home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/incremental -L dependency=/home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps`
       Fresh rand v0.4.2
     Running `rustc --crate-name rustc_demangle /home/jrakow/.local/share/cargo/registry/src/github.com-1ecc6299db9ec823/rustc-demangle-0.1.8/src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=3c1ff9c3f3d0bd3a -C extra-filename=-3c1ff9c3f3d0bd3a --out-dir /home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps -L dependency=/home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps --cap-lints warn`
     Running `rustc --crate-name dtoa /home/jrakow/.local/share/cargo/registry/src/github.com-1ecc6299db9ec823/dtoa-0.4.3/src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=73a188b7bd523ea4 -C extra-filename=-73a188b7bd523ea4 --out-dir /home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps -L dependency=/home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps --cap-lints warn`
     Running `rustc --crate-name itoa /home/jrakow/.local/share/cargo/registry/src/github.com-1ecc6299db9ec823/itoa-0.4.2/src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 --cfg 'feature="default"' --cfg 'feature="std"' -C metadata=e49286536b9b4f7e -C extra-filename=-e49286536b9b4f7e --out-dir /home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps -L dependency=/home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps --cap-lints warn`
       Fresh memchr v2.0.1
     Running `rustc --crate-name cfg_if /home/jrakow/.local/share/cargo/registry/src/github.com-1ecc6299db9ec823/cfg-if-0.1.4/src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=9f5b7a30f60028c5 -C extra-filename=-9f5b7a30f60028c5 --out-dir /home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps -L dependency=/home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps --cap-lints warn`
       Fresh proc-macro2 v0.3.8
   Compiling proc-macro2 v0.4.6
     Running `rustc --crate-name unicode_segmentation /home/jrakow/.local/share/cargo/registry/src/github.com-1ecc6299db9ec823/unicode-segmentation-1.2.1/src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=f78398b00585a729 -C extra-filename=-f78398b00585a729 --out-dir /home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps -L dependency=/home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps --cap-lints warn`
     Running `rustc --crate-name proc_macro2 /home/jrakow/.local/share/cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.4.6/src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 --cfg 'feature="default"' --cfg 'feature="nightly"' --cfg 'feature="proc-macro"' -C metadata=2483c5a35803bed5 -C extra-filename=-2483c5a35803bed5 --out-dir /home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps -L dependency=/home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps --extern unicode_xid=/home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps/libunicode_xid-31c8bf0065444482.rlib --cap-lints warn`
       Fresh unreachable v1.0.0
       Fresh regex-syntax v0.5.6
       Fresh ascii-canvas v1.0.0
       Fresh petgraph v0.4.12
       Fresh itertools v0.7.8
       Fresh bit-set v0.4.0
       Fresh block-buffer v0.3.3
       Fresh synom v0.11.3
       Fresh phf_generator v0.7.22
       Fresh aho-corasick v0.6.6
       Fresh quote v0.5.2
       Fresh serde v1.0.70
       Fresh new_debug_unreachable v1.0.1
       Fresh thread_local v0.3.5
       Fresh typenum v1.10.0
       Fresh syn v0.11.11
       Fresh string_cache_codegen v0.4.1
       Fresh kernel32-sys v0.2.2
       Fresh regex v0.2.11
       Fresh generic-array v0.9.0
   Compiling backtrace-sys v0.1.23
     Running `rustc --crate-name backtrace_sys /home/jrakow/.local/share/cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-sys-0.1.23/src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=185a09b35427e7d8 -C extra-filename=-185a09b35427e7d8 --out-dir /home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps -L dependency=/home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps --extern libc=/home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps/liblibc-6482e35e84d519d9.rlib --cap-lints warn -L native=/home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/build/backtrace-sys-a8cab612fe61ce67/out -l static=backtrace`
       Fresh synstructure v0.6.1
       Fresh atty v0.1.2
       Fresh digest v0.7.5
   Compiling log v0.4.3
     Running `rustc --crate-name log /home/jrakow/.local/share/cargo/registry/src/github.com-1ecc6299db9ec823/log-0.4.3/src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=37ae512dab0679a1 -C extra-filename=-37ae512dab0679a1 --out-dir /home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps -L dependency=/home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps --extern cfg_if=/home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps/libcfg_if-9f5b7a30f60028c5.rlib --cap-lints warn`
       Fresh failure_derive v0.1.1
       Fresh sha2 v0.7.1
       Fresh string_cache v0.7.3
       Fresh lalrpop-snap v0.15.2
   Compiling serde_json v1.0.22
     Running `rustc --crate-name serde_json /home/jrakow/.local/share/cargo/registry/src/github.com-1ecc6299db9ec823/serde_json-1.0.22/src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 --cfg 'feature="default"' -C metadata=b1da98e5daab5efb -C extra-filename=-b1da98e5daab5efb --out-dir /home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps -L dependency=/home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps --extern dtoa=/home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps/libdtoa-73a188b7bd523ea4.rlib --extern itoa=/home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps/libitoa-e49286536b9b4f7e.rlib --extern serde=/home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps/libserde-a20d5e114d2702d2.rlib --cap-lints warn`
   Compiling backtrace v0.3.9
     Running `rustc --crate-name backtrace /home/jrakow/.local/share/cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.9/src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 --cfg 'feature="backtrace-sys"' --cfg 'feature="coresymbolication"' --cfg 'feature="dbghelp"' --cfg 'feature="default"' --cfg 'feature="dladdr"' --cfg 'feature="libbacktrace"' --cfg 'feature="libunwind"' --cfg 'feature="winapi"' -C metadata=e320cfe549369ace -C extra-filename=-e320cfe549369ace --out-dir /home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps -L dependency=/home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps --extern backtrace_sys=/home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps/libbacktrace_sys-185a09b35427e7d8.rlib --extern cfg_if=/home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps/libcfg_if-9f5b7a30f60028c5.rlib --extern libc=/home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps/liblibc-6482e35e84d519d9.rlib --extern rustc_demangle=/home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps/librustc_demangle-3c1ff9c3f3d0bd3a.rlib --cap-lints warn -L native=/home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/build/backtrace-sys-a8cab612fe61ce67/out`
     Running `/home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/build/wasm-bindgen-shared-903c964829a493cc/build-script-build`
   Compiling heck v0.3.0
     Running `rustc --crate-name heck /home/jrakow/.local/share/cargo/registry/src/github.com-1ecc6299db9ec823/heck-0.3.0/src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=9859b4dbbc0133c0 -C extra-filename=-9859b4dbbc0133c0 --out-dir /home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps -L dependency=/home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps --extern unicode_segmentation=/home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps/libunicode_segmentation-f78398b00585a729.rlib --cap-lints warn`
   Compiling failure v0.1.1
     Running `rustc --crate-name failure /home/jrakow/.local/share/cargo/registry/src/github.com-1ecc6299db9ec823/failure-0.1.1/src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 --cfg 'feature="backtrace"' --cfg 'feature="default"' --cfg 'feature="derive"' --cfg 'feature="failure_derive"' --cfg 'feature="std"' -C metadata=e7e05f364c344404 -C extra-filename=-e7e05f364c344404 --out-dir /home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps -L dependency=/home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps --extern backtrace=/home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps/libbacktrace-e320cfe549369ace.rlib --extern failure_derive=/home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps/libfailure_derive-145299c28a707a6e.so --cap-lints warn -L native=/home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/build/backtrace-sys-a8cab612fe61ce67/out`
   Compiling quote v0.6.3
     Running `rustc --crate-name quote /home/jrakow/.local/share/cargo/registry/src/github.com-1ecc6299db9ec823/quote-0.6.3/src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 --cfg 'feature="default"' --cfg 'feature="proc-macro"' --cfg 'feature="proc-macro2"' -C metadata=949530bf6c8f3c9b -C extra-filename=-949530bf6c8f3c9b --out-dir /home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps -L dependency=/home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps --extern proc_macro2=/home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps/libproc_macro2-2483c5a35803bed5.rlib --cap-lints warn`
   Compiling syn v0.14.4
     Running `rustc --crate-name syn /home/jrakow/.local/share/cargo/registry/src/github.com-1ecc6299db9ec823/syn-0.14.4/src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 --cfg 'feature="clone-impls"' --cfg 'feature="default"' --cfg 'feature="derive"' --cfg 'feature="full"' --cfg 'feature="parsing"' --cfg 'feature="printing"' --cfg 'feature="proc-macro"' --cfg 'feature="proc-macro2"' --cfg 'feature="quote"' --cfg 'feature="visit"' --cfg 'feature="visit-mut"' -C metadata=5e78f8304e725b7f -C extra-filename=-5e78f8304e725b7f --out-dir /home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps -L dependency=/home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps --extern proc_macro2=/home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps/libproc_macro2-2483c5a35803bed5.rlib --extern quote=/home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps/libquote-949530bf6c8f3c9b.rlib --extern unicode_xid=/home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps/libunicode_xid-31c8bf0065444482.rlib --cap-lints warn`
   Compiling serde_derive v1.0.70
     Running `rustc --crate-name serde_derive /home/jrakow/.local/share/cargo/registry/src/github.com-1ecc6299db9ec823/serde_derive-1.0.70/src/lib.rs --crate-type proc-macro --emit=dep-info,link -C prefer-dynamic -C debuginfo=2 --cfg 'feature="default"' -C metadata=b74010c34d8d44f3 -C extra-filename=-b74010c34d8d44f3 --out-dir /home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps -L dependency=/home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps --extern proc_macro2=/home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps/libproc_macro2-2483c5a35803bed5.rlib --extern quote=/home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps/libquote-949530bf6c8f3c9b.rlib --extern syn=/home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps/libsyn-5e78f8304e725b7f.rlib --cap-lints warn`
   Compiling docopt v0.8.3
     Running `rustc --crate-name docopt /home/jrakow/.local/share/cargo/registry/src/github.com-1ecc6299db9ec823/docopt-0.8.3/src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=185fac0fcc4d5187 -C extra-filename=-185fac0fcc4d5187 --out-dir /home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps -L dependency=/home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps --extern lazy_static=/home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps/liblazy_static-fafb27eb1277d44a.rlib --extern regex=/home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps/libregex-62c08a159899fe1b.rlib --extern serde=/home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps/libserde-a20d5e114d2702d2.rlib --extern serde_derive=/home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps/libserde_derive-b74010c34d8d44f3.so --extern strsim=/home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps/libstrsim-8d5a073ef93a467e.rlib --cap-lints warn`
     Running `rustc --crate-name wasm_bindgen_shared /home/jrakow/sync/workspace/rust/wasm-bindgen/crates/shared/src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=89551cfdf6b9710b -C extra-filename=-89551cfdf6b9710b --out-dir /home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps -C incremental=/home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/incremental -L dependency=/home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps --extern serde=/home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps/libserde-a20d5e114d2702d2.rlib --extern serde_derive=/home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps/libserde_derive-b74010c34d8d44f3.so`
   Compiling lalrpop v0.15.2
     Running `rustc --crate-name lalrpop /home/jrakow/.local/share/cargo/registry/src/github.com-1ecc6299db9ec823/lalrpop-0.15.2/src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=a826aa644feaa543 -C extra-filename=-a826aa644feaa543 --out-dir /home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps -L dependency=/home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps --extern ascii_canvas=/home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps/libascii_canvas-75c757a834d08e7e.rlib --extern atty=/home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps/libatty-5e26e5267f7093fb.rlib --extern bit_set=/home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps/libbit_set-422ff69c26e0178d.rlib --extern diff=/home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps/libdiff-4b29aec2fe49ece8.rlib --extern digest=/home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps/libdigest-b3a0a75508245ffa.rlib --extern docopt=/home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps/libdocopt-185fac0fcc4d5187.rlib --extern ena=/home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps/libena-fdce25ddfea061ac.rlib --extern itertools=/home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps/libitertools-43488600d30474d1.rlib --extern lalrpop_util=/home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps/liblalrpop_util-fbc0a56d0b2b3173.rlib --extern petgraph=/home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps/libpetgraph-63bfa033a3039ae1.rlib --extern regex=/home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps/libregex-62c08a159899fe1b.rlib --extern regex_syntax=/home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps/libregex_syntax-178d37d19d4580c2.rlib --extern serde=/home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps/libserde-a20d5e114d2702d2.rlib --extern serde_derive=/home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps/libserde_derive-b74010c34d8d44f3.so --extern sha2=/home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps/libsha2-a3714dac2205131e.rlib --extern string_cache=/home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps/libstring_cache-aedb09caccc5cd0b.rlib --extern term=/home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps/libterm-c795cd8877cad34b.rlib --extern unicode_xid=/home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps/libunicode_xid-31c8bf0065444482.rlib --cap-lints warn`
   Compiling wasm-bindgen-backend v0.2.11 (file:///home/jrakow/sync/workspace/rust/wasm-bindgen/crates/backend)
     Running `rustc --crate-name wasm_bindgen_backend /home/jrakow/sync/workspace/rust/wasm-bindgen/crates/backend/src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 --cfg 'feature="proc-macro2"' --cfg 'feature="spans"' -C metadata=ec097c980e389cc4 -C extra-filename=-ec097c980e389cc4 --out-dir /home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps -C incremental=/home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/incremental -L dependency=/home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps --extern proc_macro2=/home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps/libproc_macro2-2483c5a35803bed5.rlib --extern quote=/home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps/libquote-949530bf6c8f3c9b.rlib --extern serde_json=/home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps/libserde_json-b1da98e5daab5efb.rlib --extern syn=/home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps/libsyn-5e78f8304e725b7f.rlib --extern wasm_bindgen_shared=/home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps/libwasm_bindgen_shared-89551cfdf6b9710b.rlib`
   Compiling wasm-bindgen-macro v0.2.11 (file:///home/jrakow/sync/workspace/rust/wasm-bindgen/crates/macro)
     Running `rustc --crate-name wasm_bindgen_macro /home/jrakow/sync/workspace/rust/wasm-bindgen/crates/macro/src/lib.rs --crate-type proc-macro --emit=dep-info,link -C prefer-dynamic -C debuginfo=2 --cfg 'feature="proc-macro2"' --cfg 'feature="spans"' --cfg 'feature="wasm-bindgen-backend"' -C metadata=62198685cd17b2f4 -C extra-filename=-62198685cd17b2f4 --out-dir /home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps -C incremental=/home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/incremental -L dependency=/home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps --extern proc_macro2=/home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps/libproc_macro2-2483c5a35803bed5.rlib --extern quote=/home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps/libquote-949530bf6c8f3c9b.rlib --extern syn=/home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps/libsyn-5e78f8304e725b7f.rlib --extern wasm_bindgen_backend=/home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps/libwasm_bindgen_backend-ec097c980e389cc4.rlib --extern wasm_bindgen_shared=/home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps/libwasm_bindgen_shared-89551cfdf6b9710b.rlib`
   Compiling wasm-bindgen v0.2.11 (file:///home/jrakow/sync/workspace/rust/wasm-bindgen)
     Running `rustc --crate-name wasm_bindgen /home/jrakow/sync/workspace/rust/wasm-bindgen/src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 --cfg 'feature="default"' --cfg 'feature="js_globals"' --cfg 'feature="spans"' --cfg 'feature="std"' --cfg 'feature="wasm-bindgen-macro"' -C metadata=6362886e370565df -C extra-filename=-6362886e370565df --out-dir /home/jrakow/sync/workspace/rust/wasm-bindgen/target/wasm32-unknown-unknown/debug/deps --target wasm32-unknown-unknown -C incremental=/home/jrakow/sync/workspace/rust/wasm-bindgen/target/wasm32-unknown-unknown/debug/incremental -L dependency=/home/jrakow/sync/workspace/rust/wasm-bindgen/target/wasm32-unknown-unknown/debug/deps -L dependency=/home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps --extern wasm_bindgen_macro=/home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps/libwasm_bindgen_macro-62198685cd17b2f4.so -Dwarnings`
   Compiling webidl v0.6.0
     Running `rustc --crate-name build_script_build /home/jrakow/.local/share/cargo/registry/src/github.com-1ecc6299db9ec823/webidl-0.6.0/build.rs --crate-type bin --emit=dep-info,link -C debuginfo=2 --cfg 'feature="default"' -C metadata=0df69c73ba2548fb -C extra-filename=-0df69c73ba2548fb --out-dir /home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/build/webidl-0df69c73ba2548fb -L dependency=/home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps --extern lalrpop=/home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps/liblalrpop-a826aa644feaa543.rlib --cap-lints warn`
     Running `/home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/build/webidl-0df69c73ba2548fb/build-script-build`
     Running `rustc --crate-name webidl /home/jrakow/.local/share/cargo/registry/src/github.com-1ecc6299db9ec823/webidl-0.6.0/src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 --cfg 'feature="default"' -C metadata=ff501de3c76ad1b3 -C extra-filename=-ff501de3c76ad1b3 --out-dir /home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps -L dependency=/home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps --extern lalrpop_util=/home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps/liblalrpop_util-fbc0a56d0b2b3173.rlib --cap-lints warn`
   Compiling wasm-bindgen-webidl v0.2.11 (file:///home/jrakow/sync/workspace/rust/wasm-bindgen/crates/webidl)
     Running `rustc --crate-name wasm_bindgen_webidl /home/jrakow/sync/workspace/rust/wasm-bindgen/crates/webidl/src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=ab18ba98a7bd2446 -C extra-filename=-ab18ba98a7bd2446 --out-dir /home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps -C incremental=/home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/incremental -L dependency=/home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps --extern failure=/home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps/libfailure-e7e05f364c344404.rlib --extern heck=/home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps/libheck-9859b4dbbc0133c0.rlib --extern log=/home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps/liblog-37ae512dab0679a1.rlib --extern proc_macro2=/home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps/libproc_macro2-2483c5a35803bed5.rlib --extern quote=/home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps/libquote-949530bf6c8f3c9b.rlib --extern syn=/home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps/libsyn-5e78f8304e725b7f.rlib --extern wasm_bindgen_backend=/home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps/libwasm_bindgen_backend-ec097c980e389cc4.rlib --extern webidl=/home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps/libwebidl-ff501de3c76ad1b3.rlib -L native=/home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/build/backtrace-sys-a8cab612fe61ce67/out`
   Compiling test0 v0.0.1 (file:///home/jrakow/sync/workspace/rust/wasm-bindgen/target/generated-tests/test0)
     Running `rustc --crate-name build_script_build build.rs --crate-type bin --emit=dep-info,link -C debuginfo=2 -C metadata=8b21a5bd1d077775 -C extra-filename=-8b21a5bd1d077775 --out-dir /home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/build/test0-8b21a5bd1d077775 -C incremental=/home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/incremental -L dependency=/home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps --extern wasm_bindgen_webidl=/home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps/libwasm_bindgen_webidl-ab18ba98a7bd2446.rlib -L native=/home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/build/backtrace-sys-a8cab612fe61ce67/out`
     Running `/home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/build/test0-8b21a5bd1d077775/build-script-build`
thread 'main' panicked at 'procedural macro API is used outside of a procedural macro', libproc_macro/lib.rs:1464:13
stack backtrace:
   0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
             at libstd/sys/unix/backtrace/tracing/gcc_s.rs:49
   1: std::sys_common::backtrace::print
             at libstd/sys_common/backtrace.rs:71
             at libstd/sys_common/backtrace.rs:59
   2: std::panicking::default_hook::{{closure}}
             at libstd/panicking.rs:211
   3: std::panicking::default_hook
             at libstd/panicking.rs:227
   4: std::panicking::rust_panic_with_hook
             at libstd/panicking.rs:475
   5: std::panicking::begin_panic
   6: proc_macro::Span::call_site
   7: proc_macro2::imp::nightly_works::{{closure}}
             at /home/jrakow/.local/share/cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.4.6/src/unstable.rs:33
   8: std::panicking::try::do_call
             at /checkout/src/libstd/panicking.rs:310
   9: __rust_maybe_catch_panic
             at libpanic_unwind/lib.rs:106
  10: std::panicking::try
             at /checkout/src/libstd/panicking.rs:289
  11: std::panic::catch_unwind
             at /checkout/src/libstd/panic.rs:392
  12: proc_macro2::imp::nightly_works
             at /home/jrakow/.local/share/cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.4.6/src/unstable.rs:33
  13: proc_macro2::imp::Span::call_site
             at /home/jrakow/.local/share/cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.4.6/src/unstable.rs:338
  14: proc_macro2::Span::call_site
             at /home/jrakow/.local/share/cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.4.6/src/lib.rs:283
  15: <syn::token::Pub as core::default::Default>::default
             at /home/jrakow/.local/share/cargo/registry/src/github.com-1ecc6299db9ec823/syn-0.14.4/src/token.rs:213
  16: <webidl::parser::ast::NonPartialInterface as wasm_bindgen_webidl::WebidlParse<()>>::webidl_parse
             at /home/jrakow/sync/workspace/rust/wasm-bindgen/crates/webidl/src/lib.rs:187
  17: <webidl::parser::ast::Interface as wasm_bindgen_webidl::WebidlParse<()>>::webidl_parse
             at /home/jrakow/sync/workspace/rust/wasm-bindgen/crates/webidl/src/lib.rs:134
  18: <webidl::parser::ast::Definition as wasm_bindgen_webidl::WebidlParse<()>>::webidl_parse
             at /home/jrakow/sync/workspace/rust/wasm-bindgen/crates/webidl/src/lib.rs:112
  19: <alloc::vec::Vec<webidl::parser::ast::Definition> as wasm_bindgen_webidl::WebidlParse<()>>::webidl_parse
             at /home/jrakow/sync/workspace/rust/wasm-bindgen/crates/webidl/src/lib.rs:102
  20: wasm_bindgen_webidl::parse
             at /home/jrakow/sync/workspace/rust/wasm-bindgen/crates/webidl/src/lib.rs:58
  21: wasm_bindgen_webidl::parse_file
             at /home/jrakow/sync/workspace/rust/wasm-bindgen/crates/webidl/src/lib.rs:50
  22: wasm_bindgen_webidl::compile_file
             at /home/jrakow/sync/workspace/rust/wasm-bindgen/crates/webidl/src/lib.rs:66
  23: build_script_build::main
             at ./build.rs:14
  24: std::rt::lang_start::{{closure}}
             at /checkout/src/libstd/rt.rs:74
  25: std::panicking::try::do_call
             at libstd/rt.rs:59
             at libstd/panicking.rs:310
  26: __rust_maybe_catch_panic
             at libpanic_unwind/lib.rs:106
  27: std::rt::lang_start_internal
             at libstd/panicking.rs:289
             at libstd/panic.rs:392
             at libstd/rt.rs:58
  28: std::rt::lang_start
             at /checkout/src/libstd/rt.rs:74
  29: main
  30: __libc_start_main
  31: _start
             at ../sysdeps/x86_64/start.S:120
     Running `rustc --crate-name test0 src/lib.rs --crate-type cdylib --emit=dep-info,link -C debuginfo=2 -C metadata=b73374b64510db05 --out-dir /home/jrakow/sync/workspace/rust/wasm-bindgen/target/wasm32-unknown-unknown/debug/deps --target wasm32-unknown-unknown -C incremental=/home/jrakow/sync/workspace/rust/wasm-bindgen/target/wasm32-unknown-unknown/debug/incremental -L dependency=/home/jrakow/sync/workspace/rust/wasm-bindgen/target/wasm32-unknown-unknown/debug/deps -L dependency=/home/jrakow/sync/workspace/rust/wasm-bindgen/target/debug/deps --extern wasm_bindgen=/home/jrakow/sync/workspace/rust/wasm-bindgen/target/wasm32-unknown-unknown/debug/deps/libwasm_bindgen-6362886e370565df.rlib -Dwarnings`
    Finished dev [unoptimized + debuginfo] target(s) in 5m 43s

dur: 343.671s
···················································
running wasm-bindgen
dur: 2.681s
···················································
running "node" "--experimental-modules" "run.mjs"
exit: exit code: 1
stderr ---
(node:18673) ExperimentalWarning: The ESM module loader is experimental.
SyntaxError: Unexpected token import
    at ModuleJob.loaders.set [as moduleProvider] (internal/loader/ModuleRequest.js:33:13)
    at <anonymous>

thread 'simple::method' panicked at 'assertion failed: output.status.success()', crates/test-project-builder/src/lib.rs:787:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
   0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
             at libstd/sys/unix/backtrace/tracing/gcc_s.rs:49
   1: std::sys_common::backtrace::print
             at libstd/sys_common/backtrace.rs:71
             at libstd/sys_common/backtrace.rs:59
   2: std::panicking::default_hook::{{closure}}
             at libstd/panicking.rs:211
   3: std::panicking::default_hook
             at libstd/panicking.rs:227
   4: std::panicking::rust_panic_with_hook
             at libstd/panicking.rs:475
   5: std::panicking::begin_panic
             at /checkout/src/libstd/panicking.rs:409
   6: wasm_bindgen_test_project_builder::run
             at crates/test-project-builder/src/lib.rs:787
   7: wasm_bindgen_test_project_builder::Project::test
             at crates/test-project-builder/src/lib.rs:620
   8: all::simple::method
             at crates/webidl/tests/all/simple.rs:5
   9: all::__test::TESTS::{{closure}}
             at crates/webidl/tests/all/simple.rs:4
  10: core::ops::function::FnOnce::call_once
             at /checkout/src/libcore/ops/function.rs:223
  11: <F as alloc::boxed::FnBox<A>>::call_box
             at libtest/lib.rs:1451
             at /checkout/src/libcore/ops/function.rs:223
             at /checkout/src/liballoc/boxed.rs:640
  12: __rust_maybe_catch_panic
             at libpanic_unwind/lib.rs:106
dur: 0.464s
test simple::method ... FAILED

failures:

failures:
    simple::method

test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 8 filtered out

error: test failed, to rerun pass '--test all'
ghost commented 6 years ago

Also, the nightly version used by travis does not work for me. It fails with the same error.

$ rustc --version
rustc 1.29.0-nightly (e5f6498d3 2018-07-10)
$ cargo --version
cargo 1.29.0-nightly (af9e40c26 2018-07-05)
alexcrichton commented 6 years ago

Thanks for the report! The test suite isn't great at reporting this right now but Node 10+ is required currently

ghost commented 6 years ago

Great. I knew it was something simple like that.