[INFO] cloning repository https://github.com/clacladev/codecrafters-rust-bittorrent-client
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/clacladev/codecrafters-rust-bittorrent-client" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fclacladev%2Fcodecrafters-rust-bittorrent-client", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fclacladev%2Fcodecrafters-rust-bittorrent-client'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] e1da791097c4fc8ce619433f24fb2c7ebb09cae8
[INFO] checking clacladev/codecrafters-rust-bittorrent-client against c60b92c03ca8a3b101eb9d57f51e2232690638c7 for pr-164148-crater-rollup
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fclacladev%2Fcodecrafters-rust-bittorrent-client" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/clacladev/codecrafters-rust-bittorrent-client
[INFO] finished tweaking git repo https://github.com/clacladev/codecrafters-rust-bittorrent-client
[INFO] tweaked toml for git repo https://github.com/clacladev/codecrafters-rust-bittorrent-client written to /workspace/builds/worker-0-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/clacladev/codecrafters-rust-bittorrent-client on toolchain c60b92c03ca8a3b101eb9d57f51e2232690638c7
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c60b92c03ca8a3b101eb9d57f51e2232690638c7" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/clacladev/codecrafters-rust-bittorrent-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" "+c60b92c03ca8a3b101eb9d57f51e2232690638c7" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:77db811e55d90add9212f6832c23229e3de5f1c1f9905e8cb07319ea15df73ac" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] 4ed1ed92a206fb5d286977fac540c8457ab4b18101e702d2612c6a74b44caed3
[INFO] running `Command { std: "docker" "start" "4ed1ed92a206fb5d286977fac540c8457ab4b18101e702d2612c6a74b44caed3", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "4ed1ed92a206fb5d286977fac540c8457ab4b18101e702d2612c6a74b44caed3", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "4ed1ed92a206fb5d286977fac540c8457ab4b18101e702d2612c6a74b44caed3" "/opt/rustwide/cargo-home/bin/cargo" "+c60b92c03ca8a3b101eb9d57f51e2232690638c7" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "4ed1ed92a206fb5d286977fac540c8457ab4b18101e702d2612c6a74b44caed3", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-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" "-w" "/opt/rustwide/workdir" "--user" "0:0" "4ed1ed92a206fb5d286977fac540c8457ab4b18101e702d2612c6a74b44caed3" "/opt/rustwide/cargo-home/bin/cargo" "+c60b92c03ca8a3b101eb9d57f51e2232690638c7" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]    Compiling quote v1.0.33
[INFO] [stderr]    Compiling libc v0.2.147
[INFO] [stderr]     Checking bytes v1.3.0
[INFO] [stderr]    Compiling serde v1.0.193
[INFO] [stderr]    Compiling rustix v0.38.8
[INFO] [stderr]    Compiling typenum v1.16.0
[INFO] [stderr]    Compiling futures-task v0.3.28
[INFO] [stderr]    Compiling generic-array v0.14.7
[INFO] [stderr]     Checking linux-raw-sys v0.4.5
[INFO] [stderr]    Compiling futures-util v0.3.28
[INFO] [stderr]    Compiling openssl v0.10.56
[INFO] [stderr]     Checking tracing v0.1.37
[INFO] [stderr]    Compiling syn v2.0.29
[INFO] [stderr]    Compiling futures-channel v0.3.28
[INFO] [stderr]    Compiling syn v1.0.48
[INFO] [stderr]     Checking anstyle-parse v0.2.1
[INFO] [stderr]     Checking http v0.2.9
[INFO] [stderr]     Checking unicode-normalization v0.1.22
[INFO] [stderr]    Compiling cc v1.0.82
[INFO] [stderr]    Compiling serde_json v1.0.105
[INFO] [stderr]     Checking unicode-bidi v0.3.13
[INFO] [stderr]    Compiling unicode-xid v0.2.1
[INFO] [stderr]     Checking anstyle v1.0.1
[INFO] [stderr]     Checking idna v0.4.0
[INFO] [stderr]     Checking http-body v0.4.5
[INFO] [stderr]     Checking aho-corasick v1.0.4
[INFO] [stderr]    Compiling thiserror v1.0.38
[INFO] [stderr]    Compiling openssl-sys v0.9.91
[INFO] [stderr]    Compiling anyhow v1.0.68
[INFO] [stderr]     Checking clap_lex v0.5.0
[INFO] [stderr]    Compiling native-tls v0.2.11
[INFO] [stderr]     Checking url v2.4.0
[INFO] [stderr]     Checking block-buffer v0.10.4
[INFO] [stderr]     Checking crypto-common v0.1.6
[INFO] [stderr]     Checking digest v0.10.7
[INFO] [stderr]     Checking encoding_rs v0.8.32
[INFO] [stderr]     Checking regex-automata v0.3.6
[INFO] [stderr]     Checking fastrand v2.0.0
[INFO] [stderr]     Checking base64 v0.21.2
[INFO] [stderr]     Checking cpufeatures v0.2.9
[INFO] [stderr]     Checking sha1 v0.10.5
[INFO] [stderr]     Checking is-terminal v0.4.9
[INFO] [stderr]     Checking anstream v0.3.2
[INFO] [stderr]     Checking tempfile v3.7.1
[INFO] [stderr]     Checking clap_builder v4.3.22
[INFO] [stderr]     Checking hex v0.4.3
[INFO] [stderr]    Compiling thiserror-impl v1.0.38
[INFO] [stderr]    Compiling tokio-macros v2.1.0
[INFO] [stderr]    Compiling serde_derive v1.0.193
[INFO] [stderr]    Compiling openssl-macros v0.1.1
[INFO] [stderr]    Compiling clap_derive v4.3.12
[INFO] [stderr]     Checking tokio v1.32.0
[INFO] [stderr]     Checking regex v1.9.3
[INFO] [stderr]     Checking clap v4.3.22
[INFO] [stderr]     Checking serde_bytes v0.11.12
[INFO] [stderr]     Checking serde_urlencoded v0.7.1
[INFO] [stderr]     Checking serde_bencode v0.2.3
[INFO] [stderr]     Checking tokio-util v0.7.8
[INFO] [stderr]     Checking tokio-native-tls v0.3.1
[INFO] [stderr]     Checking h2 v0.3.20
[INFO] [stderr]     Checking hyper v0.14.27
[INFO] [stderr]     Checking hyper-tls v0.5.0
[INFO] [stderr]     Checking reqwest v0.11.18
[INFO] [stderr]     Checking bittorrent-starter-rust v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: field `bitfield` is never read
[INFO] [stdout]   --> src/torrent_client/peer_message.rs:16:9
[INFO] [stdout]    |
[INFO] [stdout] 15 |     Bitfield {
[INFO] [stdout]    |     -------- field in this variant
[INFO] [stdout] 16 |         bitfield: u8,
[INFO] [stdout]    |         ^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `PeerMessage` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: useless conversion to the same type: `Vec<u8>` bittorrent_starter_rust
[INFO] [stdout]    --> src/torrent_client.rs:117:55
[INFO] [stdout]     |
[INFO] [stdout] 117 |         let handshake_message = HandshakeMessage::new(info_hash.into(), PEER_ID.into());
[INFO] [stdout]     |                                                       ^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this method call relies on the `impl<T> Into<T> for T` blanket implementation and type inference, which is a semver hazard as a new `impl Into<_>` that affects your type might be added in the future causing type inference errors
[INFO] [stdout]     = note: `#[deny(self_type_conversion)]` on by default
[INFO] [stdout] help: consider removing the conversion call
[INFO] [stdout]     |
[INFO] [stdout] 117 -         let handshake_message = HandshakeMessage::new(info_hash.into(), PEER_ID.into());
[INFO] [stdout] 117 +         let handshake_message = HandshakeMessage::new(info_hash, PEER_ID.into());
[INFO] [stdout]     |
[INFO] [stdout] help: you can use the fully-qualified path to avoid triggering this lint
[INFO] [stdout]     |
[INFO] [stdout] 117 -         let handshake_message = HandshakeMessage::new(info_hash.into(), PEER_ID.into());
[INFO] [stdout] 117 +         let handshake_message = HandshakeMessage::new(<Vec<u8> as Into<_>>::into(info_hash), PEER_ID.into());
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `bittorrent-starter-rust` (bin "bittorrent-starter-rust") due to 1 previous error; 1 warning emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] warning: field `bitfield` is never read
[INFO] [stdout]   --> src/torrent_client/peer_message.rs:16:9
[INFO] [stdout]    |
[INFO] [stdout] 15 |     Bitfield {
[INFO] [stdout]    |     -------- field in this variant
[INFO] [stdout] 16 |         bitfield: u8,
[INFO] [stdout]    |         ^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `PeerMessage` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: useless conversion to the same type: `Vec<u8>` bittorrent_starter_rust
[INFO] [stdout]    --> src/torrent_client.rs:117:55
[INFO] [stdout]     |
[INFO] [stdout] 117 |         let handshake_message = HandshakeMessage::new(info_hash.into(), PEER_ID.into());
[INFO] [stdout]     |                                                       ^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this method call relies on the `impl<T> Into<T> for T` blanket implementation and type inference, which is a semver hazard as a new `impl Into<_>` that affects your type might be added in the future causing type inference errors
[INFO] [stdout]     = note: `#[deny(self_type_conversion)]` on by default
[INFO] [stdout] help: consider removing the conversion call
[INFO] [stdout]     |
[INFO] [stdout] 117 -         let handshake_message = HandshakeMessage::new(info_hash.into(), PEER_ID.into());
[INFO] [stdout] 117 +         let handshake_message = HandshakeMessage::new(info_hash, PEER_ID.into());
[INFO] [stdout]     |
[INFO] [stdout] help: you can use the fully-qualified path to avoid triggering this lint
[INFO] [stdout]     |
[INFO] [stdout] 117 -         let handshake_message = HandshakeMessage::new(info_hash.into(), PEER_ID.into());
[INFO] [stdout] 117 +         let handshake_message = HandshakeMessage::new(<Vec<u8> as Into<_>>::into(info_hash), PEER_ID.into());
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `bittorrent-starter-rust` (bin "bittorrent-starter-rust" test) due to 1 previous error; 1 warning emitted
[INFO] [stderr] warning: unused dependency `clap`
[INFO] [stderr]   --> Cargo.toml:14:15
[INFO] [stderr]    |
[INFO] [stderr] 14 | [dependencies.clap]
[INFO] [stderr]    |               ^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `cargo::unused_dependencies` is set to `warn` by default
[INFO] [stderr] help: consider removing the dependency on `clap`
[INFO] [stderr] warning: unused dependency `regex`
[INFO] [stderr]  --> Cargo.toml:5:1
[INFO] [stderr]   |
[INFO] [stderr] 5 | regex = "1"
[INFO] [stderr]   | ^^^^^^^^^^^
[INFO] [stderr]   |
[INFO] [stderr] help: consider removing the dependency on `regex`
[INFO] [stderr] warning: unused dependency `tempfile`
[INFO] [stderr]   --> Cargo.toml:11:1
[INFO] [stderr]    |
[INFO] [stderr] 11 | tempfile = "3"
[INFO] [stderr]    | ^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr] help: consider removing the dependency on `tempfile`
[INFO] [stderr] warning: unused dependency `thiserror`
[INFO] [stderr]   --> Cargo.toml:12:1
[INFO] [stderr]    |
[INFO] [stderr] 12 | thiserror = "1.0.38"
[INFO] [stderr]    | ^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr] help: consider removing the dependency on `thiserror`
[INFO] [stderr] warning: `bittorrent-starter-rust` (manifest) generated 4 warnings
[INFO] running `Command { std: "docker" "inspect" "4ed1ed92a206fb5d286977fac540c8457ab4b18101e702d2612c6a74b44caed3", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "4ed1ed92a206fb5d286977fac540c8457ab4b18101e702d2612c6a74b44caed3", kill_on_drop: false }`
[INFO] [stdout] 4ed1ed92a206fb5d286977fac540c8457ab4b18101e702d2612c6a74b44caed3
