[INFO] cloning repository https://github.com/amoilanen/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/amoilanen/bittorrent-client" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Famoilanen%2Fbittorrent-client", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Famoilanen%2Fbittorrent-client'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 30b9d0622234b7467cf0ad4d5156660f6c5af468
[INFO] testing amoilanen/bittorrent-client against try#db823df02fd0c2cf67b43025ac3fef3f2d743245 for pr-150681
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Famoilanen%2Fbittorrent-client" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/amoilanen/bittorrent-client
[INFO] finished tweaking git repo https://github.com/amoilanen/bittorrent-client
[INFO] tweaked toml for git repo https://github.com/amoilanen/bittorrent-client written to /workspace/builds/worker-2-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/amoilanen/bittorrent-client on toolchain db823df02fd0c2cf67b43025ac3fef3f2d743245
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+db823df02fd0c2cf67b43025ac3fef3f2d743245" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/amoilanen/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" "+db823df02fd0c2cf67b43025ac3fef3f2d743245" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+db823df02fd0c2cf67b43025ac3fef3f2d743245" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 5e252e55ab307d4d1da76734a9bd0b06fabd2df7e8066c01210a5b8adcd3d469
[INFO] running `Command { std: "docker" "start" "-a" "5e252e55ab307d4d1da76734a9bd0b06fabd2df7e8066c01210a5b8adcd3d469", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "5e252e55ab307d4d1da76734a9bd0b06fabd2df7e8066c01210a5b8adcd3d469", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "5e252e55ab307d4d1da76734a9bd0b06fabd2df7e8066c01210a5b8adcd3d469", kill_on_drop: false }`
[INFO] [stdout] 5e252e55ab307d4d1da76734a9bd0b06fabd2df7e8066c01210a5b8adcd3d469
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+db823df02fd0c2cf67b43025ac3fef3f2d743245" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] af813ec6f308e2b0542358827727bc5793cc75c72c2eb5662db0f2ffd72e7aaa
[INFO] running `Command { std: "docker" "start" "-a" "af813ec6f308e2b0542358827727bc5793cc75c72c2eb5662db0f2ffd72e7aaa", kill_on_drop: false }`
[INFO] [stderr]    Compiling quote v1.0.33
[INFO] [stderr]    Compiling bytes v1.3.0
[INFO] [stderr]    Compiling rustix v0.38.8
[INFO] [stderr]    Compiling parking_lot_core v0.9.8
[INFO] [stderr]    Compiling syn v1.0.48
[INFO] [stderr]    Compiling unicode-normalization v0.1.23
[INFO] [stderr]    Compiling getrandom v0.2.10
[INFO] [stderr]    Compiling unicode-bidi v0.3.15
[INFO] [stderr]    Compiling serde_json v1.0.105
[INFO] [stderr]    Compiling aho-corasick v1.0.4
[INFO] [stderr]    Compiling regex-syntax v0.7.4
[INFO] [stderr]    Compiling thiserror v1.0.38
[INFO] [stderr]    Compiling anyhow v1.0.68
[INFO] [stderr]    Compiling digest v0.10.7
[INFO] [stderr]    Compiling serde_urlencoded v0.7.1
[INFO] [stderr]    Compiling serde_bytes v0.11.12
[INFO] [stderr]    Compiling syn v2.0.29
[INFO] [stderr]    Compiling parking_lot v0.12.1
[INFO] [stderr]    Compiling rand_core v0.6.4
[INFO] [stderr]    Compiling fastrand v2.0.0
[INFO] [stderr]    Compiling cpufeatures v0.2.9
[INFO] [stderr]    Compiling serde_bencode v0.2.3
[INFO] [stderr]    Compiling sha1 v0.10.5
[INFO] [stderr]    Compiling http v0.2.9
[INFO] [stderr]    Compiling rand_chacha v0.3.1
[INFO] [stderr]    Compiling idna v0.5.0
[INFO] [stderr]    Compiling url v2.5.2
[INFO] [stderr]    Compiling rand v0.8.5
[INFO] [stderr]    Compiling http-body v0.4.5
[INFO] [stderr]    Compiling is-terminal v0.4.9
[INFO] [stderr]    Compiling tempfile v3.7.1
[INFO] [stderr]    Compiling regex-automata v0.3.6
[INFO] [stderr]    Compiling thiserror-impl v1.0.38
[INFO] [stderr]    Compiling anstream v0.3.2
[INFO] [stderr]    Compiling clap_builder v4.3.22
[INFO] [stderr]    Compiling tokio-macros v2.1.0
[INFO] [stderr]    Compiling openssl-macros v0.1.1
[INFO] [stderr]    Compiling clap_derive v4.3.12
[INFO] [stderr]    Compiling openssl v0.10.56
[INFO] [stderr]    Compiling tokio v1.32.0
[INFO] [stderr]    Compiling regex v1.9.3
[INFO] [stderr]    Compiling clap v4.3.22
[INFO] [stderr]    Compiling native-tls v0.2.11
[INFO] [stderr]    Compiling tokio-util v0.7.8
[INFO] [stderr]    Compiling tokio-native-tls v0.3.1
[INFO] [stderr]    Compiling h2 v0.3.20
[INFO] [stderr]    Compiling hyper v0.14.27
[INFO] [stderr]    Compiling hyper-tls v0.5.0
[INFO] [stderr]    Compiling reqwest v0.11.18
[INFO] [stderr]    Compiling bittorrent-starter-rust v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `std::env`
[INFO] [stdout]  --> src/main.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::env;
[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: `request`
[INFO] [stdout]   --> src/tracker.rs:81:34
[INFO] [stdout]    |
[INFO] [stdout] 81 |     fn get_udp(&self, url: &str, request: &TrackerRequest) -> Result<TrackerResponse, anyhow::Error> {
[INFO] [stdout]    |                                  ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_request`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `connection_id`
[INFO] [stdout]    --> src/tracker.rs:126:17
[INFO] [stdout]     |
[INFO] [stdout] 126 |             let connection_id = connect_response.connection_id;
[INFO] [stdout]     |                 ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_connection_id`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `interval` is never read
[INFO] [stdout]   --> src/tracker.rs:18:5
[INFO] [stdout]    |
[INFO] [stdout] 17 | pub(crate) struct TrackerResponse {
[INFO] [stdout]    |                   --------------- field in this struct
[INFO] [stdout] 18 |     interval: u32,
[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 `action` is never read
[INFO] [stdout]   --> src/tracker/messages.rs:53:16
[INFO] [stdout]    |
[INFO] [stdout] 52 | pub(crate) struct ConnectResponse {
[INFO] [stdout]    |                   --------------- field in this struct
[INFO] [stdout] 53 |     pub(crate) action: Action,
[INFO] [stdout]    |                ^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `ConnectResponse` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new` and `to_string` are never used
[INFO] [stdout]   --> src/peer.rs:76:19
[INFO] [stdout]    |
[INFO] [stdout] 68 | impl PeerMessage {
[INFO] [stdout]    | ---------------- associated items in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 76 |     pub(crate) fn new(message_id: PeerMessageId, payload: Vec<u8>) -> PeerMessage {
[INFO] [stdout]    |                   ^^^
[INFO] [stdout] ...
[INFO] [stdout] 92 |     pub(crate) fn to_string(&self) -> String {
[INFO] [stdout]    |                   ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `read_piece_from` is never used
[INFO] [stdout]   --> src/file.rs:14:15
[INFO] [stdout]    |
[INFO] [stdout] 14 | pub(crate) fn read_piece_from(file_path: &str, begin: usize, length: usize) -> Result<Vec<u8>, anyhow::Error> {
[INFO] [stdout]    |               ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 36.86s
[INFO] running `Command { std: "docker" "inspect" "af813ec6f308e2b0542358827727bc5793cc75c72c2eb5662db0f2ffd72e7aaa", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "af813ec6f308e2b0542358827727bc5793cc75c72c2eb5662db0f2ffd72e7aaa", kill_on_drop: false }`
[INFO] [stdout] af813ec6f308e2b0542358827727bc5793cc75c72c2eb5662db0f2ffd72e7aaa
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+db823df02fd0c2cf67b43025ac3fef3f2d743245" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 2c3a59c036de2a1626aeda56e532bdb23495621ed43d1bf4f4647290edeeef6a
[INFO] running `Command { std: "docker" "start" "-a" "2c3a59c036de2a1626aeda56e532bdb23495621ed43d1bf4f4647290edeeef6a", kill_on_drop: false }`
[INFO] [stderr]    Compiling bittorrent-starter-rust v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `std::env`
[INFO] [stdout]  --> src/main.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::env;
[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: `request`
[INFO] [stdout]   --> src/tracker.rs:81:34
[INFO] [stdout]    |
[INFO] [stdout] 81 |     fn get_udp(&self, url: &str, request: &TrackerRequest) -> Result<TrackerResponse, anyhow::Error> {
[INFO] [stdout]    |                                  ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_request`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `connection_id`
[INFO] [stdout]    --> src/tracker.rs:126:17
[INFO] [stdout]     |
[INFO] [stdout] 126 |             let connection_id = connect_response.connection_id;
[INFO] [stdout]     |                 ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_connection_id`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `response`
[INFO] [stdout]    --> src/tracker.rs:193:13
[INFO] [stdout]     |
[INFO] [stdout] 193 |         let response = tracker.get_udp(&tracker.url,&tracker_request).unwrap();
[INFO] [stdout]     |             ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_response`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `interval` is never read
[INFO] [stdout]   --> src/tracker.rs:18:5
[INFO] [stdout]    |
[INFO] [stdout] 17 | pub(crate) struct TrackerResponse {
[INFO] [stdout]    |                   --------------- field in this struct
[INFO] [stdout] 18 |     interval: u32,
[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 `action` is never read
[INFO] [stdout]   --> src/tracker/messages.rs:53:16
[INFO] [stdout]    |
[INFO] [stdout] 52 | pub(crate) struct ConnectResponse {
[INFO] [stdout]    |                   --------------- field in this struct
[INFO] [stdout] 53 |     pub(crate) action: Action,
[INFO] [stdout]    |                ^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `ConnectResponse` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `to_string` is never used
[INFO] [stdout]   --> src/peer.rs:92:19
[INFO] [stdout]    |
[INFO] [stdout] 68 | impl PeerMessage {
[INFO] [stdout]    | ---------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 92 |     pub(crate) fn to_string(&self) -> String {
[INFO] [stdout]    |                   ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `read_piece_from` is never used
[INFO] [stdout]   --> src/file.rs:14:15
[INFO] [stdout]    |
[INFO] [stdout] 14 | pub(crate) fn read_piece_from(file_path: &str, begin: usize, length: usize) -> Result<Vec<u8>, anyhow::Error> {
[INFO] [stdout]    |               ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 1.57s
[INFO] running `Command { std: "docker" "inspect" "2c3a59c036de2a1626aeda56e532bdb23495621ed43d1bf4f4647290edeeef6a", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "2c3a59c036de2a1626aeda56e532bdb23495621ed43d1bf4f4647290edeeef6a", kill_on_drop: false }`
[INFO] [stdout] 2c3a59c036de2a1626aeda56e532bdb23495621ed43d1bf4f4647290edeeef6a
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+db823df02fd0c2cf67b43025ac3fef3f2d743245" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] f17b9d4f31694c8716a17c44cf1cc4ea51567c22ea0ac6d95c432e462e714d8a
[INFO] running `Command { std: "docker" "start" "-a" "f17b9d4f31694c8716a17c44cf1cc4ea51567c22ea0ac6d95c432e462e714d8a", kill_on_drop: false }`
[INFO] [stderr] warning: unused import: `std::env`
[INFO] [stderr]  --> src/main.rs:1:5
[INFO] [stderr]   |
[INFO] [stderr] 1 | use std::env;
[INFO] [stderr]   |     ^^^^^^^^
[INFO] [stderr]   |
[INFO] [stderr]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `request`
[INFO] [stderr]   --> src/tracker.rs:81:34
[INFO] [stderr]    |
[INFO] [stderr] 81 |     fn get_udp(&self, url: &str, request: &TrackerRequest) -> Result<TrackerResponse, anyhow::Error> {
[INFO] [stderr]    |                                  ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_request`
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `connection_id`
[INFO] [stderr]    --> src/tracker.rs:126:17
[INFO] [stderr]     |
[INFO] [stderr] 126 |             let connection_id = connect_response.connection_id;
[INFO] [stderr]     |                 ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_connection_id`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `response`
[INFO] [stderr]    --> src/tracker.rs:193:13
[INFO] [stderr]     |
[INFO] [stderr] 193 |         let response = tracker.get_udp(&tracker.url,&tracker_request).unwrap();
[INFO] [stderr]     |             ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_response`
[INFO] [stderr] 
[INFO] [stderr] warning: field `interval` is never read
[INFO] [stderr]   --> src/tracker.rs:18:5
[INFO] [stderr]    |
[INFO] [stderr] 17 | pub(crate) struct TrackerResponse {
[INFO] [stderr]    |                   --------------- field in this struct
[INFO] [stderr] 18 |     interval: u32,
[INFO] [stderr]    |     ^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: field `action` is never read
[INFO] [stderr]   --> src/tracker/messages.rs:53:16
[INFO] [stderr]    |
[INFO] [stderr] 52 | pub(crate) struct ConnectResponse {
[INFO] [stderr]    |                   --------------- field in this struct
[INFO] [stderr] 53 |     pub(crate) action: Action,
[INFO] [stderr]    |                ^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `ConnectResponse` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stderr] 
[INFO] [stderr] warning: method `to_string` is never used
[INFO] [stderr]   --> src/peer.rs:92:19
[INFO] [stderr]    |
[INFO] [stderr] 68 | impl PeerMessage {
[INFO] [stderr]    | ---------------- method in this implementation
[INFO] [stderr] ...
[INFO] [stderr] 92 |     pub(crate) fn to_string(&self) -> String {
[INFO] [stderr]    |                   ^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `read_piece_from` is never used
[INFO] [stderr]   --> src/file.rs:14:15
[INFO] [stderr]    |
[INFO] [stderr] 14 | pub(crate) fn read_piece_from(file_path: &str, begin: usize, length: usize) -> Result<Vec<u8>, anyhow::Error> {
[INFO] [stderr]    |               ^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: `bittorrent-starter-rust` (bin "bittorrent-starter-rust" test) generated 8 warnings (run `cargo fix --bin "bittorrent-starter-rust" -p bittorrent-starter-rust --tests` to apply 4 suggestions)
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.14s
[INFO] [stderr]      Running unittests src/main.rs (/opt/rustwide/target/debug/deps/bittorrent_starter_rust-4513c51381166d5d)
[INFO] [stdout] 
[INFO] [stdout] running 18 tests
[INFO] [stdout] test bencoded::tests::decode_bencoded_dictionary_which_misses_value ... ok
[INFO] [stdout] test bencoded::tests::decode_bencoded_dictionary ... ok
[INFO] [stdout] test bencoded::tests::decode_bencoded_integers ... ok
[INFO] [stdout] test bencoded::tests::decode_bencoded_lists ... ok
[INFO] [stdout] test bencoded::tests::decode_bencoded_objects_in_an_array ... ok
[INFO] [stdout] test bencoded::tests::decode_bencoded_nested_object ... ok
[INFO] [stdout] test bencoded::tests::decode_bencoded_string ... ok
[INFO] [stdout] test peer::tests::should_compute_piece_indices_from_bitfield ... ok
[INFO] [stdout] test peer::tests::should_read_bitfield_message_from_peer ... ok
[INFO] [stdout] test bencoded::tests::decode_empty_bencoded_dictionary ... ok
[INFO] [stdout] test peer::tests::should_read_unchoke_message_from_peer ... ok
[INFO] [stdout] test peer::tests::should_read_piece_message_from_peer ... ok
[INFO] [stdout] test peer::tests::should_serialize_peer_handshake_message_correctly ... ok
[INFO] [stdout] test peer::tests::should_serialize_request_message_correctly ... ok
[INFO] [stdout] test torrent::tests::bencode_torrent_info ... ok
[INFO] [stdout] test torrent::tests::read_torrent_from_bytes ... ok
[INFO] [stdout] test torrent::tests::compute_hash ... ok
[INFO] [stdout] test tracker::tests::should_send_connect_request_and_receive_connect_response ... FAILED
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout] 
[INFO] [stdout] ---- tracker::tests::should_send_connect_request_and_receive_connect_response stdout ----
[INFO] [stdout] tracker_address = 93.158.213.92:1337
[INFO] [stdout] 
[INFO] [stdout] thread 'tracker::tests::should_send_connect_request_and_receive_connect_response' (42) panicked at src/tracker.rs:193:71:
[INFO] [stdout] called `Result::unwrap()` on an `Err` value: Network is unreachable (os error 101)
[INFO] [stdout] stack backtrace:
[INFO] [stdout]    0:     0x5f142a0057b2 - std[3f03f8b59f91bef1]::backtrace_rs::backtrace::libunwind::trace
[INFO] [stdout]                                at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9
[INFO] [stdout]    1:     0x5f142a0057b2 - std[3f03f8b59f91bef1]::backtrace_rs::backtrace::trace_unsynchronized::<std[3f03f8b59f91bef1]::sys::backtrace::_print_fmt::{closure#1}>
[INFO] [stdout]                                at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14
[INFO] [stdout]    2:     0x5f142a0057b2 - std[3f03f8b59f91bef1]::sys::backtrace::_print_fmt
[INFO] [stdout]                                at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/std/src/sys/backtrace.rs:74:9
[INFO] [stdout]    3:     0x5f142a0057b2 - <<std[3f03f8b59f91bef1]::sys::backtrace::BacktraceLock>::print::DisplayBacktrace as core[585f66e14d78f9ba]::fmt::Display>::fmt
[INFO] [stdout]                                at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/std/src/sys/backtrace.rs:44:26
[INFO] [stdout]    4:     0x5f142a01bbda - <core[585f66e14d78f9ba]::fmt::rt::Argument>::fmt
[INFO] [stdout]                                at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/core/src/fmt/rt.rs:152:76
[INFO] [stdout]    5:     0x5f142a01bbda - core[585f66e14d78f9ba]::fmt::write
[INFO] [stdout]    6:     0x5f142a00a996 - std[3f03f8b59f91bef1]::io::default_write_fmt::<alloc[15e7b27aba85d2e2]::vec::Vec<u8>>
[INFO] [stdout]                                at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/std/src/io/mod.rs:639:11
[INFO] [stdout]    7:     0x5f142a00a996 - <alloc[15e7b27aba85d2e2]::vec::Vec<u8> as std[3f03f8b59f91bef1]::io::Write>::write_fmt
[INFO] [stdout]                                at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/std/src/io/mod.rs:1994:13
[INFO] [stdout]    8:     0x5f1429fe354f - <std[3f03f8b59f91bef1]::sys::backtrace::BacktraceLock>::print
[INFO] [stdout]                                at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/std/src/sys/backtrace.rs:47:9
[INFO] [stdout]    9:     0x5f1429fe354f - std[3f03f8b59f91bef1]::panicking::default_hook::{closure#0}
[INFO] [stdout]                                at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/std/src/panicking.rs:292:27
[INFO] [stdout]   10:     0x5f1429ffd569 - std[3f03f8b59f91bef1]::panicking::default_hook
[INFO] [stdout]                                at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/std/src/panicking.rs:316:9
[INFO] [stdout]   11:     0x5f1429eff34e - <alloc[15e7b27aba85d2e2]::boxed::Box<dyn for<'a, 'b> core[585f66e14d78f9ba]::ops::function::Fn<(&'a std[3f03f8b59f91bef1]::panic::PanicHookInfo<'b>,), Output = ()> + core[585f66e14d78f9ba]::marker::Sync + core[585f66e14d78f9ba]::marker::Send> as core[585f66e14d78f9ba]::ops::function::Fn<(&std[3f03f8b59f91bef1]::panic::PanicHookInfo,)>>::call
[INFO] [stdout]                                at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/alloc/src/boxed.rs:2220:9
[INFO] [stdout]   12:     0x5f1429eff34e - test[30224e0cb089acd2]::test_main_with_exit_callback::<test[30224e0cb089acd2]::test_main::{closure#0}>::{closure#0}
[INFO] [stdout]                                at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/test/src/lib.rs:145:21
[INFO] [stdout]   13:     0x5f1429ffd722 - <alloc[15e7b27aba85d2e2]::boxed::Box<dyn for<'a, 'b> core[585f66e14d78f9ba]::ops::function::Fn<(&'a std[3f03f8b59f91bef1]::panic::PanicHookInfo<'b>,), Output = ()> + core[585f66e14d78f9ba]::marker::Sync + core[585f66e14d78f9ba]::marker::Send> as core[585f66e14d78f9ba]::ops::function::Fn<(&std[3f03f8b59f91bef1]::panic::PanicHookInfo,)>>::call
[INFO] [stdout]                                at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/alloc/src/boxed.rs:2220:9
[INFO] [stdout]   14:     0x5f1429ffd722 - std[3f03f8b59f91bef1]::panicking::panic_with_hook
[INFO] [stdout]                                at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/std/src/panicking.rs:833:13
[INFO] [stdout]   15:     0x5f1429fe3608 - std[3f03f8b59f91bef1]::panicking::panic_handler::{closure#0}
[INFO] [stdout]                                at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/std/src/panicking.rs:698:13
[INFO] [stdout]   16:     0x5f1429fd8719 - std[3f03f8b59f91bef1]::sys::backtrace::__rust_end_short_backtrace::<std[3f03f8b59f91bef1]::panicking::panic_handler::{closure#0}, !>
[INFO] [stdout]                                at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/std/src/sys/backtrace.rs:182:18
[INFO] [stdout]   17:     0x5f1429fe462d - __rustc[caa99d26c7bae192]::rust_begin_unwind
[INFO] [stdout]                                at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/std/src/panicking.rs:689:5
[INFO] [stdout]   18:     0x5f142a01c2ec - core[585f66e14d78f9ba]::panicking::panic_fmt
[INFO] [stdout]                                at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/core/src/panicking.rs:80:14
[INFO] [stdout]   19:     0x5f142a01c062 - core[585f66e14d78f9ba]::result::unwrap_failed
[INFO] [stdout]                                at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/core/src/result.rs:1867:5
[INFO] [stdout]   20:     0x5f1429ecff1d - <core[585f66e14d78f9ba]::result::Result<bittorrent_starter_rust[10b84aed230ee7b0]::tracker::TrackerResponse, anyhow[f26636f92c9559ef]::Error>>::unwrap
[INFO] [stdout]                                at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/core/src/result.rs:1233:23
[INFO] [stdout]   21:     0x5f1429ecff1d - bittorrent_starter_rust[10b84aed230ee7b0]::tracker::tests::should_send_connect_request_and_receive_connect_response
[INFO] [stdout]                                at /opt/rustwide/workdir/src/tracker.rs:193:71
[INFO] [stdout]   22:     0x5f1429ecea27 - bittorrent_starter_rust[10b84aed230ee7b0]::tracker::tests::should_send_connect_request_and_receive_connect_response::{closure#0}
[INFO] [stdout]                                at /opt/rustwide/workdir/src/tracker.rs:175:66
[INFO] [stdout]   23:     0x5f1429edcde6 - <bittorrent_starter_rust[10b84aed230ee7b0]::tracker::tests::should_send_connect_request_and_receive_connect_response::{closure#0} as core[585f66e14d78f9ba]::ops::function::FnOnce<()>>::call_once
[INFO] [stdout]                                at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   24:     0x5f1429ef36fb - <fn() -> core[585f66e14d78f9ba]::result::Result<(), alloc[15e7b27aba85d2e2]::string::String> as core[585f66e14d78f9ba]::ops::function::FnOnce<()>>::call_once
[INFO] [stdout]                                at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   25:     0x5f1429ef36fb - test[30224e0cb089acd2]::__rust_begin_short_backtrace::<core[585f66e14d78f9ba]::result::Result<(), alloc[15e7b27aba85d2e2]::string::String>, fn() -> core[585f66e14d78f9ba]::result::Result<(), alloc[15e7b27aba85d2e2]::string::String>>
[INFO] [stdout]                                at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/test/src/lib.rs:663:18
[INFO] [stdout]   26:     0x5f1429efff5a - test[30224e0cb089acd2]::run_test_in_process::{closure#0}
[INFO] [stdout]                                at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/test/src/lib.rs:686:74
[INFO] [stdout]   27:     0x5f1429efff5a - <core[585f66e14d78f9ba]::panic::unwind_safe::AssertUnwindSafe<test[30224e0cb089acd2]::run_test_in_process::{closure#0}> as core[585f66e14d78f9ba]::ops::function::FnOnce<()>>::call_once
[INFO] [stdout]                                at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/core/src/panic/unwind_safe.rs:274:9
[INFO] [stdout]   28:     0x5f1429efff5a - std[3f03f8b59f91bef1]::panicking::catch_unwind::do_call::<core[585f66e14d78f9ba]::panic::unwind_safe::AssertUnwindSafe<test[30224e0cb089acd2]::run_test_in_process::{closure#0}>, core[585f66e14d78f9ba]::result::Result<(), alloc[15e7b27aba85d2e2]::string::String>>
[INFO] [stdout]                                at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/std/src/panicking.rs:581:40
[INFO] [stdout]   29:     0x5f1429efff5a - std[3f03f8b59f91bef1]::panicking::catch_unwind::<core[585f66e14d78f9ba]::result::Result<(), alloc[15e7b27aba85d2e2]::string::String>, core[585f66e14d78f9ba]::panic::unwind_safe::AssertUnwindSafe<test[30224e0cb089acd2]::run_test_in_process::{closure#0}>>
[INFO] [stdout]                                at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/std/src/panicking.rs:544:19
[INFO] [stdout]   30:     0x5f1429efff5a - std[3f03f8b59f91bef1]::panic::catch_unwind::<core[585f66e14d78f9ba]::panic::unwind_safe::AssertUnwindSafe<test[30224e0cb089acd2]::run_test_in_process::{closure#0}>, core[585f66e14d78f9ba]::result::Result<(), alloc[15e7b27aba85d2e2]::string::String>>
[INFO] [stdout]                                at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/std/src/panic.rs:359:14
[INFO] [stdout]   31:     0x5f1429efff5a - test[30224e0cb089acd2]::run_test_in_process
[INFO] [stdout]                                at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/test/src/lib.rs:686:27
[INFO] [stdout]   32:     0x5f1429efff5a - test[30224e0cb089acd2]::run_test::{closure#0}
[INFO] [stdout]                                at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/test/src/lib.rs:607:43
[INFO] [stdout]   33:     0x5f1429efa424 - test[30224e0cb089acd2]::run_test::{closure#1}
[INFO] [stdout]                                at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/test/src/lib.rs:637:41
[INFO] [stdout]   34:     0x5f1429efa424 - std[3f03f8b59f91bef1]::sys::backtrace::__rust_begin_short_backtrace::<test[30224e0cb089acd2]::run_test::{closure#1}, ()>
[INFO] [stdout]                                at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/std/src/sys/backtrace.rs:166:18
[INFO] [stdout]   35:     0x5f1429f02a52 - std[3f03f8b59f91bef1]::thread::lifecycle::spawn_unchecked::<test[30224e0cb089acd2]::run_test::{closure#1}, ()>::{closure#1}::{closure#0}
[INFO] [stdout]                                at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/std/src/thread/lifecycle.rs:91:13
[INFO] [stdout]   36:     0x5f1429f02a52 - <core[585f66e14d78f9ba]::panic::unwind_safe::AssertUnwindSafe<std[3f03f8b59f91bef1]::thread::lifecycle::spawn_unchecked<test[30224e0cb089acd2]::run_test::{closure#1}, ()>::{closure#1}::{closure#0}> as core[585f66e14d78f9ba]::ops::function::FnOnce<()>>::call_once
[INFO] [stdout]                                at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/core/src/panic/unwind_safe.rs:274:9
[INFO] [stdout]   37:     0x5f1429f02a52 - std[3f03f8b59f91bef1]::panicking::catch_unwind::do_call::<core[585f66e14d78f9ba]::panic::unwind_safe::AssertUnwindSafe<std[3f03f8b59f91bef1]::thread::lifecycle::spawn_unchecked<test[30224e0cb089acd2]::run_test::{closure#1}, ()>::{closure#1}::{closure#0}>, ()>
[INFO] [stdout]                                at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/std/src/panicking.rs:581:40
[INFO] [stdout]   38:     0x5f1429f02a52 - std[3f03f8b59f91bef1]::panicking::catch_unwind::<(), core[585f66e14d78f9ba]::panic::unwind_safe::AssertUnwindSafe<std[3f03f8b59f91bef1]::thread::lifecycle::spawn_unchecked<test[30224e0cb089acd2]::run_test::{closure#1}, ()>::{closure#1}::{closure#0}>>
[INFO] [stdout]                                at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/std/src/panicking.rs:544:19
[INFO] [stdout]   39:     0x5f1429f02a52 - std[3f03f8b59f91bef1]::panic::catch_unwind::<core[585f66e14d78f9ba]::panic::unwind_safe::AssertUnwindSafe<std[3f03f8b59f91bef1]::thread::lifecycle::spawn_unchecked<test[30224e0cb089acd2]::run_test::{closure#1}, ()>::{closure#1}::{closure#0}>, ()>
[INFO] [stdout]                                at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/std/src/panic.rs:359:14
[INFO] [stdout]   40:     0x5f1429f02a52 - std[3f03f8b59f91bef1]::thread::lifecycle::spawn_unchecked::<test[30224e0cb089acd2]::run_test::{closure#1}, ()>::{closure#1}
[INFO] [stdout]                                at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/std/src/thread/lifecycle.rs:89:26
[INFO] [stdout]   41:     0x5f1429f02a52 - <std[3f03f8b59f91bef1]::thread::lifecycle::spawn_unchecked<test[30224e0cb089acd2]::run_test::{closure#1}, ()>::{closure#1} as core[585f66e14d78f9ba]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
[INFO] [stdout]                                at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   42:     0x5f142a004f4f - <alloc[15e7b27aba85d2e2]::boxed::Box<dyn core[585f66e14d78f9ba]::ops::function::FnOnce<(), Output = ()> + core[585f66e14d78f9ba]::marker::Send> as core[585f66e14d78f9ba]::ops::function::FnOnce<()>>::call_once
[INFO] [stdout]                                at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/alloc/src/boxed.rs:2206:9
[INFO] [stdout]   43:     0x5f142a004f4f - <std[3f03f8b59f91bef1]::sys::thread::unix::Thread>::new::thread_start
[INFO] [stdout]                                at /rustc/db823df02fd0c2cf67b43025ac3fef3f2d743245/library/std/src/sys/thread/unix.rs:119:17
[INFO] [stdout]   44:     0x74aa63abdaa4 - <unknown>
[INFO] [stdout]   45:     0x74aa63b4aa64 - clone
[INFO] [stdout]   46:                0x0 - <unknown>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout]     tracker::tests::should_send_connect_request_and_receive_connect_response
[INFO] [stdout] 
[INFO] [stdout] test result: FAILED. 17 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.06s
[INFO] [stdout] 
[INFO] [stderr] error: test failed, to rerun pass `--bin bittorrent-starter-rust`
[INFO] running `Command { std: "docker" "inspect" "f17b9d4f31694c8716a17c44cf1cc4ea51567c22ea0ac6d95c432e462e714d8a", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "f17b9d4f31694c8716a17c44cf1cc4ea51567c22ea0ac6d95c432e462e714d8a", kill_on_drop: false }`
[INFO] [stdout] f17b9d4f31694c8716a17c44cf1cc4ea51567c22ea0ac6d95c432e462e714d8a
