[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 try#b1f2594eac607c1f051534800237eeedb5590a49 for pr-139493-3 [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-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] removed /workspace/builds/worker-5-tc2/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-5-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/buckley-w-david/plato-smart-device-client on toolchain b1f2594eac607c1f051534800237eeedb5590a49 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b1f2594eac607c1f051534800237eeedb5590a49" "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" "+b1f2594eac607c1f051534800237eeedb5590a49" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+b1f2594eac607c1f051534800237eeedb5590a49" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9594de19da8b6d448a44f1610f08326bd2e80ad3e84d2cd9a6c15fc9ddb50ed7 [INFO] running `Command { std: "docker" "start" "-a" "9594de19da8b6d448a44f1610f08326bd2e80ad3e84d2cd9a6c15fc9ddb50ed7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9594de19da8b6d448a44f1610f08326bd2e80ad3e84d2cd9a6c15fc9ddb50ed7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9594de19da8b6d448a44f1610f08326bd2e80ad3e84d2cd9a6c15fc9ddb50ed7", kill_on_drop: false }` [INFO] [stdout] 9594de19da8b6d448a44f1610f08326bd2e80ad3e84d2cd9a6c15fc9ddb50ed7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+b1f2594eac607c1f051534800237eeedb5590a49" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] fa29139aae2b82af18425536c8681037def61bd2966bbfaf5ad59922bf628d1f [INFO] running `Command { std: "docker" "start" "-a" "fa29139aae2b82af18425536c8681037def61bd2966bbfaf5ad59922bf628d1f", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.32 [INFO] [stderr] Compiling syn v1.0.82 [INFO] [stderr] Compiling libc v0.2.108 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Compiling memoffset v0.6.4 [INFO] [stderr] Compiling anyhow v1.0.48 [INFO] [stderr] Compiling serde_json v1.0.71 [INFO] [stderr] Compiling signal-hook v0.3.10 [INFO] [stderr] Checking num-integer v0.1.44 [INFO] [stderr] Checking itoa v0.4.8 [INFO] [stderr] Compiling quote v1.0.10 [INFO] [stderr] Checking time v0.1.44 [INFO] [stderr] Checking signal-hook-registry v1.4.0 [INFO] [stderr] Checking nix v0.23.0 [INFO] [stderr] Checking digest v0.9.0 [INFO] [stderr] Checking block-buffer v0.9.0 [INFO] [stderr] Compiling const_format_proc_macros v0.2.22 [INFO] [stderr] Checking sha-1 v0.9.8 [INFO] [stderr] Checking chrono v0.4.19 [INFO] [stderr] Checking const_format v0.2.22 [INFO] [stderr] Compiling serde_derive v1.0.130 [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 serde v1.0.130 [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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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: `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] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [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] [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: 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)]` (part of `#[warn(unused)]`) 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: `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] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [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] [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: 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)]` (part of `#[warn(unused)]`) 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 20.34s [INFO] running `Command { std: "docker" "inspect" "fa29139aae2b82af18425536c8681037def61bd2966bbfaf5ad59922bf628d1f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fa29139aae2b82af18425536c8681037def61bd2966bbfaf5ad59922bf628d1f", kill_on_drop: false }` [INFO] [stdout] fa29139aae2b82af18425536c8681037def61bd2966bbfaf5ad59922bf628d1f