[INFO] cloning repository https://github.com/t123yh/bp1000ch-controller [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/t123yh/bp1000ch-controller" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ft123yh%2Fbp1000ch-controller", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ft123yh%2Fbp1000ch-controller'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b08bb3104eb538891c03a865763ec0ba6845218f [INFO] checking t123yh/bp1000ch-controller against master#a609fb45efad59dfd459c76e50899be9f0583b5a for pr-80579 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ft123yh%2Fbp1000ch-controller" "/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/t123yh/bp1000ch-controller on toolchain a609fb45efad59dfd459c76e50899be9f0583b5a [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/t123yh/bp1000ch-controller [INFO] finished tweaking git repo https://github.com/t123yh/bp1000ch-controller [INFO] tweaked toml for git repo https://github.com/t123yh/bp1000ch-controller written to /workspace/builds/worker-8/source/Cargo.toml [INFO] crate git repo https://github.com/t123yh/bp1000ch-controller already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] error: the lock file /workspace/builds/worker-8/source/Cargo.lock needs to be updated but --locked was passed to prevent this [INFO] [stderr] If you want to try to generate the lock file without accessing the network, use the --offline flag. [INFO] the lockfile is outdated, regenerating it [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "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" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "fetch" "--locked" "--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" "rustops/crates-build-env@sha256:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 13f31fabc3e9e8f01af98b712862a0fdfc6f1f3e5e63c42629bd24dbd4e69569 [INFO] running `Command { std: "docker" "start" "-a" "13f31fabc3e9e8f01af98b712862a0fdfc6f1f3e5e63c42629bd24dbd4e69569", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "13f31fabc3e9e8f01af98b712862a0fdfc6f1f3e5e63c42629bd24dbd4e69569", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "13f31fabc3e9e8f01af98b712862a0fdfc6f1f3e5e63c42629bd24dbd4e69569", kill_on_drop: false }` [INFO] [stdout] 13f31fabc3e9e8f01af98b712862a0fdfc6f1f3e5e63c42629bd24dbd4e69569 [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=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" "rustops/crates-build-env@sha256:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1fb7553d2416ee81f0a1ef16a71b44f1a22010164197533139525481a0c948e2 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "1fb7553d2416ee81f0a1ef16a71b44f1a22010164197533139525481a0c948e2", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling pkg-config v0.3.19 [INFO] [stderr] Compiling syn v1.0.57 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling nix v0.14.1 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Checking void v1.0.2 [INFO] [stderr] Compiling quote v1.0.8 [INFO] [stderr] Checking getrandom v0.1.16 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Compiling libudev-sys v0.1.4 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking libudev v0.2.0 [INFO] [stderr] Checking serialport v3.3.0 [INFO] [stderr] Compiling serde_derive v1.0.118 [INFO] [stderr] Checking serde v1.0.118 [INFO] [stderr] Checking toml v0.5.8 [INFO] [stderr] Checking bp1000ch-rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/monitor.rs:41:90 [INFO] [stdout] | [INFO] [stdout] 41 | send_message(&conf.print_log_command, &("UPS 通讯失败 ".to_owned() + err.description())).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `ups_query` [INFO] [stdout] --> src/ups.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn ups_query(port: &str, cmd: &str) -> std::io::Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `ups_query_status` [INFO] [stdout] --> src/ups.rs:63:8 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn ups_query_status(port: &str) -> std::io::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `ups_cancel_shutdown` [INFO] [stdout] --> src/ups.rs:110:8 [INFO] [stdout] | [INFO] [stdout] 110 | pub fn ups_cancel_shutdown(port: &str) -> std::io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `write_status` [INFO] [stdout] --> src/status_record.rs:45:8 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn write_status(path: &str, content: &Status) -> std::io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `write_tmp_file` [INFO] [stdout] --> src/handler.rs:11:4 [INFO] [stdout] | [INFO] [stdout] 11 | fn write_tmp_file(content: &str) -> std::io::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `send_message` [INFO] [stdout] --> src/handler.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn send_message(cmd: &Vec, msg: &str) -> std::io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/monitor.rs:41:90 [INFO] [stdout] | [INFO] [stdout] 41 | send_message(&conf.print_log_command, &("UPS 通讯失败 ".to_owned() + err.description())).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/shutdown.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | run_cmd(&conf.force_reboot_command); [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: 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `ups_query` [INFO] [stdout] --> src/ups.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn ups_query(port: &str, cmd: &str) -> std::io::Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `ups_query_status` [INFO] [stdout] --> src/ups.rs:63:8 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn ups_query_status(port: &str) -> std::io::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `ups_cancel_shutdown` [INFO] [stdout] --> src/ups.rs:110:8 [INFO] [stdout] | [INFO] [stdout] 110 | pub fn ups_cancel_shutdown(port: &str) -> std::io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `write_status` [INFO] [stdout] --> src/status_record.rs:45:8 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn write_status(path: &str, content: &Status) -> std::io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `write_tmp_file` [INFO] [stdout] --> src/handler.rs:11:4 [INFO] [stdout] | [INFO] [stdout] 11 | fn write_tmp_file(content: &str) -> std::io::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `send_message` [INFO] [stdout] --> src/handler.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn send_message(cmd: &Vec, msg: &str) -> std::io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/shutdown.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | run_cmd(&conf.force_reboot_command); [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: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 29.90s [INFO] running `Command { std: "docker" "inspect" "1fb7553d2416ee81f0a1ef16a71b44f1a22010164197533139525481a0c948e2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1fb7553d2416ee81f0a1ef16a71b44f1a22010164197533139525481a0c948e2", kill_on_drop: false }` [INFO] [stdout] 1fb7553d2416ee81f0a1ef16a71b44f1a22010164197533139525481a0c948e2