[INFO] fetching crate napi_async_local 0.2.0... [INFO] testing napi_async_local-0.2.0 against master#c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38 for pr-146098-8 [INFO] extracting crate napi_async_local 0.2.0 into /workspace/builds/worker-1-tc1/source [INFO] started tweaking crates.io crate napi_async_local 0.2.0 [INFO] finished tweaking crates.io crate napi_async_local 0.2.0 [INFO] tweaked toml for crates.io crate napi_async_local 0.2.0 written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate napi_async_local 0.2.0 on toolchain c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "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" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 29 packages to latest compatible versions [INFO] [stderr] Adding napi v2.16.17 (available: v3.5.2) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded napi v2.16.17 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b4e4de87d812bc7b3b2bae54ff69273d0fb88981f1e773ef2fe1be9d351c997b [INFO] running `Command { std: "docker" "start" "-a" "b4e4de87d812bc7b3b2bae54ff69273d0fb88981f1e773ef2fe1be9d351c997b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b4e4de87d812bc7b3b2bae54ff69273d0fb88981f1e773ef2fe1be9d351c997b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b4e4de87d812bc7b3b2bae54ff69273d0fb88981f1e773ef2fe1be9d351c997b", kill_on_drop: false }` [INFO] [stdout] b4e4de87d812bc7b3b2bae54ff69273d0fb88981f1e773ef2fe1be9d351c997b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d813d07507348088cca0a4a983fdc939b501a2dfb6ea12bdffd2eb06e89e34ca [INFO] running `Command { std: "docker" "start" "-a" "d813d07507348088cca0a4a983fdc939b501a2dfb6ea12bdffd2eb06e89e34ca", kill_on_drop: false }` [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling ctor v0.2.9 [INFO] [stderr] Compiling napi-sys v2.4.0 [INFO] [stderr] Compiling bitflags v2.10.0 [INFO] [stderr] Compiling napi v2.16.17 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling napi_async_local v0.2.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: variant `Object` is never constructed [INFO] [stdout] --> src/js_rc/root.rs:17:3 [INFO] [stdout] | [INFO] [stdout] 16 | pub enum RootObjectType { [INFO] [stdout] | -------------- variant in this enum [INFO] [stdout] 17 | Object, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `count` is never read [INFO] [stdout] --> src/js_rc/root.rs:24:7 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct RootRef { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 23 | pub raw_ref: sys::napi_ref, [INFO] [stdout] 24 | pub count: Arc, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RootRef` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new_object`, `clone`, and `get` are never used [INFO] [stdout] --> src/js_rc/root.rs:33:10 [INFO] [stdout] | [INFO] [stdout] 28 | impl RootRef { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn new_object(env: &Env) -> napi::Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 92 | pub fn clone( [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 105 | pub fn get( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 8.19s [INFO] running `Command { std: "docker" "inspect" "d813d07507348088cca0a4a983fdc939b501a2dfb6ea12bdffd2eb06e89e34ca", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d813d07507348088cca0a4a983fdc939b501a2dfb6ea12bdffd2eb06e89e34ca", kill_on_drop: false }` [INFO] [stdout] d813d07507348088cca0a4a983fdc939b501a2dfb6ea12bdffd2eb06e89e34ca [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4a37c2f015a4cb2123a239bfe26d2a0513b7727656e4a829ad263a2753ef4a82 [INFO] running `Command { std: "docker" "start" "-a" "4a37c2f015a4cb2123a239bfe26d2a0513b7727656e4a829ad263a2753ef4a82", kill_on_drop: false }` [INFO] [stdout] warning: variant `Object` is never constructed [INFO] [stdout] --> src/js_rc/root.rs:17:3 [INFO] [stdout] | [INFO] [stdout] 16 | pub enum RootObjectType { [INFO] [stdout] | -------------- variant in this enum [INFO] [stdout] 17 | Object, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `count` is never read [INFO] [stdout] --> src/js_rc/root.rs:24:7 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct RootRef { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 23 | pub raw_ref: sys::napi_ref, [INFO] [stdout] 24 | pub count: Arc, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RootRef` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling napi_async_local v0.2.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: associated items `new_object`, `clone`, and `get` are never used [INFO] [stdout] --> src/js_rc/root.rs:33:10 [INFO] [stdout] | [INFO] [stdout] 28 | impl RootRef { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn new_object(env: &Env) -> napi::Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 92 | pub fn clone( [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 105 | pub fn get( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Object` is never constructed [INFO] [stdout] --> src/js_rc/root.rs:17:3 [INFO] [stdout] | [INFO] [stdout] 16 | pub enum RootObjectType { [INFO] [stdout] | -------------- variant in this enum [INFO] [stdout] 17 | Object, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `count` is never read [INFO] [stdout] --> src/js_rc/root.rs:24:7 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct RootRef { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 23 | pub raw_ref: sys::napi_ref, [INFO] [stdout] 24 | pub count: Arc, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RootRef` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new_object`, `clone`, and `get` are never used [INFO] [stdout] --> src/js_rc/root.rs:33:10 [INFO] [stdout] | [INFO] [stdout] 28 | impl RootRef { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn new_object(env: &Env) -> napi::Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 92 | pub fn clone( [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 105 | pub fn get( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.71s [INFO] running `Command { std: "docker" "inspect" "4a37c2f015a4cb2123a239bfe26d2a0513b7727656e4a829ad263a2753ef4a82", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4a37c2f015a4cb2123a239bfe26d2a0513b7727656e4a829ad263a2753ef4a82", kill_on_drop: false }` [INFO] [stdout] 4a37c2f015a4cb2123a239bfe26d2a0513b7727656e4a829ad263a2753ef4a82 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 9d7084296ab454d5fd4271a61f953af55d8a20a9995a3fcd688ee34174631df5 [INFO] running `Command { std: "docker" "start" "-a" "9d7084296ab454d5fd4271a61f953af55d8a20a9995a3fcd688ee34174631df5", kill_on_drop: false }` [INFO] [stderr] warning: variant `Object` is never constructed [INFO] [stderr] --> src/js_rc/root.rs:17:3 [INFO] [stderr] | [INFO] [stderr] 16 | pub enum RootObjectType { [INFO] [stderr] | -------------- variant in this enum [INFO] [stderr] 17 | Object, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: field `count` is never read [INFO] [stderr] --> src/js_rc/root.rs:24:7 [INFO] [stderr] | [INFO] [stderr] 22 | pub struct RootRef { [INFO] [stderr] | ------- field in this struct [INFO] [stderr] 23 | pub raw_ref: sys::napi_ref, [INFO] [stderr] 24 | pub count: Arc, [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `RootRef` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: associated items `new_object`, `clone`, and `get` are never used [INFO] [stderr] --> src/js_rc/root.rs:33:10 [INFO] [stderr] | [INFO] [stderr] 28 | impl RootRef { [INFO] [stderr] | ------------ associated items in this implementation [INFO] [stderr] ... [INFO] [stderr] 33 | pub fn new_object(env: &Env) -> napi::Result { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 92 | pub fn clone( [INFO] [stderr] | ^^^^^ [INFO] [stderr] ... [INFO] [stderr] 105 | pub fn get( [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: `napi_async_local` (lib) generated 3 warnings [INFO] [stderr] warning: `napi_async_local` (lib test) generated 3 warnings (3 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.08s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/napi_async_local-44f9efb424b58dee) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests napi_async_local [INFO] [stdout] [INFO] [stdout] running 6 tests [INFO] [stdout] test src/js_rc/js_rc.rs - js_rc::js_rc::JsRc (line 26) ... FAILED [INFO] [stdout] test src/js_rc/js_rc.rs - js_rc::js_rc::JsRc (line 62) ... FAILED [INFO] [stdout] test src/js_rc/js_rc.rs - js_rc::js_rc::JsRc (line 43) ... FAILED [INFO] [stdout] test src/spawn_local/spawn_local_ext.rs - spawn_local::spawn_local_ext::SpawnLocalExt::spawn_local_promise (line 110) ... FAILED [INFO] [stdout] test src/spawn_local/spawn_local_ext.rs - spawn_local::spawn_local_ext::SpawnLocalExt::spawn_local (line 27) ... FAILED [INFO] [stdout] test src/spawn_local/spawn_local_ext.rs - spawn_local::spawn_local_ext::SpawnLocalExt::spawn_local (line 49) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/js_rc/js_rc.rs - js_rc::js_rc::JsRc (line 26) stdout ---- [INFO] [stdout] error: cannot determine resolution for the import [INFO] [stdout] --> src/js_rc/js_rc.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | use napi::*; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `napi_derive` [INFO] [stdout] --> src/js_rc/js_rc.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | use napi_derive::napi; [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `napi_derive` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `napi_derive`, use `cargo add napi_derive` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Env` in this scope [INFO] [stdout] --> src/js_rc/js_rc.rs:33:20 [INFO] [stdout] | [INFO] [stdout] 33 | fn my_js_func(env: Env, callback: JsRc) -> napi::Result<()> { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 25 + use napi::Env; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `JsFunction` in this scope [INFO] [stdout] --> src/js_rc/js_rc.rs:33:40 [INFO] [stdout] | [INFO] [stdout] 33 | fn my_js_func(env: Env, callback: JsRc) -> napi::Result<()> { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 25 + use napi::JsFunction; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0432. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/js_rc/js_rc.rs - js_rc::js_rc::JsRc (line 62) stdout ---- [INFO] [stdout] error: cannot determine resolution for the import [INFO] [stdout] --> src/js_rc/js_rc.rs:64:5 [INFO] [stdout] | [INFO] [stdout] 64 | use napi::*; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `napi_async_local::UtilsExt` [INFO] [stdout] --> src/js_rc/js_rc.rs:67:5 [INFO] [stdout] | [INFO] [stdout] 67 | use napi_async_local::UtilsExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ no `UtilsExt` in the root [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait instead [INFO] [stdout] | [INFO] [stdout] 67 | use napi_async_local::utils::UtilsExt; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `napi_derive` [INFO] [stdout] --> src/js_rc/js_rc.rs:65:5 [INFO] [stdout] | [INFO] [stdout] 65 | use napi_derive::napi; [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `napi_derive` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `napi_derive`, use `cargo add napi_derive` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Env` in this scope [INFO] [stdout] --> src/js_rc/js_rc.rs:70:20 [INFO] [stdout] | [INFO] [stdout] 70 | fn my_js_func(env: Env) -> napi::Result<()> { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 61 + use napi::Env; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0432. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/js_rc/js_rc.rs - js_rc::js_rc::JsRc (line 43) stdout ---- [INFO] [stdout] error: cannot determine resolution for the import [INFO] [stdout] --> src/js_rc/js_rc.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 45 | use napi::*; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `napi_async_local::UtilsExt` [INFO] [stdout] --> src/js_rc/js_rc.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 48 | use napi_async_local::UtilsExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ no `UtilsExt` in the root [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait instead [INFO] [stdout] | [INFO] [stdout] 48 | use napi_async_local::utils::UtilsExt; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `napi_derive` [INFO] [stdout] --> src/js_rc/js_rc.rs:46:5 [INFO] [stdout] | [INFO] [stdout] 46 | use napi_derive::napi; [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `napi_derive` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `napi_derive`, use `cargo add napi_derive` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Env` in this scope [INFO] [stdout] --> src/js_rc/js_rc.rs:51:20 [INFO] [stdout] | [INFO] [stdout] 51 | fn my_js_func(env: Env) -> napi::Result<()> { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 42 + use napi::Env; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 2 arguments but 1 argument was supplied [INFO] [stdout] --> src/js_rc/js_rc.rs:53:19 [INFO] [stdout] | [INFO] [stdout] 53 | let value_ref = JsRc::new(value)?; [INFO] [stdout] | ^^^^^^^^^------- argument #2 is missing [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/js_rc/js_rc.rs:85:10 [INFO] [stdout] | [INFO] [stdout] 85 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 53 | let value_ref = JsRc::new(value, /* value */)?; [INFO] [stdout] | +++++++++++++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0412, E0432. [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/spawn_local/spawn_local_ext.rs - spawn_local::spawn_local_ext::SpawnLocalExt::spawn_local_promise (line 110) stdout ---- [INFO] [stdout] error: cannot determine resolution for the import [INFO] [stdout] --> src/spawn_local/spawn_local_ext.rs:114:5 [INFO] [stdout] | [INFO] [stdout] 114 | use napi::*; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `napi_derive` [INFO] [stdout] --> src/spawn_local/spawn_local_ext.rs:115:5 [INFO] [stdout] | [INFO] [stdout] 115 | use napi_derive::napi; [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `napi_derive` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `napi_derive`, use `cargo add napi_derive` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `async_std` [INFO] [stdout] --> src/spawn_local/spawn_local_ext.rs:117:5 [INFO] [stdout] | [INFO] [stdout] 117 | use async_std::task; [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `async_std` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `async_std`, use `cargo add async_std` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Env` in this scope [INFO] [stdout] --> src/spawn_local/spawn_local_ext.rs:120:20 [INFO] [stdout] | [INFO] [stdout] 120 | fn my_js_func(env: Env) -> napi::Result { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 109 + use napi::Env; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `JsObject` in this scope [INFO] [stdout] --> src/spawn_local/spawn_local_ext.rs:120:41 [INFO] [stdout] | [INFO] [stdout] 120 | fn my_js_func(env: Env) -> napi::Result { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 109 + use napi::JsObject; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/spawn_local/spawn_local_ext.rs:121:33 [INFO] [stdout] | [INFO] [stdout] 121 | env.spawn_local_promise(move |env| async move { [INFO] [stdout] | ^^^ [INFO] [stdout] 122 | task::sleep(Duration::from_millis(1000)).await; [INFO] [stdout] 123 | env.create_string("Hello World") [INFO] [stdout] | --- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 121 | env.spawn_local_promise(move |env: /* Type */| async move { [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0412, E0432. [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/spawn_local/spawn_local_ext.rs - spawn_local::spawn_local_ext::SpawnLocalExt::spawn_local (line 27) stdout ---- [INFO] [stdout] error: cannot determine resolution for the import [INFO] [stdout] --> src/spawn_local/spawn_local_ext.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | use napi::*; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `napi_derive` [INFO] [stdout] --> src/spawn_local/spawn_local_ext.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | use napi_derive::napi; [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `napi_derive` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `napi_derive`, use `cargo add napi_derive` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `async_std` [INFO] [stdout] --> src/spawn_local/spawn_local_ext.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | use async_std::task; [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `async_std` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `async_std`, use `cargo add async_std` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Env` in this scope [INFO] [stdout] --> src/spawn_local/spawn_local_ext.rs:39:20 [INFO] [stdout] | [INFO] [stdout] 39 | fn my_js_func(env: Env, callback: JsRc) -> napi::Result<()> { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 26 + use napi::Env; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `JsFunction` in this scope [INFO] [stdout] --> src/spawn_local/spawn_local_ext.rs:39:40 [INFO] [stdout] | [INFO] [stdout] 39 | fn my_js_func(env: Env, callback: JsRc) -> napi::Result<()> { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 26 + use napi::JsFunction; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0432. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/spawn_local/spawn_local_ext.rs - spawn_local::spawn_local_ext::SpawnLocalExt::spawn_local (line 49) stdout ---- [INFO] [stdout] error: cannot determine resolution for the import [INFO] [stdout] --> src/spawn_local/spawn_local_ext.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 54 | use napi::*; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `napi_derive` [INFO] [stdout] --> src/spawn_local/spawn_local_ext.rs:55:5 [INFO] [stdout] | [INFO] [stdout] 55 | use napi_derive::napi; [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `napi_derive` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `napi_derive`, use `cargo add napi_derive` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `async_std` [INFO] [stdout] --> src/spawn_local/spawn_local_ext.rs:59:5 [INFO] [stdout] | [INFO] [stdout] 59 | use async_std::channel; [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `async_std` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `async_std`, use `cargo add async_std` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Env` in this scope [INFO] [stdout] --> src/spawn_local/spawn_local_ext.rs:62:20 [INFO] [stdout] | [INFO] [stdout] 62 | fn my_js_func(env: Env, callback: JsRc) -> napi::Result<()> { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 48 + use napi::Env; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `JsFunction` in this scope [INFO] [stdout] --> src/spawn_local/spawn_local_ext.rs:62:40 [INFO] [stdout] | [INFO] [stdout] 62 | fn my_js_func(env: Env, callback: JsRc) -> napi::Result<()> { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 48 + use napi::JsFunction; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/spawn_local/spawn_local_ext.rs:67:7 [INFO] [stdout] | [INFO] [stdout] 67 | tx.send_blocking(i).unwrap(); [INFO] [stdout] | ^^ cannot infer type [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/spawn_local/spawn_local_ext.rs:73:27 [INFO] [stdout] | [INFO] [stdout] 73 | while let Ok(value) = rx.recv().await { [INFO] [stdout] | ^^ cannot infer type [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/spawn_local/spawn_local_ext.rs:72:25 [INFO] [stdout] | [INFO] [stdout] 72 | env.spawn_local(move |env| async move { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | callback.inner(&env)?.call(None, &[env.create_int32(value)?])?; [INFO] [stdout] | --- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 72 | env.spawn_local(move |env: /* Type */| async move { [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0412, E0432. [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/js_rc/js_rc.rs - js_rc::js_rc::JsRc (line 26) [INFO] [stdout] src/js_rc/js_rc.rs - js_rc::js_rc::JsRc (line 43) [INFO] [stdout] src/js_rc/js_rc.rs - js_rc::js_rc::JsRc (line 62) [INFO] [stdout] src/spawn_local/spawn_local_ext.rs - spawn_local::spawn_local_ext::SpawnLocalExt::spawn_local (line 27) [INFO] [stdout] src/spawn_local/spawn_local_ext.rs - spawn_local::spawn_local_ext::SpawnLocalExt::spawn_local (line 49) [INFO] [stdout] src/spawn_local/spawn_local_ext.rs - spawn_local::spawn_local_ext::SpawnLocalExt::spawn_local_promise (line 110) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 6 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.24s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "9d7084296ab454d5fd4271a61f953af55d8a20a9995a3fcd688ee34174631df5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9d7084296ab454d5fd4271a61f953af55d8a20a9995a3fcd688ee34174631df5", kill_on_drop: false }` [INFO] [stdout] 9d7084296ab454d5fd4271a61f953af55d8a20a9995a3fcd688ee34174631df5