[INFO] fetching crate napi-ohos 1.1.4... [INFO] checking napi-ohos-1.1.4 against try#4f260f0f20b3133d20cfb50353c0221943af5796+rustflags=-Dunmustuse_in_always_ok for pr-148577 [INFO] extracting crate napi-ohos 1.1.4 into /workspace/builds/worker-4-tc2/source [INFO] started tweaking crates.io crate napi-ohos 1.1.4 [INFO] finished tweaking crates.io crate napi-ohos 1.1.4 [INFO] tweaked toml for crates.io crate napi-ohos 1.1.4 written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate napi-ohos 1.1.4 on toolchain 4f260f0f20b3133d20cfb50353c0221943af5796 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate napi-ohos 1.1.4 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3aa8d75ec2b1d2a5ce67be6e77364be4804d80f5cedc4e3f9147a6238110bf3c [INFO] running `Command { std: "docker" "start" "-a" "3aa8d75ec2b1d2a5ce67be6e77364be4804d80f5cedc4e3f9147a6238110bf3c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3aa8d75ec2b1d2a5ce67be6e77364be4804d80f5cedc4e3f9147a6238110bf3c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3aa8d75ec2b1d2a5ce67be6e77364be4804d80f5cedc4e3f9147a6238110bf3c", kill_on_drop: false }` [INFO] [stdout] 3aa8d75ec2b1d2a5ce67be6e77364be4804d80f5cedc4e3f9147a6238110bf3c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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 -Dunmustuse_in_always_ok" "-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" "+4f260f0f20b3133d20cfb50353c0221943af5796" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 03dee318471fa7caee1b0a01e0b6340c682983ea4eea7f6129e01bcd516c515b [INFO] running `Command { std: "docker" "start" "-a" "03dee318471fa7caee1b0a01e0b6340c682983ea4eea7f6129e01bcd516c515b", kill_on_drop: false }` [INFO] [stderr] Compiling napi-build-ohos v1.1.4 [INFO] [stderr] Compiling dtor-proc-macro v0.0.6 [INFO] [stderr] Compiling ctor-proc-macro v0.0.7 [INFO] [stderr] Checking napi-sys-ohos v1.1.4 [INFO] [stderr] Checking bitflags v2.6.0 [INFO] [stderr] Compiling napi-ohos v1.1.4 (/opt/rustwide/workdir) [INFO] [stderr] Checking dtor v0.1.0 [INFO] [stderr] Checking ctor v0.6.1 [INFO] [stdout] warning: unused import: `ffi::CString` [INFO] [stdout] --> src/bindgen_runtime/js_values/symbol.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | use std::{ffi::CString, ptr}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ffi::CString` [INFO] [stdout] --> src/bindgen_runtime/js_values/symbol.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | use std::{ffi::CString, ptr}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Symbol` is never constructed [INFO] [stdout] --> src/bindgen_runtime/js_values/symbol.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Symbol { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `identity`, and `into_js_symbol` are never used [INFO] [stdout] --> src/bindgen_runtime/js_values/symbol.rs:29:10 [INFO] [stdout] | [INFO] [stdout] 28 | impl Symbol { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 29 | pub fn new(desc: S) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn identity() -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn into_js_symbol<'env>(self, env: &'env Env) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `qos` is never read [INFO] [stdout] --> src/bindgen_runtime/js_values/task.rs:20:3 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct AsyncTask ScopedTask<'task>> { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 20 | qos: Option, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `referred` is never read [INFO] [stdout] --> src/threadsafe_function.rs:67:3 [INFO] [stdout] | [INFO] [stdout] 64 | pub struct ThreadsafeFunctionHandle { [INFO] [stdout] | ------------------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 67 | referred: AtomicBool, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result [INFO] [stdout] --> src/bindgen_runtime/js_values/number.rs:56:11 [INFO] [stdout] | [INFO] [stdout] 56 | ret.try_into().map_err(|_| Error::from_reason(concat!("Failed to convert ", stringify!($st), " to ", stringify!($t)))) [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | / impl_number_conversions!( [INFO] [stdout] 64 | | ("u8", u8 as u32, napi_get_value_uint32, napi_create_uint32), [INFO] [stdout] 65 | | ("i8", i8 as i32, napi_get_value_int32, napi_create_int32), [INFO] [stdout] 66 | | ("u16", u16 as u32, napi_get_value_uint32, napi_create_uint32), [INFO] [stdout] ... | [INFO] [stdout] 71 | | ("f64", f64 as f64, napi_get_value_double, napi_create_double), [INFO] [stdout] 72 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D unmustuse-in-always-ok` [INFO] [stdout] = note: this error originates in the macro `impl_number_conversions` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result [INFO] [stdout] --> src/bindgen_runtime/js_values/number.rs:56:11 [INFO] [stdout] | [INFO] [stdout] 56 | ret.try_into().map_err(|_| Error::from_reason(concat!("Failed to convert ", stringify!($st), " to ", stringify!($t)))) [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | / impl_number_conversions!( [INFO] [stdout] 64 | | ("u8", u8 as u32, napi_get_value_uint32, napi_create_uint32), [INFO] [stdout] 65 | | ("i8", i8 as i32, napi_get_value_int32, napi_create_int32), [INFO] [stdout] 66 | | ("u16", u16 as u32, napi_get_value_uint32, napi_create_uint32), [INFO] [stdout] ... | [INFO] [stdout] 71 | | ("f64", f64 as f64, napi_get_value_double, napi_create_double), [INFO] [stdout] 72 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `impl_number_conversions` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result [INFO] [stdout] --> src/bindgen_runtime/js_values/number.rs:56:11 [INFO] [stdout] | [INFO] [stdout] 56 | ret.try_into().map_err(|_| Error::from_reason(concat!("Failed to convert ", stringify!($st), " to ", stringify!($t)))) [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | / impl_number_conversions!( [INFO] [stdout] 64 | | ("u8", u8 as u32, napi_get_value_uint32, napi_create_uint32), [INFO] [stdout] 65 | | ("i8", i8 as i32, napi_get_value_int32, napi_create_int32), [INFO] [stdout] 66 | | ("u16", u16 as u32, napi_get_value_uint32, napi_create_uint32), [INFO] [stdout] ... | [INFO] [stdout] 71 | | ("f64", f64 as f64, napi_get_value_double, napi_create_double), [INFO] [stdout] 72 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `impl_number_conversions` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result [INFO] [stdout] --> src/bindgen_runtime/js_values/number.rs:56:11 [INFO] [stdout] | [INFO] [stdout] 56 | ret.try_into().map_err(|_| Error::from_reason(concat!("Failed to convert ", stringify!($st), " to ", stringify!($t)))) [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | / impl_number_conversions!( [INFO] [stdout] 64 | | ("u8", u8 as u32, napi_get_value_uint32, napi_create_uint32), [INFO] [stdout] 65 | | ("i8", i8 as i32, napi_get_value_int32, napi_create_int32), [INFO] [stdout] 66 | | ("u16", u16 as u32, napi_get_value_uint32, napi_create_uint32), [INFO] [stdout] ... | [INFO] [stdout] 71 | | ("f64", f64 as f64, napi_get_value_double, napi_create_double), [INFO] [stdout] 72 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `impl_number_conversions` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `napi-ohos` (lib test) due to 4 previous errors; 5 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: struct `Symbol` is never constructed [INFO] [stdout] --> src/bindgen_runtime/js_values/symbol.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Symbol { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `identity`, and `into_js_symbol` are never used [INFO] [stdout] --> src/bindgen_runtime/js_values/symbol.rs:29:10 [INFO] [stdout] | [INFO] [stdout] 28 | impl Symbol { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 29 | pub fn new(desc: S) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn identity() -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn into_js_symbol<'env>(self, env: &'env Env) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `qos` is never read [INFO] [stdout] --> src/bindgen_runtime/js_values/task.rs:20:3 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct AsyncTask ScopedTask<'task>> { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 20 | qos: Option, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `referred` is never read [INFO] [stdout] --> src/threadsafe_function.rs:67:3 [INFO] [stdout] | [INFO] [stdout] 64 | pub struct ThreadsafeFunctionHandle { [INFO] [stdout] | ------------------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 67 | referred: AtomicBool, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result [INFO] [stdout] --> src/bindgen_runtime/js_values/number.rs:56:11 [INFO] [stdout] | [INFO] [stdout] 56 | ret.try_into().map_err(|_| Error::from_reason(concat!("Failed to convert ", stringify!($st), " to ", stringify!($t)))) [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | / impl_number_conversions!( [INFO] [stdout] 64 | | ("u8", u8 as u32, napi_get_value_uint32, napi_create_uint32), [INFO] [stdout] 65 | | ("i8", i8 as i32, napi_get_value_int32, napi_create_int32), [INFO] [stdout] 66 | | ("u16", u16 as u32, napi_get_value_uint32, napi_create_uint32), [INFO] [stdout] ... | [INFO] [stdout] 71 | | ("f64", f64 as f64, napi_get_value_double, napi_create_double), [INFO] [stdout] 72 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D unmustuse-in-always-ok` [INFO] [stdout] = note: this error originates in the macro `impl_number_conversions` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result [INFO] [stdout] --> src/bindgen_runtime/js_values/number.rs:56:11 [INFO] [stdout] | [INFO] [stdout] 56 | ret.try_into().map_err(|_| Error::from_reason(concat!("Failed to convert ", stringify!($st), " to ", stringify!($t)))) [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | / impl_number_conversions!( [INFO] [stdout] 64 | | ("u8", u8 as u32, napi_get_value_uint32, napi_create_uint32), [INFO] [stdout] 65 | | ("i8", i8 as i32, napi_get_value_int32, napi_create_int32), [INFO] [stdout] 66 | | ("u16", u16 as u32, napi_get_value_uint32, napi_create_uint32), [INFO] [stdout] ... | [INFO] [stdout] 71 | | ("f64", f64 as f64, napi_get_value_double, napi_create_double), [INFO] [stdout] 72 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `impl_number_conversions` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result [INFO] [stdout] --> src/bindgen_runtime/js_values/number.rs:56:11 [INFO] [stdout] | [INFO] [stdout] 56 | ret.try_into().map_err(|_| Error::from_reason(concat!("Failed to convert ", stringify!($st), " to ", stringify!($t)))) [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | / impl_number_conversions!( [INFO] [stdout] 64 | | ("u8", u8 as u32, napi_get_value_uint32, napi_create_uint32), [INFO] [stdout] 65 | | ("i8", i8 as i32, napi_get_value_int32, napi_create_int32), [INFO] [stdout] 66 | | ("u16", u16 as u32, napi_get_value_uint32, napi_create_uint32), [INFO] [stdout] ... | [INFO] [stdout] 71 | | ("f64", f64 as f64, napi_get_value_double, napi_create_double), [INFO] [stdout] 72 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `impl_number_conversions` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result [INFO] [stdout] --> src/bindgen_runtime/js_values/number.rs:56:11 [INFO] [stdout] | [INFO] [stdout] 56 | ret.try_into().map_err(|_| Error::from_reason(concat!("Failed to convert ", stringify!($st), " to ", stringify!($t)))) [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | / impl_number_conversions!( [INFO] [stdout] 64 | | ("u8", u8 as u32, napi_get_value_uint32, napi_create_uint32), [INFO] [stdout] 65 | | ("i8", i8 as i32, napi_get_value_int32, napi_create_int32), [INFO] [stdout] 66 | | ("u16", u16 as u32, napi_get_value_uint32, napi_create_uint32), [INFO] [stdout] ... | [INFO] [stdout] 71 | | ("f64", f64 as f64, napi_get_value_double, napi_create_double), [INFO] [stdout] 72 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `impl_number_conversions` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `napi-ohos` (lib) due to 4 previous errors; 5 warnings emitted [INFO] running `Command { std: "docker" "inspect" "03dee318471fa7caee1b0a01e0b6340c682983ea4eea7f6129e01bcd516c515b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "03dee318471fa7caee1b0a01e0b6340c682983ea4eea7f6129e01bcd516c515b", kill_on_drop: false }` [INFO] [stdout] 03dee318471fa7caee1b0a01e0b6340c682983ea4eea7f6129e01bcd516c515b