[INFO] cloning repository https://github.com/raja-dettex/codecrafters-bittorent-rust
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/raja-dettex/codecrafters-bittorent-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fraja-dettex%2Fcodecrafters-bittorent-rust", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fraja-dettex%2Fcodecrafters-bittorent-rust'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 093d97472f67bcdb72ca2d07b30e775b8e9e19dd
[INFO] checking raja-dettex/codecrafters-bittorent-rust against 760e1de835e253bf28bbcbfee38b5e8ed9ffe074 for pr-133502-27
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fraja-dettex%2Fcodecrafters-bittorent-rust" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/raja-dettex/codecrafters-bittorent-rust
[INFO] finished tweaking git repo https://github.com/raja-dettex/codecrafters-bittorent-rust
[INFO] tweaked toml for git repo https://github.com/raja-dettex/codecrafters-bittorent-rust written to /workspace/builds/worker-7-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/raja-dettex/codecrafters-bittorent-rust on toolchain 760e1de835e253bf28bbcbfee38b5e8ed9ffe074
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+760e1de835e253bf28bbcbfee38b5e8ed9ffe074" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/raja-dettex/codecrafters-bittorent-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" "+760e1de835e253bf28bbcbfee38b5e8ed9ffe074" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:c36f533e8924a726b63f9d01e781fa8c8c28c96d1d595403829afb31452ee0f5" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] 89d12eaad6555c11a071cac8a047a01958ffb8953c91db1e4cf30051a3d7d8a1
[INFO] running `Command { std: "docker" "start" "89d12eaad6555c11a071cac8a047a01958ffb8953c91db1e4cf30051a3d7d8a1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "89d12eaad6555c11a071cac8a047a01958ffb8953c91db1e4cf30051a3d7d8a1", 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" "89d12eaad6555c11a071cac8a047a01958ffb8953c91db1e4cf30051a3d7d8a1" "/opt/rustwide/cargo-home/bin/cargo" "+760e1de835e253bf28bbcbfee38b5e8ed9ffe074" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "89d12eaad6555c11a071cac8a047a01958ffb8953c91db1e4cf30051a3d7d8a1", 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" "89d12eaad6555c11a071cac8a047a01958ffb8953c91db1e4cf30051a3d7d8a1" "/opt/rustwide/cargo-home/bin/cargo" "+760e1de835e253bf28bbcbfee38b5e8ed9ffe074" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.155
[INFO] [stderr]    Compiling proc-macro2 v1.0.66
[INFO] [stderr]    Compiling unicode-ident v1.0.11
[INFO] [stderr]    Compiling autocfg v1.1.0
[INFO] [stderr]     Checking pin-project-lite v0.2.12
[INFO] [stderr]    Compiling parking_lot_core v0.9.8
[INFO] [stderr]    Compiling pkg-config v0.3.27
[INFO] [stderr]    Compiling memchr v2.5.0
[INFO] [stderr]     Checking once_cell v1.18.0
[INFO] [stderr]     Checking smallvec v1.11.0
[INFO] [stderr]     Checking bytes v1.3.0
[INFO] [stderr]     Checking itoa v1.0.9
[INFO] [stderr]    Compiling serde v1.0.183
[INFO] [stderr]    Compiling rustix v0.38.8
[INFO] [stderr]    Compiling generic-array v0.14.7
[INFO] [stderr]     Checking bitflags v2.4.0
[INFO] [stderr]     Checking linux-raw-sys v0.4.5
[INFO] [stderr]    Compiling openssl v0.10.56
[INFO] [stderr]    Compiling serde_derive v1.0.183
[INFO] [stderr]     Checking hashbrown v0.12.3
[INFO] [stderr]    Compiling httparse v1.8.0
[INFO] [stderr]    Compiling futures-channel v0.3.28
[INFO] [stderr]     Checking futures-io v0.3.30
[INFO] [stderr]    Compiling lock_api v0.4.10
[INFO] [stderr]    Compiling slab v0.4.8
[INFO] [stderr]    Compiling indexmap v1.9.3
[INFO] [stderr]     Checking tracing-core v0.1.31
[INFO] [stderr]     Checking futures-task v0.3.30
[INFO] [stderr]    Compiling native-tls v0.2.11
[INFO] [stderr]     Checking tinyvec v1.6.0
[INFO] [stderr]     Checking http v0.2.9
[INFO] [stderr]     Checking log v0.4.20
[INFO] [stderr]     Checking try-lock v0.2.4
[INFO] [stderr]    Compiling syn v1.0.48
[INFO] [stderr]     Checking utf8parse v0.2.1
[INFO] [stderr]     Checking openssl-probe v0.1.5
[INFO] [stderr]     Checking percent-encoding v2.3.0
[INFO] [stderr]     Checking want v0.3.1
[INFO] [stderr]     Checking anstyle-parse v0.2.1
[INFO] [stderr]     Checking form_urlencoded v1.2.0
[INFO] [stderr]    Compiling unicode-xid v0.2.1
[INFO] [stderr]     Checking tracing v0.1.37
[INFO] [stderr]     Checking anstyle-query v1.0.0
[INFO] [stderr]     Checking ryu v1.0.15
[INFO] [stderr]    Compiling quote v1.0.33
[INFO] [stderr]     Checking unicode-bidi v0.3.13
[INFO] [stderr]     Checking tower-service v0.3.2
[INFO] [stderr]     Checking colorchoice v1.0.0
[INFO] [stderr]     Checking anstyle v1.0.1
[INFO] [stderr]     Checking http-body v0.4.5
[INFO] [stderr]    Compiling serde_json v1.0.105
[INFO] [stderr]    Compiling cc v1.0.82
[INFO] [stderr]     Checking aho-corasick v1.0.4
[INFO] [stderr]     Checking strsim v0.10.0
[INFO] [stderr]    Compiling anyhow v1.0.68
[INFO] [stderr]     Checking regex-syntax v0.7.4
[INFO] [stderr]     Checking unicode-normalization v0.1.22
[INFO] [stderr]    Compiling syn v2.0.29
[INFO] [stderr]     Checking num_cpus v1.16.0
[INFO] [stderr]     Checking signal-hook-registry v1.4.1
[INFO] [stderr]     Checking socket2 v0.5.3
[INFO] [stderr]     Checking mio v0.8.8
[INFO] [stderr]     Checking socket2 v0.4.9
[INFO] [stderr]    Compiling heck v0.4.1
[INFO] [stderr]     Checking clap_lex v0.5.0
[INFO] [stderr]     Checking parking_lot v0.12.1
[INFO] [stderr]    Compiling thiserror v1.0.38
[INFO] [stderr]     Checking block-buffer v0.10.4
[INFO] [stderr]     Checking crypto-common v0.1.6
[INFO] [stderr]     Checking encoding_rs v0.8.32
[INFO] [stderr]     Checking digest v0.10.7
[INFO] [stderr]     Checking base64 v0.21.2
[INFO] [stderr]     Checking fastrand v2.0.0
[INFO] [stderr]     Checking ipnet v2.8.0
[INFO] [stderr]     Checking cpufeatures v0.2.12
[INFO] [stderr]     Checking kanal v0.1.0-pre8
[INFO] [stderr]     Checking idna v0.4.0
[INFO] [stderr]     Checking sha1 v0.10.6
[INFO] [stderr]    Compiling openssl-sys v0.9.91
[INFO] [stderr]     Checking url v2.4.0
[INFO] [stderr]     Checking is-terminal v0.4.9
[INFO] [stderr]     Checking tempfile v3.7.1
[INFO] [stderr]     Checking anstream v0.3.2
[INFO] [stderr]     Checking clap_builder v4.3.22
[INFO] [stderr]     Checking regex-automata v0.3.6
[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]    Compiling thiserror-impl v1.0.38
[INFO] [stderr]     Checking regex v1.9.3
[INFO] [stderr]    Compiling tokio-macros v2.1.0
[INFO] [stderr]    Compiling openssl-macros v0.1.1
[INFO] [stderr]    Compiling futures-macro v0.3.30
[INFO] [stderr]    Compiling clap_derive v4.3.12
[INFO] [stderr]     Checking futures-util v0.3.30
[INFO] [stderr]     Checking tokio v1.32.0
[INFO] [stderr]     Checking clap v4.3.22
[INFO] [stderr]     Checking tokio-util v0.7.11
[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: unused import: `reqwest::blocking::get`
[INFO] [stdout]  --> src/peers.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use reqwest::blocking::get;
[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: `core::panic`
[INFO] [stdout]  --> src/peers.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use core::panic;
[INFO] [stdout]   |     ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `tokio::task::JoinSet`
[INFO] [stdout]  --> src/download.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | use tokio::task::JoinSet;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `MessageTag`, `Piece`, and `self`
[INFO] [stdout]  --> src/download.rs:9:21
[INFO] [stdout]   |
[INFO] [stdout] 9 | use crate::{peers::{MessageTag, Peer, Piece}, piece::{self, PieceInfo}, torrent::{FileInfo, Keys, Torrent}, tracker::TrackerResponse};
[INFO] [stdout]   |                     ^^^^^^^^^^        ^^^^^           ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `tracker::TrackerResponse`
[INFO] [stdout]  --> src/piece.rs:3:44
[INFO] [stdout]   |
[INFO] [stdout] 3 | use crate::{peers::Peer, torrent::Torrent, tracker::TrackerResponse};
[INFO] [stdout]   |                                            ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `reqwest::blocking::get`
[INFO] [stdout]  --> src/peers.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use reqwest::blocking::get;
[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: `core::panic`
[INFO] [stdout]  --> src/peers.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use core::panic;
[INFO] [stdout]   |     ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `tokio::task::JoinSet`
[INFO] [stdout]  --> src/download.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | use tokio::task::JoinSet;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `MessageTag`, `Piece`, and `self`
[INFO] [stdout]  --> src/download.rs:9:21
[INFO] [stdout]   |
[INFO] [stdout] 9 | use crate::{peers::{MessageTag, Peer, Piece}, piece::{self, PieceInfo}, torrent::{FileInfo, Keys, Torrent}, tracker::TrackerResponse};
[INFO] [stdout]   |                     ^^^^^^^^^^        ^^^^^           ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `tracker::TrackerResponse`
[INFO] [stdout]  --> src/piece.rs:3:44
[INFO] [stdout]   |
[INFO] [stdout] 3 | use crate::{peers::Peer, torrent::Torrent, tracker::TrackerResponse};
[INFO] [stdout]   |                                            ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `bitfield`
[INFO] [stdout]   --> src/peers.rs:67:13
[INFO] [stdout]    |
[INFO] [stdout] 67 |         let bitfield: Message   = peer_conn.next().await.context("first message tag should be a bitfield tag")??;
[INFO] [stdout]    |             ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bitfield`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `bitfield`
[INFO] [stdout]   --> src/peers.rs:67:13
[INFO] [stdout]    |
[INFO] [stdout] 67 |         let bitfield: Message   = peer_conn.next().await.context("first message tag should be a bitfield tag")??;
[INFO] [stdout]    |             ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bitfield`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `peer_addr` is never read
[INFO] [stdout]   --> src/peers.rs:16:5
[INFO] [stdout]    |
[INFO] [stdout] 15 | pub(crate) struct Peer { 
[INFO] [stdout]    |                   ---- field in this struct
[INFO] [stdout] 16 |     peer_addr : SocketAddrV4,
[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 `peer_addr` is never read
[INFO] [stdout]   --> src/peers.rs:16:5
[INFO] [stdout]    |
[INFO] [stdout] 15 | pub(crate) struct Peer { 
[INFO] [stdout]    |                   ---- field in this struct
[INFO] [stdout] 16 |     peer_addr : SocketAddrV4,
[INFO] [stdout]    |     ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `pieces` is never used
[INFO] [stdout]   --> src/peers.rs:37:19
[INFO] [stdout]    |
[INFO] [stdout] 27 | impl Bitfield {
[INFO] [stdout]    | ------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 37 |     pub(crate) fn pieces(&self) -> impl Iterator<Item = usize> + '_ { 
[INFO] [stdout]    |                   ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `OpenOptions` and `Permissions`
[INFO] [stdout]  --> src/main.rs:4:16
[INFO] [stdout]   |
[INFO] [stdout] 4 | use std::{fs::{OpenOptions, Permissions}, io::Write, net::SocketAddrV4, path::PathBuf};
[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 imports: `OpenOptions` and `Permissions`
[INFO] [stdout]  --> src/main.rs:4:16
[INFO] [stdout]   |
[INFO] [stdout] 4 | use std::{fs::{OpenOptions, Permissions}, io::Write, net::SocketAddrV4, path::PathBuf};
[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: `io::Write`
[INFO] [stdout]  --> src/main.rs:4:43
[INFO] [stdout]   |
[INFO] [stdout] 4 | use std::{fs::{OpenOptions, Permissions}, io::Write, net::SocketAddrV4, path::PathBuf};
[INFO] [stdout]   |                                           ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `io::Write`
[INFO] [stdout]  --> src/main.rs:4:43
[INFO] [stdout]   |
[INFO] [stdout] 4 | use std::{fs::{OpenOptions, Permissions}, io::Write, net::SocketAddrV4, path::PathBuf};
[INFO] [stdout]   |                                           ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 41.00s
[INFO] running `Command { std: "docker" "inspect" "89d12eaad6555c11a071cac8a047a01958ffb8953c91db1e4cf30051a3d7d8a1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "89d12eaad6555c11a071cac8a047a01958ffb8953c91db1e4cf30051a3d7d8a1", kill_on_drop: false }`
[INFO] [stdout] 89d12eaad6555c11a071cac8a047a01958ffb8953c91db1e4cf30051a3d7d8a1
