[INFO] fetching crate napi_ext 0.4.0... [INFO] testing napi_ext-0.4.0 against try#2440211fe03bc45c89b6dc1a3df18382ce91e32b for pr-146098-1 [INFO] extracting crate napi_ext 0.4.0 into /workspace/builds/worker-1-tc2/source [INFO] started tweaking crates.io crate napi_ext 0.4.0 [INFO] finished tweaking crates.io crate napi_ext 0.4.0 [INFO] tweaked toml for crates.io crate napi_ext 0.4.0 written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate napi_ext 0.4.0 on toolchain 2440211fe03bc45c89b6dc1a3df18382ce91e32b [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "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" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 30 packages to latest compatible versions [INFO] [stderr] Adding napi v2.16.17 (available: v3.3.0) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b3fd2d95aca33efb7cee260bc5c2112eb5cb8347d2442874dda2afb4459ec0f0 [INFO] running `Command { std: "docker" "start" "-a" "b3fd2d95aca33efb7cee260bc5c2112eb5cb8347d2442874dda2afb4459ec0f0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b3fd2d95aca33efb7cee260bc5c2112eb5cb8347d2442874dda2afb4459ec0f0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b3fd2d95aca33efb7cee260bc5c2112eb5cb8347d2442874dda2afb4459ec0f0", kill_on_drop: false }` [INFO] [stdout] b3fd2d95aca33efb7cee260bc5c2112eb5cb8347d2442874dda2afb4459ec0f0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 98bdc19d16222045218482b395b2b0f07d144af33fb185594bbda6a44fe274e6 [INFO] running `Command { std: "docker" "start" "-a" "98bdc19d16222045218482b395b2b0f07d144af33fb185594bbda6a44fe274e6", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.101 [INFO] [stderr] Compiling unicode-ident v1.0.19 [INFO] [stderr] Compiling quote v1.0.41 [INFO] [stderr] Compiling futures-core v0.3.31 [INFO] [stderr] Compiling futures-sink v0.3.31 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling pin-project-lite v0.2.16 [INFO] [stderr] Compiling memchr v2.7.6 [INFO] [stderr] Compiling futures-io v0.3.31 [INFO] [stderr] Compiling slab v0.4.11 [INFO] [stderr] Compiling bitflags v2.9.4 [INFO] [stderr] Compiling napi-sys v2.4.0 [INFO] [stderr] Compiling once_cell v1.21.3 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling ctor v0.2.9 [INFO] [stderr] Compiling napi_ext_macros v0.4.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_ext v0.4.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:23:7 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct RootRef { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 22 | pub raw_ref: sys::napi_ref, [INFO] [stdout] 23 | pub count: Arc, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new_object`, `clone`, and `get` are never used [INFO] [stdout] --> src/js_rc/root.rs:32:10 [INFO] [stdout] | [INFO] [stdout] 27 | impl RootRef { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn new_object(env: &Env) -> napi::Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 91 | pub fn clone( [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 104 | pub fn get( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 9.21s [INFO] running `Command { std: "docker" "inspect" "98bdc19d16222045218482b395b2b0f07d144af33fb185594bbda6a44fe274e6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "98bdc19d16222045218482b395b2b0f07d144af33fb185594bbda6a44fe274e6", kill_on_drop: false }` [INFO] [stdout] 98bdc19d16222045218482b395b2b0f07d144af33fb185594bbda6a44fe274e6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c9072cdb8c898992caf9ba7c130df066a7e7126db440f7a88b0fba4feaa0ad89 [INFO] running `Command { std: "docker" "start" "-a" "c9072cdb8c898992caf9ba7c130df066a7e7126db440f7a88b0fba4feaa0ad89", 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:23:7 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct RootRef { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 22 | pub raw_ref: sys::napi_ref, [INFO] [stdout] 23 | pub count: Arc, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new_object`, `clone`, and `get` are never used [INFO] [stdout] --> src/js_rc/root.rs:32:10 [INFO] [stdout] | [INFO] [stdout] 27 | impl RootRef { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn new_object(env: &Env) -> napi::Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 91 | pub fn clone( [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 104 | pub fn get( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling napi_ext v0.4.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:23:7 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct RootRef { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 22 | pub raw_ref: sys::napi_ref, [INFO] [stdout] 23 | pub count: Arc, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new_object`, `clone`, and `get` are never used [INFO] [stdout] --> src/js_rc/root.rs:32:10 [INFO] [stdout] | [INFO] [stdout] 27 | impl RootRef { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn new_object(env: &Env) -> napi::Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 91 | pub fn clone( [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 104 | pub fn get( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.26s [INFO] running `Command { std: "docker" "inspect" "c9072cdb8c898992caf9ba7c130df066a7e7126db440f7a88b0fba4feaa0ad89", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c9072cdb8c898992caf9ba7c130df066a7e7126db440f7a88b0fba4feaa0ad89", kill_on_drop: false }` [INFO] [stdout] c9072cdb8c898992caf9ba7c130df066a7e7126db440f7a88b0fba4feaa0ad89 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 26cf6819fe4a38ba62bd4de1cfd5bd805a5cfb36f7157d65ad9fe1fd4144af8b [INFO] running `Command { std: "docker" "start" "-a" "26cf6819fe4a38ba62bd4de1cfd5bd805a5cfb36f7157d65ad9fe1fd4144af8b", 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:23:7 [INFO] [stderr] | [INFO] [stderr] 21 | pub struct RootRef { [INFO] [stderr] | ------- field in this struct [INFO] [stderr] 22 | pub raw_ref: sys::napi_ref, [INFO] [stderr] 23 | pub count: Arc, [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated items `new_object`, `clone`, and `get` are never used [INFO] [stderr] --> src/js_rc/root.rs:32:10 [INFO] [stderr] | [INFO] [stderr] 27 | impl RootRef { [INFO] [stderr] | ------------ associated items in this implementation [INFO] [stderr] ... [INFO] [stderr] 32 | pub fn new_object(env: &Env) -> napi::Result { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 91 | pub fn clone( [INFO] [stderr] | ^^^^^ [INFO] [stderr] ... [INFO] [stderr] 104 | pub fn get( [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: `napi_ext` (lib) generated 3 warnings [INFO] [stderr] warning: `napi_ext` (lib test) generated 3 warnings (3 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.02s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/napi_ext-a25728f0d23fe786) [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_ext [INFO] [stdout] [INFO] [stdout] running 6 tests [INFO] [stdout] test src/js_rc/js_rc.rs - js_rc::js_rc::JsRc (line 44) ... 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/js_rc/js_rc.rs - js_rc::js_rc::JsRc (line 63) ... FAILED [INFO] [stdout] test src/js_rc/js_rc.rs - js_rc::js_rc::JsRc (line 27) ... 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 44) stdout ---- [INFO] [stdout] error: cannot determine resolution for the import [INFO] [stdout] --> src/js_rc/js_rc.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 3 | use napi::*; [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] 4 | 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 `napi_async_local` [INFO] [stdout] --> src/js_rc/js_rc.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 5 | use napi_async_local::JsRc; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `napi_async_local` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `napi_async_local`, use `cargo add napi_async_local` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `napi_async_local` [INFO] [stdout] --> src/js_rc/js_rc.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 6 | use napi_async_local::UtilsExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `napi_async_local` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `napi_async_local`, use `cargo add napi_async_local` 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] 9 | 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] 2 + use napi::Env; [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_promise (line 110) stdout ---- [INFO] [stdout] error: cannot determine resolution for the import [INFO] [stdout] --> src/spawn_local/spawn_local_ext.rs:113:5 [INFO] [stdout] | [INFO] [stdout] 5 | use napi::*; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `napi_derive` [INFO] [stdout] --> src/spawn_local/spawn_local_ext.rs:114:5 [INFO] [stdout] | [INFO] [stdout] 6 | 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 `napi_async_local` [INFO] [stdout] --> src/spawn_local/spawn_local_ext.rs:115:5 [INFO] [stdout] | [INFO] [stdout] 7 | use napi_async_local::SpawnLocalExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `napi_async_local` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `napi_async_local`, use `cargo add napi_async_local` 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:116:5 [INFO] [stdout] | [INFO] [stdout] 8 | 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:119:20 [INFO] [stdout] | [INFO] [stdout] 11 | 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] 2 + 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:119:41 [INFO] [stdout] | [INFO] [stdout] 11 | 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] 2 + use napi::JsObject; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 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 63) stdout ---- [INFO] [stdout] error: cannot determine resolution for the import [INFO] [stdout] --> src/js_rc/js_rc.rs:64:5 [INFO] [stdout] | [INFO] [stdout] 3 | use napi::*; [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] 4 | 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 `napi_async_local` [INFO] [stdout] --> src/js_rc/js_rc.rs:66:5 [INFO] [stdout] | [INFO] [stdout] 5 | use napi_async_local::JsRcExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `napi_async_local` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `napi_async_local`, use `cargo add napi_async_local` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `napi_async_local` [INFO] [stdout] --> src/js_rc/js_rc.rs:67:5 [INFO] [stdout] | [INFO] [stdout] 6 | use napi_async_local::UtilsExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `napi_async_local` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `napi_async_local`, use `cargo add napi_async_local` 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] 9 | 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] 2 + use napi::Env; [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/js_rc/js_rc.rs - js_rc::js_rc::JsRc (line 27) stdout ---- [INFO] [stdout] error: cannot determine resolution for the import [INFO] [stdout] --> src/js_rc/js_rc.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 3 | 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] 4 | 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 `napi_async_local` [INFO] [stdout] --> src/js_rc/js_rc.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 5 | use napi_async_local::JsRc; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `napi_async_local` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `napi_async_local`, use `cargo add napi_async_local` 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] 8 | 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] 2 + 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] 8 | 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] 2 + 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 27) stdout ---- [INFO] [stdout] error: cannot determine resolution for the import [INFO] [stdout] --> src/spawn_local/spawn_local_ext.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 5 | use napi::*; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `napi_derive` [INFO] [stdout] --> src/spawn_local/spawn_local_ext.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 6 | 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 `napi_async_local` [INFO] [stdout] --> src/spawn_local/spawn_local_ext.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 7 | use napi_async_local::JsRc; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `napi_async_local` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `napi_async_local`, use `cargo add napi_async_local` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `napi_async_local` [INFO] [stdout] --> src/spawn_local/spawn_local_ext.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 8 | use napi_async_local::JsRcExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `napi_async_local` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `napi_async_local`, use `cargo add napi_async_local` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `napi_async_local` [INFO] [stdout] --> src/spawn_local/spawn_local_ext.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 9 | use napi_async_local::SpawnLocalExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `napi_async_local` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `napi_async_local`, use `cargo add napi_async_local` 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:35:5 [INFO] [stdout] | [INFO] [stdout] 10 | 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:38:20 [INFO] [stdout] | [INFO] [stdout] 13 | 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] 2 + 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:38:40 [INFO] [stdout] | [INFO] [stdout] 13 | 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] 2 + use napi::JsFunction; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 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:53:5 [INFO] [stdout] | [INFO] [stdout] 6 | use napi::*; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `napi_derive` [INFO] [stdout] --> src/spawn_local/spawn_local_ext.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 7 | 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 `napi_async_local` [INFO] [stdout] --> src/spawn_local/spawn_local_ext.rs:55:5 [INFO] [stdout] | [INFO] [stdout] 8 | use napi_async_local::JsRc; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `napi_async_local` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `napi_async_local`, use `cargo add napi_async_local` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `napi_async_local` [INFO] [stdout] --> src/spawn_local/spawn_local_ext.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 9 | use napi_async_local::JsRcExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `napi_async_local` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `napi_async_local`, use `cargo add napi_async_local` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `napi_async_local` [INFO] [stdout] --> src/spawn_local/spawn_local_ext.rs:57:5 [INFO] [stdout] | [INFO] [stdout] 10 | use napi_async_local::SpawnLocalExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `napi_async_local` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `napi_async_local`, use `cargo add napi_async_local` 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:58:5 [INFO] [stdout] | [INFO] [stdout] 11 | 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:61:20 [INFO] [stdout] | [INFO] [stdout] 14 | 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] 2 + 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:61:40 [INFO] [stdout] | [INFO] [stdout] 14 | 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] 2 + use napi::JsFunction; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 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] [INFO] [stdout] failures: [INFO] [stdout] src/js_rc/js_rc.rs - js_rc::js_rc::JsRc (line 27) [INFO] [stdout] src/js_rc/js_rc.rs - js_rc::js_rc::JsRc (line 44) [INFO] [stdout] src/js_rc/js_rc.rs - js_rc::js_rc::JsRc (line 63) [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.06s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "26cf6819fe4a38ba62bd4de1cfd5bd805a5cfb36f7157d65ad9fe1fd4144af8b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "26cf6819fe4a38ba62bd4de1cfd5bd805a5cfb36f7157d65ad9fe1fd4144af8b", kill_on_drop: false }` [INFO] [stdout] 26cf6819fe4a38ba62bd4de1cfd5bd805a5cfb36f7157d65ad9fe1fd4144af8b