[INFO] fetching crate custom-elements 0.2.0... [INFO] testing custom-elements-0.2.0 against beta-2022-04-10 for beta-1.61-1 [INFO] extracting crate custom-elements 0.2.0 into /workspace/builds/worker-98/source [INFO] validating manifest of crates.io crate custom-elements 0.2.0 on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate custom-elements 0.2.0 [INFO] finished tweaking crates.io crate custom-elements 0.2.0 [INFO] tweaked toml for crates.io crate custom-elements 0.2.0 written to /workspace/builds/worker-98/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-98/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-98/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" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5b3c7ef0b87d106e69938b80cd9c6b2352ef595b47cf79cd10aabaae005fb623 [INFO] running `Command { std: "docker" "start" "-a" "5b3c7ef0b87d106e69938b80cd9c6b2352ef595b47cf79cd10aabaae005fb623", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5b3c7ef0b87d106e69938b80cd9c6b2352ef595b47cf79cd10aabaae005fb623", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5b3c7ef0b87d106e69938b80cd9c6b2352ef595b47cf79cd10aabaae005fb623", kill_on_drop: false }` [INFO] [stdout] 5b3c7ef0b87d106e69938b80cd9c6b2352ef595b47cf79cd10aabaae005fb623 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-98/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-98/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" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 78713664384a145641cd673fc17b1f7a17e80d530bc5fbd563a3dadef4da5809 [INFO] running `Command { std: "docker" "start" "-a" "78713664384a145641cd673fc17b1f7a17e80d530bc5fbd563a3dadef4da5809", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling proc-macro2 v1.0.37 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling log v0.4.16 [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.80 [INFO] [stderr] Compiling syn v1.0.91 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling bumpalo v3.9.1 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling wasm-bindgen v0.2.80 [INFO] [stderr] Compiling quote v1.0.18 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.80 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.80 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.80 [INFO] [stderr] Compiling js-sys v0.3.57 [INFO] [stderr] Compiling web-sys v0.3.57 [INFO] [stderr] Compiling custom-elements v0.2.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: static variable `HtmlElementConstructor` should have an upper case name [INFO] [stdout] --> src/lib.rs:308:16 [INFO] [stdout] | [INFO] [stdout] 308 | pub static HtmlElementConstructor: js_sys::Function; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `HTML_ELEMENT_CONSTRUCTOR` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 22.80s [INFO] running `Command { std: "docker" "inspect" "78713664384a145641cd673fc17b1f7a17e80d530bc5fbd563a3dadef4da5809", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "78713664384a145641cd673fc17b1f7a17e80d530bc5fbd563a3dadef4da5809", kill_on_drop: false }` [INFO] [stdout] 78713664384a145641cd673fc17b1f7a17e80d530bc5fbd563a3dadef4da5809 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-98/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-98/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" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e725e58fc76e5c9bce4cef0545874676eed3bfea586f598e54f0bbe4c81bc4a2 [INFO] running `Command { std: "docker" "start" "-a" "e725e58fc76e5c9bce4cef0545874676eed3bfea586f598e54f0bbe4c81bc4a2", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stdout] warning: static variable `HtmlElementConstructor` should have an upper case name [INFO] [stdout] --> src/lib.rs:308:16 [INFO] [stdout] | [INFO] [stdout] 308 | pub static HtmlElementConstructor: js_sys::Function; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `HTML_ELEMENT_CONSTRUCTOR` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling custom-elements v0.2.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: static variable `HtmlElementConstructor` should have an upper case name [INFO] [stdout] --> src/lib.rs:308:16 [INFO] [stdout] | [INFO] [stdout] 308 | pub static HtmlElementConstructor: js_sys::Function; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `HTML_ELEMENT_CONSTRUCTOR` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.81s [INFO] [stderr] Executable unittests src/lib.rs (/opt/rustwide/target/debug/deps/custom_elements-88c1ef638027b803) [INFO] running `Command { std: "docker" "inspect" "e725e58fc76e5c9bce4cef0545874676eed3bfea586f598e54f0bbe4c81bc4a2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e725e58fc76e5c9bce4cef0545874676eed3bfea586f598e54f0bbe4c81bc4a2", kill_on_drop: false }` [INFO] [stdout] e725e58fc76e5c9bce4cef0545874676eed3bfea586f598e54f0bbe4c81bc4a2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-98/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-98/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" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 5fd4ca689c20df8ca928a7fbeb5fe36a0bd446362e7394c31d0f0d51f1d4bf91 [INFO] running `Command { std: "docker" "start" "-a" "5fd4ca689c20df8ca928a7fbeb5fe36a0bd446362e7394c31d0f0d51f1d4bf91", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] warning: static variable `HtmlElementConstructor` should have an upper case name [INFO] [stderr] --> src/lib.rs:308:16 [INFO] [stderr] | [INFO] [stderr] 308 | pub static HtmlElementConstructor: js_sys::Function; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `HTML_ELEMENT_CONSTRUCTOR` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `custom-elements` (lib) generated 1 warning [INFO] [stderr] warning: `custom-elements` (lib test) generated 1 warning (1 duplicate) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.13s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/custom_elements-88c1ef638027b803) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests custom-elements [INFO] [stdout] [INFO] [stdout] running 3 tests [INFO] [stdout] test src/lib.rs - CustomElement::superclass (line 113) ... FAILED [INFO] [stdout] test src/lib.rs - CustomElement::define (line 133) ... FAILED [INFO] [stdout] test src/lib.rs - (line 6) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - CustomElement::superclass (line 113) stdout ---- [INFO] [stdout] error: cannot find attribute `wasm_bindgen` in this scope [INFO] [stdout] --> src/lib.rs:114:3 [INFO] [stdout] | [INFO] [stdout] 3 | #[wasm_bindgen] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this attribute macro: [INFO] [stdout] wasm_bindgen::prelude::wasm_bindgen [INFO] [stdout] = note: `wasm_bindgen` is in scope, but it is a crate, not an attribute [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `wasm_bindgen` in this scope [INFO] [stdout] --> src/lib.rs:116:7 [INFO] [stdout] | [INFO] [stdout] 5 | #[wasm_bindgen(js_name = HTMLParagraphElement, js_namespace = window)] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this attribute macro: [INFO] [stdout] wasm_bindgen::prelude::wasm_bindgen [INFO] [stdout] = note: `wasm_bindgen` is in scope, but it is a crate, not an attribute [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `CustomElement` in this scope [INFO] [stdout] --> src/lib.rs:119:6 [INFO] [stdout] | [INFO] [stdout] 8 | impl CustomElement for MyComponent { [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait [INFO] [stdout] | [INFO] [stdout] 2 | use custom_elements::CustomElement; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MyComponent` in this scope [INFO] [stdout] --> src/lib.rs:119:24 [INFO] [stdout] | [INFO] [stdout] 8 | impl CustomElement for MyComponent { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0405, E0412. [INFO] [stdout] For more information about an error, try `rustc --explain E0405`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - CustomElement::define (line 133) stdout ---- [INFO] [stdout] error: non-item in item list [INFO] [stdout] --> src/lib.rs:134:53 [INFO] [stdout] | [INFO] [stdout] 3 | impl CustomElement for MyCustomElement { /* ... */ */} [INFO] [stdout] | - ^ - item list ends here [INFO] [stdout] | | | [INFO] [stdout] | | non-item starts here [INFO] [stdout] | item list starts here [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `wasm_bindgen` in this scope [INFO] [stdout] --> src/lib.rs:135:3 [INFO] [stdout] | [INFO] [stdout] 4 | #[wasm_bindgen] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this attribute macro: [INFO] [stdout] wasm_bindgen::prelude::wasm_bindgen [INFO] [stdout] = note: `wasm_bindgen` is in scope, but it is a crate, not an attribute [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MyCustomElement` [INFO] [stdout] --> src/lib.rs:137:5 [INFO] [stdout] | [INFO] [stdout] 6 | MyCustomElement::define("my-component"); [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `MyCustomElement` [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `CustomElement` in this scope [INFO] [stdout] --> src/lib.rs:134:6 [INFO] [stdout] | [INFO] [stdout] 3 | impl CustomElement for MyCustomElement { /* ... */ */} [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait [INFO] [stdout] | [INFO] [stdout] 2 | use custom_elements::CustomElement; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MyCustomElement` in this scope [INFO] [stdout] --> src/lib.rs:134:24 [INFO] [stdout] | [INFO] [stdout] 3 | impl CustomElement for MyCustomElement { /* ... */ */} [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0405, E0412, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0405`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 6) stdout ---- [INFO] [stdout] error: cannot find attribute `wasm_bindgen` in this scope [INFO] [stdout] --> src/lib.rs:43:3 [INFO] [stdout] | [INFO] [stdout] 40 | #[wasm_bindgen] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this attribute macro: [INFO] [stdout] wasm_bindgen::prelude::wasm_bindgen [INFO] [stdout] = note: `wasm_bindgen` is in scope, but it is a crate, not an attribute [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MyWebComponent` [INFO] [stdout] --> src/lib.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 42 | MyWebComponent::define("my-component"); [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `MyWebComponent` [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `CustomElement` in this scope [INFO] [stdout] --> src/lib.rs:7:6 [INFO] [stdout] | [INFO] [stdout] 4 | impl CustomElement for MyWebComponent { [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait [INFO] [stdout] | [INFO] [stdout] 2 | use custom_elements::CustomElement; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MyWebComponent` in this scope [INFO] [stdout] --> src/lib.rs:7:24 [INFO] [stdout] | [INFO] [stdout] 4 | impl CustomElement for MyWebComponent { [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HtmlElement` in this scope [INFO] [stdout] --> src/lib.rs:8:40 [INFO] [stdout] | [INFO] [stdout] 5 | fn inject_children(&mut self, this: &HtmlElement) { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use web_sys::HtmlElement; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `inject_style` in this scope [INFO] [stdout] --> src/lib.rs:9:7 [INFO] [stdout] | [INFO] [stdout] 6 | inject_style(&this, "p { color: green; }"); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 | use custom_elements::inject_style; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HtmlElement` in this scope [INFO] [stdout] --> src/lib.rs:20:15 [INFO] [stdout] | [INFO] [stdout] 17 | _this: &HtmlElement, [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use web_sys::HtmlElement; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HtmlElement` in this scope [INFO] [stdout] --> src/lib.rs:30:44 [INFO] [stdout] | [INFO] [stdout] 27 | fn connected_callback(&mut self, _this: &HtmlElement) { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use web_sys::HtmlElement; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `log` in this scope [INFO] [stdout] --> src/lib.rs:31:7 [INFO] [stdout] | [INFO] [stdout] 28 | log("connected"); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 | use js_sys::Math::log; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HtmlElement` in this scope [INFO] [stdout] --> src/lib.rs:34:47 [INFO] [stdout] | [INFO] [stdout] 31 | fn disconnected_callback(&mut self, _this: &HtmlElement) { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use web_sys::HtmlElement; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `log` in this scope [INFO] [stdout] --> src/lib.rs:35:7 [INFO] [stdout] | [INFO] [stdout] 32 | log("disconnected"); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 | use js_sys::Math::log; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HtmlElement` in this scope [INFO] [stdout] --> src/lib.rs:38:42 [INFO] [stdout] | [INFO] [stdout] 35 | fn adopted_callback(&mut self, _this: &HtmlElement) { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use web_sys::HtmlElement; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `log` in this scope [INFO] [stdout] --> src/lib.rs:39:7 [INFO] [stdout] | [INFO] [stdout] 36 | log("adopted"); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 | use js_sys::Math::log; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 13 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0405, E0412, E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0405`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - (line 6) [INFO] [stdout] src/lib.rs - CustomElement::define (line 133) [INFO] [stdout] src/lib.rs - CustomElement::superclass (line 113) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 3 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.33s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `Command { std: "docker" "inspect" "5fd4ca689c20df8ca928a7fbeb5fe36a0bd446362e7394c31d0f0d51f1d4bf91", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5fd4ca689c20df8ca928a7fbeb5fe36a0bd446362e7394c31d0f0d51f1d4bf91", kill_on_drop: false }` [INFO] [stdout] 5fd4ca689c20df8ca928a7fbeb5fe36a0bd446362e7394c31d0f0d51f1d4bf91