[INFO] cloning repository https://github.com/phorks/codecrafters-bittorrent-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/phorks/codecrafters-bittorrent-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fphorks%2Fcodecrafters-bittorrent-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fphorks%2Fcodecrafters-bittorrent-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 747a6fbdc746da5e2bd81007778304312b555207 [INFO] building phorks/codecrafters-bittorrent-rust against master#c7f6aa2869acdbf014d094c6e427e554e160b6db for pr-146237-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fphorks%2Fcodecrafters-bittorrent-rust" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/phorks/codecrafters-bittorrent-rust [INFO] finished tweaking git repo https://github.com/phorks/codecrafters-bittorrent-rust [INFO] tweaked toml for git repo https://github.com/phorks/codecrafters-bittorrent-rust written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/phorks/codecrafters-bittorrent-rust on toolchain c7f6aa2869acdbf014d094c6e427e554e160b6db [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/phorks/codecrafters-bittorrent-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" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded serde_bencode v0.2.4 [INFO] [stderr] Downloaded clap v4.5.19 [INFO] [stderr] Downloaded once_cell v1.20.1 [INFO] [stderr] Downloaded cc v1.1.24 [INFO] [stderr] Downloaded syn v2.0.79 [INFO] [stderr] Downloaded portable-atomic v1.9.0 [INFO] [stderr] Downloaded clap_builder v4.5.19 [INFO] [stderr] Downloaded regex v1.11.0 [INFO] [stderr] Downloaded regex-automata v0.4.8 [INFO] [stderr] Downloaded libc v0.2.159 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/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" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8db83520f49fc2fef065b16cdb7290a83fb4fa81a1175e0e899894f6f43c5c28 [INFO] running `Command { std: "docker" "start" "-a" "8db83520f49fc2fef065b16cdb7290a83fb4fa81a1175e0e899894f6f43c5c28", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8db83520f49fc2fef065b16cdb7290a83fb4fa81a1175e0e899894f6f43c5c28", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8db83520f49fc2fef065b16cdb7290a83fb4fa81a1175e0e899894f6f43c5c28", kill_on_drop: false }` [INFO] [stdout] 8db83520f49fc2fef065b16cdb7290a83fb4fa81a1175e0e899894f6f43c5c28 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/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" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0e3f81cfed4dc38869367ab3e8b60eeb611cc5046c94494dee5aa75afa2b4107 [INFO] running `Command { std: "docker" "start" "-a" "0e3f81cfed4dc38869367ab3e8b60eeb611cc5046c94494dee5aa75afa2b4107", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.159 [INFO] [stderr] Compiling once_cell v1.20.1 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling cc v1.1.24 [INFO] [stderr] Compiling openssl v0.10.66 [INFO] [stderr] Compiling http v0.2.12 [INFO] [stderr] Compiling futures-util v0.3.30 [INFO] [stderr] Compiling futures-channel v0.3.30 [INFO] [stderr] Compiling rustix v0.38.37 [INFO] [stderr] Compiling serde_json v1.0.128 [INFO] [stderr] Compiling idna v0.5.0 [INFO] [stderr] Compiling anyhow v1.0.89 [INFO] [stderr] Compiling clap_builder v4.5.19 [INFO] [stderr] Compiling regex-automata v0.4.8 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling ipnet v2.10.0 [INFO] [stderr] Compiling tracing-core v0.1.32 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling url v2.5.2 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling socket2 v0.5.7 [INFO] [stderr] Compiling signal-hook-registry v1.4.2 [INFO] [stderr] Compiling mio v1.0.2 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling openssl-sys v0.9.103 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling http-body v0.4.6 [INFO] [stderr] Compiling syn v2.0.79 [INFO] [stderr] Compiling native-tls v0.2.12 [INFO] [stderr] Compiling tempfile v3.13.0 [INFO] [stderr] Compiling regex v1.11.0 [INFO] [stderr] Compiling tokio-macros v2.4.0 [INFO] [stderr] Compiling serde_derive v1.0.210 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling thiserror-impl v1.0.64 [INFO] [stderr] Compiling clap_derive v4.5.18 [INFO] [stderr] Compiling tokio v1.40.0 [INFO] [stderr] Compiling thiserror v1.0.64 [INFO] [stderr] Compiling clap v4.5.19 [INFO] [stderr] Compiling serde v1.0.210 [INFO] [stderr] Compiling tokio-util v0.7.12 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling serde_bytes v0.11.15 [INFO] [stderr] Compiling h2 v0.3.26 [INFO] [stderr] Compiling serde_bencode v0.2.4 [INFO] [stderr] Compiling hyper v0.14.30 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling reqwest v0.11.27 [INFO] [stderr] Compiling bittorrent-starter-rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/peer.rs:23:22 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn handshake(&self) -> Result { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 23 | pub fn handshake(&self) -> Result, std::io::Error> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/tfile.rs:23:24 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn create_peer(&self, addr: SocketAddrV4) -> Peer { [INFO] [stdout] | ^^^^^ ^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 23 | pub fn create_peer(&self, addr: SocketAddrV4) -> Peer<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/tfile.rs:27:23 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn find_peers(&self) -> impl Iterator { [INFO] [stdout] | ^^^^^ ^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 27 | pub fn find_peers(&self) -> impl Iterator> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 53.66s [INFO] running `Command { std: "docker" "inspect" "0e3f81cfed4dc38869367ab3e8b60eeb611cc5046c94494dee5aa75afa2b4107", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0e3f81cfed4dc38869367ab3e8b60eeb611cc5046c94494dee5aa75afa2b4107", kill_on_drop: false }` [INFO] [stdout] 0e3f81cfed4dc38869367ab3e8b60eeb611cc5046c94494dee5aa75afa2b4107 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/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" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0762a8570dfe671da5f0a648faebe6ace3480606594b7c3afe04193ead5f01fc [INFO] running `Command { std: "docker" "start" "-a" "0762a8570dfe671da5f0a648faebe6ace3480606594b7c3afe04193ead5f01fc", kill_on_drop: false }` [INFO] [stderr] Compiling bittorrent-starter-rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/peer.rs:23:22 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn handshake(&self) -> Result { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 23 | pub fn handshake(&self) -> Result, std::io::Error> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/tfile.rs:23:24 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn create_peer(&self, addr: SocketAddrV4) -> Peer { [INFO] [stdout] | ^^^^^ ^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 23 | pub fn create_peer(&self, addr: SocketAddrV4) -> Peer<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/tfile.rs:27:23 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn find_peers(&self) -> impl Iterator { [INFO] [stdout] | ^^^^^ ^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 27 | pub fn find_peers(&self) -> impl Iterator> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.97s [INFO] running `Command { std: "docker" "inspect" "0762a8570dfe671da5f0a648faebe6ace3480606594b7c3afe04193ead5f01fc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0762a8570dfe671da5f0a648faebe6ace3480606594b7c3afe04193ead5f01fc", kill_on_drop: false }` [INFO] [stdout] 0762a8570dfe671da5f0a648faebe6ace3480606594b7c3afe04193ead5f01fc