[INFO] cloning repository https://github.com/fikgol/starcoin-usbminer [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/fikgol/starcoin-usbminer" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffikgol%2Fstarcoin-usbminer", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffikgol%2Fstarcoin-usbminer'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1ef502fbaccf9889633b60a89cc36503c533f4eb [INFO] testing fikgol/starcoin-usbminer against beta-2022-02-22 for beta-1.60-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffikgol%2Fstarcoin-usbminer" "/workspace/builds/worker-8/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-8/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/fikgol/starcoin-usbminer on toolchain beta-2022-02-22 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-02-22" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/fikgol/starcoin-usbminer [INFO] finished tweaking git repo https://github.com/fikgol/starcoin-usbminer [INFO] tweaked toml for git repo https://github.com/fikgol/starcoin-usbminer written to /workspace/builds/worker-8/source/Cargo.toml [INFO] crate git repo https://github.com/fikgol/starcoin-usbminer already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-02-22" "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-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-02-22" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6c737493153c9786802bb95e5eefb1149fad0eb66f9b402ac7c4a47f87fe38ce [INFO] running `Command { std: "docker" "start" "-a" "6c737493153c9786802bb95e5eefb1149fad0eb66f9b402ac7c4a47f87fe38ce", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6c737493153c9786802bb95e5eefb1149fad0eb66f9b402ac7c4a47f87fe38ce", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6c737493153c9786802bb95e5eefb1149fad0eb66f9b402ac7c4a47f87fe38ce", kill_on_drop: false }` [INFO] [stdout] 6c737493153c9786802bb95e5eefb1149fad0eb66f9b402ac7c4a47f87fe38ce [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-02-22" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] dbaf7f560209e7255e08e3384edc58cd3ca459a7fa9382c2c45cd997b15e539d [INFO] running `Command { std: "docker" "start" "-a" "dbaf7f560209e7255e08e3384edc58cd3ca459a7fa9382c2c45cd997b15e539d", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.79 [INFO] [stderr] Compiling memchr v2.3.3 [INFO] [stderr] Compiling futures-io v0.3.7 [INFO] [stderr] Compiling log v0.4.11 [INFO] [stderr] Compiling futures-sink v0.3.7 [INFO] [stderr] Compiling nix v0.14.1 [INFO] [stderr] Compiling anyhow v1.0.33 [INFO] [stderr] Compiling atomic-waker v1.0.0 [INFO] [stderr] Compiling smallvec v1.4.2 [INFO] [stderr] Compiling instant v0.1.8 [INFO] [stderr] Compiling async-mutex v1.4.0 [INFO] [stderr] Compiling lock_api v0.4.1 [INFO] [stderr] Compiling async-channel v1.5.1 [INFO] [stderr] Compiling futures-macro v0.3.7 [INFO] [stderr] Compiling futures-channel v0.3.7 [INFO] [stderr] Compiling kv-log-macro v1.0.7 [INFO] [stderr] Compiling futures-lite v1.11.2 [INFO] [stderr] Compiling nb-connect v1.0.2 [INFO] [stderr] Compiling polling v2.0.2 [INFO] [stderr] Compiling libudev-sys v0.1.4 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling parking_lot_core v0.8.0 [INFO] [stderr] Compiling libudev v0.2.0 [INFO] [stderr] Compiling parking_lot v0.11.0 [INFO] [stderr] Compiling async-executor v1.3.0 [INFO] [stderr] Compiling async-io v1.1.10 [INFO] [stderr] Compiling blocking v1.0.2 [INFO] [stderr] Compiling futures-util v0.3.7 [INFO] [stderr] Compiling async-global-executor v1.4.3 [INFO] [stderr] Compiling async-std v1.6.5 [INFO] [stderr] Compiling serialport v3.3.0 [INFO] [stderr] Compiling futures-executor v0.3.7 [INFO] [stderr] Compiling futures v0.3.7 [INFO] [stderr] Compiling starcoin-superminer v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Error` [INFO] [stdout] --> src/derive.rs:5:22 [INFO] [stdout] | [INFO] [stdout] 5 | use anyhow::{Result, Error}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `futures::io::ErrorKind` [INFO] [stdout] --> src/derive.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use futures::io::ErrorKind; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread::spawn` [INFO] [stdout] --> src/derive.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use std::thread::spawn; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/derive.rs:118:21 [INFO] [stdout] | [INFO] [stdout] 118 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `TYPE_SET_BOOT_MODE` [INFO] [stdout] --> src/constants.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | pub(crate) const TYPE_SET_BOOT_MODE: u8 = 0xA3; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `TYPE_UPDATE_FW` [INFO] [stdout] --> src/constants.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | pub(crate) const TYPE_UPDATE_FW: u8 = 0xAA; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `TYPE_QUERY_INFO` [INFO] [stdout] --> src/constants.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | pub(crate) const TYPE_QUERY_INFO: u8 = 0xA4; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `TYPE_PRODUCT_TEST` [INFO] [stdout] --> src/constants.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | pub(crate) const TYPE_PRODUCT_TEST: u8 = 0xAB; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `TYPE_SET_LED` [INFO] [stdout] --> src/constants.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | pub(crate) const TYPE_SET_LED: u8 = 0xA6; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `TYPE_REBOOT` [INFO] [stdout] --> src/constants.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | pub(crate) const TYPE_REBOOT: u8 = 0xAC; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `TYPE_RECV_BOOT_MODE` [INFO] [stdout] --> src/constants.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | pub(crate) const TYPE_RECV_BOOT_MODE: u8 = 0x53; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `TYPE_RECV_INFO` [INFO] [stdout] --> src/constants.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | pub(crate) const TYPE_RECV_INFO: u8 = 0x54; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `TYPE_RECV_OP` [INFO] [stdout] --> src/constants.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 | pub(crate) const TYPE_RECV_OP: u8 = 0x57; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `TYPE_RECV_FWSTATE` [INFO] [stdout] --> src/constants.rs:19:1 [INFO] [stdout] | [INFO] [stdout] 19 | pub(crate) const TYPE_RECV_FWSTATE: u8 = 0x5A; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `TYPE_RECV_TEST_RESULT` [INFO] [stdout] --> src/constants.rs:20:1 [INFO] [stdout] | [INFO] [stdout] 20 | pub(crate) const TYPE_RECV_TEST_RESULT: u8 = 0x5B; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 15 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 12.26s [INFO] running `Command { std: "docker" "inspect" "dbaf7f560209e7255e08e3384edc58cd3ca459a7fa9382c2c45cd997b15e539d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dbaf7f560209e7255e08e3384edc58cd3ca459a7fa9382c2c45cd997b15e539d", kill_on_drop: false }` [INFO] [stdout] dbaf7f560209e7255e08e3384edc58cd3ca459a7fa9382c2c45cd997b15e539d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-02-22" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a509f6921e6bcaa0fa98ed3cd13d367e1163ab08b706df15bb9e6a5738930d98 [INFO] running `Command { std: "docker" "start" "-a" "a509f6921e6bcaa0fa98ed3cd13d367e1163ab08b706df15bb9e6a5738930d98", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stdout] warning: unused import: `Error` [INFO] [stdout] --> src/derive.rs:5:22 [INFO] [stdout] | [INFO] [stdout] 5 | use anyhow::{Result, Error}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `futures::io::ErrorKind` [INFO] [stdout] --> src/derive.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use futures::io::ErrorKind; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread::spawn` [INFO] [stdout] --> src/derive.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use std::thread::spawn; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/derive.rs:118:21 [INFO] [stdout] | [INFO] [stdout] 118 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `TYPE_SET_BOOT_MODE` [INFO] [stdout] --> src/constants.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | pub(crate) const TYPE_SET_BOOT_MODE: u8 = 0xA3; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `TYPE_UPDATE_FW` [INFO] [stdout] --> src/constants.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | pub(crate) const TYPE_UPDATE_FW: u8 = 0xAA; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `TYPE_QUERY_INFO` [INFO] [stdout] --> src/constants.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | pub(crate) const TYPE_QUERY_INFO: u8 = 0xA4; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `TYPE_PRODUCT_TEST` [INFO] [stdout] --> src/constants.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | pub(crate) const TYPE_PRODUCT_TEST: u8 = 0xAB; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `TYPE_SET_LED` [INFO] [stdout] --> src/constants.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | pub(crate) const TYPE_SET_LED: u8 = 0xA6; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `TYPE_REBOOT` [INFO] [stdout] --> src/constants.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | pub(crate) const TYPE_REBOOT: u8 = 0xAC; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `TYPE_RECV_BOOT_MODE` [INFO] [stdout] --> src/constants.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | pub(crate) const TYPE_RECV_BOOT_MODE: u8 = 0x53; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `TYPE_RECV_INFO` [INFO] [stdout] --> src/constants.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | pub(crate) const TYPE_RECV_INFO: u8 = 0x54; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `TYPE_RECV_OP` [INFO] [stdout] --> src/constants.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 | pub(crate) const TYPE_RECV_OP: u8 = 0x57; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `TYPE_RECV_FWSTATE` [INFO] [stdout] --> src/constants.rs:19:1 [INFO] [stdout] | [INFO] [stdout] 19 | pub(crate) const TYPE_RECV_FWSTATE: u8 = 0x5A; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `TYPE_RECV_TEST_RESULT` [INFO] [stdout] --> src/constants.rs:20:1 [INFO] [stdout] | [INFO] [stdout] 20 | pub(crate) const TYPE_RECV_TEST_RESULT: u8 = 0x5B; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 15 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling starcoin-superminer v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Error` [INFO] [stdout] --> src/derive.rs:5:22 [INFO] [stdout] | [INFO] [stdout] 5 | use anyhow::{Result, Error}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `futures::io::ErrorKind` [INFO] [stdout] --> src/derive.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use futures::io::ErrorKind; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread::spawn` [INFO] [stdout] --> src/derive.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use std::thread::spawn; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DeriveResponse`, `Message` [INFO] [stdout] --> src/tests.rs:4:24 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::proto::{Message, DeriveResponse}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::read_until` [INFO] [stdout] --> src/tests.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::read_until; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Error` [INFO] [stdout] --> src/tests.rs:6:26 [INFO] [stdout] | [INFO] [stdout] 6 | use anyhow::{Result, Error}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io` [INFO] [stdout] --> src/tests.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | use std::io; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/tests.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/derive.rs:118:21 [INFO] [stdout] | [INFO] [stdout] 118 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hash` [INFO] [stdout] --> src/tests.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | let hash: [u8; 32] = [ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/tests.rs:31:13 [INFO] [stdout] | [INFO] [stdout] 31 | let input = INPUT_DATA.clone(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: attempting to modify a `const` item [INFO] [stdout] --> src/tests.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | INPUT_DATA[39] = nonce_b[0]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(const_item_mutation)]` on by default [INFO] [stdout] = note: each usage of a `const` item creates a new temporary; the original `const` item will not be modified [INFO] [stdout] note: `const` item defined here [INFO] [stdout] --> src/tests.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | / const INPUT_DATA: [u8; 76] = [ [INFO] [stdout] 16 | | 0x05, 0x05, 0xc0, 0xa7, 0xdb, 0xc7, 0x05, 0xb0, 0xad, 0xf8, 0x2c, 0x58, 0x1a, 0xae, 0xe4, [INFO] [stdout] 17 | | 0x8b, 0x2e, 0x0a, 0xee, 0x2e, 0xa8, 0x97, 0x2d, 0xd7, 0x9d, 0xba, 0xf3, 0xca, 0x28, 0xac, [INFO] [stdout] 18 | | 0xca, 0x5f, 0x73, 0xca, 0x2a, 0x90, 0x9c, 0x8c, 0x24, 0xf7, 0x09, 0x00, 0x80, 0xf9, 0x87, [INFO] [stdout] ... | [INFO] [stdout] 21 | | 0x00, [INFO] [stdout] 22 | | ]; [INFO] [stdout] | |______^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: attempting to modify a `const` item [INFO] [stdout] --> src/tests.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | INPUT_DATA[40] = nonce_b[1]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: each usage of a `const` item creates a new temporary; the original `const` item will not be modified [INFO] [stdout] note: `const` item defined here [INFO] [stdout] --> src/tests.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | / const INPUT_DATA: [u8; 76] = [ [INFO] [stdout] 16 | | 0x05, 0x05, 0xc0, 0xa7, 0xdb, 0xc7, 0x05, 0xb0, 0xad, 0xf8, 0x2c, 0x58, 0x1a, 0xae, 0xe4, [INFO] [stdout] 17 | | 0x8b, 0x2e, 0x0a, 0xee, 0x2e, 0xa8, 0x97, 0x2d, 0xd7, 0x9d, 0xba, 0xf3, 0xca, 0x28, 0xac, [INFO] [stdout] 18 | | 0xca, 0x5f, 0x73, 0xca, 0x2a, 0x90, 0x9c, 0x8c, 0x24, 0xf7, 0x09, 0x00, 0x80, 0xf9, 0x87, [INFO] [stdout] ... | [INFO] [stdout] 21 | | 0x00, [INFO] [stdout] 22 | | ]; [INFO] [stdout] | |______^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: attempting to modify a `const` item [INFO] [stdout] --> src/tests.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | INPUT_DATA[41] = nonce_b[2]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: each usage of a `const` item creates a new temporary; the original `const` item will not be modified [INFO] [stdout] note: `const` item defined here [INFO] [stdout] --> src/tests.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | / const INPUT_DATA: [u8; 76] = [ [INFO] [stdout] 16 | | 0x05, 0x05, 0xc0, 0xa7, 0xdb, 0xc7, 0x05, 0xb0, 0xad, 0xf8, 0x2c, 0x58, 0x1a, 0xae, 0xe4, [INFO] [stdout] 17 | | 0x8b, 0x2e, 0x0a, 0xee, 0x2e, 0xa8, 0x97, 0x2d, 0xd7, 0x9d, 0xba, 0xf3, 0xca, 0x28, 0xac, [INFO] [stdout] 18 | | 0xca, 0x5f, 0x73, 0xca, 0x2a, 0x90, 0x9c, 0x8c, 0x24, 0xf7, 0x09, 0x00, 0x80, 0xf9, 0x87, [INFO] [stdout] ... | [INFO] [stdout] 21 | | 0x00, [INFO] [stdout] 22 | | ]; [INFO] [stdout] | |______^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: attempting to modify a `const` item [INFO] [stdout] --> src/tests.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | INPUT_DATA[42] = nonce_b[3]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: each usage of a `const` item creates a new temporary; the original `const` item will not be modified [INFO] [stdout] note: `const` item defined here [INFO] [stdout] --> src/tests.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | / const INPUT_DATA: [u8; 76] = [ [INFO] [stdout] 16 | | 0x05, 0x05, 0xc0, 0xa7, 0xdb, 0xc7, 0x05, 0xb0, 0xad, 0xf8, 0x2c, 0x58, 0x1a, 0xae, 0xe4, [INFO] [stdout] 17 | | 0x8b, 0x2e, 0x0a, 0xee, 0x2e, 0xa8, 0x97, 0x2d, 0xd7, 0x9d, 0xba, 0xf3, 0xca, 0x28, 0xac, [INFO] [stdout] 18 | | 0xca, 0x5f, 0x73, 0xca, 0x2a, 0x90, 0x9c, 0x8c, 0x24, 0xf7, 0x09, 0x00, 0x80, 0xf9, 0x87, [INFO] [stdout] ... | [INFO] [stdout] 21 | | 0x00, [INFO] [stdout] 22 | | ]; [INFO] [stdout] | |______^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `TYPE_SET_BOOT_MODE` [INFO] [stdout] --> src/constants.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | pub(crate) const TYPE_SET_BOOT_MODE: u8 = 0xA3; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `TYPE_UPDATE_FW` [INFO] [stdout] --> src/constants.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | pub(crate) const TYPE_UPDATE_FW: u8 = 0xAA; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `TYPE_QUERY_INFO` [INFO] [stdout] --> src/constants.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | pub(crate) const TYPE_QUERY_INFO: u8 = 0xA4; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `TYPE_PRODUCT_TEST` [INFO] [stdout] --> src/constants.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | pub(crate) const TYPE_PRODUCT_TEST: u8 = 0xAB; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `TYPE_SET_LED` [INFO] [stdout] --> src/constants.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | pub(crate) const TYPE_SET_LED: u8 = 0xA6; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `TYPE_REBOOT` [INFO] [stdout] --> src/constants.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | pub(crate) const TYPE_REBOOT: u8 = 0xAC; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `TYPE_RECV_BOOT_MODE` [INFO] [stdout] --> src/constants.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | pub(crate) const TYPE_RECV_BOOT_MODE: u8 = 0x53; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `TYPE_RECV_INFO` [INFO] [stdout] --> src/constants.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | pub(crate) const TYPE_RECV_INFO: u8 = 0x54; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `TYPE_RECV_OP` [INFO] [stdout] --> src/constants.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 | pub(crate) const TYPE_RECV_OP: u8 = 0x57; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `TYPE_RECV_FWSTATE` [INFO] [stdout] --> src/constants.rs:19:1 [INFO] [stdout] | [INFO] [stdout] 19 | pub(crate) const TYPE_RECV_FWSTATE: u8 = 0x5A; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `TYPE_RECV_TEST_RESULT` [INFO] [stdout] --> src/constants.rs:20:1 [INFO] [stdout] | [INFO] [stdout] 20 | pub(crate) const TYPE_RECV_TEST_RESULT: u8 = 0x5B; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/tests.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | derive.set_hw_params(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 27 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 3.42s [INFO] running `Command { std: "docker" "inspect" "a509f6921e6bcaa0fa98ed3cd13d367e1163ab08b706df15bb9e6a5738930d98", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a509f6921e6bcaa0fa98ed3cd13d367e1163ab08b706df15bb9e6a5738930d98", kill_on_drop: false }` [INFO] [stdout] a509f6921e6bcaa0fa98ed3cd13d367e1163ab08b706df15bb9e6a5738930d98 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-02-22" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 5ddada9d49dbe58017daf84e85886a3000e237f4e18d003b25e22962b00ed3fd [INFO] running `Command { std: "docker" "start" "-a" "5ddada9d49dbe58017daf84e85886a3000e237f4e18d003b25e22962b00ed3fd", kill_on_drop: false }` [INFO] [stdout] [INFO] [stderr] warning: unused import: `Error` [INFO] [stdout] running 5 tests [INFO] [stderr] --> src/derive.rs:5:22 [INFO] [stdout] test proto::tests::test_get_state_msg ... ok [INFO] [stderr] | [INFO] [stdout] test tests::tests::test_caculate_hash ... ok [INFO] [stderr] 5 | use anyhow::{Result, Error}; [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `futures::io::ErrorKind` [INFO] [stderr] --> src/derive.rs:10:5 [INFO] [stderr] | [INFO] [stderr] 10 | use futures::io::ErrorKind; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::thread::spawn` [INFO] [stderr] --> src/derive.rs:14:5 [INFO] [stderr] | [INFO] [stderr] 14 | use std::thread::spawn; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `e` [INFO] [stderr] --> src/derive.rs:118:21 [INFO] [stderr] | [INFO] [stderr] 118 | Err(e) => { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: constant is never used: `TYPE_SET_BOOT_MODE` [INFO] [stderr] --> src/constants.rs:5:1 [INFO] [stderr] | [INFO] [stderr] 5 | pub(crate) const TYPE_SET_BOOT_MODE: u8 = 0xA3; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: constant is never used: `TYPE_UPDATE_FW` [INFO] [stderr] --> src/constants.rs:6:1 [INFO] [stderr] | [INFO] [stderr] 6 | pub(crate) const TYPE_UPDATE_FW: u8 = 0xAA; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant is never used: `TYPE_QUERY_INFO` [INFO] [stderr] --> src/constants.rs:7:1 [INFO] [stderr] | [INFO] [stderr] 7 | pub(crate) const TYPE_QUERY_INFO: u8 = 0xA4; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant is never used: `TYPE_PRODUCT_TEST` [INFO] [stderr] --> src/constants.rs:8:1 [INFO] [stderr] | [INFO] [stderr] 8 | pub(crate) const TYPE_PRODUCT_TEST: u8 = 0xAB; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant is never used: `TYPE_SET_LED` [INFO] [stderr] --> src/constants.rs:9:1 [INFO] [stderr] | [INFO] [stderr] 9 | pub(crate) const TYPE_SET_LED: u8 = 0xA6; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant is never used: `TYPE_REBOOT` [INFO] [stderr] --> src/constants.rs:13:1 [INFO] [stderr] | [INFO] [stderr] 13 | pub(crate) const TYPE_REBOOT: u8 = 0xAC; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant is never used: `TYPE_RECV_BOOT_MODE` [INFO] [stderr] --> src/constants.rs:16:1 [INFO] [stderr] | [INFO] [stderr] 16 | pub(crate) const TYPE_RECV_BOOT_MODE: u8 = 0x53; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant is never used: `TYPE_RECV_INFO` [INFO] [stderr] --> src/constants.rs:17:1 [INFO] [stderr] | [INFO] [stderr] 17 | pub(crate) const TYPE_RECV_INFO: u8 = 0x54; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant is never used: `TYPE_RECV_OP` [INFO] [stderr] --> src/constants.rs:18:1 [INFO] [stderr] | [INFO] [stderr] 18 | pub(crate) const TYPE_RECV_OP: u8 = 0x57; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant is never used: `TYPE_RECV_FWSTATE` [INFO] [stderr] --> src/constants.rs:19:1 [INFO] [stderr] | [INFO] [stderr] 19 | pub(crate) const TYPE_RECV_FWSTATE: u8 = 0x5A; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant is never used: `TYPE_RECV_TEST_RESULT` [INFO] [stderr] --> src/constants.rs:20:1 [INFO] [stderr] | [INFO] [stderr] 20 | pub(crate) const TYPE_RECV_TEST_RESULT: u8 = 0x5B; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `DeriveResponse`, `Message` [INFO] [stderr] --> src/tests.rs:4:24 [INFO] [stderr] | [INFO] [stderr] 4 | use crate::proto::{Message, DeriveResponse}; [INFO] [stderr] | ^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `crate::read_until` [INFO] [stderr] --> src/tests.rs:5:9 [INFO] [stderr] | [INFO] [stderr] 5 | use crate::read_until; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Error` [INFO] [stderr] --> src/tests.rs:6:26 [INFO] [stderr] | [INFO] [stderr] 6 | use anyhow::{Result, Error}; [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::io` [INFO] [stderr] --> src/tests.rs:8:9 [INFO] [stderr] | [INFO] [stderr] 8 | use std::io; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::time::Duration` [INFO] [stderr] --> src/tests.rs:9:9 [INFO] [stderr] | [INFO] [stderr] 9 | use std::time::Duration; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `hash` [INFO] [stderr] --> src/tests.rs:27:13 [INFO] [stderr] | [INFO] [stderr] 27 | let hash: [u8; 32] = [ [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_hash` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `input` [INFO] [stderr] --> src/tests.rs:31:13 [INFO] [stderr] | [INFO] [stderr] 31 | let input = INPUT_DATA.clone(); [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stderr] [INFO] [stderr] warning: attempting to modify a `const` item [INFO] [stderr] --> src/tests.rs:34:9 [INFO] [stderr] | [INFO] [stderr] 34 | INPUT_DATA[39] = nonce_b[0]; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(const_item_mutation)]` on by default [INFO] [stderr] = note: each usage of a `const` item creates a new temporary; the original `const` item will not be modified [INFO] [stderr] note: `const` item defined here [INFO] [stderr] --> src/tests.rs:15:5 [INFO] [stderr] | [INFO] [stderr] 15 | / const INPUT_DATA: [u8; 76] = [ [INFO] [stderr] 16 | | 0x05, 0x05, 0xc0, 0xa7, 0xdb, 0xc7, 0x05, 0xb0, 0xad, 0xf8, 0x2c, 0x58, 0x1a, 0xae, 0xe4, [INFO] [stderr] 17 | | 0x8b, 0x2e, 0x0a, 0xee, 0x2e, 0xa8, 0x97, 0x2d, 0xd7, 0x9d, 0xba, 0xf3, 0xca, 0x28, 0xac, [INFO] [stderr] 18 | | 0xca, 0x5f, 0x73, 0xca, 0x2a, 0x90, 0x9c, 0x8c, 0x24, 0xf7, 0x09, 0x00, 0x80, 0xf9, 0x87, [INFO] [stderr] ... | [INFO] [stderr] 21 | | 0x00, [INFO] [stderr] 22 | | ]; [INFO] [stderr] | |______^ [INFO] [stderr] [INFO] [stderr] warning: attempting to modify a `const` item [INFO] [stderr] --> src/tests.rs:35:9 [INFO] [stderr] | [INFO] [stderr] 35 | INPUT_DATA[40] = nonce_b[1]; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: each usage of a `const` item creates a new temporary; the original `const` item will not be modified [INFO] [stderr] note: `const` item defined here [INFO] [stderr] --> src/tests.rs:15:5 [INFO] [stderr] | [INFO] [stderr] 15 | / const INPUT_DATA: [u8; 76] = [ [INFO] [stderr] 16 | | 0x05, 0x05, 0xc0, 0xa7, 0xdb, 0xc7, 0x05, 0xb0, 0xad, 0xf8, 0x2c, 0x58, 0x1a, 0xae, 0xe4, [INFO] [stderr] 17 | | 0x8b, 0x2e, 0x0a, 0xee, 0x2e, 0xa8, 0x97, 0x2d, 0xd7, 0x9d, 0xba, 0xf3, 0xca, 0x28, 0xac, [INFO] [stderr] 18 | | 0xca, 0x5f, 0x73, 0xca, 0x2a, 0x90, 0x9c, 0x8c, 0x24, 0xf7, 0x09, 0x00, 0x80, 0xf9, 0x87, [INFO] [stderr] ... | [INFO] [stderr] 21 | | 0x00, [INFO] [stderr] 22 | | ]; [INFO] [stderr] | |______^ [INFO] [stderr] [INFO] [stderr] warning: attempting to modify a `const` item [INFO] [stderr] --> src/tests.rs:36:9 [INFO] [stderr] | [INFO] [stderr] 36 | INPUT_DATA[41] = nonce_b[2]; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: each usage of a `const` item creates a new temporary; the original `const` item will not be modified [INFO] [stderr] note: `const` item defined here [INFO] [stderr] --> src/tests.rs:15:5 [INFO] [stderr] | [INFO] [stderr] 15 | / const INPUT_DATA: [u8; 76] = [ [INFO] [stderr] 16 | | 0x05, 0x05, 0xc0, 0xa7, 0xdb, 0xc7, 0x05, 0xb0, 0xad, 0xf8, 0x2c, 0x58, 0x1a, 0xae, 0xe4, [INFO] [stderr] 17 | | 0x8b, 0x2e, 0x0a, 0xee, 0x2e, 0xa8, 0x97, 0x2d, 0xd7, 0x9d, 0xba, 0xf3, 0xca, 0x28, 0xac, [INFO] [stderr] 18 | | 0xca, 0x5f, 0x73, 0xca, 0x2a, 0x90, 0x9c, 0x8c, 0x24, 0xf7, 0x09, 0x00, 0x80, 0xf9, 0x87, [INFO] [stderr] ... | [INFO] [stderr] 21 | | 0x00, [INFO] [stderr] 22 | | ]; [INFO] [stderr] | |______^ [INFO] [stderr] [INFO] [stderr] warning: attempting to modify a `const` item [INFO] [stderr] --> src/tests.rs:37:9 [INFO] [stderr] | [INFO] [stderr] 37 | INPUT_DATA[42] = nonce_b[3]; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: each usage of a `const` item creates a new temporary; the original `const` item will not be modified [INFO] [stderr] note: `const` item defined here [INFO] [stderr] --> src/tests.rs:15:5 [INFO] [stderr] | [INFO] [stderr] 15 | / const INPUT_DATA: [u8; 76] = [ [INFO] [stderr] 16 | | 0x05, 0x05, 0xc0, 0xa7, 0xdb, 0xc7, 0x05, 0xb0, 0xad, 0xf8, 0x2c, 0x58, 0x1a, 0xae, 0xe4, [INFO] [stderr] 17 | | 0x8b, 0x2e, 0x0a, 0xee, 0x2e, 0xa8, 0x97, 0x2d, 0xd7, 0x9d, 0xba, 0xf3, 0xca, 0x28, 0xac, [INFO] [stderr] 18 | | 0xca, 0x5f, 0x73, 0xca, 0x2a, 0x90, 0x9c, 0x8c, 0x24, 0xf7, 0x09, 0x00, 0x80, 0xf9, 0x87, [INFO] [stderr] ... | [INFO] [stderr] 21 | | 0x00, [INFO] [stderr] 22 | | ]; [INFO] [stderr] | |______^ [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/tests.rs:45:9 [INFO] [stderr] | [INFO] [stderr] 45 | derive.set_hw_params(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_must_use)]` on by default [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] [INFO] [stderr] warning: `starcoin-superminer` (lib) generated 15 warnings [INFO] [stderr] warning: `starcoin-superminer` (lib test) generated 27 warnings (15 duplicates) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.09s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/starcoin_superminer-3e39e5d1785c3ce9) [INFO] [stdout] test test_read_until ... ok [INFO] [stdout] test proto::tests::test_set_hw_msg ... ok [INFO] [stdout] test tests::tests::test_derive_set ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- tests::tests::test_derive_set stdout ---- [INFO] [stdout] thread 'tests::tests::test_derive_set' panicked at 'Must open serial port: No such file or directory', src/tests.rs:44:67 [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x563fba3ae41c - std::backtrace_rs::backtrace::libunwind::trace::h02555d7ca8aa068a [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5 [INFO] [stdout] 1: 0x563fba3ae41c - std::backtrace_rs::backtrace::trace_unsynchronized::h8555a46024147da8 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stdout] 2: 0x563fba3ae41c - std::sys_common::backtrace::_print_fmt::h4c7f50b4f105da1e [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/sys_common/backtrace.rs:66:5 [INFO] [stdout] 3: 0x563fba3ae41c - ::fmt::ha305a40dbc030444 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/sys_common/backtrace.rs:45:22 [INFO] [stdout] 4: 0x563fba3d377c - core::fmt::write::hadd15acf4d6ce273 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/core/src/fmt/mod.rs:1190:17 [INFO] [stdout] 5: 0x563fba3a9d18 - std::io::Write::write_fmt::h271050faa79d27d2 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/io/mod.rs:1657:15 [INFO] [stdout] 6: 0x563fba3b06e7 - std::sys_common::backtrace::_print::h0dd5c0810675bd8c [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/sys_common/backtrace.rs:48:5 [INFO] [stdout] 7: 0x563fba3b06e7 - std::sys_common::backtrace::print::h20a2155fa0a22ca6 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/sys_common/backtrace.rs:35:9 [INFO] [stdout] 8: 0x563fba3b06e7 - std::panicking::default_hook::{{closure}}::habb3b6f3ccdfe00a [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/panicking.rs:295:22 [INFO] [stdout] 9: 0x563fba3b041b - std::panicking::default_hook::h1c5cf4d5063a38e4 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/panicking.rs:311:9 [INFO] [stdout] 10: 0x563fba3b0e3a - std::panicking::rust_panic_with_hook::hb5de7a3072d2cf59 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/panicking.rs:698:17 [INFO] [stdout] 11: 0x563fba3b0b27 - std::panicking::begin_panic_handler::{{closure}}::h5106de2f55f1a411 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/panicking.rs:588:13 [INFO] [stdout] 12: 0x563fba3ae8e4 - std::sys_common::backtrace::__rust_end_short_backtrace::h5ad5c2a8a003ca72 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/sys_common/backtrace.rs:138:18 [INFO] [stdout] 13: 0x563fba3b0839 - rust_begin_unwind [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/panicking.rs:584:5 [INFO] [stdout] 14: 0x563fba313133 - core::panicking::panic_fmt::hfb4b8460cd493e74 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/core/src/panicking.rs:143:14 [INFO] [stdout] 15: 0x563fba313223 - core::result::unwrap_failed::hf9b34e307f812de0 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/core/src/result.rs:1749:5 [INFO] [stdout] 16: 0x563fba3279bc - core::result::Result::expect::h4224bb5cbd4c256f [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/core/src/result.rs:1022:23 [INFO] [stdout] 17: 0x563fba322bc6 - starcoin_superminer::tests::tests::setup::hddd11a76434c4b85 [INFO] [stdout] at /opt/rustwide/workdir/src/tests.rs:44:26 [INFO] [stdout] 18: 0x563fba323120 - starcoin_superminer::tests::tests::test_derive_set::h00f33b0feb540372 [INFO] [stdout] at /opt/rustwide/workdir/src/tests.rs:54:26 [INFO] [stdout] 19: 0x563fba3230ca - starcoin_superminer::tests::tests::test_derive_set::{{closure}}::h388dae283f8a62c0 [INFO] [stdout] at /opt/rustwide/workdir/src/tests.rs:52:5 [INFO] [stdout] 20: 0x563fba3250ee - core::ops::function::FnOnce::call_once::h9f46c8327ba6c725 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 21: 0x563fba35e1c3 - core::ops::function::FnOnce::call_once::h43953c8a8f54893f [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 22: 0x563fba35e1c3 - test::__rust_begin_short_backtrace::h163f55298a15df9b [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/test/src/lib.rs:575:5 [INFO] [stdout] 23: 0x563fba35cef1 - as core::ops::function::FnOnce>::call_once::hc911782b3cbc7ed5 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/alloc/src/boxed.rs:1854:9 [INFO] [stdout] 24: 0x563fba35cef1 - as core::ops::function::FnOnce<()>>::call_once::hc5bb369afbf9cd4e [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/core/src/panic/unwind_safe.rs:271:9 [INFO] [stdout] 25: 0x563fba35cef1 - std::panicking::try::do_call::he60df4e3e832faff [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/panicking.rs:492:40 [INFO] [stdout] 26: 0x563fba35cef1 - std::panicking::try::h2633cee89a0767f3 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/panicking.rs:456:19 [INFO] [stdout] 27: 0x563fba35cef1 - std::panic::catch_unwind::h6e10f7b94ce38b1e [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/panic.rs:137:14 [INFO] [stdout] 28: 0x563fba35cef1 - test::run_test_in_process::h085ef39049c3b50b [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/test/src/lib.rs:598:18 [INFO] [stdout] 29: 0x563fba35cef1 - test::run_test::run_test_inner::{{closure}}::h4e58ce9f68eb43e4 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/test/src/lib.rs:492:39 [INFO] [stdout] 30: 0x563fba3667d1 - test::run_test::run_test_inner::{{closure}}::h6d18db28c5e396ee [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/test/src/lib.rs:519:37 [INFO] [stdout] 31: 0x563fba3667d1 - std::sys_common::backtrace::__rust_begin_short_backtrace::h32292cb2cd8be620 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/sys_common/backtrace.rs:122:18 [INFO] [stdout] 32: 0x563fba332f2f - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h71ee66b20f7b0482 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/thread/mod.rs:498:17 [INFO] [stdout] 33: 0x563fba332f2f - as core::ops::function::FnOnce<()>>::call_once::hb6046e1d1a75a4a4 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/core/src/panic/unwind_safe.rs:271:9 [INFO] [stdout] 34: 0x563fba332f2f - std::panicking::try::do_call::h5422165a88309c77 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/panicking.rs:492:40 [INFO] [stdout] 35: 0x563fba332f2f - std::panicking::try::h840a12b54e2c9f5d [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/panicking.rs:456:19 [INFO] [stdout] 36: 0x563fba332f2f - std::panic::catch_unwind::h85910e437c8da180 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/panic.rs:137:14 [INFO] [stdout] 37: 0x563fba332f2f - std::thread::Builder::spawn_unchecked_::{{closure}}::ha3af3a297bfd51d6 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/thread/mod.rs:497:30 [INFO] [stdout] 38: 0x563fba332f2f - core::ops::function::FnOnce::call_once{{vtable.shim}}::hff8788f58e0e06a9 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 39: 0x563fba3b6af3 - as core::ops::function::FnOnce>::call_once::h82a18723295373b7 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/alloc/src/boxed.rs:1854:9 [INFO] [stdout] 40: 0x563fba3b6af3 - as core::ops::function::FnOnce>::call_once::h4b9b8634f7a2a5a4 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/alloc/src/boxed.rs:1854:9 [INFO] [stdout] 41: 0x563fba3b6af3 - std::sys::unix::thread::Thread::new::thread_start::h3dc341aa024c6852 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/sys/unix/thread.rs:108:17 [INFO] [stdout] 42: 0x7f0d7c69d609 - start_thread [INFO] [stdout] 43: 0x7f0d7c46d293 - clone [INFO] [stdout] 44: 0x0 - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] tests::tests::test_derive_set [INFO] [stdout] [INFO] [stdout] test result: FAILED. 4 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.02s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--lib' [INFO] running `Command { std: "docker" "inspect" "5ddada9d49dbe58017daf84e85886a3000e237f4e18d003b25e22962b00ed3fd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5ddada9d49dbe58017daf84e85886a3000e237f4e18d003b25e22962b00ed3fd", kill_on_drop: false }` [INFO] [stdout] 5ddada9d49dbe58017daf84e85886a3000e237f4e18d003b25e22962b00ed3fd