[INFO] cloning repository https://github.com/kamalnayan10/torrentrs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/kamalnayan10/torrentrs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkamalnayan10%2Ftorrentrs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkamalnayan10%2Ftorrentrs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 355e8bb871cd1c7a33d8e3762e1f899b282fd025 [INFO] building kamalnayan10/torrentrs against try#d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6 for pr-146237-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkamalnayan10%2Ftorrentrs" "/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/kamalnayan10/torrentrs [INFO] finished tweaking git repo https://github.com/kamalnayan10/torrentrs [INFO] tweaked toml for git repo https://github.com/kamalnayan10/torrentrs written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/kamalnayan10/torrentrs on toolchain d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/kamalnayan10/torrentrs 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" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "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/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f094b5f6af9572d6b87aecc8ee65d0f0004ae47ff13a1edbf65fd3312e9e4f2a [INFO] running `Command { std: "docker" "start" "-a" "f094b5f6af9572d6b87aecc8ee65d0f0004ae47ff13a1edbf65fd3312e9e4f2a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f094b5f6af9572d6b87aecc8ee65d0f0004ae47ff13a1edbf65fd3312e9e4f2a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f094b5f6af9572d6b87aecc8ee65d0f0004ae47ff13a1edbf65fd3312e9e4f2a", kill_on_drop: false }` [INFO] [stdout] f094b5f6af9572d6b87aecc8ee65d0f0004ae47ff13a1edbf65fd3312e9e4f2a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 001d21dd755fe6d19bbb0d7d002d92bcaa30b68b3a86f46cdf0522fe7e64719b [INFO] running `Command { std: "docker" "start" "-a" "001d21dd755fe6d19bbb0d7d002d92bcaa30b68b3a86f46cdf0522fe7e64719b", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.89 [INFO] [stderr] Compiling unicode-ident v1.0.13 [INFO] [stderr] Compiling libc v0.2.161 [INFO] [stderr] Compiling cc v1.1.31 [INFO] [stderr] Compiling bytes v1.8.0 [INFO] [stderr] Compiling serde v1.0.214 [INFO] [stderr] Compiling tracing-core v0.1.32 [INFO] [stderr] Compiling hashbrown v0.15.0 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling http v0.2.12 [INFO] [stderr] Compiling unicode-normalization v0.1.24 [INFO] [stderr] Compiling indexmap v2.6.0 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling unicode-bidi v0.3.17 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling syn v2.0.85 [INFO] [stderr] Compiling mio v1.0.2 [INFO] [stderr] Compiling openssl-sys v0.9.104 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling socket2 v0.5.7 [INFO] [stderr] Compiling signal-hook-registry v1.4.2 [INFO] [stderr] Compiling http-body v0.4.6 [INFO] [stderr] Compiling rustix v0.38.38 [INFO] [stderr] Compiling openssl v0.10.68 [INFO] [stderr] Compiling native-tls v0.2.12 [INFO] [stderr] Compiling anstyle v1.0.9 [INFO] [stderr] Compiling serde_json v1.0.132 [INFO] [stderr] Compiling idna v0.5.0 [INFO] [stderr] Compiling anyhow v1.0.91 [INFO] [stderr] Compiling clap_lex v0.7.2 [INFO] [stderr] Compiling anstream v0.6.17 [INFO] [stderr] Compiling regex-automata v0.4.8 [INFO] [stderr] Compiling fastrand v2.1.1 [INFO] [stderr] Compiling cpufeatures v0.2.14 [INFO] [stderr] Compiling clap_builder v4.5.20 [INFO] [stderr] Compiling url v2.5.2 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling tempfile v3.13.0 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling tokio-macros v2.4.0 [INFO] [stderr] Compiling serde_derive v1.0.214 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling clap_derive v4.5.18 [INFO] [stderr] Compiling thiserror-impl v1.0.65 [INFO] [stderr] Compiling tokio v1.41.0 [INFO] [stderr] Compiling thiserror v1.0.65 [INFO] [stderr] Compiling clap v4.5.20 [INFO] [stderr] Compiling tokio-util v0.7.12 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling h2 v0.3.26 [INFO] [stderr] Compiling serde_bytes v0.11.15 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling serde_bencode v0.2.4 [INFO] [stderr] Compiling hyper v0.14.31 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling reqwest v0.11.27 [INFO] [stderr] Compiling bittorrent_client v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `tokio::net::TcpStream as tokioTcp` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use tokio::net::TcpStream as tokioTcp; [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: `peer_address` [INFO] [stdout] --> src/main.rs:231:25 [INFO] [stdout] | [INFO] [stdout] 231 | async fn download_piece(peer_address:&String , torrent_info: &mut TorrentInfo) -> Result<() , Box>{ [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_peer_address` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AsyncWriteExt` [INFO] [stdout] --> src/main.rs:9:17 [INFO] [stdout] | [INFO] [stdout] 9 | use tokio::io::{AsyncWriteExt , AsyncReadExt}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AsyncReadExt` [INFO] [stdout] --> src/main.rs:9:33 [INFO] [stdout] | [INFO] [stdout] 9 | use tokio::io::{AsyncWriteExt , AsyncReadExt}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `peer_address` [INFO] [stdout] --> src/main.rs:291:13 [INFO] [stdout] | [INFO] [stdout] 291 | let peer_address = &args[3]; [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_peer_address` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ip` [INFO] [stdout] --> src/main.rs:187:17 [INFO] [stdout] | [INFO] [stdout] 187 | let ip = format!( [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ip` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `port` [INFO] [stdout] --> src/main.rs:196:17 [INFO] [stdout] | [INFO] [stdout] 196 | let port = ((chunk[4].as_i64().unwrap() as u16) << 8) | (chunk[5].as_i64().unwrap() as u16); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_port` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `download_piece` is never used [INFO] [stdout] --> src/main.rs:231:10 [INFO] [stdout] | [INFO] [stdout] 231 | async fn download_piece(peer_address:&String , torrent_info: &mut TorrentInfo) -> Result<() , Box>{ [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:233:5 [INFO] [stdout] | [INFO] [stdout] 233 | make_tracker_request(torrent_info); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 233 | let _ = make_tracker_request(torrent_info); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 27s [INFO] running `Command { std: "docker" "inspect" "001d21dd755fe6d19bbb0d7d002d92bcaa30b68b3a86f46cdf0522fe7e64719b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "001d21dd755fe6d19bbb0d7d002d92bcaa30b68b3a86f46cdf0522fe7e64719b", kill_on_drop: false }` [INFO] [stdout] 001d21dd755fe6d19bbb0d7d002d92bcaa30b68b3a86f46cdf0522fe7e64719b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ced6b2830fe8fe55f776e814cbe664032e824db44555c361ae3a81044a33e6f4 [INFO] running `Command { std: "docker" "start" "-a" "ced6b2830fe8fe55f776e814cbe664032e824db44555c361ae3a81044a33e6f4", kill_on_drop: false }` [INFO] [stderr] Compiling bittorrent_client v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `tokio::net::TcpStream as tokioTcp` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use tokio::net::TcpStream as tokioTcp; [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: `peer_address` [INFO] [stdout] --> src/main.rs:231:25 [INFO] [stdout] | [INFO] [stdout] 231 | async fn download_piece(peer_address:&String , torrent_info: &mut TorrentInfo) -> Result<() , Box>{ [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_peer_address` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AsyncWriteExt` [INFO] [stdout] --> src/main.rs:9:17 [INFO] [stdout] | [INFO] [stdout] 9 | use tokio::io::{AsyncWriteExt , AsyncReadExt}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AsyncReadExt` [INFO] [stdout] --> src/main.rs:9:33 [INFO] [stdout] | [INFO] [stdout] 9 | use tokio::io::{AsyncWriteExt , AsyncReadExt}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `peer_address` [INFO] [stdout] --> src/main.rs:291:13 [INFO] [stdout] | [INFO] [stdout] 291 | let peer_address = &args[3]; [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_peer_address` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ip` [INFO] [stdout] --> src/main.rs:187:17 [INFO] [stdout] | [INFO] [stdout] 187 | let ip = format!( [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ip` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `port` [INFO] [stdout] --> src/main.rs:196:17 [INFO] [stdout] | [INFO] [stdout] 196 | let port = ((chunk[4].as_i64().unwrap() as u16) << 8) | (chunk[5].as_i64().unwrap() as u16); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_port` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `download_piece` is never used [INFO] [stdout] --> src/main.rs:231:10 [INFO] [stdout] | [INFO] [stdout] 231 | async fn download_piece(peer_address:&String , torrent_info: &mut TorrentInfo) -> Result<() , Box>{ [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:233:5 [INFO] [stdout] | [INFO] [stdout] 233 | make_tracker_request(torrent_info); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 233 | let _ = make_tracker_request(torrent_info); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.70s [INFO] running `Command { std: "docker" "inspect" "ced6b2830fe8fe55f776e814cbe664032e824db44555c361ae3a81044a33e6f4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ced6b2830fe8fe55f776e814cbe664032e824db44555c361ae3a81044a33e6f4", kill_on_drop: false }` [INFO] [stdout] ced6b2830fe8fe55f776e814cbe664032e824db44555c361ae3a81044a33e6f4