[INFO] cloning repository https://github.com/buckley-w-david/plato-smart-device-client [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/buckley-w-david/plato-smart-device-client" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbuckley-w-david%2Fplato-smart-device-client", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbuckley-w-david%2Fplato-smart-device-client'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 90c54751726b4abf7455baf6097cee470935cdc8 [INFO] testing buckley-w-david/plato-smart-device-client against master#414482f6a0d4e7290f614300581a0b55442552a3 for pr-140985 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbuckley-w-david%2Fplato-smart-device-client" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/buckley-w-david/plato-smart-device-client on toolchain 414482f6a0d4e7290f614300581a0b55442552a3 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+414482f6a0d4e7290f614300581a0b55442552a3" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-6-tc1/source/.cargo/config [INFO] started tweaking git repo https://github.com/buckley-w-david/plato-smart-device-client [INFO] finished tweaking git repo https://github.com/buckley-w-david/plato-smart-device-client [INFO] tweaked toml for git repo https://github.com/buckley-w-david/plato-smart-device-client written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/buckley-w-david/plato-smart-device-client already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+414482f6a0d4e7290f614300581a0b55442552a3" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded const_format_proc_macros v0.2.22 [INFO] [stderr] Downloaded const_format v0.2.22 [INFO] [stderr] Downloaded nix v0.23.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+414482f6a0d4e7290f614300581a0b55442552a3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2621beb59a6b65c1c1c658f563e07a5597460387616f58268c7c5fde9ef7e54d [INFO] running `Command { std: "docker" "start" "-a" "2621beb59a6b65c1c1c658f563e07a5597460387616f58268c7c5fde9ef7e54d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2621beb59a6b65c1c1c658f563e07a5597460387616f58268c7c5fde9ef7e54d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2621beb59a6b65c1c1c658f563e07a5597460387616f58268c7c5fde9ef7e54d", kill_on_drop: false }` [INFO] [stdout] 2621beb59a6b65c1c1c658f563e07a5597460387616f58268c7c5fde9ef7e54d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/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" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+414482f6a0d4e7290f614300581a0b55442552a3" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ac03c502cbdca26ddd1c743e16fcd189aed0de78e7f67f5f6f9d1b0066b58749 [INFO] running `Command { std: "docker" "start" "-a" "ac03c502cbdca26ddd1c743e16fcd189aed0de78e7f67f5f6f9d1b0066b58749", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.32 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling syn v1.0.82 [INFO] [stderr] Compiling libc v0.2.108 [INFO] [stderr] Compiling version_check v0.9.3 [INFO] [stderr] Compiling typenum v1.14.0 [INFO] [stderr] Compiling serde_derive v1.0.130 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling serde v1.0.130 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling anyhow v1.0.48 [INFO] [stderr] Compiling serde_json v1.0.71 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling signal-hook v0.3.10 [INFO] [stderr] Compiling regex-syntax v0.6.25 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling cpufeatures v0.2.1 [INFO] [stderr] Compiling itoa v0.4.8 [INFO] [stderr] Compiling opaque-debug v0.3.0 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling memoffset v0.6.4 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Compiling quote v1.0.10 [INFO] [stderr] Compiling const_format_proc_macros v0.2.22 [INFO] [stderr] Compiling aho-corasick v0.7.18 [INFO] [stderr] Compiling time v0.1.44 [INFO] [stderr] Compiling signal-hook-registry v1.4.0 [INFO] [stderr] Compiling nix v0.23.0 [INFO] [stderr] Compiling const_format v0.2.22 [INFO] [stderr] Compiling chrono v0.4.19 [INFO] [stderr] Compiling block-buffer v0.9.0 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling sha-1 v0.9.8 [INFO] [stderr] Compiling regex v1.5.4 [INFO] [stderr] Compiling thiserror-impl v1.0.30 [INFO] [stderr] Compiling num-derive v0.3.3 [INFO] [stderr] Compiling thiserror v1.0.30 [INFO] [stderr] Compiling toml v0.5.8 [INFO] [stderr] Compiling plato-smart-device-client v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/smart_device_client.rs:1:15 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fs::{self, File}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anyhow` [INFO] [stdout] --> src/smart_device_client.rs:9:14 [INFO] [stdout] | [INFO] [stdout] 9 | use anyhow::{anyhow, Error}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DateTime` and `Utc` [INFO] [stdout] --> src/smart_device_client.rs:11:14 [INFO] [stdout] | [INFO] [stdout] 11 | use chrono::{DateTime, Utc}; [INFO] [stdout] | ^^^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `count` [INFO] [stdout] --> src/smart_device_client.rs:290:28 [INFO] [stdout] | [INFO] [stdout] 290 | } else if let Some(count) = message.get("count") { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_count` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pri_key` [INFO] [stdout] --> src/smart_device_client.rs:293:28 [INFO] [stdout] | [INFO] [stdout] 293 | } else if let Some(pri_key) = message.get("priKey") { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pri_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stream` [INFO] [stdout] --> src/smart_device_client.rs:282:9 [INFO] [stdout] | [INFO] [stdout] 282 | stream: &TcpStream, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_stream` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `UpdateDocument` is never constructed [INFO] [stdout] --> src/event.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum Event<'a> { [INFO] [stdout] | ----- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 14 | UpdateDocument(&'a Path, Info), [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/event.rs:20:19 [INFO] [stdout] | [INFO] [stdout] 20 | NetworkStatus(NetworkResults), [INFO] [stdout] | ------------- ^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 20 - NetworkStatus(NetworkResults), [INFO] [stdout] 20 + NetworkStatus(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `event_type` is never read [INFO] [stdout] --> src/event.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct SearchResults { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 25 | #[serde(rename = "type")] [INFO] [stdout] 26 | pub event_type: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SearchResults` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `event_type` and `status` are never read [INFO] [stdout] --> src/event.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct NetworkResults { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 32 | #[serde(rename = "type")] [INFO] [stdout] 33 | pub event_type: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 34 | pub status: String, // TODO: This *should* probably be a bool [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `NetworkResults` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `VERBOSE` is never used [INFO] [stdout] --> src/logger.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | pub const VERBOSE: u8 = 2; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `verbose` is never used [INFO] [stdout] --> src/logger.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl Logger { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn verbose(&self, msg: &[&dyn Display]) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/smart_device_client.rs:38:10 [INFO] [stdout] | [INFO] [stdout] 38 | #[derive(FromPrimitive, Debug, Serialize)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_Opcode` [INFO] [stdout] 39 | enum Opcode { [INFO] [stdout] | ------ `Opcode` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 10.71s [INFO] running `Command { std: "docker" "inspect" "ac03c502cbdca26ddd1c743e16fcd189aed0de78e7f67f5f6f9d1b0066b58749", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ac03c502cbdca26ddd1c743e16fcd189aed0de78e7f67f5f6f9d1b0066b58749", kill_on_drop: false }` [INFO] [stdout] ac03c502cbdca26ddd1c743e16fcd189aed0de78e7f67f5f6f9d1b0066b58749 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/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" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+414482f6a0d4e7290f614300581a0b55442552a3" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 74b3ed3c573141e10ca09a0ae24f67260dfcedbbcb9c195fed8f72a593e57f23 [INFO] running `Command { std: "docker" "start" "-a" "74b3ed3c573141e10ca09a0ae24f67260dfcedbbcb9c195fed8f72a593e57f23", kill_on_drop: false }` [INFO] [stderr] Compiling plato-smart-device-client v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/smart_device_client.rs:1:15 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fs::{self, File}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anyhow` [INFO] [stdout] --> src/smart_device_client.rs:9:14 [INFO] [stdout] | [INFO] [stdout] 9 | use anyhow::{anyhow, Error}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DateTime` and `Utc` [INFO] [stdout] --> src/smart_device_client.rs:11:14 [INFO] [stdout] | [INFO] [stdout] 11 | use chrono::{DateTime, Utc}; [INFO] [stdout] | ^^^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `count` [INFO] [stdout] --> src/smart_device_client.rs:290:28 [INFO] [stdout] | [INFO] [stdout] 290 | } else if let Some(count) = message.get("count") { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_count` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pri_key` [INFO] [stdout] --> src/smart_device_client.rs:293:28 [INFO] [stdout] | [INFO] [stdout] 293 | } else if let Some(pri_key) = message.get("priKey") { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pri_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stream` [INFO] [stdout] --> src/smart_device_client.rs:282:9 [INFO] [stdout] | [INFO] [stdout] 282 | stream: &TcpStream, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_stream` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `UpdateDocument` is never constructed [INFO] [stdout] --> src/event.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum Event<'a> { [INFO] [stdout] | ----- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 14 | UpdateDocument(&'a Path, Info), [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/event.rs:20:19 [INFO] [stdout] | [INFO] [stdout] 20 | NetworkStatus(NetworkResults), [INFO] [stdout] | ------------- ^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 20 - NetworkStatus(NetworkResults), [INFO] [stdout] 20 + NetworkStatus(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `event_type` is never read [INFO] [stdout] --> src/event.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct SearchResults { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 25 | #[serde(rename = "type")] [INFO] [stdout] 26 | pub event_type: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SearchResults` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `event_type` and `status` are never read [INFO] [stdout] --> src/event.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct NetworkResults { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 32 | #[serde(rename = "type")] [INFO] [stdout] 33 | pub event_type: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 34 | pub status: String, // TODO: This *should* probably be a bool [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `NetworkResults` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `VERBOSE` is never used [INFO] [stdout] --> src/logger.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | pub const VERBOSE: u8 = 2; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `verbose` is never used [INFO] [stdout] --> src/logger.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl Logger { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn verbose(&self, msg: &[&dyn Display]) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/smart_device_client.rs:38:10 [INFO] [stdout] | [INFO] [stdout] 38 | #[derive(FromPrimitive, Debug, Serialize)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_Opcode` [INFO] [stdout] 39 | enum Opcode { [INFO] [stdout] | ------ `Opcode` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.39s [INFO] running `Command { std: "docker" "inspect" "74b3ed3c573141e10ca09a0ae24f67260dfcedbbcb9c195fed8f72a593e57f23", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "74b3ed3c573141e10ca09a0ae24f67260dfcedbbcb9c195fed8f72a593e57f23", kill_on_drop: false }` [INFO] [stdout] 74b3ed3c573141e10ca09a0ae24f67260dfcedbbcb9c195fed8f72a593e57f23 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/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" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+414482f6a0d4e7290f614300581a0b55442552a3" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 3f0c6e196f69e8d62683746f6504dca090a524b4869cfec712843194c46bd4c1 [INFO] running `Command { std: "docker" "start" "-a" "3f0c6e196f69e8d62683746f6504dca090a524b4869cfec712843194c46bd4c1", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `self` [INFO] [stderr] --> src/smart_device_client.rs:1:15 [INFO] [stderr] | [INFO] [stderr] 1 | use std::fs::{self, File}; [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `anyhow` [INFO] [stderr] --> src/smart_device_client.rs:9:14 [INFO] [stderr] | [INFO] [stderr] 9 | use anyhow::{anyhow, Error}; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `DateTime` and `Utc` [INFO] [stderr] --> src/smart_device_client.rs:11:14 [INFO] [stderr] | [INFO] [stderr] 11 | use chrono::{DateTime, Utc}; [INFO] [stderr] | ^^^^^^^^ ^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `count` [INFO] [stderr] --> src/smart_device_client.rs:290:28 [INFO] [stderr] | [INFO] [stderr] 290 | } else if let Some(count) = message.get("count") { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_count` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `pri_key` [INFO] [stderr] --> src/smart_device_client.rs:293:28 [INFO] [stderr] | [INFO] [stderr] 293 | } else if let Some(pri_key) = message.get("priKey") { [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pri_key` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `stream` [INFO] [stderr] --> src/smart_device_client.rs:282:9 [INFO] [stderr] | [INFO] [stderr] 282 | stream: &TcpStream, [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_stream` [INFO] [stderr] [INFO] [stderr] warning: variant `UpdateDocument` is never constructed [INFO] [stderr] --> src/event.rs:14:5 [INFO] [stderr] | [INFO] [stderr] 9 | pub enum Event<'a> { [INFO] [stderr] | ----- variant in this enum [INFO] [stderr] ... [INFO] [stderr] 14 | UpdateDocument(&'a Path, Info), [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: field `0` is never read [INFO] [stderr] --> src/event.rs:20:19 [INFO] [stderr] | [INFO] [stderr] 20 | NetworkStatus(NetworkResults), [INFO] [stderr] | ------------- ^^^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | field in this variant [INFO] [stderr] | [INFO] [stderr] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stderr] | [INFO] [stderr] 20 - NetworkStatus(NetworkResults), [INFO] [stderr] 20 + NetworkStatus(()), [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: field `event_type` is never read [INFO] [stderr] --> src/event.rs:26:9 [INFO] [stderr] | [INFO] [stderr] 24 | pub struct SearchResults { [INFO] [stderr] | ------------- field in this struct [INFO] [stderr] 25 | #[serde(rename = "type")] [INFO] [stderr] 26 | pub event_type: String, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `SearchResults` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: fields `event_type` and `status` are never read [INFO] [stderr] --> src/event.rs:33:9 [INFO] [stderr] | [INFO] [stderr] 31 | pub struct NetworkResults { [INFO] [stderr] | -------------- fields in this struct [INFO] [stderr] 32 | #[serde(rename = "type")] [INFO] [stderr] 33 | pub event_type: String, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] 34 | pub status: String, // TODO: This *should* probably be a bool [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `NetworkResults` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: constant `VERBOSE` is never used [INFO] [stderr] --> src/logger.rs:7:11 [INFO] [stderr] | [INFO] [stderr] 7 | pub const VERBOSE: u8 = 2; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `verbose` is never used [INFO] [stderr] --> src/logger.rs:32:12 [INFO] [stderr] | [INFO] [stderr] 11 | impl Logger { [INFO] [stderr] | ----------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 32 | pub fn verbose(&self, msg: &[&dyn Display]) { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/smart_device_client.rs:38:10 [INFO] [stderr] | [INFO] [stderr] 38 | #[derive(FromPrimitive, Debug, Serialize)] [INFO] [stderr] | ^------------ [INFO] [stderr] | | [INFO] [stderr] | `FromPrimitive` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_Opcode` [INFO] [stderr] 39 | enum Opcode { [INFO] [stderr] | ------ `Opcode` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stderr] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stderr] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stderr] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stderr] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: `plato-smart-device-client` (bin "plato-smart-device-client" test) generated 13 warnings (run `cargo fix --bin "plato-smart-device-client" --tests` to apply 3 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.03s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/plato_smart_device_client-46e997957d198136) [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" "3f0c6e196f69e8d62683746f6504dca090a524b4869cfec712843194c46bd4c1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3f0c6e196f69e8d62683746f6504dca090a524b4869cfec712843194c46bd4c1", kill_on_drop: false }` [INFO] [stdout] 3f0c6e196f69e8d62683746f6504dca090a524b4869cfec712843194c46bd4c1