[INFO] crate arwa 0.1.0 is already in cache [INFO] checking arwa-0.1.0 against try#f503dc8e6998ec30e0e3a3937c0fd18331a5dc9f for pr-69560 [INFO] extracting crate arwa 0.1.0 into /workspace/builds/worker-0/source [INFO] validating manifest of crates.io crate arwa 0.1.0 on toolchain f503dc8e6998ec30e0e3a3937c0fd18331a5dc9f [INFO] running `"/workspace/cargo-home/bin/cargo" "+f503dc8e6998ec30e0e3a3937c0fd18331a5dc9f" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started tweaking crates.io crate arwa 0.1.0 [INFO] finished tweaking crates.io crate arwa 0.1.0 [INFO] tweaked toml for crates.io crate arwa 0.1.0 written to /workspace/builds/worker-0/source/Cargo.toml [INFO] running `"/workspace/cargo-home/bin/cargo" "+f503dc8e6998ec30e0e3a3937c0fd18331a5dc9f" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] running `"/workspace/cargo-home/bin/cargo" "+f503dc8e6998ec30e0e3a3937c0fd18331a5dc9f" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+f503dc8e6998ec30e0e3a3937c0fd18331a5dc9f" "check" "--frozen" "--all" "--all-targets"` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 17e58ce5c472d536a901b98d8cd8fd899f46c2a8662e1dc3852b95d5f0e18e4f [INFO] running `"docker" "start" "-a" "17e58ce5c472d536a901b98d8cd8fd899f46c2a8662e1dc3852b95d5f0e18e4f"` [INFO] [stderr] Checking futures-core v0.3.4 [INFO] [stderr] Compiling proc-macro-hack v0.5.11 [INFO] [stderr] Compiling delegate v0.3.0 [INFO] [stderr] Compiling web-sys v0.3.35 [INFO] [stderr] Checking wasm-bindgen-futures v0.4.8 [INFO] [stderr] Checking futures-channel v0.3.4 [INFO] [stderr] Compiling futures-macro v0.3.4 [INFO] [stderr] Checking futures-util v0.3.4 [INFO] [stderr] Checking futures-executor v0.3.4 [INFO] [stderr] Checking futures v0.3.4 [INFO] [stderr] Checking gloo-events v0.1.1 [INFO] [stderr] Checking arwa v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] error[E0412]: cannot find type `MessageEvent` in crate `web_sys` [INFO] [stderr] --> src/event/message_event.rs:7:21 [INFO] [stderr] | [INFO] [stderr] 7 | inner: web_sys::MessageEvent, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] ::: /opt/rustwide/target/debug/build/web-sys-4a773c1bfad74515/out/bindings.rs:2046:630 [INFO] [stderr] | [INFO] [stderr] 2046 | ... non-wasm targets" ) ; } unsafe { let _ret = { let self_ = < & MediaStream as wasm_bindgen :: convert :: IntoWasmAbi > :: into_abi ( self ) ; __widl_f_current_time_MediaStream ( self_ ) } ; < f64 as wasm_bindgen :: convert :: FromWasmAbi > :: from_abi ( _ret ) } } } # [ allow ( bad_style ) ] # [ derive ( Debug , Clone , PartialEq , Eq ) ] # [ doc = "The `MouseEvent` object\n\n[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent)\n\n*This API requires the following crate features to be activated: `MouseEvent`*" ] # [ repr ( transparent ) ] # [ allow ( clippy :: all ) ] pub struct MouseEvent { obj : UiEvent } # [ allow ( bad_style ) ] # [ allow ( clippy :: all ) ] const __wbg_generated_const_MouseEvent : ( ) = { use wasm_bindgen :: convert :: { IntoWasmAbi , FromWasmAbi } ; use wasm_bindgen :: convert :: { OptionIntoWasmAbi , OptionFromWasmAbi } ; use wasm_bindgen :: convert :: RefFromWasmAbi ; use wasm_bindgen :: describe :: WasmDescribe ; use wasm_bindgen :: { JsValue , JsCast } ; use wasm_bindgen :: __rt :: core ; impl WasmDescribe for MouseEvent { fn describe ( ) { JsValue :: describe ( ) ; } } impl core :: ops :: Deref for MouseEvent { type Target = UiEvent ; # [ inline ] fn deref ( & self ) -> & UiEvent { & self . obj } } impl IntoWasmAbi for MouseEvent { type Abi = < JsValue as IntoWasmAbi > :: Abi ; # [ inline ] fn into_abi ( self ) -> Self :: Abi { self . obj . into_abi ( ) } } impl OptionIntoWasmAbi for MouseEvent { # [ inline ] fn none ( ) -> Self :: Abi { 0 } } impl < 'a > OptionIntoWasmAbi for & 'a MouseEvent { # [ inline ] fn none ( ) -> Self :: Abi { 0 } } impl FromWasmAbi for MouseEvent { type Abi = < JsValue as FromWasmAbi > :: Abi ; # [ inline ] unsafe fn from_abi ( js : Self :: Abi ) -> Self { MouseEvent { obj : JsValue :: from_abi ( js ) . into ( ) , } } } impl OptionFromWasmAbi for MouseEvent { # [ inline ] fn is_none ( abi : & Self :: Abi ) -> bool { * abi == 0 } } impl < 'a > IntoWasmAbi for & 'a MouseEvent { type Abi = < & 'a JsValue as IntoWasmAbi > :: Abi ; # [ inline ] fn into_abi ( self ) -> Self :: Abi { ( & self . obj ) . into_abi ( ) } } impl RefFromWasmAbi for MouseEvent { type Abi = < JsValue as RefFromWasmAbi > :: Abi ; type Anchor = core :: mem :: ManuallyDrop < MouseEvent > ; # [ inline ] unsafe fn ref_from_abi ( js : Self :: Abi ) -> Self :: Anchor { let tmp = < JsValue as RefFromWasmAbi > :: ref_from_abi ( js ) ; core :: mem :: ManuallyDrop :: new ( MouseEvent { obj : core :: mem :: ManuallyDrop :: into_inner ( tmp ) . into ( ) , } ) } } impl From < JsValue > for MouseEvent { # [ inline ] fn from ( obj : JsValue ) -> MouseEvent { MouseEvent { obj : obj . into ( ) } } } impl AsRef < JsValue > for MouseEvent { # [ inline ] fn as_ref ( & self ) -> & JsValue { self . obj . as_ref ( ) } } impl AsRef < MouseEvent > for MouseEvent { # [ inline ] fn as_ref ( & self ) -> & MouseEvent { self } } impl From < MouseEvent > for JsValue { # [ inline ] fn from ( obj : MouseEvent ) -> JsValue { obj . obj . into ( ) } } impl JsCast for MouseEvent { fn instanceof ( val : & JsValue ) -> bool { # [ link ( wasm_import_module = "__wbindgen_placeholder__" ) ] # [ cfg ( all ( target_arch = "wasm32" , not ( target_os = "emscripten" ) ) ) ] extern "C" { fn __widl_instanceof_MouseEvent ( val : u32 ) -> u32 ; } # [ cfg ( not ( all ( target_arch = "wasm32" , not ( target_os = "emscripten" ) ) ) ) ] unsafe fn __widl_instanceof_MouseEvent ( _ : u32 ) -> u32 { panic ! ( "cannot check instanceof on non-wasm targets" ) ; } unsafe { let idx = val . into_abi ( ) ; __widl_instanceof_MouseEvent ( idx ) != 0 } } # [ inline ] fn unchecked_from_js ( val : JsValue ) -> Self { MouseEvent { obj : val . into ( ) } } # [ inline ] fn unchecked_from_js_ref ( val : & JsValue ) -> & Self { unsafe { & * ( val as * const JsValue as * const MouseEvent ) } } } ( ) } ; # [ allow ( clippy :: all ) ] impl From < MouseEvent > for UiEvent { # [ inline ] fn from ( obj : MouseEvent ) -> UiEvent { use wasm_bindgen :: JsCast ; UiEvent :: unchecked_from_js ( obj . into ( ) ) } } # [ allow ( clippy :: all ) ] impl AsRef < UiEvent > for MouseEvent { # [ inline ] fn as_ref ( & self ) -> & UiEvent { use wasm_bindgen :: JsCast ; UiEvent :: unchecked_from_js_ref ( self . as_ref ( ) ) } } # [ allow ( clippy :: all ) ] impl From < MouseEvent > for Event { # [ inline ] fn from ( obj : MouseEvent ) -> Event { use wasm_bindgen :: JsCast ; Event :: unchecked_from_js ( obj . into ( ) ) } } # [ allow ( clippy :: all ) ] impl AsRef < Event > for MouseEvent { # [ inline ] fn as_ref ( & self ) -> & Event { use wasm_bindgen :: JsCast ; Event :: unchecked_from_js_ref ( self . as_ref ( ) ) } } # [ allow ( clippy :: all ) ] impl From < MouseEvent > for Object { # [ inline ] fn from ( obj : MouseEvent ) -> Object { use wasm_bindgen :: JsCast ; Object :: unchecked_from_js ( obj . into ( ) ) } } # [ allow ( clippy :: all ) ] impl AsRef < Object > for MouseEvent { # [ inline ] fn as_ref ( & self ) -> & Object { use wasm_bindgen :: JsCast ; Object :: unchecked_from_js_ref ( self . as_ref ( ) ) } } # [ no_mangle ] # [ allow ( non_snake_case ) ] # [ doc ( hidden ) ] # [ cfg ( all ( target_arch = "wasm32" , not ( target_os = "emscripten" ) ) ) ] # [ allow ( clippy :: all ) ] pub extern "C" fn __wbindgen_describe___widl_f_new_MouseEvent ( ) { use wasm_bindgen :: describe :: * ; wasm_bindgen :: __rt :: link_mem_intrinsics ( ) ; inform ( FUNCTION ) ; inform ( 0 ) ; inform ( 1u32 ) ; < & str as WasmDescribe > :: describe ( ) ; < MouseEvent as WasmDescribe > :: describe ( ) ; } impl MouseEvent { # [ allow ( bad_style ) ] # [ doc = "The `new MouseEvent(..)` constructor, creating a new instance of `MouseEvent`\n\n[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/MouseEvent)\n\n*This API requires the following crate features to be activated: `MouseEvent`*" ] # [ allow ( clippy :: all ) ] pub fn new ( type_arg : & str ) -> Result < MouseEvent , :: wasm_bindgen :: JsValue > { # [ link ( wasm_import_module = "__wbindgen_placeholder__" ) ] # [ cfg ( all ( target_arch = "wasm32" , not ( target_os = "emscripten" ) ) ) ] extern "C" { fn __widl_f_new_MouseEvent ( type_arg : < & str as wasm_bindgen :: convert :: IntoWasmAbi > :: Abi ) -> < MouseEvent as wasm_bindgen :: convert :: FromWasmAbi > :: Abi ; } # [ cfg ( not ( all ( target_arch = "wasm32" , not ( target_os = "emscripten" ) ) ) ) ] unsafe fn __widl_f_new_MouseEvent ( type_arg : < & str as wasm_bindgen :: convert :: IntoWasmAbi > :: Abi ) -> < MouseEvent as wasm_bindgen :: convert :: FromWasmAbi > :: Abi { drop ( type_arg ) ; panic ! ( "cannot call wasm-bindgen imported functions on \ [INFO] [stderr] | --------------------- similarly named struct `MouseEvent` defined here [INFO] [stderr] | [INFO] [stderr] help: a struct with a similar name exists [INFO] [stderr] | [INFO] [stderr] 7 | inner: web_sys::MouseEvent, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 1 | use crate::event::message_event::MessageEvent; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `MessageEvent` in crate `web_sys` [INFO] [stderr] --> src/event/message_event.rs:24:27 [INFO] [stderr] | [INFO] [stderr] 24 | impl_common_event_traits!(MessageEvent); [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] ::: /opt/rustwide/target/debug/build/web-sys-4a773c1bfad74515/out/bindings.rs:2046:630 [INFO] [stderr] | [INFO] [stderr] 2046 | ... non-wasm targets" ) ; } unsafe { let _ret = { let self_ = < & MediaStream as wasm_bindgen :: convert :: IntoWasmAbi > :: into_abi ( self ) ; __widl_f_current_time_MediaStream ( self_ ) } ; < f64 as wasm_bindgen :: convert :: FromWasmAbi > :: from_abi ( _ret ) } } } # [ allow ( bad_style ) ] # [ derive ( Debug , Clone , PartialEq , Eq ) ] # [ doc = "The `MouseEvent` object\n\n[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent)\n\n*This API requires the following crate features to be activated: `MouseEvent`*" ] # [ repr ( transparent ) ] # [ allow ( clippy :: all ) ] pub struct MouseEvent { obj : UiEvent } # [ allow ( bad_style ) ] # [ allow ( clippy :: all ) ] const __wbg_generated_const_MouseEvent : ( ) = { use wasm_bindgen :: convert :: { IntoWasmAbi , FromWasmAbi } ; use wasm_bindgen :: convert :: { OptionIntoWasmAbi , OptionFromWasmAbi } ; use wasm_bindgen :: convert :: RefFromWasmAbi ; use wasm_bindgen :: describe :: WasmDescribe ; use wasm_bindgen :: { JsValue , JsCast } ; use wasm_bindgen :: __rt :: core ; impl WasmDescribe for MouseEvent { fn describe ( ) { JsValue :: describe ( ) ; } } impl core :: ops :: Deref for MouseEvent { type Target = UiEvent ; # [ inline ] fn deref ( & self ) -> & UiEvent { & self . obj } } impl IntoWasmAbi for MouseEvent { type Abi = < JsValue as IntoWasmAbi > :: Abi ; # [ inline ] fn into_abi ( self ) -> Self :: Abi { self . obj . into_abi ( ) } } impl OptionIntoWasmAbi for MouseEvent { # [ inline ] fn none ( ) -> Self :: Abi { 0 } } impl < 'a > OptionIntoWasmAbi for & 'a MouseEvent { # [ inline ] fn none ( ) -> Self :: Abi { 0 } } impl FromWasmAbi for MouseEvent { type Abi = < JsValue as FromWasmAbi > :: Abi ; # [ inline ] unsafe fn from_abi ( js : Self :: Abi ) -> Self { MouseEvent { obj : JsValue :: from_abi ( js ) . into ( ) , } } } impl OptionFromWasmAbi for MouseEvent { # [ inline ] fn is_none ( abi : & Self :: Abi ) -> bool { * abi == 0 } } impl < 'a > IntoWasmAbi for & 'a MouseEvent { type Abi = < & 'a JsValue as IntoWasmAbi > :: Abi ; # [ inline ] fn into_abi ( self ) -> Self :: Abi { ( & self . obj ) . into_abi ( ) } } impl RefFromWasmAbi for MouseEvent { type Abi = < JsValue as RefFromWasmAbi > :: Abi ; type Anchor = core :: mem :: ManuallyDrop < MouseEvent > ; # [ inline ] unsafe fn ref_from_abi ( js : Self :: Abi ) -> Self :: Anchor { let tmp = < JsValue as RefFromWasmAbi > :: ref_from_abi ( js ) ; core :: mem :: ManuallyDrop :: new ( MouseEvent { obj : core :: mem :: ManuallyDrop :: into_inner ( tmp ) . into ( ) , } ) } } impl From < JsValue > for MouseEvent { # [ inline ] fn from ( obj : JsValue ) -> MouseEvent { MouseEvent { obj : obj . into ( ) } } } impl AsRef < JsValue > for MouseEvent { # [ inline ] fn as_ref ( & self ) -> & JsValue { self . obj . as_ref ( ) } } impl AsRef < MouseEvent > for MouseEvent { # [ inline ] fn as_ref ( & self ) -> & MouseEvent { self } } impl From < MouseEvent > for JsValue { # [ inline ] fn from ( obj : MouseEvent ) -> JsValue { obj . obj . into ( ) } } impl JsCast for MouseEvent { fn instanceof ( val : & JsValue ) -> bool { # [ link ( wasm_import_module = "__wbindgen_placeholder__" ) ] # [ cfg ( all ( target_arch = "wasm32" , not ( target_os = "emscripten" ) ) ) ] extern "C" { fn __widl_instanceof_MouseEvent ( val : u32 ) -> u32 ; } # [ cfg ( not ( all ( target_arch = "wasm32" , not ( target_os = "emscripten" ) ) ) ) ] unsafe fn __widl_instanceof_MouseEvent ( _ : u32 ) -> u32 { panic ! ( "cannot check instanceof on non-wasm targets" ) ; } unsafe { let idx = val . into_abi ( ) ; __widl_instanceof_MouseEvent ( idx ) != 0 } } # [ inline ] fn unchecked_from_js ( val : JsValue ) -> Self { MouseEvent { obj : val . into ( ) } } # [ inline ] fn unchecked_from_js_ref ( val : & JsValue ) -> & Self { unsafe { & * ( val as * const JsValue as * const MouseEvent ) } } } ( ) } ; # [ allow ( clippy :: all ) ] impl From < MouseEvent > for UiEvent { # [ inline ] fn from ( obj : MouseEvent ) -> UiEvent { use wasm_bindgen :: JsCast ; UiEvent :: unchecked_from_js ( obj . into ( ) ) } } # [ allow ( clippy :: all ) ] impl AsRef < UiEvent > for MouseEvent { # [ inline ] fn as_ref ( & self ) -> & UiEvent { use wasm_bindgen :: JsCast ; UiEvent :: unchecked_from_js_ref ( self . as_ref ( ) ) } } # [ allow ( clippy :: all ) ] impl From < MouseEvent > for Event { # [ inline ] fn from ( obj : MouseEvent ) -> Event { use wasm_bindgen :: JsCast ; Event :: unchecked_from_js ( obj . into ( ) ) } } # [ allow ( clippy :: all ) ] impl AsRef < Event > for MouseEvent { # [ inline ] fn as_ref ( & self ) -> & Event { use wasm_bindgen :: JsCast ; Event :: unchecked_from_js_ref ( self . as_ref ( ) ) } } # [ allow ( clippy :: all ) ] impl From < MouseEvent > for Object { # [ inline ] fn from ( obj : MouseEvent ) -> Object { use wasm_bindgen :: JsCast ; Object :: unchecked_from_js ( obj . into ( ) ) } } # [ allow ( clippy :: all ) ] impl AsRef < Object > for MouseEvent { # [ inline ] fn as_ref ( & self ) -> & Object { use wasm_bindgen :: JsCast ; Object :: unchecked_from_js_ref ( self . as_ref ( ) ) } } # [ no_mangle ] # [ allow ( non_snake_case ) ] # [ doc ( hidden ) ] # [ cfg ( all ( target_arch = "wasm32" , not ( target_os = "emscripten" ) ) ) ] # [ allow ( clippy :: all ) ] pub extern "C" fn __wbindgen_describe___widl_f_new_MouseEvent ( ) { use wasm_bindgen :: describe :: * ; wasm_bindgen :: __rt :: link_mem_intrinsics ( ) ; inform ( FUNCTION ) ; inform ( 0 ) ; inform ( 1u32 ) ; < & str as WasmDescribe > :: describe ( ) ; < MouseEvent as WasmDescribe > :: describe ( ) ; } impl MouseEvent { # [ allow ( bad_style ) ] # [ doc = "The `new MouseEvent(..)` constructor, creating a new instance of `MouseEvent`\n\n[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/MouseEvent)\n\n*This API requires the following crate features to be activated: `MouseEvent`*" ] # [ allow ( clippy :: all ) ] pub fn new ( type_arg : & str ) -> Result < MouseEvent , :: wasm_bindgen :: JsValue > { # [ link ( wasm_import_module = "__wbindgen_placeholder__" ) ] # [ cfg ( all ( target_arch = "wasm32" , not ( target_os = "emscripten" ) ) ) ] extern "C" { fn __widl_f_new_MouseEvent ( type_arg : < & str as wasm_bindgen :: convert :: IntoWasmAbi > :: Abi ) -> < MouseEvent as wasm_bindgen :: convert :: FromWasmAbi > :: Abi ; } # [ cfg ( not ( all ( target_arch = "wasm32" , not ( target_os = "emscripten" ) ) ) ) ] unsafe fn __widl_f_new_MouseEvent ( type_arg : < & str as wasm_bindgen :: convert :: IntoWasmAbi > :: Abi ) -> < MouseEvent as wasm_bindgen :: convert :: FromWasmAbi > :: Abi { drop ( type_arg ) ; panic ! ( "cannot call wasm-bindgen imported functions on \ [INFO] [stderr] | --------------------- similarly named struct `MouseEvent` defined here [INFO] [stderr] | [INFO] [stderr] help: a struct with a similar name exists [INFO] [stderr] | [INFO] [stderr] 24 | impl_common_event_traits!(MouseEvent); [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 1 | use crate::event::message_event::MessageEvent; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `MessageEvent` in crate `web_sys` [INFO] [stderr] --> src/event/message_event.rs:7:21 [INFO] [stderr] | [INFO] [stderr] 7 | inner: web_sys::MessageEvent, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] ::: /opt/rustwide/target/debug/build/web-sys-4a773c1bfad74515/out/bindings.rs:2046:630 [INFO] [stderr] | [INFO] [stderr] 2046 | ... non-wasm targets" ) ; } unsafe { let _ret = { let self_ = < & MediaStream as wasm_bindgen :: convert :: IntoWasmAbi > :: into_abi ( self ) ; __widl_f_current_time_MediaStream ( self_ ) } ; < f64 as wasm_bindgen :: convert :: FromWasmAbi > :: from_abi ( _ret ) } } } # [ allow ( bad_style ) ] # [ derive ( Debug , Clone , PartialEq , Eq ) ] # [ doc = "The `MouseEvent` object\n\n[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent)\n\n*This API requires the following crate features to be activated: `MouseEvent`*" ] # [ repr ( transparent ) ] # [ allow ( clippy :: all ) ] pub struct MouseEvent { obj : UiEvent } # [ allow ( bad_style ) ] # [ allow ( clippy :: all ) ] const __wbg_generated_const_MouseEvent : ( ) = { use wasm_bindgen :: convert :: { IntoWasmAbi , FromWasmAbi } ; use wasm_bindgen :: convert :: { OptionIntoWasmAbi , OptionFromWasmAbi } ; use wasm_bindgen :: convert :: RefFromWasmAbi ; use wasm_bindgen :: describe :: WasmDescribe ; use wasm_bindgen :: { JsValue , JsCast } ; use wasm_bindgen :: __rt :: core ; impl WasmDescribe for MouseEvent { fn describe ( ) { JsValue :: describe ( ) ; } } impl core :: ops :: Deref for MouseEvent { type Target = UiEvent ; # [ inline ] fn deref ( & self ) -> & UiEvent { & self . obj } } impl IntoWasmAbi for MouseEvent { type Abi = < JsValue as IntoWasmAbi > :: Abi ; # [ inline ] fn into_abi ( self ) -> Self :: Abi { self . obj . into_abi ( ) } } impl OptionIntoWasmAbi for MouseEvent { # [ inline ] fn none ( ) -> Self :: Abi { 0 } } impl < 'a > OptionIntoWasmAbi for & 'a MouseEvent { # [ inline ] fn none ( ) -> Self :: Abi { 0 } } impl FromWasmAbi for MouseEvent { type Abi = < JsValue as FromWasmAbi > :: Abi ; # [ inline ] unsafe fn from_abi ( js : Self :: Abi ) -> Self { MouseEvent { obj : JsValue :: from_abi ( js ) . into ( ) , } } } impl OptionFromWasmAbi for MouseEvent { # [ inline ] fn is_none ( abi : & Self :: Abi ) -> bool { * abi == 0 } } impl < 'a > IntoWasmAbi for & 'a MouseEvent { type Abi = < & 'a JsValue as IntoWasmAbi > :: Abi ; # [ inline ] fn into_abi ( self ) -> Self :: Abi { ( & self . obj ) . into_abi ( ) } } impl RefFromWasmAbi for MouseEvent { type Abi = < JsValue as RefFromWasmAbi > :: Abi ; type Anchor = core :: mem :: ManuallyDrop < MouseEvent > ; # [ inline ] unsafe fn ref_from_abi ( js : Self :: Abi ) -> Self :: Anchor { let tmp = < JsValue as RefFromWasmAbi > :: ref_from_abi ( js ) ; core :: mem :: ManuallyDrop :: new ( MouseEvent { obj : core :: mem :: ManuallyDrop :: into_inner ( tmp ) . into ( ) , } ) } } impl From < JsValue > for MouseEvent { # [ inline ] fn from ( obj : JsValue ) -> MouseEvent { MouseEvent { obj : obj . into ( ) } } } impl AsRef < JsValue > for MouseEvent { # [ inline ] fn as_ref ( & self ) -> & JsValue { self . obj . as_ref ( ) } } impl AsRef < MouseEvent > for MouseEvent { # [ inline ] fn as_ref ( & self ) -> & MouseEvent { self } } impl From < MouseEvent > for JsValue { # [ inline ] fn from ( obj : MouseEvent ) -> JsValue { obj . obj . into ( ) } } impl JsCast for MouseEvent { fn instanceof ( val : & JsValue ) -> bool { # [ link ( wasm_import_module = "__wbindgen_placeholder__" ) ] # [ cfg ( all ( target_arch = "wasm32" , not ( target_os = "emscripten" ) ) ) ] extern "C" { fn __widl_instanceof_MouseEvent ( val : u32 ) -> u32 ; } # [ cfg ( not ( all ( target_arch = "wasm32" , not ( target_os = "emscripten" ) ) ) ) ] unsafe fn __widl_instanceof_MouseEvent ( _ : u32 ) -> u32 { panic ! ( "cannot check instanceof on non-wasm targets" ) ; } unsafe { let idx = val . into_abi ( ) ; __widl_instanceof_MouseEvent ( idx ) != 0 } } # [ inline ] fn unchecked_from_js ( val : JsValue ) -> Self { MouseEvent { obj : val . into ( ) } } # [ inline ] fn unchecked_from_js_ref ( val : & JsValue ) -> & Self { unsafe { & * ( val as * const JsValue as * const MouseEvent ) } } } ( ) } ; # [ allow ( clippy :: all ) ] impl From < MouseEvent > for UiEvent { # [ inline ] fn from ( obj : MouseEvent ) -> UiEvent { use wasm_bindgen :: JsCast ; UiEvent :: unchecked_from_js ( obj . into ( ) ) } } # [ allow ( clippy :: all ) ] impl AsRef < UiEvent > for MouseEvent { # [ inline ] fn as_ref ( & self ) -> & UiEvent { use wasm_bindgen :: JsCast ; UiEvent :: unchecked_from_js_ref ( self . as_ref ( ) ) } } # [ allow ( clippy :: all ) ] impl From < MouseEvent > for Event { # [ inline ] fn from ( obj : MouseEvent ) -> Event { use wasm_bindgen :: JsCast ; Event :: unchecked_from_js ( obj . into ( ) ) } } # [ allow ( clippy :: all ) ] impl AsRef < Event > for MouseEvent { # [ inline ] fn as_ref ( & self ) -> & Event { use wasm_bindgen :: JsCast ; Event :: unchecked_from_js_ref ( self . as_ref ( ) ) } } # [ allow ( clippy :: all ) ] impl From < MouseEvent > for Object { # [ inline ] fn from ( obj : MouseEvent ) -> Object { use wasm_bindgen :: JsCast ; Object :: unchecked_from_js ( obj . into ( ) ) } } # [ allow ( clippy :: all ) ] impl AsRef < Object > for MouseEvent { # [ inline ] fn as_ref ( & self ) -> & Object { use wasm_bindgen :: JsCast ; Object :: unchecked_from_js_ref ( self . as_ref ( ) ) } } # [ no_mangle ] # [ allow ( non_snake_case ) ] # [ doc ( hidden ) ] # [ cfg ( all ( target_arch = "wasm32" , not ( target_os = "emscripten" ) ) ) ] # [ allow ( clippy :: all ) ] pub extern "C" fn __wbindgen_describe___widl_f_new_MouseEvent ( ) { use wasm_bindgen :: describe :: * ; wasm_bindgen :: __rt :: link_mem_intrinsics ( ) ; inform ( FUNCTION ) ; inform ( 0 ) ; inform ( 1u32 ) ; < & str as WasmDescribe > :: describe ( ) ; < MouseEvent as WasmDescribe > :: describe ( ) ; } impl MouseEvent { # [ allow ( bad_style ) ] # [ doc = "The `new MouseEvent(..)` constructor, creating a new instance of `MouseEvent`\n\n[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/MouseEvent)\n\n*This API requires the following crate features to be activated: `MouseEvent`*" ] # [ allow ( clippy :: all ) ] pub fn new ( type_arg : & str ) -> Result < MouseEvent , :: wasm_bindgen :: JsValue > { # [ link ( wasm_import_module = "__wbindgen_placeholder__" ) ] # [ cfg ( all ( target_arch = "wasm32" , not ( target_os = "emscripten" ) ) ) ] extern "C" { fn __widl_f_new_MouseEvent ( type_arg : < & str as wasm_bindgen :: convert :: IntoWasmAbi > :: Abi ) -> < MouseEvent as wasm_bindgen :: convert :: FromWasmAbi > :: Abi ; } # [ cfg ( not ( all ( target_arch = "wasm32" , not ( target_os = "emscripten" ) ) ) ) ] unsafe fn __widl_f_new_MouseEvent ( type_arg : < & str as wasm_bindgen :: convert :: IntoWasmAbi > :: Abi ) -> < MouseEvent as wasm_bindgen :: convert :: FromWasmAbi > :: Abi { drop ( type_arg ) ; panic ! ( "cannot call wasm-bindgen imported functions on \ [INFO] [stderr] | --------------------- similarly named struct `MouseEvent` defined here [INFO] [stderr] | [INFO] [stderr] help: a struct with a similar name exists [INFO] [stderr] | [INFO] [stderr] 7 | inner: web_sys::MouseEvent, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 1 | use crate::event::message_event::MessageEvent; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `MessageEvent` in crate `web_sys` [INFO] [stderr] --> src/event/message_event.rs:24:27 [INFO] [stderr] | [INFO] [stderr] 24 | impl_common_event_traits!(MessageEvent); [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] ::: /opt/rustwide/target/debug/build/web-sys-4a773c1bfad74515/out/bindings.rs:2046:630 [INFO] [stderr] | [INFO] [stderr] 2046 | ... non-wasm targets" ) ; } unsafe { let _ret = { let self_ = < & MediaStream as wasm_bindgen :: convert :: IntoWasmAbi > :: into_abi ( self ) ; __widl_f_current_time_MediaStream ( self_ ) } ; < f64 as wasm_bindgen :: convert :: FromWasmAbi > :: from_abi ( _ret ) } } } # [ allow ( bad_style ) ] # [ derive ( Debug , Clone , PartialEq , Eq ) ] # [ doc = "The `MouseEvent` object\n\n[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent)\n\n*This API requires the following crate features to be activated: `MouseEvent`*" ] # [ repr ( transparent ) ] # [ allow ( clippy :: all ) ] pub struct MouseEvent { obj : UiEvent } # [ allow ( bad_style ) ] # [ allow ( clippy :: all ) ] const __wbg_generated_const_MouseEvent : ( ) = { use wasm_bindgen :: convert :: { IntoWasmAbi , FromWasmAbi } ; use wasm_bindgen :: convert :: { OptionIntoWasmAbi , OptionFromWasmAbi } ; use wasm_bindgen :: convert :: RefFromWasmAbi ; use wasm_bindgen :: describe :: WasmDescribe ; use wasm_bindgen :: { JsValue , JsCast } ; use wasm_bindgen :: __rt :: core ; impl WasmDescribe for MouseEvent { fn describe ( ) { JsValue :: describe ( ) ; } } impl core :: ops :: Deref for MouseEvent { type Target = UiEvent ; # [ inline ] fn deref ( & self ) -> & UiEvent { & self . obj } } impl IntoWasmAbi for MouseEvent { type Abi = < JsValue as IntoWasmAbi > :: Abi ; # [ inline ] fn into_abi ( self ) -> Self :: Abi { self . obj . into_abi ( ) } } impl OptionIntoWasmAbi for MouseEvent { # [ inline ] fn none ( ) -> Self :: Abi { 0 } } impl < 'a > OptionIntoWasmAbi for & 'a MouseEvent { # [ inline ] fn none ( ) -> Self :: Abi { 0 } } impl FromWasmAbi for MouseEvent { type Abi = < JsValue as FromWasmAbi > :: Abi ; # [ inline ] unsafe fn from_abi ( js : Self :: Abi ) -> Self { MouseEvent { obj : JsValue :: from_abi ( js ) . into ( ) , } } } impl OptionFromWasmAbi for MouseEvent { # [ inline ] fn is_none ( abi : & Self :: Abi ) -> bool { * abi == 0 } } impl < 'a > IntoWasmAbi for & 'a MouseEvent { type Abi = < & 'a JsValue as IntoWasmAbi > :: Abi ; # [ inline ] fn into_abi ( self ) -> Self :: Abi { ( & self . obj ) . into_abi ( ) } } impl RefFromWasmAbi for MouseEvent { type Abi = < JsValue as RefFromWasmAbi > :: Abi ; type Anchor = core :: mem :: ManuallyDrop < MouseEvent > ; # [ inline ] unsafe fn ref_from_abi ( js : Self :: Abi ) -> Self :: Anchor { let tmp = < JsValue as RefFromWasmAbi > :: ref_from_abi ( js ) ; core :: mem :: ManuallyDrop :: new ( MouseEvent { obj : core :: mem :: ManuallyDrop :: into_inner ( tmp ) . into ( ) , } ) } } impl From < JsValue > for MouseEvent { # [ inline ] fn from ( obj : JsValue ) -> MouseEvent { MouseEvent { obj : obj . into ( ) } } } impl AsRef < JsValue > for MouseEvent { # [ inline ] fn as_ref ( & self ) -> & JsValue { self . obj . as_ref ( ) } } impl AsRef < MouseEvent > for MouseEvent { # [ inline ] fn as_ref ( & self ) -> & MouseEvent { self } } impl From < MouseEvent > for JsValue { # [ inline ] fn from ( obj : MouseEvent ) -> JsValue { obj . obj . into ( ) } } impl JsCast for MouseEvent { fn instanceof ( val : & JsValue ) -> bool { # [ link ( wasm_import_module = "__wbindgen_placeholder__" ) ] # [ cfg ( all ( target_arch = "wasm32" , not ( target_os = "emscripten" ) ) ) ] extern "C" { fn __widl_instanceof_MouseEvent ( val : u32 ) -> u32 ; } # [ cfg ( not ( all ( target_arch = "wasm32" , not ( target_os = "emscripten" ) ) ) ) ] unsafe fn __widl_instanceof_MouseEvent ( _ : u32 ) -> u32 { panic ! ( "cannot check instanceof on non-wasm targets" ) ; } unsafe { let idx = val . into_abi ( ) ; __widl_instanceof_MouseEvent ( idx ) != 0 } } # [ inline ] fn unchecked_from_js ( val : JsValue ) -> Self { MouseEvent { obj : val . into ( ) } } # [ inline ] fn unchecked_from_js_ref ( val : & JsValue ) -> & Self { unsafe { & * ( val as * const JsValue as * const MouseEvent ) } } } ( ) } ; # [ allow ( clippy :: all ) ] impl From < MouseEvent > for UiEvent { # [ inline ] fn from ( obj : MouseEvent ) -> UiEvent { use wasm_bindgen :: JsCast ; UiEvent :: unchecked_from_js ( obj . into ( ) ) } } # [ allow ( clippy :: all ) ] impl AsRef < UiEvent > for MouseEvent { # [ inline ] fn as_ref ( & self ) -> & UiEvent { use wasm_bindgen :: JsCast ; UiEvent :: unchecked_from_js_ref ( self . as_ref ( ) ) } } # [ allow ( clippy :: all ) ] impl From < MouseEvent > for Event { # [ inline ] fn from ( obj : MouseEvent ) -> Event { use wasm_bindgen :: JsCast ; Event :: unchecked_from_js ( obj . into ( ) ) } } # [ allow ( clippy :: all ) ] impl AsRef < Event > for MouseEvent { # [ inline ] fn as_ref ( & self ) -> & Event { use wasm_bindgen :: JsCast ; Event :: unchecked_from_js_ref ( self . as_ref ( ) ) } } # [ allow ( clippy :: all ) ] impl From < MouseEvent > for Object { # [ inline ] fn from ( obj : MouseEvent ) -> Object { use wasm_bindgen :: JsCast ; Object :: unchecked_from_js ( obj . into ( ) ) } } # [ allow ( clippy :: all ) ] impl AsRef < Object > for MouseEvent { # [ inline ] fn as_ref ( & self ) -> & Object { use wasm_bindgen :: JsCast ; Object :: unchecked_from_js_ref ( self . as_ref ( ) ) } } # [ no_mangle ] # [ allow ( non_snake_case ) ] # [ doc ( hidden ) ] # [ cfg ( all ( target_arch = "wasm32" , not ( target_os = "emscripten" ) ) ) ] # [ allow ( clippy :: all ) ] pub extern "C" fn __wbindgen_describe___widl_f_new_MouseEvent ( ) { use wasm_bindgen :: describe :: * ; wasm_bindgen :: __rt :: link_mem_intrinsics ( ) ; inform ( FUNCTION ) ; inform ( 0 ) ; inform ( 1u32 ) ; < & str as WasmDescribe > :: describe ( ) ; < MouseEvent as WasmDescribe > :: describe ( ) ; } impl MouseEvent { # [ allow ( bad_style ) ] # [ doc = "The `new MouseEvent(..)` constructor, creating a new instance of `MouseEvent`\n\n[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/MouseEvent)\n\n*This API requires the following crate features to be activated: `MouseEvent`*" ] # [ allow ( clippy :: all ) ] pub fn new ( type_arg : & str ) -> Result < MouseEvent , :: wasm_bindgen :: JsValue > { # [ link ( wasm_import_module = "__wbindgen_placeholder__" ) ] # [ cfg ( all ( target_arch = "wasm32" , not ( target_os = "emscripten" ) ) ) ] extern "C" { fn __widl_f_new_MouseEvent ( type_arg : < & str as wasm_bindgen :: convert :: IntoWasmAbi > :: Abi ) -> < MouseEvent as wasm_bindgen :: convert :: FromWasmAbi > :: Abi ; } # [ cfg ( not ( all ( target_arch = "wasm32" , not ( target_os = "emscripten" ) ) ) ) ] unsafe fn __widl_f_new_MouseEvent ( type_arg : < & str as wasm_bindgen :: convert :: IntoWasmAbi > :: Abi ) -> < MouseEvent as wasm_bindgen :: convert :: FromWasmAbi > :: Abi { drop ( type_arg ) ; panic ! ( "cannot call wasm-bindgen imported functions on \ [INFO] [stderr] | --------------------- similarly named struct `MouseEvent` defined here [INFO] [stderr] | [INFO] [stderr] help: a struct with a similar name exists [INFO] [stderr] | [INFO] [stderr] 24 | impl_common_event_traits!(MouseEvent); [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 1 | use crate::event::message_event::MessageEvent; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0283]: type annotations needed [INFO] [stderr] --> src/event/mod.rs:6:34 [INFO] [stderr] | [INFO] [stderr] 6 | inner: event.unchecked_into(), [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | cannot infer type for type parameter `T` declared on the method `unchecked_into` [INFO] [stderr] | help: consider specifying the type argument in the method call: `unchecked_into::` [INFO] [stderr] | [INFO] [stderr] ::: src/event/message_event.rs:24:1 [INFO] [stderr] | [INFO] [stderr] 24 | impl_common_event_traits!(MessageEvent); [INFO] [stderr] | ---------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: cannot resolve `_: wasm_bindgen::cast::JsCast` [INFO] [stderr] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0283]: type annotations needed [INFO] [stderr] --> src/event/mod.rs:6:34 [INFO] [stderr] | [INFO] [stderr] 6 | inner: event.unchecked_into(), [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | cannot infer type for type parameter `T` declared on the method `unchecked_into` [INFO] [stderr] | help: consider specifying the type argument in the method call: `unchecked_into::` [INFO] [stderr] | [INFO] [stderr] ::: src/event/message_event.rs:24:1 [INFO] [stderr] | [INFO] [stderr] 24 | impl_common_event_traits!(MessageEvent); [INFO] [stderr] | ---------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: cannot resolve `_: wasm_bindgen::cast::JsCast` [INFO] [stderr] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: aborting due to 3 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0283, E0412. [INFO] [stderr] For more information about an error, try `rustc --explain E0283`. [INFO] [stderr] error: could not compile `arwa`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: aborting due to 3 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0283, E0412. [INFO] [stderr] For more information about an error, try `rustc --explain E0283`. [INFO] [stderr] error: could not compile `arwa`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "17e58ce5c472d536a901b98d8cd8fd899f46c2a8662e1dc3852b95d5f0e18e4f"` [INFO] running `"docker" "rm" "-f" "17e58ce5c472d536a901b98d8cd8fd899f46c2a8662e1dc3852b95d5f0e18e4f"` [INFO] [stdout] 17e58ce5c472d536a901b98d8cd8fd899f46c2a8662e1dc3852b95d5f0e18e4f