[INFO] fetching crate wasm-mt 0.1.1... [INFO] testing wasm-mt-0.1.1 against try#ce59db7a1b1b012fb2793c4641c1bdecad7a128b for pr-85530 [INFO] extracting crate wasm-mt 0.1.1 into /workspace/builds/worker-0/source [INFO] validating manifest of crates.io crate wasm-mt 0.1.1 on toolchain ce59db7a1b1b012fb2793c4641c1bdecad7a128b [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+ce59db7a1b1b012fb2793c4641c1bdecad7a128b" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate wasm-mt 0.1.1 [INFO] finished tweaking crates.io crate wasm-mt 0.1.1 [INFO] tweaked toml for crates.io crate wasm-mt 0.1.1 written to /workspace/builds/worker-0/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+ce59db7a1b1b012fb2793c4641c1bdecad7a128b" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+ce59db7a1b1b012fb2793c4641c1bdecad7a128b" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "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" "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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+ce59db7a1b1b012fb2793c4641c1bdecad7a128b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 677686c2b6313011ec4dff5f033224cda751e4d4655f4536cfc14dae83a4aeca [INFO] running `Command { std: "docker" "start" "-a" "677686c2b6313011ec4dff5f033224cda751e4d4655f4536cfc14dae83a4aeca", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "677686c2b6313011ec4dff5f033224cda751e4d4655f4536cfc14dae83a4aeca", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "677686c2b6313011ec4dff5f033224cda751e4d4655f4536cfc14dae83a4aeca", kill_on_drop: false }` [INFO] [stdout] 677686c2b6313011ec4dff5f033224cda751e4d4655f4536cfc14dae83a4aeca [INFO] running `Command { std: "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" "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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+ce59db7a1b1b012fb2793c4641c1bdecad7a128b" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 21bffca6ffc221ebf6e5dae36168b1d5f14236e02c3f0f5a5cb803bc31f14f7d [INFO] running `Command { std: "docker" "start" "-a" "21bffca6ffc221ebf6e5dae36168b1d5f14236e02c3f0f5a5cb803bc31f14f7d", kill_on_drop: false }` [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling typenum v1.13.0 [INFO] [stderr] Compiling libc v0.2.95 [INFO] [stderr] Compiling version_check v0.9.3 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.74 [INFO] [stderr] Compiling bumpalo v3.7.0 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling nix v0.15.0 [INFO] [stderr] Compiling heapless v0.5.6 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling stable_deref_trait v1.2.0 [INFO] [stderr] Compiling void v1.0.2 [INFO] [stderr] Compiling build_id v0.2.1 [INFO] [stderr] Compiling wasm-bindgen v0.2.74 [INFO] [stderr] Compiling nom v2.2.1 [INFO] [stderr] Compiling static_assertions v1.1.0 [INFO] [stderr] Compiling once_cell v1.7.2 [INFO] [stderr] Compiling relative v0.2.2 [INFO] [stderr] Compiling metatype v0.2.0 [INFO] [stderr] Compiling proc-macro2 v1.0.27 [INFO] [stderr] Compiling twox-hash v1.6.0 [INFO] [stderr] Compiling hash32 v0.1.1 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Compiling syn v1.0.72 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Compiling procinfo v0.4.2 [INFO] [stderr] Compiling generic-array v0.13.3 [INFO] [stderr] Compiling generic-array v0.12.4 [INFO] [stderr] Compiling as-slice v0.1.5 [INFO] [stderr] Compiling getrandom v0.2.3 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.74 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.74 [INFO] [stderr] Compiling palaver v0.2.8 [INFO] [stderr] Compiling serde_derive v1.0.126 [INFO] [stderr] Compiling serde_closure_derive v0.2.14 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.74 [INFO] [stderr] Compiling js-sys v0.3.51 [INFO] [stderr] Compiling serde v1.0.126 [INFO] [stderr] Compiling web-sys v0.3.51 [INFO] [stderr] Compiling wasm-bindgen-futures v0.4.24 [INFO] [stderr] Compiling uuid v0.8.2 [INFO] [stderr] Compiling erased-serde v0.3.15 [INFO] [stderr] Compiling bincode v1.3.3 [INFO] [stderr] Compiling serde_closure v0.2.14 [INFO] [stderr] Compiling serde_traitobject v0.2.7 [INFO] [stderr] Compiling wasm-mt v0.1.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 45.71s [INFO] running `Command { std: "docker" "inspect" "21bffca6ffc221ebf6e5dae36168b1d5f14236e02c3f0f5a5cb803bc31f14f7d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "21bffca6ffc221ebf6e5dae36168b1d5f14236e02c3f0f5a5cb803bc31f14f7d", kill_on_drop: false }` [INFO] [stdout] 21bffca6ffc221ebf6e5dae36168b1d5f14236e02c3f0f5a5cb803bc31f14f7d [INFO] running `Command { std: "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" "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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+ce59db7a1b1b012fb2793c4641c1bdecad7a128b" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6f8a28199ea1ce9826c0faaf45792ca2f19a92a6f264ab1fb7faebbf38c1fa2d [INFO] running `Command { std: "docker" "start" "-a" "6f8a28199ea1ce9826c0faaf45792ca2f19a92a6f264ab1fb7faebbf38c1fa2d", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling scoped-tls v1.0.0 [INFO] [stderr] Compiling wasm-bindgen-test-macro v0.3.24 [INFO] [stderr] Compiling console_error_panic_hook v0.1.6 [INFO] [stderr] Compiling wasm-bindgen-test v0.3.24 [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1.48s [INFO] running `Command { std: "docker" "inspect" "6f8a28199ea1ce9826c0faaf45792ca2f19a92a6f264ab1fb7faebbf38c1fa2d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6f8a28199ea1ce9826c0faaf45792ca2f19a92a6f264ab1fb7faebbf38c1fa2d", kill_on_drop: false }` [INFO] [stdout] 6f8a28199ea1ce9826c0faaf45792ca2f19a92a6f264ab1fb7faebbf38c1fa2d [INFO] running `Command { std: "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" "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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+ce59db7a1b1b012fb2793c4641c1bdecad7a128b" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 0de952aea4258c9de170372f2983c372f3b95951a87e7491aef77f34d6334c2a [INFO] running `Command { std: "docker" "start" "-a" "0de952aea4258c9de170372f2983c372f3b95951a87e7491aef77f34d6334c2a", kill_on_drop: false }` [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.05s [INFO] [stderr] Doc-tests wasm-mt [INFO] [stdout] [INFO] [stdout] running 8 tests [INFO] [stdout] test src/lib.rs - (line 64) ... FAILED [INFO] [stdout] test src/lib.rs - (line 55) ... FAILED [INFO] [stdout] test src/lib.rs - (line 87) ... FAILED [INFO] [stdout] test src/lib.rs - (line 108) ... FAILED [INFO] [stdout] test src/lib.rs - (line 72) ... FAILED [INFO] [stdout] test src/lib.rs - (line 136) ... FAILED [INFO] [stdout] test src/lib.rs - (line 146) ... FAILED [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] [stdout] test src/lib.rs - (line 118) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - (line 64) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `mt` in this scope [INFO] [stdout] --> src/lib.rs:65: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:65:10 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_64_0() { [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 55) stdout ---- [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:59:10 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_55_0() { [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 87) stdout ---- [INFO] [stdout] error: cannot find macro `exec` in this scope [INFO] [stdout] --> src/lib.rs:96: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:101: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:96:11 [INFO] [stdout] | [INFO] [stdout] 9 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_87_0() { [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 `FromResidual`) [INFO] [stdout] --> src/lib.rs:100:9 [INFO] [stdout] | [INFO] [stdout] 9 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_87_0() { [INFO] [stdout] | ______________________________________- [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] 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 | | } _doctest_main_src_lib_rs_87_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] = note: required by `from_residual` [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 108) stdout ---- [INFO] [stdout] error: cannot find macro `exec_js` in this scope [INFO] [stdout] --> src/lib.rs:109: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:113: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:109:11 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_108_0() { [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 `FromResidual`) [INFO] [stdout] --> src/lib.rs:112:9 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_108_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | let ans = exec_js!(th, " [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 | | } _doctest_main_src_lib_rs_108_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] = note: required by `from_residual` [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 72) stdout ---- [INFO] [stdout] error: cannot find macro `exec` in this scope [INFO] [stdout] --> src/lib.rs:77: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:82: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:77:11 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_72_0() { [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 `FromResidual`) [INFO] [stdout] --> src/lib.rs:81:9 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_72_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 5 | | let a = 1; [INFO] [stdout] 6 | | let b = 2; [INFO] [stdout] 7 | | let ans = exec!(th, move || { [INFO] [stdout] ... | [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 | | } _doctest_main_src_lib_rs_72_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] = note: required by `from_residual` [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 136) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `mt` in this scope [INFO] [stdout] --> src/lib.rs:139: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:139:14 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_136_0() { [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 `FromResidual`) [INFO] [stdout] --> src/lib.rs:139:42 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_136_0() { [INFO] [stdout] | ______________________________________- [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 | | } _doctest_main_src_lib_rs_136_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] = note: required by `from_residual` [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 146) stdout ---- [INFO] [stdout] error: cannot find macro `console_ln` in this scope [INFO] [stdout] --> src/lib.rs:159: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:158: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:157: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:154: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:151: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:150: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:149: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:147: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:148: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:155: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:156: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:150:15 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_146_0() { [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 `FromResidual`) [INFO] [stdout] --> src/lib.rs:150:61 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_146_0() { [INFO] [stdout] | ______________________________________- [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 | | } _doctest_main_src_lib_rs_146_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] = note: required by `from_residual` [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 118) stdout ---- [INFO] [stdout] error: cannot find macro `exec_js_async` in this scope [INFO] [stdout] --> src/lib.rs:119: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:125: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:119:11 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_118_0() { [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 `FromResidual`) [INFO] [stdout] --> src/lib.rs:124:9 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_118_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | let ans = exec_js_async!(th, " [INFO] [stdout] 4 | | const sub = (a, b) => new Promise(resolve => { [INFO] [stdout] 5 | | setTimeout(() => resolve(a - b), 1000); [INFO] [stdout] ... | [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 | | } _doctest_main_src_lib_rs_118_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] = note: required by `from_residual` [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 108) [INFO] [stdout] src/lib.rs - (line 118) [INFO] [stdout] src/lib.rs - (line 136) [INFO] [stdout] src/lib.rs - (line 146) [INFO] [stdout] src/lib.rs - (line 55) [INFO] [stdout] src/lib.rs - (line 64) [INFO] [stdout] src/lib.rs - (line 72) [INFO] [stdout] src/lib.rs - (line 87) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 8 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.43s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "0de952aea4258c9de170372f2983c372f3b95951a87e7491aef77f34d6334c2a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0de952aea4258c9de170372f2983c372f3b95951a87e7491aef77f34d6334c2a", kill_on_drop: false }` [INFO] [stdout] 0de952aea4258c9de170372f2983c372f3b95951a87e7491aef77f34d6334c2a