[INFO] fetching crate napi 2.3.0-canary.1... [INFO] testing napi-2.3.0-canary.1 against beta-2022-04-10 for beta-1.61-1 [INFO] extracting crate napi 2.3.0-canary.1 into /workspace/builds/worker-48/source [INFO] validating manifest of crates.io crate napi 2.3.0-canary.1 on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate napi 2.3.0-canary.1 [INFO] finished tweaking crates.io crate napi 2.3.0-canary.1 [INFO] tweaked toml for crates.io crate napi 2.3.0-canary.1 written to /workspace/builds/worker-48/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "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" "+beta-2022-04-10" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-48/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-48/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] fbe8879aabab924eaaedf6b8f20fb4f6de5bbb4cba352cfce6b126bfc9b006c7 [INFO] running `Command { std: "docker" "start" "-a" "fbe8879aabab924eaaedf6b8f20fb4f6de5bbb4cba352cfce6b126bfc9b006c7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fbe8879aabab924eaaedf6b8f20fb4f6de5bbb4cba352cfce6b126bfc9b006c7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fbe8879aabab924eaaedf6b8f20fb4f6de5bbb4cba352cfce6b126bfc9b006c7", kill_on_drop: false }` [INFO] [stdout] fbe8879aabab924eaaedf6b8f20fb4f6de5bbb4cba352cfce6b126bfc9b006c7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-48/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-48/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 412a4d2defdccfe60e15e55555eebfaf482521c59e2232da0687cb2a71f764f5 [INFO] running `Command { std: "docker" "start" "-a" "412a4d2defdccfe60e15e55555eebfaf482521c59e2232da0687cb2a71f764f5", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.37 [INFO] [stderr] Compiling syn v1.0.91 [INFO] [stderr] Compiling napi-sys v2.1.0 [INFO] [stderr] Compiling quote v1.0.18 [INFO] [stderr] Compiling ctor v0.1.22 [INFO] [stderr] Compiling napi v2.3.0-canary.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 10.63s [INFO] running `Command { std: "docker" "inspect" "412a4d2defdccfe60e15e55555eebfaf482521c59e2232da0687cb2a71f764f5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "412a4d2defdccfe60e15e55555eebfaf482521c59e2232da0687cb2a71f764f5", kill_on_drop: false }` [INFO] [stdout] 412a4d2defdccfe60e15e55555eebfaf482521c59e2232da0687cb2a71f764f5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-48/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-48/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ebbc0c21cbbd05938547513d8b810139dd55b3d28f39193c3b155bdc33631aa5 [INFO] running `Command { std: "docker" "start" "-a" "ebbc0c21cbbd05938547513d8b810139dd55b3d28f39193c3b155bdc33631aa5", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling napi v2.3.0-canary.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 4.18s [INFO] [stderr] Executable unittests src/lib.rs (/opt/rustwide/target/debug/deps/napi-9a4f59800cc67c72) [INFO] running `Command { std: "docker" "inspect" "ebbc0c21cbbd05938547513d8b810139dd55b3d28f39193c3b155bdc33631aa5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ebbc0c21cbbd05938547513d8b810139dd55b3d28f39193c3b155bdc33631aa5", kill_on_drop: false }` [INFO] [stdout] ebbc0c21cbbd05938547513d8b810139dd55b3d28f39193c3b155bdc33631aa5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-48/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-48/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 5fea64c72d625894fe0a236b4ac350575d776b0abc668cc83f549e91448956a0 [INFO] running `Command { std: "docker" "start" "-a" "5fea64c72d625894fe0a236b4ac350575d776b0abc668cc83f549e91448956a0", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 2.44s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/napi-9a4f59800cc67c72) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stderr] Doc-tests napi [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 6 tests [INFO] [stdout] test src/lib.rs - (line 40) ... FAILED [INFO] [stdout] test src/bindgen_runtime/module_register.rs - bindgen_runtime::module_register::get_c_callback (line 226) ... FAILED [INFO] [stdout] test src/lib.rs - (line 21) ... FAILED [INFO] [stdout] test src/js_values/function.rs - js_values::function::JsFunction (line 25) ... FAILED [INFO] [stdout] test src/bindgen_runtime/module_register.rs - bindgen_runtime::module_register::get_js_function (line 173) ... FAILED [INFO] [stdout] test src/lib.rs - (line 54) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - (line 40) stdout ---- [INFO] [stdout] error: expected one of `.`, `;`, `?`, `}`, or an operator, found `node` [INFO] [stdout] --> src/lib.rs:41:40 [INFO] [stdout] | [INFO] [stdout] 3 | NAPI_RS_TOKIO_CHANNEL_BUFFER_SIZE=1000 node ./app.js [INFO] [stdout] | ^^^^ expected one of `.`, `;`, `?`, `}`, or an operator [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/bindgen_runtime/module_register.rs - bindgen_runtime::module_register::get_c_callback (line 226) stdout ---- [INFO] [stdout] error: cannot find attribute `napi` in this scope [INFO] [stdout] --> src/bindgen_runtime/module_register.rs:232:3 [INFO] [stdout] | [INFO] [stdout] 9 | #[napi] [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] note: `napi` is imported here, but it is a crate, not an attribute [INFO] [stdout] --> src/bindgen_runtime/module_register.rs:225:1 [INFO] [stdout] | [INFO] [stdout] 2 | extern crate r#napi; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `napi` in this scope [INFO] [stdout] --> src/bindgen_runtime/module_register.rs:227:3 [INFO] [stdout] | [INFO] [stdout] 4 | #[napi] [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] note: `napi` is imported here, but it is a crate, not an attribute [INFO] [stdout] --> src/bindgen_runtime/module_register.rs:225:1 [INFO] [stdout] | [INFO] [stdout] 2 | extern crate r#napi; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Env` in this scope [INFO] [stdout] --> src/bindgen_runtime/module_register.rs:233:20 [INFO] [stdout] | [INFO] [stdout] 10 | fn create_obj(env: Env) -> 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/bindgen_runtime/module_register.rs:233:35 [INFO] [stdout] | [INFO] [stdout] 10 | fn create_obj(env: Env) -> 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[E0433]: failed to resolve: use of undeclared type `Property` [INFO] [stdout] --> src/bindgen_runtime/module_register.rs:235:27 [INFO] [stdout] | [INFO] [stdout] 12 | obj.define_property(&[Property::new("getter")?.with_getter(get_c_callback(some_fn_js_function)?)])?; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use napi::Property; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `get_c_callback` in this scope [INFO] [stdout] --> src/bindgen_runtime/module_register.rs:235:64 [INFO] [stdout] | [INFO] [stdout] 12 | obj.define_property(&[Property::new("getter")?.with_getter(get_c_callback(some_fn_js_function)?)])?; [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 | use napi::bindgen_prelude::get_c_callback; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `some_fn_js_function` in this scope [INFO] [stdout] --> src/bindgen_runtime/module_register.rs:235:79 [INFO] [stdout] | [INFO] [stdout] 12 | obj.define_property(&[Property::new("getter")?.with_getter(get_c_callback(some_fn_js_function)?)])?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0107]: this enum takes 2 generic arguments but 1 generic argument was supplied [INFO] [stdout] --> src/bindgen_runtime/module_register.rs:233:28 [INFO] [stdout] | [INFO] [stdout] 10 | fn create_obj(env: Env) -> Result { [INFO] [stdout] | ^^^^^^ -------- supplied 1 generic argument [INFO] [stdout] | | [INFO] [stdout] | expected 2 generic arguments [INFO] [stdout] | [INFO] [stdout] help: add missing generic argument [INFO] [stdout] | [INFO] [stdout] 10 | fn create_obj(env: Env) -> Result { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0107, E0412, E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0107`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 21) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `futures` [INFO] [stdout] --> src/lib.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 4 | use futures::prelude::*; [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `futures` [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `tokio` [INFO] [stdout] --> src/lib.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 6 | use tokio; [INFO] [stdout] | ^^^^^ no external crate `tokio` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `napi` in this scope [INFO] [stdout] --> src/lib.rs:26:3 [INFO] [stdout] | [INFO] [stdout] 8 | #[napi] [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] note: `napi` is imported here, but it is a crate, not an attribute [INFO] [stdout] --> src/lib.rs:20:1 [INFO] [stdout] | [INFO] [stdout] 2 | extern crate r#napi; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `JsBuffer` in this scope [INFO] [stdout] --> src/lib.rs:27:60 [INFO] [stdout] | [INFO] [stdout] 9 | pub async fn tokio_readfile(js_filepath: String) -> Result { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use napi::JsBuffer; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `ctx` in this scope [INFO] [stdout] --> src/lib.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 10 | ctx.env.execute_tokio_future( [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0432, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/js_values/function.rs - js_values::function::JsFunction (line 25) stdout ---- [INFO] [stdout] error: cannot find attribute `js_function` in this scope [INFO] [stdout] --> src/js_values/function.rs:28:3 [INFO] [stdout] | [INFO] [stdout] 6 | #[js_function(1)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be applied to values that implement `Try` [INFO] [stdout] --> src/js_values/function.rs:31:21 [INFO] [stdout] | [INFO] [stdout] 9 | let js_string = ctx.env.create_string("hello".as_ref())?.into_unknown()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `?` operator cannot be applied to type `JsUnknown` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Try` is not implemented for `JsUnknown` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/bindgen_runtime/module_register.rs - bindgen_runtime::module_register::get_js_function (line 173) stdout ---- [INFO] [stdout] error: cannot find attribute `napi` in this scope [INFO] [stdout] --> src/bindgen_runtime/module_register.rs:179:3 [INFO] [stdout] | [INFO] [stdout] 9 | #[napi] [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] note: `napi` is imported here, but it is a crate, not an attribute [INFO] [stdout] --> src/bindgen_runtime/module_register.rs:172:1 [INFO] [stdout] | [INFO] [stdout] 2 | extern crate r#napi; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `napi` in this scope [INFO] [stdout] --> src/bindgen_runtime/module_register.rs:174:3 [INFO] [stdout] | [INFO] [stdout] 4 | #[napi] [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] note: `napi` is imported here, but it is a crate, not an attribute [INFO] [stdout] --> src/bindgen_runtime/module_register.rs:172:1 [INFO] [stdout] | [INFO] [stdout] 2 | extern crate r#napi; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `JsFunction` in this scope [INFO] [stdout] --> src/bindgen_runtime/module_register.rs:180:31 [INFO] [stdout] | [INFO] [stdout] 10 | fn return_some_fn() -> 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[E0425]: cannot find function `get_js_function` in this scope [INFO] [stdout] --> src/bindgen_runtime/module_register.rs:181:5 [INFO] [stdout] | [INFO] [stdout] 11 | get_js_function(some_fn_js_function) [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 | use napi::bindgen_prelude::get_js_function; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `some_fn_js_function` in this scope [INFO] [stdout] --> src/bindgen_runtime/module_register.rs:181:21 [INFO] [stdout] | [INFO] [stdout] 11 | get_js_function(some_fn_js_function) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0107]: this enum takes 2 generic arguments but 1 generic argument was supplied [INFO] [stdout] --> src/bindgen_runtime/module_register.rs:180:24 [INFO] [stdout] | [INFO] [stdout] 10 | fn return_some_fn() -> Result { [INFO] [stdout] | ^^^^^^ ---------- supplied 1 generic argument [INFO] [stdout] | | [INFO] [stdout] | expected 2 generic arguments [INFO] [stdout] | [INFO] [stdout] help: add missing generic argument [INFO] [stdout] | [INFO] [stdout] 10 | fn return_some_fn() -> Result { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0107, E0412, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0107`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 54) stdout ---- [INFO] [stdout] error: unexpected token: `...` [INFO] [stdout] --> src/lib.rs:65:5 [INFO] [stdout] | [INFO] [stdout] 14 | ... [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `..` for an exclusive range [INFO] [stdout] | [INFO] [stdout] 14 | .. [INFO] [stdout] | [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 14 | ..= [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0586]: inclusive range with no end [INFO] [stdout] --> src/lib.rs:65:5 [INFO] [stdout] | [INFO] [stdout] 14 | ... [INFO] [stdout] | ^^^ help: use `..` instead [INFO] [stdout] | [INFO] [stdout] = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`) [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `napi` in this scope [INFO] [stdout] --> src/lib.rs:68:3 [INFO] [stdout] | [INFO] [stdout] 17 | #[napi] [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] note: `napi` is imported here, but it is a crate, not an attribute [INFO] [stdout] --> src/lib.rs:53:1 [INFO] [stdout] | [INFO] [stdout] 2 | extern crate r#napi; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `napi` in this scope [INFO] [stdout] --> src/lib.rs:62:3 [INFO] [stdout] | [INFO] [stdout] 11 | #[napi] [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] note: `napi` is imported here, but it is a crate, not an attribute [INFO] [stdout] --> src/lib.rs:53:1 [INFO] [stdout] | [INFO] [stdout] 2 | extern crate r#napi; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Serialize` in this scope [INFO] [stdout] --> src/lib.rs:55:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(Serialize, Debug, Deserialize)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Deserialize` in this scope [INFO] [stdout] --> src/lib.rs:55:28 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(Serialize, Debug, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `JsUnknown` in this scope [INFO] [stdout] --> src/lib.rs:63:30 [INFO] [stdout] | [INFO] [stdout] 12 | fn deserialize_from_js(arg0: JsUnknown) -> Result { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use napi::JsUnknown; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `JsUndefined` in this scope [INFO] [stdout] --> src/lib.rs:63:51 [INFO] [stdout] | [INFO] [stdout] 12 | fn deserialize_from_js(arg0: JsUnknown) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use napi::JsUndefined; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `ctx` in this scope [INFO] [stdout] --> src/lib.rs:64:35 [INFO] [stdout] | [INFO] [stdout] 13 | let de_serialized: AnObject = ctx.env.from_js_value(arg0)?; [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Env` in this scope [INFO] [stdout] --> src/lib.rs:69:19 [INFO] [stdout] | [INFO] [stdout] 18 | fn serialize(env: Env) -> 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 `JsUnknown` in this scope [INFO] [stdout] --> src/lib.rs:69:34 [INFO] [stdout] | [INFO] [stdout] 18 | fn serialize(env: Env) -> Result { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use napi::JsUnknown; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `AnyObject` in this scope [INFO] [stdout] --> src/lib.rs:70:17 [INFO] [stdout] | [INFO] [stdout] 5 | struct AnObject { [INFO] [stdout] | --------------- similarly named struct `AnObject` defined here [INFO] [stdout] ... [INFO] [stdout] 19 | let value = AnyObject { a: 1, b: vec![0.1, 2.22], c: "hello" }; [INFO] [stdout] | ^^^^^^^^^ help: a struct with a similar name exists: `AnObject` [INFO] [stdout] [INFO] [stdout] error[E0107]: this enum takes 2 generic arguments but 1 generic argument was supplied [INFO] [stdout] --> src/lib.rs:63:44 [INFO] [stdout] | [INFO] [stdout] 12 | fn deserialize_from_js(arg0: JsUnknown) -> Result { [INFO] [stdout] | ^^^^^^ ----------- supplied 1 generic argument [INFO] [stdout] | | [INFO] [stdout] | expected 2 generic arguments [INFO] [stdout] | [INFO] [stdout] help: add missing generic argument [INFO] [stdout] | [INFO] [stdout] 12 | fn deserialize_from_js(arg0: JsUnknown) -> Result { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] error[E0107]: this enum takes 2 generic arguments but 1 generic argument was supplied [INFO] [stdout] --> src/lib.rs:69:27 [INFO] [stdout] | [INFO] [stdout] 18 | fn serialize(env: Env) -> Result { [INFO] [stdout] | ^^^^^^ --------- supplied 1 generic argument [INFO] [stdout] | | [INFO] [stdout] | expected 2 generic arguments [INFO] [stdout] | [INFO] [stdout] help: add missing generic argument [INFO] [stdout] | [INFO] [stdout] 18 | fn serialize(env: Env) -> Result { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 14 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0107, E0412, E0422, E0425, E0586. [INFO] [stdout] For more information about an error, try `rustc --explain E0107`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/bindgen_runtime/module_register.rs - bindgen_runtime::module_register::get_c_callback (line 226) [INFO] [stdout] src/bindgen_runtime/module_register.rs - bindgen_runtime::module_register::get_js_function (line 173) [INFO] [stdout] src/js_values/function.rs - js_values::function::JsFunction (line 25) [INFO] [stdout] src/lib.rs - (line 21) [INFO] [stdout] src/lib.rs - (line 40) [INFO] [stdout] src/lib.rs - (line 54) [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: test failed, to rerun pass '--doc' [INFO] running `Command { std: "docker" "inspect" "5fea64c72d625894fe0a236b4ac350575d776b0abc668cc83f549e91448956a0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5fea64c72d625894fe0a236b4ac350575d776b0abc668cc83f549e91448956a0", kill_on_drop: false }` [INFO] [stdout] 5fea64c72d625894fe0a236b4ac350575d776b0abc668cc83f549e91448956a0