[INFO] fetching crate wasm-mt 0.1.0... [INFO] testing wasm-mt-0.1.0 against master#5d5ff84130da0d74c6ece368dbe821d8f83fa526 for pr-79296 [INFO] extracting crate wasm-mt 0.1.0 into /workspace/builds/worker-5/source [INFO] validating manifest of crates.io crate wasm-mt 0.1.0 on toolchain 5d5ff84130da0d74c6ece368dbe821d8f83fa526 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+5d5ff84130da0d74c6ece368dbe821d8f83fa526" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking crates.io crate wasm-mt 0.1.0 [INFO] finished tweaking crates.io crate wasm-mt 0.1.0 [INFO] tweaked toml for crates.io crate wasm-mt 0.1.0 written to /workspace/builds/worker-5/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+5d5ff84130da0d74c6ece368dbe821d8f83fa526" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+5d5ff84130da0d74c6ece368dbe821d8f83fa526" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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" "rustops/crates-build-env@sha256:6eabd152ff4036248d66efda456a36cb33d24b7291b33f25f75140726c88da35" "/opt/rustwide/cargo-home/bin/cargo" "+5d5ff84130da0d74c6ece368dbe821d8f83fa526" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 32c1fc4ec6623d1aa8832a2fb66674fe26163a93e1b13c4d85a4862eb5eb73ca [INFO] running `Command { std: "docker" "start" "-a" "32c1fc4ec6623d1aa8832a2fb66674fe26163a93e1b13c4d85a4862eb5eb73ca", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "32c1fc4ec6623d1aa8832a2fb66674fe26163a93e1b13c4d85a4862eb5eb73ca", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "32c1fc4ec6623d1aa8832a2fb66674fe26163a93e1b13c4d85a4862eb5eb73ca", kill_on_drop: false }` [INFO] [stdout] 32c1fc4ec6623d1aa8832a2fb66674fe26163a93e1b13c4d85a4862eb5eb73ca [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:6eabd152ff4036248d66efda456a36cb33d24b7291b33f25f75140726c88da35" "/opt/rustwide/cargo-home/bin/cargo" "+5d5ff84130da0d74c6ece368dbe821d8f83fa526" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3ad294b6466a3cf2c85e3c2a6a7d82b24cb0eccbe6009c550fc01ca12676d5a7 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "3ad294b6466a3cf2c85e3c2a6a7d82b24cb0eccbe6009c550fc01ca12676d5a7", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling syn v1.0.52 [INFO] [stderr] Compiling libc v0.2.80 [INFO] [stderr] Compiling typenum v1.12.0 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling serde_derive v1.0.117 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Compiling serde v1.0.117 [INFO] [stderr] Compiling getrandom v0.1.15 [INFO] [stderr] Compiling log v0.4.11 [INFO] [stderr] Compiling version_check v0.9.2 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.68 [INFO] [stderr] Compiling bumpalo v3.4.0 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling stable_deref_trait v1.2.0 [INFO] [stderr] Compiling nix v0.15.0 [INFO] [stderr] Compiling heapless v0.5.6 [INFO] [stderr] Compiling ppv-lite86 v0.2.10 [INFO] [stderr] Compiling build_id v0.2.1 [INFO] [stderr] Compiling nom v2.2.1 [INFO] [stderr] Compiling void v1.0.2 [INFO] [stderr] Compiling wasm-bindgen v0.2.68 [INFO] [stderr] Compiling static_assertions v1.1.0 [INFO] [stderr] Compiling once_cell v1.5.2 [INFO] [stderr] Compiling relative v0.2.2 [INFO] [stderr] Compiling metatype v0.2.0 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Compiling twox-hash v1.6.0 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Compiling procinfo v0.4.2 [INFO] [stderr] Compiling hash32 v0.1.1 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Compiling generic-array v0.12.3 [INFO] [stderr] Compiling generic-array v0.13.2 [INFO] [stderr] Compiling as-slice v0.1.4 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.68 [INFO] [stderr] Compiling palaver v0.2.8 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.68 [INFO] [stderr] Compiling serde_closure_derive v0.2.14 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.68 [INFO] [stderr] Compiling js-sys v0.3.45 [INFO] [stderr] Compiling wasm-bindgen-futures v0.4.18 [INFO] [stderr] Compiling web-sys v0.3.45 [INFO] [stderr] Compiling uuid v0.8.1 [INFO] [stderr] Compiling erased-serde v0.3.12 [INFO] [stderr] Compiling bincode v1.3.1 [INFO] [stderr] Compiling serde_closure v0.2.14 [INFO] [stderr] Compiling serde_traitobject v0.2.7 [INFO] [stderr] Compiling wasm-mt v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1m 46s [INFO] running `Command { std: "docker" "inspect" "3ad294b6466a3cf2c85e3c2a6a7d82b24cb0eccbe6009c550fc01ca12676d5a7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3ad294b6466a3cf2c85e3c2a6a7d82b24cb0eccbe6009c550fc01ca12676d5a7", kill_on_drop: false }` [INFO] [stdout] 3ad294b6466a3cf2c85e3c2a6a7d82b24cb0eccbe6009c550fc01ca12676d5a7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:6eabd152ff4036248d66efda456a36cb33d24b7291b33f25f75140726c88da35" "/opt/rustwide/cargo-home/bin/cargo" "+5d5ff84130da0d74c6ece368dbe821d8f83fa526" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 18ee5cc4007bfa421b5604a8b8b20c3f2ab95117c48f900c4edccaaa212c909d [INFO] running `Command { std: "docker" "start" "-a" "18ee5cc4007bfa421b5604a8b8b20c3f2ab95117c48f900c4edccaaa212c909d", kill_on_drop: false }` [INFO] [stderr] Compiling wasm-bindgen-test-macro v0.3.18 [INFO] [stderr] Compiling console_error_panic_hook v0.1.6 [INFO] [stderr] Compiling wasm-bindgen-test v0.3.18 [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 3.39s [INFO] running `Command { std: "docker" "inspect" "18ee5cc4007bfa421b5604a8b8b20c3f2ab95117c48f900c4edccaaa212c909d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "18ee5cc4007bfa421b5604a8b8b20c3f2ab95117c48f900c4edccaaa212c909d", kill_on_drop: false }` [INFO] [stdout] 18ee5cc4007bfa421b5604a8b8b20c3f2ab95117c48f900c4edccaaa212c909d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:6eabd152ff4036248d66efda456a36cb33d24b7291b33f25f75140726c88da35" "/opt/rustwide/cargo-home/bin/cargo" "+5d5ff84130da0d74c6ece368dbe821d8f83fa526" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] e7c0bdedc79e1b4810a77afc522a80c73aaf963b17ae529b7855f87a230e8a6a [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "e7c0bdedc79e1b4810a77afc522a80c73aaf963b17ae529b7855f87a230e8a6a", kill_on_drop: false }` [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.15s [INFO] [stderr] Doc-tests wasm-mt [INFO] [stdout] [INFO] [stdout] running 10 tests [INFO] [stdout] test src/lib.rs - (line 158) ... FAILED [INFO] [stdout] test src/lib.rs - (line 37) ... FAILED [INFO] [stdout] test src/lib.rs - (line 47) ... FAILED [INFO] [stdout] test src/lib.rs - (line 56) ... FAILED [INFO] [stdout] test src/lib.rs - (line 110) ... FAILED [INFO] [stdout] test src/lib.rs - (line 138) ... FAILED [INFO] [stdout] test src/lib.rs - (line 100) ... FAILED [INFO] [stdout] test src/lib.rs - (line 79) ... FAILED [INFO] [stdout] test src/lib.rs - (line 128) ... FAILED [INFO] [stdout] test src/lib.rs - (line 64) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - (line 158) stdout ---- [INFO] [stdout] error: unknown start of token: \u{1f525} [INFO] [stdout] --> src/lib.rs:159:1 [INFO] [stdout] | [INFO] [stdout] 3 | 🔥 serial executor: [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] error: unknown start of token: \u{1f525} [INFO] [stdout] --> src/lib.rs:168:1 [INFO] [stdout] | [INFO] [stdout] 12 | 🔥 parallel executor: [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found `executor` [INFO] [stdout] --> src/lib.rs:159:10 [INFO] [stdout] | [INFO] [stdout] 3 | 🔥 serial executor: [INFO] [stdout] | ^^^^^^^^ expected one of 8 possible tokens [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 37) stdout ---- [INFO] [stdout] error: expected one of `.`, `;`, `?`, `}`, or an operator, found `serde` [INFO] [stdout] --> src/lib.rs:39:1 [INFO] [stdout] | [INFO] [stdout] 3 | wasm-mt = "0.1" [INFO] [stdout] | - expected one of `.`, `;`, `?`, `}`, or an operator [INFO] [stdout] 4 | serde = { version = "1.0", features = ["derive"] } [INFO] [stdout] | ^^^^^ unexpected token [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 47) stdout ---- [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:51:10 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { [INFO] [stdout] | ---- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 7 | let mt = WasmMt::new(pkg_js).and_init().await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0728`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 56) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `mt` in this scope [INFO] [stdout] --> src/lib.rs:57:10 [INFO] [stdout] | [INFO] [stdout] 3 | let th = mt.thread().and_init().await.unwrap(); [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:57:10 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { [INFO] [stdout] | ---- this is not `async` [INFO] [stdout] 3 | let th = mt.thread().and_init().await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 110) stdout ---- [INFO] [stdout] error: cannot find macro `exec_js_async` in this scope [INFO] [stdout] --> src/lib.rs:111:11 [INFO] [stdout] | [INFO] [stdout] 3 | let ans = exec_js_async!(th, " [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] wasm_mt::exec_js_async [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `JsValue` [INFO] [stdout] --> src/lib.rs:117:17 [INFO] [stdout] | [INFO] [stdout] 9 | assert_eq!(ans, JsValue::from(-1)); [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[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:111:11 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { [INFO] [stdout] | ---- this is not `async` [INFO] [stdout] 3 | let ans = exec_js_async!(th, " [INFO] [stdout] | ___________^ [INFO] [stdout] 4 | | const sub = (a, b) => new Promise(resolve => { [INFO] [stdout] 5 | | setTimeout(() => resolve(a - b), 1000); [INFO] [stdout] 6 | | }); [INFO] [stdout] 7 | | return await sub(1, 2); [INFO] [stdout] 8 | | ").await?; [INFO] [stdout] | |________^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `Try`) [INFO] [stdout] --> src/lib.rs:111:11 [INFO] [stdout] | [INFO] [stdout] 2 | / fn main() { [INFO] [stdout] 3 | | let ans = exec_js_async!(th, " [INFO] [stdout] | |___________^ [INFO] [stdout] 4 | || const sub = (a, b) => new Promise(resolve => { [INFO] [stdout] 5 | || setTimeout(() => resolve(a - b), 1000); [INFO] [stdout] 6 | || }); [INFO] [stdout] 7 | || return await sub(1, 2); [INFO] [stdout] 8 | || ").await?; [INFO] [stdout] | ||_________^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 9 | | assert_eq!(ans, JsValue::from(-1)); [INFO] [stdout] 10 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Try` is not implemented for `()` [INFO] [stdout] = note: required by `from_error` [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0433, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 138) stdout ---- [INFO] [stdout] error: cannot find macro `console_ln` in this scope [INFO] [stdout] --> src/lib.rs:151:9 [INFO] [stdout] | [INFO] [stdout] 15 | console_ln!("ans: {:?}", ans); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] wasm_mt::console_ln [INFO] [stdout] [INFO] [stdout] error: cannot find macro `exec` in this scope [INFO] [stdout] --> src/lib.rs:150:19 [INFO] [stdout] | [INFO] [stdout] 14 | let ans = exec!(th, move || Ok(JsValue::from(42))).await.unwrap(); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] wasm_mt::exec [INFO] [stdout] [INFO] [stdout] error: cannot find macro `console_ln` in this scope [INFO] [stdout] --> src/lib.rs:149:9 [INFO] [stdout] | [INFO] [stdout] 13 | console_ln!("starting a thread"); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] wasm_mt::console_ln [INFO] [stdout] [INFO] [stdout] error: cannot find macro `console_ln` in this scope [INFO] [stdout] --> src/lib.rs:146:1 [INFO] [stdout] | [INFO] [stdout] 10 | console_ln!("🔥 parallel executor:"); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] wasm_mt::console_ln [INFO] [stdout] [INFO] [stdout] error: cannot find macro `console_ln` in this scope [INFO] [stdout] --> src/lib.rs:143:5 [INFO] [stdout] | [INFO] [stdout] 7 | console_ln!("ans: {:?}", ans); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] wasm_mt::console_ln [INFO] [stdout] [INFO] [stdout] error: cannot find macro `exec` in this scope [INFO] [stdout] --> src/lib.rs:142:15 [INFO] [stdout] | [INFO] [stdout] 6 | let ans = exec!(th, move || Ok(JsValue::from(42))).await?; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] wasm_mt::exec [INFO] [stdout] [INFO] [stdout] error: cannot find macro `console_ln` in this scope [INFO] [stdout] --> src/lib.rs:141:5 [INFO] [stdout] | [INFO] [stdout] 5 | console_ln!("starting a thread"); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] wasm_mt::console_ln [INFO] [stdout] [INFO] [stdout] error: cannot find macro `console_ln` in this scope [INFO] [stdout] --> src/lib.rs:139:1 [INFO] [stdout] | [INFO] [stdout] 3 | console_ln!("🔥 serial executor:"); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] wasm_mt::console_ln [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `v` in this scope [INFO] [stdout] --> src/lib.rs:140:12 [INFO] [stdout] | [INFO] [stdout] 4 | for th in &v { [INFO] [stdout] | ^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `v` in this scope [INFO] [stdout] --> src/lib.rs:147:11 [INFO] [stdout] | [INFO] [stdout] 11 | for th in v { [INFO] [stdout] | ^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `spawn_local` in this scope [INFO] [stdout] --> src/lib.rs:148:5 [INFO] [stdout] | [INFO] [stdout] 12 | spawn_local(async move { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 | use wasm_bindgen_futures::spawn_local; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:142:15 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { [INFO] [stdout] | ---- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 6 | let ans = exec!(th, move || Ok(JsValue::from(42))).await?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `Try`) [INFO] [stdout] --> src/lib.rs:142:15 [INFO] [stdout] | [INFO] [stdout] 2 | / fn main() { [INFO] [stdout] 3 | | console_ln!("🔥 serial executor:"); [INFO] [stdout] 4 | | for th in &v { [INFO] [stdout] 5 | | console_ln!("starting a thread"); [INFO] [stdout] 6 | | let ans = exec!(th, move || Ok(JsValue::from(42))).await?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] ... | [INFO] [stdout] 17 | | } [INFO] [stdout] 18 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Try` is not implemented for `()` [INFO] [stdout] = note: required by `from_error` [INFO] [stdout] [INFO] [stdout] error: aborting due to 13 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0425, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 100) stdout ---- [INFO] [stdout] error: cannot find macro `exec_js` in this scope [INFO] [stdout] --> src/lib.rs:101:11 [INFO] [stdout] | [INFO] [stdout] 3 | let ans = exec_js!(th, " [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] wasm_mt::exec_js [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `JsValue` [INFO] [stdout] --> src/lib.rs:105:17 [INFO] [stdout] | [INFO] [stdout] 7 | assert_eq!(ans, JsValue::from(3)); [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[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:101:11 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { [INFO] [stdout] | ---- this is not `async` [INFO] [stdout] 3 | let ans = exec_js!(th, " [INFO] [stdout] | ___________^ [INFO] [stdout] 4 | | const add = (a, b) => a + b; [INFO] [stdout] 5 | | return add(1, 2); [INFO] [stdout] 6 | | ").await?; [INFO] [stdout] | |________^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `Try`) [INFO] [stdout] --> src/lib.rs:101:11 [INFO] [stdout] | [INFO] [stdout] 2 | / fn main() { [INFO] [stdout] 3 | | let ans = exec_js!(th, " [INFO] [stdout] | |___________^ [INFO] [stdout] 4 | || const add = (a, b) => a + b; [INFO] [stdout] 5 | || return add(1, 2); [INFO] [stdout] 6 | || ").await?; [INFO] [stdout] | ||_________^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 7 | | assert_eq!(ans, JsValue::from(3)); [INFO] [stdout] 8 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Try` is not implemented for `()` [INFO] [stdout] = note: required by `from_error` [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0433, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 79) stdout ---- [INFO] [stdout] error: cannot find macro `exec` in this scope [INFO] [stdout] --> src/lib.rs:88:11 [INFO] [stdout] | [INFO] [stdout] 12 | let ans = exec!(th, async move || { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] wasm_mt::exec [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `JsValue` [INFO] [stdout] --> src/lib.rs:93:17 [INFO] [stdout] | [INFO] [stdout] 17 | assert_eq!(ans, JsValue::from(-1)); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 9 | use wasm_bindgen::JsValue; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:88:11 [INFO] [stdout] | [INFO] [stdout] 9 | fn main() { [INFO] [stdout] | ---- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 12 | let ans = exec!(th, async move || { [INFO] [stdout] | ___________^ [INFO] [stdout] 13 | | let c = sub(a, b).await; [INFO] [stdout] 14 | | [INFO] [stdout] 15 | | Ok(JsValue::from(c)) [INFO] [stdout] 16 | | }).await?; [INFO] [stdout] | |________^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `Try`) [INFO] [stdout] --> src/lib.rs:88:11 [INFO] [stdout] | [INFO] [stdout] 9 | / fn main() { [INFO] [stdout] 10 | | let a = 1; [INFO] [stdout] 11 | | let b = 2; [INFO] [stdout] 12 | | let ans = exec!(th, async move || { [INFO] [stdout] | |___________^ [INFO] [stdout] 13 | || let c = sub(a, b).await; [INFO] [stdout] 14 | || [INFO] [stdout] 15 | || Ok(JsValue::from(c)) [INFO] [stdout] 16 | || }).await?; [INFO] [stdout] | ||_________^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 17 | | assert_eq!(ans, JsValue::from(-1)); [INFO] [stdout] 18 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Try` is not implemented for `()` [INFO] [stdout] = note: required by `from_error` [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0433, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 128) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `mt` in this scope [INFO] [stdout] --> src/lib.rs:131:14 [INFO] [stdout] | [INFO] [stdout] 6 | let th = mt.thread().and_init().await?; [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:131:14 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { [INFO] [stdout] | ---- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 6 | let th = mt.thread().and_init().await?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `Try`) [INFO] [stdout] --> src/lib.rs:131:14 [INFO] [stdout] | [INFO] [stdout] 3 | / fn main() { [INFO] [stdout] 4 | | let mut v: Vec = vec![]; [INFO] [stdout] 5 | | for i in 0..4 { [INFO] [stdout] 6 | | let th = mt.thread().and_init().await?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 7 | | v.push(th); [INFO] [stdout] 8 | | } [INFO] [stdout] 9 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Try` is not implemented for `()` [INFO] [stdout] = note: required by `from_error` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0425, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 64) stdout ---- [INFO] [stdout] error: cannot find macro `exec` in this scope [INFO] [stdout] --> src/lib.rs:69:11 [INFO] [stdout] | [INFO] [stdout] 7 | let ans = exec!(th, move || { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] wasm_mt::exec [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `JsValue` [INFO] [stdout] --> src/lib.rs:74:17 [INFO] [stdout] | [INFO] [stdout] 12 | assert_eq!(ans, JsValue::from(3)); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 4 | use wasm_bindgen::JsValue; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:69:11 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { [INFO] [stdout] | ---- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 7 | let ans = exec!(th, move || { [INFO] [stdout] | ___________^ [INFO] [stdout] 8 | | let c = add(a, b); [INFO] [stdout] 9 | | [INFO] [stdout] 10 | | Ok(JsValue::from(c)) [INFO] [stdout] 11 | | }).await?; [INFO] [stdout] | |________^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `Try`) [INFO] [stdout] --> src/lib.rs:69:11 [INFO] [stdout] | [INFO] [stdout] 4 | / fn main() { [INFO] [stdout] 5 | | let a = 1; [INFO] [stdout] 6 | | let b = 2; [INFO] [stdout] 7 | | let ans = exec!(th, move || { [INFO] [stdout] | |___________^ [INFO] [stdout] 8 | || let c = add(a, b); [INFO] [stdout] 9 | || [INFO] [stdout] 10 | || Ok(JsValue::from(c)) [INFO] [stdout] 11 | || }).await?; [INFO] [stdout] | ||_________^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 12 | | assert_eq!(ans, JsValue::from(3)); [INFO] [stdout] 13 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Try` is not implemented for `()` [INFO] [stdout] = note: required by `from_error` [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0433, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - (line 100) [INFO] [stdout] src/lib.rs - (line 110) [INFO] [stdout] src/lib.rs - (line 128) [INFO] [stdout] src/lib.rs - (line 138) [INFO] [stdout] src/lib.rs - (line 158) [INFO] [stdout] src/lib.rs - (line 37) [INFO] [stdout] src/lib.rs - (line 47) [INFO] [stdout] src/lib.rs - (line 56) [INFO] [stdout] src/lib.rs - (line 64) [INFO] [stdout] src/lib.rs - (line 79) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 10 failed; 0 ignored; 0 measured; 0 filtered out [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `Command { std: "docker" "inspect" "e7c0bdedc79e1b4810a77afc522a80c73aaf963b17ae529b7855f87a230e8a6a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e7c0bdedc79e1b4810a77afc522a80c73aaf963b17ae529b7855f87a230e8a6a", kill_on_drop: false }` [INFO] [stdout] e7c0bdedc79e1b4810a77afc522a80c73aaf963b17ae529b7855f87a230e8a6a