[INFO] cloning repository https://github.com/v0l/victron_pure_ess [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/v0l/victron_pure_ess" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fv0l%2Fvictron_pure_ess", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fv0l%2Fvictron_pure_ess'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 7d7a6bb72bcfc1697921d35e4d30e98fe95180b8 [INFO] testing v0l/victron_pure_ess against beta-2022-04-10 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fv0l%2Fvictron_pure_ess" "/workspace/builds/worker-29/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-29/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/v0l/victron_pure_ess 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 git repo https://github.com/v0l/victron_pure_ess [INFO] finished tweaking git repo https://github.com/v0l/victron_pure_ess [INFO] tweaked toml for git repo https://github.com/v0l/victron_pure_ess written to /workspace/builds/worker-29/source/Cargo.toml [INFO] crate git repo https://github.com/v0l/victron_pure_ess already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-29/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-29/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] 52b6e1f38d4c38fe2b09d5f4e2c50cb107deb6e770d30cd71f7176ca788f8ea5 [INFO] running `Command { std: "docker" "start" "-a" "52b6e1f38d4c38fe2b09d5f4e2c50cb107deb6e770d30cd71f7176ca788f8ea5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "52b6e1f38d4c38fe2b09d5f4e2c50cb107deb6e770d30cd71f7176ca788f8ea5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "52b6e1f38d4c38fe2b09d5f4e2c50cb107deb6e770d30cd71f7176ca788f8ea5", kill_on_drop: false }` [INFO] [stdout] 52b6e1f38d4c38fe2b09d5f4e2c50cb107deb6e770d30cd71f7176ca788f8ea5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-29/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-29/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] d66f4e1e71363ed20c68344d36d4abeb6a1ba0be19953416239b3a169b74df91 [INFO] running `Command { std: "docker" "start" "-a" "d66f4e1e71363ed20c68344d36d4abeb6a1ba0be19953416239b3a169b74df91", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.36 [INFO] [stderr] Compiling syn v1.0.90 [INFO] [stderr] Compiling log v0.4.16 [INFO] [stderr] Compiling futures-core v0.3.21 [INFO] [stderr] Compiling futures-task v0.3.21 [INFO] [stderr] Compiling pin-project-lite v0.2.8 [INFO] [stderr] Compiling futures-util v0.3.21 [INFO] [stderr] Compiling futures-sink v0.3.21 [INFO] [stderr] Compiling async-trait v0.1.53 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling smallvec v1.8.0 [INFO] [stderr] Compiling socket2 v0.4.4 [INFO] [stderr] Compiling mio v0.8.2 [INFO] [stderr] Compiling quote v1.0.17 [INFO] [stderr] Compiling tokio-macros v1.7.0 [INFO] [stderr] Compiling tokio v1.17.0 [INFO] [stderr] Compiling tokio-util v0.6.9 [INFO] [stderr] Compiling tokio-modbus v0.5.2 [INFO] [stderr] Compiling modbus_victron v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: constant is never used: `BATTERY` [INFO] [stdout] --> src/main.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | const BATTERY: u8 = 225; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `SYSTEM` [INFO] [stdout] --> src/main.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | const SYSTEM: u8 = 100; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `L1` [INFO] [stdout] --> src/victron/mod.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | L1 = 1, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Line` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/victron/mod.rs:8:10 [INFO] [stdout] | [INFO] [stdout] 8 | #[derive(Debug, Copy, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `L2` [INFO] [stdout] --> src/victron/mod.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | L2 = 2, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Line` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/victron/mod.rs:8:10 [INFO] [stdout] | [INFO] [stdout] 8 | #[derive(Debug, Copy, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `L3` [INFO] [stdout] --> src/victron/mod.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | L3 = 3, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Line` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/victron/mod.rs:8:10 [INFO] [stdout] | [INFO] [stdout] 8 | #[derive(Debug, Copy, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `voltage` [INFO] [stdout] --> src/victron/mod.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | voltage: f32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `LineDetail` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/victron/mod.rs:15:10 [INFO] [stdout] | [INFO] [stdout] 15 | #[derive(Debug, Copy, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `current` [INFO] [stdout] --> src/victron/mod.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | current: f32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `LineDetail` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/victron/mod.rs:15:10 [INFO] [stdout] | [INFO] [stdout] 15 | #[derive(Debug, Copy, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `frequency` [INFO] [stdout] --> src/victron/mod.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | frequency: f32, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `LineDetail` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/victron/mod.rs:15:10 [INFO] [stdout] | [INFO] [stdout] 15 | #[derive(Debug, Copy, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `power` [INFO] [stdout] --> src/victron/mod.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | power: f32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `LineDetail` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/victron/mod.rs:15:10 [INFO] [stdout] | [INFO] [stdout] 15 | #[derive(Debug, Copy, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `read_bool` [INFO] [stdout] --> src/victron/client.rs:35:18 [INFO] [stdout] | [INFO] [stdout] 35 | pub async fn read_bool(&mut self, addr: u16) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `read_i16` [INFO] [stdout] --> src/victron/client.rs:43:18 [INFO] [stdout] | [INFO] [stdout] 43 | pub async fn read_i16(&mut self, addr: u16) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `read_u16` [INFO] [stdout] --> src/victron/client.rs:47:18 [INFO] [stdout] | [INFO] [stdout] 47 | pub async fn read_u16(&mut self, addr: u16) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `PowerSetPoint` [INFO] [stdout] --> src/victron/ess.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | PowerSetPoint(Line, i16), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `DisableCharge` [INFO] [stdout] --> src/victron/ess.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | DisableCharge(bool), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_param` [INFO] [stdout] --> src/victron/ess.rs:29:18 [INFO] [stdout] | [INFO] [stdout] 29 | pub async fn get_param(&mut self, reg: ESSRegister) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `VictronSystem` [INFO] [stdout] --> src/victron/system.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct VictronSystem { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/victron/system.rs:10:18 [INFO] [stdout] | [INFO] [stdout] 10 | pub async fn new(addr: SocketAddr, unit: u8) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 14.93s [INFO] running `Command { std: "docker" "inspect" "d66f4e1e71363ed20c68344d36d4abeb6a1ba0be19953416239b3a169b74df91", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d66f4e1e71363ed20c68344d36d4abeb6a1ba0be19953416239b3a169b74df91", kill_on_drop: false }` [INFO] [stdout] d66f4e1e71363ed20c68344d36d4abeb6a1ba0be19953416239b3a169b74df91 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-29/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-29/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] 2e4659bb714acc0eaf74663a848e4a21cdfc0d4cf2d38c88e535e03a7b0379c1 [INFO] running `Command { std: "docker" "start" "-a" "2e4659bb714acc0eaf74663a848e4a21cdfc0d4cf2d38c88e535e03a7b0379c1", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling modbus_victron v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: constant is never used: `BATTERY` [INFO] [stdout] --> src/main.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | const BATTERY: u8 = 225; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `SYSTEM` [INFO] [stdout] --> src/main.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | const SYSTEM: u8 = 100; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `L1` [INFO] [stdout] --> src/victron/mod.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | L1 = 1, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Line` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/victron/mod.rs:8:10 [INFO] [stdout] | [INFO] [stdout] 8 | #[derive(Debug, Copy, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `L2` [INFO] [stdout] --> src/victron/mod.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | L2 = 2, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Line` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/victron/mod.rs:8:10 [INFO] [stdout] | [INFO] [stdout] 8 | #[derive(Debug, Copy, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `L3` [INFO] [stdout] --> src/victron/mod.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | L3 = 3, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Line` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/victron/mod.rs:8:10 [INFO] [stdout] | [INFO] [stdout] 8 | #[derive(Debug, Copy, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `voltage` [INFO] [stdout] --> src/victron/mod.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | voltage: f32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `LineDetail` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/victron/mod.rs:15:10 [INFO] [stdout] | [INFO] [stdout] 15 | #[derive(Debug, Copy, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `current` [INFO] [stdout] --> src/victron/mod.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | current: f32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `LineDetail` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/victron/mod.rs:15:10 [INFO] [stdout] | [INFO] [stdout] 15 | #[derive(Debug, Copy, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `frequency` [INFO] [stdout] --> src/victron/mod.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | frequency: f32, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `LineDetail` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/victron/mod.rs:15:10 [INFO] [stdout] | [INFO] [stdout] 15 | #[derive(Debug, Copy, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `power` [INFO] [stdout] --> src/victron/mod.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | power: f32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `LineDetail` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/victron/mod.rs:15:10 [INFO] [stdout] | [INFO] [stdout] 15 | #[derive(Debug, Copy, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `read_bool` [INFO] [stdout] --> src/victron/client.rs:35:18 [INFO] [stdout] | [INFO] [stdout] 35 | pub async fn read_bool(&mut self, addr: u16) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `read_i16` [INFO] [stdout] --> src/victron/client.rs:43:18 [INFO] [stdout] | [INFO] [stdout] 43 | pub async fn read_i16(&mut self, addr: u16) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `read_u16` [INFO] [stdout] --> src/victron/client.rs:47:18 [INFO] [stdout] | [INFO] [stdout] 47 | pub async fn read_u16(&mut self, addr: u16) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `PowerSetPoint` [INFO] [stdout] --> src/victron/ess.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | PowerSetPoint(Line, i16), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `DisableCharge` [INFO] [stdout] --> src/victron/ess.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | DisableCharge(bool), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_param` [INFO] [stdout] --> src/victron/ess.rs:29:18 [INFO] [stdout] | [INFO] [stdout] 29 | pub async fn get_param(&mut self, reg: ESSRegister) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `VictronSystem` [INFO] [stdout] --> src/victron/system.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct VictronSystem { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/victron/system.rs:10:18 [INFO] [stdout] | [INFO] [stdout] 10 | pub async fn new(addr: SocketAddr, unit: u8) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.76s [INFO] [stderr] Executable unittests src/main.rs (/opt/rustwide/target/debug/deps/modbus_victron-041fb5463e563354) [INFO] running `Command { std: "docker" "inspect" "2e4659bb714acc0eaf74663a848e4a21cdfc0d4cf2d38c88e535e03a7b0379c1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2e4659bb714acc0eaf74663a848e4a21cdfc0d4cf2d38c88e535e03a7b0379c1", kill_on_drop: false }` [INFO] [stdout] 2e4659bb714acc0eaf74663a848e4a21cdfc0d4cf2d38c88e535e03a7b0379c1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-29/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-29/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] 46b6b5a7598ecab5a3dc3acf13b3267ebc0aa6203a21c7d4aacbece41f6760dd [INFO] running `Command { std: "docker" "start" "-a" "46b6b5a7598ecab5a3dc3acf13b3267ebc0aa6203a21c7d4aacbece41f6760dd", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] warning: constant is never used: `BATTERY` [INFO] [stderr] --> src/main.rs:7:1 [INFO] [stderr] | [INFO] [stderr] 7 | const BATTERY: u8 = 225; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: constant is never used: `SYSTEM` [INFO] [stderr] --> src/main.rs:8:1 [INFO] [stderr] | [INFO] [stderr] 8 | const SYSTEM: u8 = 100; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `L1` [INFO] [stderr] --> src/victron/mod.rs:10:5 [INFO] [stderr] | [INFO] [stderr] 10 | L1 = 1, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Line` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] --> src/victron/mod.rs:8:10 [INFO] [stderr] | [INFO] [stderr] 8 | #[derive(Debug, Copy, Clone)] [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `L2` [INFO] [stderr] --> src/victron/mod.rs:11:5 [INFO] [stderr] | [INFO] [stderr] 11 | L2 = 2, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Line` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] --> src/victron/mod.rs:8:10 [INFO] [stderr] | [INFO] [stderr] 8 | #[derive(Debug, Copy, Clone)] [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `L3` [INFO] [stderr] --> src/victron/mod.rs:12:5 [INFO] [stderr] | [INFO] [stderr] 12 | L3 = 3, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Line` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] --> src/victron/mod.rs:8:10 [INFO] [stderr] | [INFO] [stderr] 8 | #[derive(Debug, Copy, Clone)] [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `voltage` [INFO] [stderr] --> src/victron/mod.rs:17:5 [INFO] [stderr] | [INFO] [stderr] 17 | voltage: f32, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `LineDetail` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] --> src/victron/mod.rs:15:10 [INFO] [stderr] | [INFO] [stderr] 15 | #[derive(Debug, Copy, Clone)] [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `current` [INFO] [stderr] --> src/victron/mod.rs:18:5 [INFO] [stderr] | [INFO] [stderr] 18 | current: f32, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `LineDetail` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] --> src/victron/mod.rs:15:10 [INFO] [stderr] | [INFO] [stderr] 15 | #[derive(Debug, Copy, Clone)] [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `frequency` [INFO] [stderr] --> src/victron/mod.rs:19:5 [INFO] [stderr] | [INFO] [stderr] 19 | frequency: f32, [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `LineDetail` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] --> src/victron/mod.rs:15:10 [INFO] [stderr] | [INFO] [stderr] 15 | #[derive(Debug, Copy, Clone)] [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `power` [INFO] [stderr] --> src/victron/mod.rs:20:5 [INFO] [stderr] | [INFO] [stderr] 20 | power: f32, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `LineDetail` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] --> src/victron/mod.rs:15:10 [INFO] [stderr] | [INFO] [stderr] 15 | #[derive(Debug, Copy, Clone)] [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `read_bool` [INFO] [stderr] --> src/victron/client.rs:35:18 [INFO] [stderr] | [INFO] [stderr] 35 | pub async fn read_bool(&mut self, addr: u16) -> Result { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `read_i16` [INFO] [stderr] --> src/victron/client.rs:43:18 [INFO] [stderr] | [INFO] [stderr] 43 | pub async fn read_i16(&mut self, addr: u16) -> Result { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `read_u16` [INFO] [stderr] --> src/victron/client.rs:47:18 [INFO] [stderr] | [INFO] [stderr] 47 | pub async fn read_u16(&mut self, addr: u16) -> Result { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `PowerSetPoint` [INFO] [stderr] --> src/victron/ess.rs:14:5 [INFO] [stderr] | [INFO] [stderr] 14 | PowerSetPoint(Line, i16), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `DisableCharge` [INFO] [stderr] --> src/victron/ess.rs:17:5 [INFO] [stderr] | [INFO] [stderr] 17 | DisableCharge(bool), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_param` [INFO] [stderr] --> src/victron/ess.rs:29:18 [INFO] [stderr] | [INFO] [stderr] 29 | pub async fn get_param(&mut self, reg: ESSRegister) -> Result { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct is never constructed: `VictronSystem` [INFO] [stderr] --> src/victron/system.rs:5:12 [INFO] [stderr] | [INFO] [stderr] 5 | pub struct VictronSystem { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/victron/system.rs:10:18 [INFO] [stderr] | [INFO] [stderr] 10 | pub async fn new(addr: SocketAddr, unit: u8) -> Result { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: `modbus_victron` (bin "modbus_victron" test) generated 17 warnings [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.03s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/modbus_victron-041fb5463e563354) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "46b6b5a7598ecab5a3dc3acf13b3267ebc0aa6203a21c7d4aacbece41f6760dd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "46b6b5a7598ecab5a3dc3acf13b3267ebc0aa6203a21c7d4aacbece41f6760dd", kill_on_drop: false }` [INFO] [stdout] 46b6b5a7598ecab5a3dc3acf13b3267ebc0aa6203a21c7d4aacbece41f6760dd