[INFO] fetching crate serde-wasm-bindgen 0.6.5... [INFO] testing serde-wasm-bindgen-0.6.5 against master#caccb4d0368bd918ef6668af8e13834d07040417 for pr-146098-1 [INFO] extracting crate serde-wasm-bindgen 0.6.5 into /workspace/builds/worker-2-tc1/source [INFO] removed /workspace/builds/worker-2-tc1/source/.cargo/config.toml [INFO] started tweaking crates.io crate serde-wasm-bindgen 0.6.5 [INFO] finished tweaking crates.io crate serde-wasm-bindgen 0.6.5 [INFO] tweaked toml for crates.io crate serde-wasm-bindgen 0.6.5 written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate serde-wasm-bindgen 0.6.5 on toolchain caccb4d0368bd918ef6668af8e13834d07040417 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 60 packages to latest compatible versions [INFO] [stderr] Adding bincode v1.3.3 (available: v2.0.1) [INFO] [stderr] Adding getrandom v0.2.16 (available: v0.3.3) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded wasm-bindgen-test v0.3.54 [INFO] [stderr] Downloaded minicov v0.3.7 [INFO] [stderr] Downloaded wasm-bindgen-test-macro v0.3.54 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2f987b9c5e2a699e92af739d71ca7fffe691270d67c87f5d52ed831b67454815 [INFO] running `Command { std: "docker" "start" "-a" "2f987b9c5e2a699e92af739d71ca7fffe691270d67c87f5d52ed831b67454815", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2f987b9c5e2a699e92af739d71ca7fffe691270d67c87f5d52ed831b67454815", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2f987b9c5e2a699e92af739d71ca7fffe691270d67c87f5d52ed831b67454815", kill_on_drop: false }` [INFO] [stdout] 2f987b9c5e2a699e92af739d71ca7fffe691270d67c87f5d52ed831b67454815 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/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=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 88dac61b0bfd3f92bd7be9046d7fa18e8f2e7f88e6b94f2eacf098a2c2c82835 [INFO] running `Command { std: "docker" "start" "-a" "88dac61b0bfd3f92bd7be9046d7fa18e8f2e7f88e6b94f2eacf098a2c2c82835", kill_on_drop: false }` [INFO] [stderr] Compiling unicode-ident v1.0.19 [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.104 [INFO] [stderr] Compiling rustversion v1.0.22 [INFO] [stderr] Compiling log v0.4.28 [INFO] [stderr] Compiling bumpalo v3.19.0 [INFO] [stderr] Compiling once_cell v1.21.3 [INFO] [stderr] Compiling proc-macro2 v1.0.101 [INFO] [stderr] Compiling wasm-bindgen v0.2.104 [INFO] [stderr] Compiling quote v1.0.41 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.104 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.104 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.104 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling js-sys v0.3.81 [INFO] [stderr] Compiling serde-wasm-bindgen v0.6.5 (/opt/rustwide/workdir) [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/de.rs:82:24 [INFO] [stdout] | [INFO] [stdout] 82 | fn str_deserializer(s: &str) -> de::value::StrDeserializer { [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 82 | fn str_deserializer(s: &str) -> de::value::StrDeserializer<'_, Error> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 21.00s [INFO] running `Command { std: "docker" "inspect" "88dac61b0bfd3f92bd7be9046d7fa18e8f2e7f88e6b94f2eacf098a2c2c82835", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "88dac61b0bfd3f92bd7be9046d7fa18e8f2e7f88e6b94f2eacf098a2c2c82835", kill_on_drop: false }` [INFO] [stdout] 88dac61b0bfd3f92bd7be9046d7fa18e8f2e7f88e6b94f2eacf098a2c2c82835 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/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=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 84feae75d02909474c608ea786fbb8881195c2464eff0b06e24a4941546621c0 [INFO] running `Command { std: "docker" "start" "-a" "84feae75d02909474c608ea786fbb8881195c2464eff0b06e24a4941546621c0", kill_on_drop: false }` [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling wasm-bindgen-test-macro v0.3.54 [INFO] [stderr] Compiling unarray v0.1.4 [INFO] [stderr] Compiling bincode v1.3.3 [INFO] [stderr] Compiling serde_bytes v0.11.19 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling wasm-bindgen-futures v0.4.54 [INFO] [stderr] Compiling maplit v1.0.2 [INFO] [stderr] Compiling rand_core v0.9.3 [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/de.rs:82:24 [INFO] [stdout] | [INFO] [stdout] 82 | fn str_deserializer(s: &str) -> de::value::StrDeserializer { [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 82 | fn str_deserializer(s: &str) -> de::value::StrDeserializer<'_, Error> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling rand v0.9.2 [INFO] [stderr] Compiling rand_xorshift v0.4.0 [INFO] [stderr] Compiling rand_chacha v0.9.0 [INFO] [stderr] Compiling wasm-bindgen-test v0.3.54 [INFO] [stderr] Compiling proptest v1.8.0 [INFO] [stderr] Compiling serde-wasm-bindgen v0.6.5 (/opt/rustwide/workdir) [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/de.rs:82:24 [INFO] [stdout] | [INFO] [stdout] 82 | fn str_deserializer(s: &str) -> de::value::StrDeserializer { [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 82 | fn str_deserializer(s: &str) -> de::value::StrDeserializer<'_, Error> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 12.34s [INFO] running `Command { std: "docker" "inspect" "84feae75d02909474c608ea786fbb8881195c2464eff0b06e24a4941546621c0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "84feae75d02909474c608ea786fbb8881195c2464eff0b06e24a4941546621c0", kill_on_drop: false }` [INFO] [stdout] 84feae75d02909474c608ea786fbb8881195c2464eff0b06e24a4941546621c0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/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=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] ed2cf773c1f7b27072d40e2fe46ab14f34f58bfa0f49176241cd6bb8d748659a [INFO] running `Command { std: "docker" "start" "-a" "ed2cf773c1f7b27072d40e2fe46ab14f34f58bfa0f49176241cd6bb8d748659a", kill_on_drop: false }` [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/de.rs:82:24 [INFO] [stderr] | [INFO] [stderr] 82 | fn str_deserializer(s: &str) -> de::value::StrDeserializer { [INFO] [stderr] | ^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 82 | fn str_deserializer(s: &str) -> de::value::StrDeserializer<'_, Error> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: `serde-wasm-bindgen` (lib) generated 1 warning (run `cargo fix --lib -p serde-wasm-bindgen` to apply 1 suggestion) [INFO] [stderr] warning: `serde-wasm-bindgen` (lib test) generated 1 warning (1 duplicate) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.11s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/serde_wasm_bindgen-f1d85f2df98d711d) [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] Running tests/browser.rs (/opt/rustwide/target/debug/deps/browser-014476da7ce866ad) [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] Running tests/node.rs (/opt/rustwide/target/debug/deps/node-1c16b4774f6f7e03) [INFO] [stdout] [INFO] [stderr] Doc-tests serde_wasm_bindgen [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] [stdout] [INFO] [stdout] running 5 tests [INFO] [stdout] test src/lib.rs - (line 64) ... FAILED [INFO] [stdout] test src/lib.rs - (line 143) ... FAILED [INFO] [stdout] test src/lib.rs - (line 46) ... FAILED [INFO] [stdout] test src/lib.rs - (line 33) ... FAILED [INFO] [stdout] test src/lib.rs - preserve (line 87) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - (line 64) stdout ---- [INFO] [stdout] error: cannot find attribute `wasm_bindgen` in this scope [INFO] [stdout] --> src/lib.rs:66:3 [INFO] [stdout] | [INFO] [stdout] 5 | #[wasm_bindgen] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `wasm_bindgen` is an attribute that can be used by the derive macro `BindgenedStruct`, you might be missing a `derive` attribute [INFO] [stdout] = note: `wasm_bindgen` is in scope, but it is a crate, not an attribute [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 2 + use wasm_bindgen::prelude::wasm_bindgen; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `JsValue` in this scope [INFO] [stdout] --> src/lib.rs:67:37 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn receive_example_from_js(val: JsValue) -> Result<(), JsValue> { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use wasm_bindgen::JsValue; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `JsValue` in this scope [INFO] [stdout] --> src/lib.rs:67:60 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn receive_example_from_js(val: JsValue) -> Result<(), JsValue> { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use wasm_bindgen::JsValue; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Example` in this scope [INFO] [stdout] --> src/lib.rs:68:18 [INFO] [stdout] | [INFO] [stdout] 7 | let example: Example = serde_wasm_bindgen::from_value(val)?; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 143) stdout ---- [INFO] [stdout] error: cannot find derive macro `Serialize` in this scope [INFO] [stdout] --> src/lib.rs:145:10 [INFO] [stdout] | [INFO] [stdout] 5 | #[derive(Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 2 + use serde::Serialize; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Deserialize` in this scope [INFO] [stdout] --> src/lib.rs:145:21 [INFO] [stdout] | [INFO] [stdout] 5 | #[derive(Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 2 + use serde::Deserialize; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `serde` in this scope [INFO] [stdout] --> src/lib.rs:149:7 [INFO] [stdout] | [INFO] [stdout] 9 | #[serde(with = "serde_wasm_bindgen::preserve")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `serde` is an attribute that can be used by the derive macros `Deserialize` and `Serialize`, you might be missing a `derive` attribute [INFO] [stdout] = note: `serde` is in scope, but it is a crate, not an attribute [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `serde` in this scope [INFO] [stdout] --> src/lib.rs:152:7 [INFO] [stdout] | [INFO] [stdout] 12 | #[serde(with = "serde_wasm_bindgen::preserve")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `serde` is an attribute that can be used by the derive macros `Deserialize` and `Serialize`, you might be missing a `derive` attribute [INFO] [stdout] = note: `serde` is in scope, but it is a crate, not an attribute [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `JsValue` in this scope [INFO] [stdout] --> src/lib.rs:153:36 [INFO] [stdout] | [INFO] [stdout] 13 | pub preserved_arbitrary_value: JsValue, [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use wasm_bindgen::JsValue; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 46) stdout ---- [INFO] [stdout] error: cannot find attribute `wasm_bindgen` in this scope [INFO] [stdout] --> src/lib.rs:48:3 [INFO] [stdout] | [INFO] [stdout] 5 | #[wasm_bindgen] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `wasm_bindgen` is an attribute that can be used by the derive macro `BindgenedStruct`, you might be missing a `derive` attribute [INFO] [stdout] = note: `wasm_bindgen` is in scope, but it is a crate, not an attribute [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 2 + use wasm_bindgen::prelude::wasm_bindgen; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `JsValue` in this scope [INFO] [stdout] --> src/lib.rs:49:39 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn send_example_to_js() -> Result { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use wasm_bindgen::JsValue; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `JsValue` in this scope [INFO] [stdout] --> src/lib.rs:49:48 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn send_example_to_js() -> Result { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use wasm_bindgen::JsValue; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `HashMap` [INFO] [stdout] --> src/lib.rs:50:22 [INFO] [stdout] | [INFO] [stdout] 7 | let mut field1 = HashMap::new(); [INFO] [stdout] | ^^^^^^^ use of undeclared type `HashMap` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use std::collections::HashMap; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Example` in this scope [INFO] [stdout] --> src/lib.rs:53:19 [INFO] [stdout] | [INFO] [stdout] 10 | let example = Example { [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: E0412, E0422, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 33) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `HashMap` in this scope [INFO] [stdout] --> src/lib.rs:38:17 [INFO] [stdout] | [INFO] [stdout] 7 | pub field1: HashMap, [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use std::collections::HashMap; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - preserve (line 87) stdout ---- [INFO] [stdout] Test executable failed (exit status: 101). [INFO] [stdout] [INFO] [stdout] stderr: [INFO] [stdout] [INFO] [stdout] thread 'main' (61) panicked at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/js-sys-0.3.81/src/lib.rs:6636:1: [INFO] [stdout] cannot call wasm-bindgen imported functions on non-wasm targets [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x58e899dd2132 - std::backtrace_rs::backtrace::libunwind::trace::h76861be37b31432e [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x58e899dd2132 - std::backtrace_rs::backtrace::trace_unsynchronized::h58d4003082192c17 [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x58e899dd2132 - std::sys::backtrace::_print_fmt::hfe5857a399620d2a [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/std/src/sys/backtrace.rs:66:9 [INFO] [stdout] 3: 0x58e899dd2132 - ::fmt::h52160e9da139e442 [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/std/src/sys/backtrace.rs:39:26 [INFO] [stdout] 4: 0x58e899de0e3f - core::fmt::rt::Argument::fmt::h66fe6fef9ecca14a [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/core/src/fmt/rt.rs:173:76 [INFO] [stdout] 5: 0x58e899de0e3f - core::fmt::write::hf09a056a304e021a [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/core/src/fmt/mod.rs:1468:25 [INFO] [stdout] 6: 0x58e899db05b1 - std::io::default_write_fmt::h7567c5950fb0173c [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x58e899db05b1 - std::io::Write::write_fmt::h361c7127187cda65 [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/std/src/io/mod.rs:1954:13 [INFO] [stdout] 8: 0x58e899db5652 - std::sys::backtrace::BacktraceLock::print::h15104dbcf0fd1f14 [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/std/src/sys/backtrace.rs:42:9 [INFO] [stdout] 9: 0x58e899db6eac - std::panicking::default_hook::{{closure}}::h0fa6cd8dbe0dd76b [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/std/src/panicking.rs:301:27 [INFO] [stdout] 10: 0x58e899db6d06 - std::panicking::default_hook::h8d20506cf72e4831 [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/std/src/panicking.rs:328:9 [INFO] [stdout] 11: 0x58e899db7535 - std::panicking::panic_with_hook::h746880a052e02c85 [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/std/src/panicking.rs:834:13 [INFO] [stdout] 12: 0x58e899db7396 - std::panicking::panic_handler::{{closure}}::h14b95830f89d14b3 [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/std/src/panicking.rs:700:13 [INFO] [stdout] 13: 0x58e899db5789 - std::sys::backtrace::__rust_end_short_backtrace::h7ddaac0e9609a83d [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/std/src/sys/backtrace.rs:174:18 [INFO] [stdout] 14: 0x58e899da511d - __rustc[76f7e7187978e2f8]::rust_begin_unwind [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/std/src/panicking.rs:698:5 [INFO] [stdout] 15: 0x58e899de3d10 - core::panicking::panic_fmt::heb245a301f4395db [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/core/src/panicking.rs:78:14 [INFO] [stdout] 16: 0x58e899da4c34 - js_sys::Int8Array::new_with_length::__wbg_newwithlength_6e5d3cca5e139ba2::h5d2b55a093f1d596 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/js-sys-0.3.81/src/lib.rs:6341:9 [INFO] [stdout] 17: 0x58e899da4bc4 - js_sys::Int8Array::new_with_length::h54f0544f4047ea7f [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/js-sys-0.3.81/src/lib.rs:6341:9 [INFO] [stdout] 18: 0x58e899da4aac - rust_out::main::_doctest_main_src_lib_rs_87_0::h4c1211d21aa18f7a [INFO] [stdout] 19: 0x58e899da4a96 - rust_out::main::h2c0b889d96022a4f [INFO] [stdout] 20: 0x58e899da4a13 - core::ops::function::FnOnce::call_once::h064b3222b538a73a [INFO] [stdout] 21: 0x58e899da49f6 - std::sys::backtrace::__rust_begin_short_backtrace::h5b0a4898ae968de4 [INFO] [stdout] 22: 0x58e899da49d9 - std::rt::lang_start::{{closure}}::h6185b2e9f14a2cbb [INFO] [stdout] 23: 0x58e899db16c0 - core::ops::function::impls:: for &F>::call_once::h92f7271baace0227 [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/core/src/ops/function.rs:287:21 [INFO] [stdout] 24: 0x58e899db16c0 - std::panicking::catch_unwind::do_call::hab80bc7615f9a56f [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/std/src/panicking.rs:590:40 [INFO] [stdout] 25: 0x58e899db16c0 - std::panicking::catch_unwind::h44920ff533ed11dd [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/std/src/panicking.rs:553:19 [INFO] [stdout] 26: 0x58e899db16c0 - std::panic::catch_unwind::hbc4760794652046f [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/std/src/panic.rs:359:14 [INFO] [stdout] 27: 0x58e899db16c0 - std::rt::lang_start_internal::{{closure}}::h017b9ee7d9dfccf2 [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/std/src/rt.rs:175:24 [INFO] [stdout] 28: 0x58e899db16c0 - std::panicking::catch_unwind::do_call::h5c448dae61c3a22b [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/std/src/panicking.rs:590:40 [INFO] [stdout] 29: 0x58e899db16c0 - std::panicking::catch_unwind::ha3a2750d16137715 [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/std/src/panicking.rs:553:19 [INFO] [stdout] 30: 0x58e899db16c0 - std::panic::catch_unwind::ha56344eb931bca1a [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/std/src/panic.rs:359:14 [INFO] [stdout] 31: 0x58e899db16c0 - std::rt::lang_start_internal::h4e6c18fadc4e7470 [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/std/src/rt.rs:171:5 [INFO] [stdout] 32: 0x58e899da49c1 - std::rt::lang_start::hc4342c866dfc26c3 [INFO] [stdout] 33: 0x58e899da4ae5 - main [INFO] [stdout] 34: 0x7d6bd5c7b1ca - [INFO] [stdout] 35: 0x7d6bd5c7b28b - __libc_start_main [INFO] [stdout] 36: 0x58e899da48d5 - _start [INFO] [stdout] 37: 0x0 - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - (line 143) [INFO] [stdout] src/lib.rs - (line 33) [INFO] [stdout] src/lib.rs - (line 46) [INFO] [stdout] src/lib.rs - (line 64) [INFO] [stdout] src/lib.rs - preserve (line 87) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 5 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.53s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "ed2cf773c1f7b27072d40e2fe46ab14f34f58bfa0f49176241cd6bb8d748659a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ed2cf773c1f7b27072d40e2fe46ab14f34f58bfa0f49176241cd6bb8d748659a", kill_on_drop: false }` [INFO] [stdout] ed2cf773c1f7b27072d40e2fe46ab14f34f58bfa0f49176241cd6bb8d748659a