[INFO] cloning repository https://github.com/dropdevrahul/peacock-rust
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/dropdevrahul/peacock-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdropdevrahul%2Fpeacock-rust", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdropdevrahul%2Fpeacock-rust'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 61d8d8386cd866269318c5030c623f2a5f6153c4
[INFO] checking dropdevrahul/peacock-rust against try#93086cfebfccb79083c59d0d3b2052944bba643c for pr-146440-1
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdropdevrahul%2Fpeacock-rust" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/dropdevrahul/peacock-rust
[INFO] finished tweaking git repo https://github.com/dropdevrahul/peacock-rust
[INFO] tweaked toml for git repo https://github.com/dropdevrahul/peacock-rust written to /workspace/builds/worker-4-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/dropdevrahul/peacock-rust on toolchain 93086cfebfccb79083c59d0d3b2052944bba643c
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+93086cfebfccb79083c59d0d3b2052944bba643c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/dropdevrahul/peacock-rust 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" "+93086cfebfccb79083c59d0d3b2052944bba643c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+93086cfebfccb79083c59d0d3b2052944bba643c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] c130fe1a4c17bb72d9dea0ff83b0db8ee682b3d374c4d9a8be7705b4a334c4bf
[INFO] running `Command { std: "docker" "start" "-a" "c130fe1a4c17bb72d9dea0ff83b0db8ee682b3d374c4d9a8be7705b4a334c4bf", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "c130fe1a4c17bb72d9dea0ff83b0db8ee682b3d374c4d9a8be7705b4a334c4bf", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "c130fe1a4c17bb72d9dea0ff83b0db8ee682b3d374c4d9a8be7705b4a334c4bf", kill_on_drop: false }`
[INFO] [stdout] c130fe1a4c17bb72d9dea0ff83b0db8ee682b3d374c4d9a8be7705b4a334c4bf
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+93086cfebfccb79083c59d0d3b2052944bba643c" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 738bd1762fbec7a841b08ce89bc2c7437438f365a7baa33ebedf79a643c6559a
[INFO] running `Command { std: "docker" "start" "-a" "738bd1762fbec7a841b08ce89bc2c7437438f365a7baa33ebedf79a643c6559a", kill_on_drop: false }`
[INFO] [stderr]     Checking peacock-rust v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `std::error::Error`
[INFO] [stdout]  --> src/lib.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::error::Error;
[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: `std::error::Error`
[INFO] [stdout]  --> src/lib.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::error::Error;
[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 variable: `n`
[INFO] [stdout]   --> src/lib.rs:52:8
[INFO] [stdout]    |
[INFO] [stdout] 52 |    let n = match reader.read_exact(&mut buff) {
[INFO] [stdout]    |        ^ help: if this is intentional, prefix it with an underscore: `_n`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `n`
[INFO] [stdout]   --> src/lib.rs:52:8
[INFO] [stdout]    |
[INFO] [stdout] 52 |    let n = match reader.read_exact(&mut buff) {
[INFO] [stdout]    |        ^ help: if this is intentional, prefix it with an underscore: `_n`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: struct `PeacockClient` is never constructed
[INFO] [stdout]   --> src/lib.rs:75:12
[INFO] [stdout]    |
[INFO] [stdout] 75 | pub struct PeacockClient {
[INFO] [stdout]    |            ^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this `pub` struct has private fields, no public constructor, and is not otherwise reachable through the external API, so consider providing a public constructor or removing it
[INFO] [stdout]    = note: `#[deny(unused_unconstructable_pub_structs)]` (part of `#[deny(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `COMMAND_LENGTH` is never used
[INFO] [stdout]  --> src/lib.rs:6:7
[INFO] [stdout]   |
[INFO] [stdout] 6 | const COMMAND_LENGTH:usize = 11;
[INFO] [stdout]   |       ^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `KEY_LENGTH` is never used
[INFO] [stdout]  --> src/lib.rs:7:7
[INFO] [stdout]   |
[INFO] [stdout] 7 | const KEY_LENGTH:usize = 64;
[INFO] [stdout]   |       ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `MAX_PAYLOAD_LENGTH_INT` is never used
[INFO] [stdout]  --> src/lib.rs:8:7
[INFO] [stdout]   |
[INFO] [stdout] 8 | const MAX_PAYLOAD_LENGTH_INT:usize = 2048;
[INFO] [stdout]   |       ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `GET_COMMAND` is never used
[INFO] [stdout]  --> src/lib.rs:9:7
[INFO] [stdout]   |
[INFO] [stdout] 9 | const GET_COMMAND:&str = "GET";
[INFO] [stdout]   |       ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `SET_COMMAND` is never used
[INFO] [stdout]   --> src/lib.rs:10:7
[INFO] [stdout]    |
[INFO] [stdout] 10 | const SET_COMMAND:&str = "SET";
[INFO] [stdout]    |       ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `MAX_PAYLOAD_LENGTH_INT` is never used
[INFO] [stdout]  --> src/lib.rs:8:7
[INFO] [stdout]   |
[INFO] [stdout] 8 | const MAX_PAYLOAD_LENGTH_INT:usize = 2048;
[INFO] [stdout]   |       ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `DEL_COMMAND` is never used
[INFO] [stdout]   --> src/lib.rs:11:7
[INFO] [stdout]    |
[INFO] [stdout] 11 | const DEL_COMMAND:&str = "DEL";
[INFO] [stdout]    |       ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `GET_TTL_COMMAND` is never used
[INFO] [stdout]   --> src/lib.rs:12:7
[INFO] [stdout]    |
[INFO] [stdout] 12 | const GET_TTL_COMMAND:&str = "GET_TTL";
[INFO] [stdout]    |       ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `SET_TTL_COMMAND` is never used
[INFO] [stdout]   --> src/lib.rs:13:7
[INFO] [stdout]    |
[INFO] [stdout] 13 | const SET_TTL_COMMAND:&str = "SET_TTL";
[INFO] [stdout]    |       ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `HEADER_SEP` is never used
[INFO] [stdout]   --> src/lib.rs:14:7
[INFO] [stdout]    |
[INFO] [stdout] 14 | const HEADER_SEP:u8 = b'\n';
[INFO] [stdout]    |       ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Header` is never constructed
[INFO] [stdout]   --> src/lib.rs:16:8
[INFO] [stdout]    |
[INFO] [stdout] 16 | struct Header {
[INFO] [stdout]    |        ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `to_bytes` is never used
[INFO] [stdout]   --> src/lib.rs:21:8
[INFO] [stdout]    |
[INFO] [stdout] 20 | impl Header {
[INFO] [stdout]    | ----------- method in this implementation
[INFO] [stdout] 21 |     fn to_bytes(self) -> Vec<u8> {
[INFO] [stdout]    |        ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `read_headers` is never used
[INFO] [stdout]   --> src/lib.rs:26:4
[INFO] [stdout]    |
[INFO] [stdout] 26 | fn read_headers( reader: &mut BufReader<&mut TcpStream>) -> Result<Header, String> {
[INFO] [stdout]    |    ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `read_body` is never used
[INFO] [stdout]   --> src/lib.rs:50:4
[INFO] [stdout]    |
[INFO] [stdout] 50 | fn read_body( reader: &mut BufReader<&mut TcpStream>, len: usize) -> Result<Vec<u8>, String> {
[INFO] [stdout]    |    ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `read_payload` is never used
[INFO] [stdout]   --> src/lib.rs:60:4
[INFO] [stdout]    |
[INFO] [stdout] 60 | fn read_payload( buff: &Vec<u8>, payload: &mut Vec<u8>) {
[INFO] [stdout]    |    ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_key` is never used
[INFO] [stdout]   --> src/lib.rs:67:4
[INFO] [stdout]    |
[INFO] [stdout] 67 | fn get_key( buff: &Vec<u8>) -> String {
[INFO] [stdout]    |    ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_cmd` is never used
[INFO] [stdout]   --> src/lib.rs:71:4
[INFO] [stdout]    |
[INFO] [stdout] 71 | fn get_cmd( buff: &Vec<u8>) -> String {
[INFO] [stdout]    |    ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `host` and `port` are never read
[INFO] [stdout]   --> src/lib.rs:76:5
[INFO] [stdout]    |
[INFO] [stdout] 75 | pub struct PeacockClient {
[INFO] [stdout]    |            ------------- fields in this struct
[INFO] [stdout] 76 |     host: String,
[INFO] [stdout]    |     ^^^^
[INFO] [stdout] 77 |     port: String,
[INFO] [stdout]    |     ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `connect`, `pad`, `send`, `get`, and `set` are never used
[INFO] [stdout]    --> src/lib.rs:81:8
[INFO] [stdout]     |
[INFO] [stdout]  80 | impl PeacockClient {
[INFO] [stdout]     | ------------------ methods in this implementation
[INFO] [stdout]  81 |     fn connect(&self) -> Result<TcpStream, std::io::Error> {
[INFO] [stdout]     |        ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  90 |     fn pad(&mut self, s:String, len: usize) -> String{
[INFO] [stdout]     |        ^^^
[INFO] [stdout] ...
[INFO] [stdout]  94 |     fn send(&mut self, mut cmd: String, mut key: String, payload: String) -> Result<Vec<u8>, std::io::Error> {
[INFO] [stdout]     |        ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 118 |     fn get(&mut self, key: String) -> Result<Vec<u8>, std::io::Error> {
[INFO] [stdout]     |        ^^^
[INFO] [stdout] ...
[INFO] [stdout] 122 |     fn set(&mut self, key: String, val: String) -> Result<Vec<u8>, std::io::Error> {
[INFO] [stdout]     |        ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `GET_COMMAND` is never used
[INFO] [stdout]  --> src/lib.rs:9:7
[INFO] [stdout]   |
[INFO] [stdout] 9 | const GET_COMMAND:&str = "GET";
[INFO] [stdout]   |       ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `SET_COMMAND` is never used
[INFO] [stdout]   --> src/lib.rs:10:7
[INFO] [stdout]    |
[INFO] [stdout] 10 | const SET_COMMAND:&str = "SET";
[INFO] [stdout]    |       ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `DEL_COMMAND` is never used
[INFO] [stdout]   --> src/lib.rs:11:7
[INFO] [stdout]    |
[INFO] [stdout] 11 | const DEL_COMMAND:&str = "DEL";
[INFO] [stdout]    |       ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `GET_TTL_COMMAND` is never used
[INFO] [stdout]   --> src/lib.rs:12:7
[INFO] [stdout]    |
[INFO] [stdout] 12 | const GET_TTL_COMMAND:&str = "GET_TTL";
[INFO] [stdout]    |       ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `SET_TTL_COMMAND` is never used
[INFO] [stdout]   --> src/lib.rs:13:7
[INFO] [stdout]    |
[INFO] [stdout] 13 | const SET_TTL_COMMAND:&str = "SET_TTL";
[INFO] [stdout]    |       ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `HEADER_SEP` is never used
[INFO] [stdout]   --> src/lib.rs:14:7
[INFO] [stdout]    |
[INFO] [stdout] 14 | const HEADER_SEP:u8 = b'\n';
[INFO] [stdout]    |       ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `read_payload` is never used
[INFO] [stdout]   --> src/lib.rs:60:4
[INFO] [stdout]    |
[INFO] [stdout] 60 | fn read_payload( buff: &Vec<u8>, payload: &mut Vec<u8>) {
[INFO] [stdout]    |    ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_key` is never used
[INFO] [stdout]   --> src/lib.rs:67:4
[INFO] [stdout]    |
[INFO] [stdout] 67 | fn get_key( buff: &Vec<u8>) -> String {
[INFO] [stdout]    |    ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_cmd` is never used
[INFO] [stdout]   --> src/lib.rs:71:4
[INFO] [stdout]    |
[INFO] [stdout] 71 | fn get_cmd( buff: &Vec<u8>) -> String {
[INFO] [stdout]    |    ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/lib.rs:110:8
[INFO] [stdout]     |
[INFO] [stdout] 110 |        res.write(&cmd_bytes);
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout]     = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 110 |        let _ = res.write(&cmd_bytes);
[INFO] [stdout]     |        +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/lib.rs:110:8
[INFO] [stdout]     |
[INFO] [stdout] 110 |        res.write(&cmd_bytes);
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout]     = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 110 |        let _ = res.write(&cmd_bytes);
[INFO] [stdout]     |        +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `peacock-rust` (lib) due to 1 previous error; 21 warnings emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] running `Command { std: "docker" "inspect" "738bd1762fbec7a841b08ce89bc2c7437438f365a7baa33ebedf79a643c6559a", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "738bd1762fbec7a841b08ce89bc2c7437438f365a7baa33ebedf79a643c6559a", kill_on_drop: false }`
[INFO] [stdout] 738bd1762fbec7a841b08ce89bc2c7437438f365a7baa33ebedf79a643c6559a
