[INFO] cloning repository https://github.com/muhtutorials/bittorrent
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/muhtutorials/bittorrent" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmuhtutorials%2Fbittorrent", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmuhtutorials%2Fbittorrent'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 4b35b3f605a319c4d81e106dab4c9de51271394d
[INFO] checking muhtutorials/bittorrent against 3154cc1a3e6424e44f438a95007d043ed5ceaaf6 for pr-133502-30
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmuhtutorials%2Fbittorrent" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/muhtutorials/bittorrent
[INFO] finished tweaking git repo https://github.com/muhtutorials/bittorrent
[INFO] tweaked toml for git repo https://github.com/muhtutorials/bittorrent written to /workspace/builds/worker-5-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/muhtutorials/bittorrent on toolchain 3154cc1a3e6424e44f438a95007d043ed5ceaaf6
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+3154cc1a3e6424e44f438a95007d043ed5ceaaf6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/muhtutorials/bittorrent 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" "+3154cc1a3e6424e44f438a95007d043ed5ceaaf6" "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/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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] 9a2a0bfe7588d1f606c4a5559c6063093d6d848349b7c69a981dced9d2e49938
[INFO] running `Command { std: "docker" "start" "9a2a0bfe7588d1f606c4a5559c6063093d6d848349b7c69a981dced9d2e49938", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "9a2a0bfe7588d1f606c4a5559c6063093d6d848349b7c69a981dced9d2e49938", 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" "9a2a0bfe7588d1f606c4a5559c6063093d6d848349b7c69a981dced9d2e49938" "/opt/rustwide/cargo-home/bin/cargo" "+3154cc1a3e6424e44f438a95007d043ed5ceaaf6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "9a2a0bfe7588d1f606c4a5559c6063093d6d848349b7c69a981dced9d2e49938", 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" "9a2a0bfe7588d1f606c4a5559c6063093d6d848349b7c69a981dced9d2e49938" "/opt/rustwide/cargo-home/bin/cargo" "+3154cc1a3e6424e44f438a95007d043ed5ceaaf6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]    Compiling quote v1.0.40
[INFO] [stderr]    Compiling libc v0.2.172
[INFO] [stderr]     Checking smallvec v1.15.0
[INFO] [stderr]     Checking stable_deref_trait v1.2.0
[INFO] [stderr]     Checking bytes v1.10.1
[INFO] [stderr]     Checking futures-core v0.3.31
[INFO] [stderr]    Compiling lock_api v0.4.12
[INFO] [stderr]    Compiling cc v1.2.23
[INFO] [stderr]    Compiling slab v0.4.9
[INFO] [stderr]     Checking writeable v0.6.1
[INFO] [stderr]    Compiling typenum v1.18.0
[INFO] [stderr]     Checking litemap v0.8.0
[INFO] [stderr]     Checking futures-sink v0.3.31
[INFO] [stderr]    Compiling icu_normalizer_data v2.0.0
[INFO] [stderr]    Compiling icu_properties_data v2.0.0
[INFO] [stderr]     Checking tracing-core v0.1.33
[INFO] [stderr]    Compiling openssl v0.10.72
[INFO] [stderr]     Checking futures-task v0.3.31
[INFO] [stderr]     Checking hashbrown v0.15.3
[INFO] [stderr]     Checking bitflags v2.9.1
[INFO] [stderr]    Compiling native-tls v0.2.14
[INFO] [stderr]     Checking openssl-probe v0.1.6
[INFO] [stderr]     Checking futures-channel v0.3.31
[INFO] [stderr]     Checking anstyle-parse v0.2.6
[INFO] [stderr]     Checking const-oid v0.10.1
[INFO] [stderr]     Checking anstyle-query v1.1.2
[INFO] [stderr]     Checking is_terminal_polyfill v1.70.1
[INFO] [stderr]     Checking anstyle v1.0.10
[INFO] [stderr]    Compiling syn v2.0.101
[INFO] [stderr]     Checking colorchoice v1.0.3
[INFO] [stderr]     Checking rustls-pki-types v1.12.0
[INFO] [stderr]     Checking sync_wrapper v1.0.2
[INFO] [stderr]     Checking clap_lex v0.7.4
[INFO] [stderr]    Compiling anyhow v1.0.98
[INFO] [stderr]     Checking encoding_rs v0.8.35
[INFO] [stderr]    Compiling doctest-file v1.1.1
[INFO] [stderr]     Checking ipnet v2.11.0
[INFO] [stderr]     Checking kanal v0.1.1
[INFO] [stderr]     Checking anstream v0.6.18
[INFO] [stderr]     Checking clap_builder v4.5.38
[INFO] [stderr]     Checking rustls-pemfile v2.2.0
[INFO] [stderr]     Checking http v1.3.1
[INFO] [stderr]     Checking indexmap v2.9.0
[INFO] [stderr]     Checking tracing v0.1.41
[INFO] [stderr]    Compiling openssl-sys v0.9.108
[INFO] [stderr]     Checking parking_lot_core v0.9.10
[INFO] [stderr]     Checking socket2 v0.5.9
[INFO] [stderr]     Checking signal-hook-registry v1.4.2
[INFO] [stderr]     Checking mio v1.0.3
[INFO] [stderr]     Checking parking_lot v0.12.3
[INFO] [stderr]     Checking hybrid-array v0.3.1
[INFO] [stderr]     Checking http-body v1.0.1
[INFO] [stderr]     Checking http-body-util v0.1.3
[INFO] [stderr]     Checking crypto-common v0.2.0-rc.3
[INFO] [stderr]     Checking block-buffer v0.11.0-rc.4
[INFO] [stderr]     Checking digest v0.11.0-rc.0
[INFO] [stderr]     Checking sha1 v0.11.0-rc.0
[INFO] [stderr]     Checking sha2 v0.11.0-rc.0
[INFO] [stderr]    Compiling synstructure v0.13.2
[INFO] [stderr]    Compiling zerofrom-derive v0.1.6
[INFO] [stderr]    Compiling yoke-derive v0.8.0
[INFO] [stderr]    Compiling zerovec-derive v0.11.1
[INFO] [stderr]    Compiling displaydoc v0.2.5
[INFO] [stderr]    Compiling tokio-macros v2.5.0
[INFO] [stderr]    Compiling serde_derive v1.0.219
[INFO] [stderr]    Compiling futures-macro v0.3.31
[INFO] [stderr]    Compiling openssl-macros v0.1.1
[INFO] [stderr]    Compiling clap_derive v4.5.32
[INFO] [stderr]     Checking tokio v1.45.0
[INFO] [stderr]     Checking futures-util v0.3.31
[INFO] [stderr]     Checking zerofrom v0.1.6
[INFO] [stderr]     Checking yoke v0.8.0
[INFO] [stderr]     Checking zerotrie v0.2.2
[INFO] [stderr]     Checking clap v4.5.38
[INFO] [stderr]     Checking zerovec v0.11.2
[INFO] [stderr]     Checking tinystr v0.8.1
[INFO] [stderr]     Checking potential_utf v0.1.2
[INFO] [stderr]     Checking icu_collections v2.0.0
[INFO] [stderr]     Checking icu_locale_core v2.0.0
[INFO] [stderr]     Checking serde v1.0.219
[INFO] [stderr]     Checking icu_provider v2.0.0
[INFO] [stderr]     Checking icu_properties v2.0.0
[INFO] [stderr]     Checking icu_normalizer v2.0.0
[INFO] [stderr]     Checking idna_adapter v1.2.1
[INFO] [stderr]     Checking idna v1.0.3
[INFO] [stderr]     Checking url v2.5.4
[INFO] [stderr]     Checking tokio-util v0.7.15
[INFO] [stderr]     Checking tokio-native-tls v0.3.1
[INFO] [stderr]     Checking tower v0.5.2
[INFO] [stderr]     Checking interprocess v2.4.3
[INFO] [stderr]     Checking h2 v0.4.10
[INFO] [stderr]     Checking serde_bytes v0.11.17
[INFO] [stderr]     Checking serde_urlencoded v0.7.1
[INFO] [stderr]     Checking serde_json v1.0.140
[INFO] [stderr]     Checking serde_bencode v0.2.4
[INFO] [stderr]     Checking hyper v1.6.0
[INFO] [stderr]     Checking hyper-util v0.1.11
[INFO] [stderr]     Checking hyper-tls v0.6.0
[INFO] [stderr]     Checking reqwest v0.12.15
[INFO] [stderr]     Checking bittorrent v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] error[E0425]: cannot find value `n` in this scope
[INFO] [stdout]   --> src/downloader.rs:39:20
[INFO] [stdout]    |
[INFO] [stdout] 39 |         while Some(n) = pieces.next() {}
[INFO] [stdout]    |                    ^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: you might have meant to use pattern matching
[INFO] [stdout]    |
[INFO] [stdout] 39 |         while let Some(n) = pieces.next() {}
[INFO] [stdout]    |               +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `piece_i` in this scope
[INFO] [stdout]   --> src/downloader.rs:69:34
[INFO] [stdout]    |
[INFO] [stdout] 69 |                 peer.participate(piece_i, piece_size, n_blocks, job_tx, job_rx, done_tx)
[INFO] [stdout]    |                                  ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `piece_size` in this scope
[INFO] [stdout]   --> src/downloader.rs:69:43
[INFO] [stdout]    |
[INFO] [stdout] 69 |                 peer.participate(piece_i, piece_size, n_blocks, job_tx, job_rx, done_tx)
[INFO] [stdout]    |                                           ^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `n_blocks` in this scope
[INFO] [stdout]   --> src/downloader.rs:69:55
[INFO] [stdout]    |
[INFO] [stdout] 69 |                 peer.participate(piece_i, piece_size, n_blocks, job_tx, job_rx, done_tx)
[INFO] [stdout]    |                                                       ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `job_tx` in this scope
[INFO] [stdout]   --> src/downloader.rs:69:65
[INFO] [stdout]    |
[INFO] [stdout] 69 |                 peer.participate(piece_i, piece_size, n_blocks, job_tx, job_rx, done_tx)
[INFO] [stdout]    |                                                                 ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `job_rx` in this scope
[INFO] [stdout]   --> src/downloader.rs:69:73
[INFO] [stdout]    |
[INFO] [stdout] 69 |                 peer.participate(piece_i, piece_size, n_blocks, job_tx, job_rx, done_tx)
[INFO] [stdout]    |                                                                         ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `done_tx` in this scope
[INFO] [stdout]   --> src/downloader.rs:69:81
[INFO] [stdout]    |
[INFO] [stdout] 69 |                 peer.participate(piece_i, piece_size, n_blocks, job_tx, job_rx, done_tx)
[INFO] [stdout]    |                                                                                 ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `n` in this scope
[INFO] [stdout]   --> src/downloader.rs:39:20
[INFO] [stdout]    |
[INFO] [stdout] 39 |         while Some(n) = pieces.next() {}
[INFO] [stdout]    |                    ^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: you might have meant to use pattern matching
[INFO] [stdout]    |
[INFO] [stdout] 39 |         while let Some(n) = pieces.next() {}
[INFO] [stdout]    |               +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `piece_i` in this scope
[INFO] [stdout]   --> src/downloader.rs:69:34
[INFO] [stdout]    |
[INFO] [stdout] 69 |                 peer.participate(piece_i, piece_size, n_blocks, job_tx, job_rx, done_tx)
[INFO] [stdout]    |                                  ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `piece_size` in this scope
[INFO] [stdout]   --> src/downloader.rs:69:43
[INFO] [stdout]    |
[INFO] [stdout] 69 |                 peer.participate(piece_i, piece_size, n_blocks, job_tx, job_rx, done_tx)
[INFO] [stdout]    |                                           ^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `n_blocks` in this scope
[INFO] [stdout]   --> src/downloader.rs:69:55
[INFO] [stdout]    |
[INFO] [stdout] 69 |                 peer.participate(piece_i, piece_size, n_blocks, job_tx, job_rx, done_tx)
[INFO] [stdout]    |                                                       ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `job_tx` in this scope
[INFO] [stdout]   --> src/downloader.rs:69:65
[INFO] [stdout]    |
[INFO] [stdout] 69 |                 peer.participate(piece_i, piece_size, n_blocks, job_tx, job_rx, done_tx)
[INFO] [stdout]    |                                                                 ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `job_rx` in this scope
[INFO] [stdout]   --> src/downloader.rs:69:73
[INFO] [stdout]    |
[INFO] [stdout] 69 |                 peer.participate(piece_i, piece_size, n_blocks, job_tx, job_rx, done_tx)
[INFO] [stdout]    |                                                                         ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `done_tx` in this scope
[INFO] [stdout]   --> src/downloader.rs:69:81
[INFO] [stdout]    |
[INFO] [stdout] 69 |                 peer.participate(piece_i, piece_size, n_blocks, job_tx, job_rx, done_tx)
[INFO] [stdout]    |                                                                                 ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0609]: no field `info_hash` on type `Torrent`
[INFO] [stdout]   --> src/client.rs:23:37
[INFO] [stdout]    |
[INFO] [stdout] 23 |             torrents.insert(torrent.info_hash, torrent);
[INFO] [stdout]    |                                     ^^^^^^^^^ unknown field
[INFO] [stdout]    |
[INFO] [stdout]    = note: available fields are: `id`, `path`, `dot_torrent`, `pieces`, `uploaded` ... and 4 others
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0609]: no field `info_hash` on type `Torrent`
[INFO] [stdout]   --> src/client.rs:23:37
[INFO] [stdout]    |
[INFO] [stdout] 23 |             torrents.insert(torrent.info_hash, torrent);
[INFO] [stdout]    |                                     ^^^^^^^^^ unknown field
[INFO] [stdout]    |
[INFO] [stdout]    = note: available fields are: `id`, `path`, `dot_torrent`, `pieces`, `uploaded` ... and 4 others
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/client.rs:47:17
[INFO] [stdout]    |
[INFO] [stdout] 46 | /             if !torrent.finished {
[INFO] [stdout] 47 | |                 tokio::spawn(async move {})
[INFO] [stdout]    | |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^- help: consider using a semicolon here: `;`
[INFO] [stdout]    | |                 |
[INFO] [stdout]    | |                 expected `()`, found `JoinHandle<()>`
[INFO] [stdout] 48 | |             }
[INFO] [stdout]    | |_____________- `if` expressions without `else` arms expect their inner expression to be `()`
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected unit type `()`
[INFO] [stdout]                  found struct `tokio::task::JoinHandle<()>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/client.rs:47:17
[INFO] [stdout]    |
[INFO] [stdout] 46 | /             if !torrent.finished {
[INFO] [stdout] 47 | |                 tokio::spawn(async move {})
[INFO] [stdout]    | |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^- help: consider using a semicolon here: `;`
[INFO] [stdout]    | |                 |
[INFO] [stdout]    | |                 expected `()`, found `JoinHandle<()>`
[INFO] [stdout] 48 | |             }
[INFO] [stdout]    | |_____________- `if` expressions without `else` arms expect their inner expression to be `()`
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected unit type `()`
[INFO] [stdout]                  found struct `tokio::task::JoinHandle<()>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `next` found for struct `tokio::sync::MutexGuard<'_, BitVec>` in the current scope
[INFO] [stdout]   --> src/downloader.rs:39:32
[INFO] [stdout]    |
[INFO] [stdout] 39 |         while Some(n) = pieces.next() {}
[INFO] [stdout]    |                                ^^^^ method not found in `tokio::sync::MutexGuard<'_, BitVec>`
[INFO] [stdout]    |
[INFO] [stdout]    = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout]    = note: the following traits define an item `next`, perhaps you need to implement one of them:
[INFO] [stdout]            candidate #1: `Iterator`
[INFO] [stdout]            candidate #2: `StreamExt`
[INFO] [stdout]            candidate #3: `serde_json::de::Read`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the `?` operator can only be used in an async block that returns `Result` or `Option` (or another type that implements `FromResidual`)
[INFO] [stdout]   --> src/downloader.rs:68:65
[INFO] [stdout]    |
[INFO] [stdout] 67 |             spawn(async move {
[INFO] [stdout]    |                   ---------- this function should return `Result` or `Option` to accept `?`
[INFO] [stdout] 68 |                 let peer = Peer::new(addr, self.info_hash).await?;
[INFO] [stdout]    |                                                                 ^ cannot use the `?` operator in an async block that returns `impl futures_util::Future<Output = Result<(), anyhow::Error>>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `next` found for struct `tokio::sync::MutexGuard<'_, bit_vec::BitVec>` in the current scope
[INFO] [stdout]   --> src/downloader.rs:39:32
[INFO] [stdout]    |
[INFO] [stdout] 39 |         while Some(n) = pieces.next() {}
[INFO] [stdout]    |                                ^^^^ method not found in `tokio::sync::MutexGuard<'_, bit_vec::BitVec>`
[INFO] [stdout]    |
[INFO] [stdout]    = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout]    = note: the following traits define an item `next`, perhaps you need to implement one of them:
[INFO] [stdout]            candidate #1: `Iterator`
[INFO] [stdout]            candidate #2: `StreamExt`
[INFO] [stdout]            candidate #3: `serde_json::de::Read`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the `?` operator can only be used in an async block that returns `Result` or `Option` (or another type that implements `FromResidual`)
[INFO] [stdout]   --> src/downloader.rs:68:65
[INFO] [stdout]    |
[INFO] [stdout] 67 |             spawn(async move {
[INFO] [stdout]    |                   ---------- this function should return `Result` or `Option` to accept `?`
[INFO] [stdout] 68 |                 let peer = Peer::new(addr, self.info_hash).await?;
[INFO] [stdout]    |                                                                 ^ cannot use the `?` operator in an async block that returns `impl futures_util::Future<Output = Result<(), anyhow::Error>>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/downloader.rs:67:13
[INFO] [stdout]    |
[INFO] [stdout] 67 | /             spawn(async move {
[INFO] [stdout] 68 | |                 let peer = Peer::new(addr, self.info_hash).await?;
[INFO] [stdout] 69 | |                 peer.participate(piece_i, piece_size, n_blocks, job_tx, job_rx, done_tx)
[INFO] [stdout] 70 | |             })
[INFO] [stdout]    | |              ^- help: consider using a semicolon here: `;`
[INFO] [stdout]    | |______________|
[INFO] [stdout]    |                expected `()`, found `JoinHandle<impl Future<Output = _>>`
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected unit type `()`
[INFO] [stdout]                  found struct `tokio::task::JoinHandle<impl futures_util::Future<Output = Result<(), anyhow::Error>>>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/downloader.rs:67:13
[INFO] [stdout]    |
[INFO] [stdout] 67 | /             spawn(async move {
[INFO] [stdout] 68 | |                 let peer = Peer::new(addr, self.info_hash).await?;
[INFO] [stdout] 69 | |                 peer.participate(piece_i, piece_size, n_blocks, job_tx, job_rx, done_tx)
[INFO] [stdout] 70 | |             })
[INFO] [stdout]    | |              ^- help: consider using a semicolon here: `;`
[INFO] [stdout]    | |______________|
[INFO] [stdout]    |                expected `()`, found `JoinHandle<impl Future<Output = _>>`
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected unit type `()`
[INFO] [stdout]                  found struct `tokio::task::JoinHandle<impl futures_util::Future<Output = Result<(), anyhow::Error>>>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `dl`
[INFO] [stdout]   --> src/downloader.rs:26:13
[INFO] [stdout]    |
[INFO] [stdout] 26 |         let dl = Downloader {
[INFO] [stdout]    |             ^^ help: if this is intentional, prefix it with an underscore: `_dl`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary `unsafe` block
[INFO] [stdout]    --> src/peer.rs:209:21
[INFO] [stdout]     |
[INFO] [stdout] 209 |         let bytes = unsafe { self as *mut Self as *mut [u8; size_of::<Self>()] };
[INFO] [stdout]     |                     ^^^^^^ unnecessary `unsafe` block
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_unsafe)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary `unsafe` block
[INFO] [stdout]    --> src/peer.rs:251:21
[INFO] [stdout]     |
[INFO] [stdout] 251 |         let bytes = unsafe { self as *mut Self as *mut [u8; size_of::<Self>()] };
[INFO] [stdout]     |                     ^^^^^^ unnecessary `unsafe` block
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `info_hash`
[INFO] [stdout]   --> src/state.rs:99:13
[INFO] [stdout]    |
[INFO] [stdout] 99 |         let info_hash = dot_torrent.info_hash()?;
[INFO] [stdout]    |             ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_info_hash`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `torrent`
[INFO] [stdout]    --> src/tracker.rs:157:29
[INFO] [stdout]     |
[INFO] [stdout] 157 |                 if let Some(torrent) = state.torrents.get_mut(&info_hash) {
[INFO] [stdout]     |                             ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_torrent`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0425, E0599, E0609.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0277`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `bittorrent` (lib) due to 12 previous errors; 5 warnings emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] warning: unused variable: `dl`
[INFO] [stdout]   --> src/downloader.rs:26:13
[INFO] [stdout]    |
[INFO] [stdout] 26 |         let dl = Downloader {
[INFO] [stdout]    |             ^^ help: if this is intentional, prefix it with an underscore: `_dl`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary `unsafe` block
[INFO] [stdout]    --> src/peer.rs:209:21
[INFO] [stdout]     |
[INFO] [stdout] 209 |         let bytes = unsafe { self as *mut Self as *mut [u8; size_of::<Self>()] };
[INFO] [stdout]     |                     ^^^^^^ unnecessary `unsafe` block
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_unsafe)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary `unsafe` block
[INFO] [stdout]    --> src/peer.rs:251:21
[INFO] [stdout]     |
[INFO] [stdout] 251 |         let bytes = unsafe { self as *mut Self as *mut [u8; size_of::<Self>()] };
[INFO] [stdout]     |                     ^^^^^^ unnecessary `unsafe` block
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `info_hash`
[INFO] [stdout]   --> src/state.rs:99:13
[INFO] [stdout]    |
[INFO] [stdout] 99 |         let info_hash = dot_torrent.info_hash()?;
[INFO] [stdout]    |             ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_info_hash`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `torrent`
[INFO] [stdout]    --> src/tracker.rs:157:29
[INFO] [stdout]     |
[INFO] [stdout] 157 |                 if let Some(torrent) = state.torrents.get_mut(&info_hash) {
[INFO] [stdout]     |                             ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_torrent`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0425, E0599, E0609.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0277`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `bittorrent` (lib test) due to 12 previous errors; 5 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "9a2a0bfe7588d1f606c4a5559c6063093d6d848349b7c69a981dced9d2e49938", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "9a2a0bfe7588d1f606c4a5559c6063093d6d848349b7c69a981dced9d2e49938", kill_on_drop: false }`
[INFO] [stdout] 9a2a0bfe7588d1f606c4a5559c6063093d6d848349b7c69a981dced9d2e49938
