[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] checking buckley-w-david/plato-smart-device-client against master#64b185eddaa1d7ddf5e0c024be23b9cbba6c1722 for pr-143929 [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-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] removed /workspace/builds/worker-3-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-3-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/buckley-w-david/plato-smart-device-client on toolchain 64b185eddaa1d7ddf5e0c024be23b9cbba6c1722 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+64b185eddaa1d7ddf5e0c024be23b9cbba6c1722" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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" "+64b185eddaa1d7ddf5e0c024be23b9cbba6c1722" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+64b185eddaa1d7ddf5e0c024be23b9cbba6c1722" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a420564a79c09a218479795372cf4ada7cbe16e8045eb39d5e4fc2af5ae0ef90 [INFO] running `Command { std: "docker" "start" "-a" "a420564a79c09a218479795372cf4ada7cbe16e8045eb39d5e4fc2af5ae0ef90", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a420564a79c09a218479795372cf4ada7cbe16e8045eb39d5e4fc2af5ae0ef90", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a420564a79c09a218479795372cf4ada7cbe16e8045eb39d5e4fc2af5ae0ef90", kill_on_drop: false }` [INFO] [stdout] a420564a79c09a218479795372cf4ada7cbe16e8045eb39d5e4fc2af5ae0ef90 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+64b185eddaa1d7ddf5e0c024be23b9cbba6c1722" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 824cc9b60c5a5ec98e6dbac84ed34e9ec24165e0ff777446faddd5784f5f6af1 [INFO] running `Command { std: "docker" "start" "-a" "824cc9b60c5a5ec98e6dbac84ed34e9ec24165e0ff777446faddd5784f5f6af1", 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 typenum v1.14.0 [INFO] [stderr] Compiling version_check v0.9.3 [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] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling signal-hook v0.3.10 [INFO] [stderr] Compiling anyhow v1.0.48 [INFO] [stderr] Compiling serde_json v1.0.71 [INFO] [stderr] Checking itoa v0.4.8 [INFO] [stderr] Checking cpufeatures v0.2.1 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Checking regex-syntax v0.6.25 [INFO] [stderr] Checking opaque-debug v0.3.0 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking hex v0.4.3 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling memoffset v0.6.4 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Checking aho-corasick v0.7.18 [INFO] [stderr] Compiling quote v1.0.10 [INFO] [stderr] Compiling const_format_proc_macros v0.2.22 [INFO] [stderr] Checking signal-hook-registry v1.4.0 [INFO] [stderr] Checking time v0.1.44 [INFO] [stderr] Checking nix v0.23.0 [INFO] [stderr] Checking block-buffer v0.9.0 [INFO] [stderr] Checking digest v0.9.0 [INFO] [stderr] Checking regex v1.5.4 [INFO] [stderr] Checking sha-1 v0.9.8 [INFO] [stderr] Checking const_format v0.2.22 [INFO] [stderr] Checking chrono v0.4.19 [INFO] [stderr] Compiling thiserror-impl v1.0.30 [INFO] [stderr] Compiling num-derive v0.3.3 [INFO] [stderr] Checking thiserror v1.0.30 [INFO] [stderr] Checking toml v0.5.8 [INFO] [stderr] Checking 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 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] [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 12.93s [INFO] running `Command { std: "docker" "inspect" "824cc9b60c5a5ec98e6dbac84ed34e9ec24165e0ff777446faddd5784f5f6af1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "824cc9b60c5a5ec98e6dbac84ed34e9ec24165e0ff777446faddd5784f5f6af1", kill_on_drop: false }` [INFO] [stdout] 824cc9b60c5a5ec98e6dbac84ed34e9ec24165e0ff777446faddd5784f5f6af1