[INFO] cloning repository https://github.com/redsnow1992/codecrafters-kafka-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/redsnow1992/codecrafters-kafka-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fredsnow1992%2Fcodecrafters-kafka-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fredsnow1992%2Fcodecrafters-kafka-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 2fc966d3d1412061ffd68e2c72611245ae82f3ef [INFO] checking redsnow1992/codecrafters-kafka-rust against master#f21fbac535ab2c3bc50db20547f4d48477357103 for pr-143193 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fredsnow1992%2Fcodecrafters-kafka-rust" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/redsnow1992/codecrafters-kafka-rust [INFO] finished tweaking git repo https://github.com/redsnow1992/codecrafters-kafka-rust [INFO] tweaked toml for git repo https://github.com/redsnow1992/codecrafters-kafka-rust written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/redsnow1992/codecrafters-kafka-rust on toolchain f21fbac535ab2c3bc50db20547f4d48477357103 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f21fbac535ab2c3bc50db20547f4d48477357103" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/redsnow1992/codecrafters-kafka-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" "+f21fbac535ab2c3bc50db20547f4d48477357103" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded kafka-protocol v0.15.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+f21fbac535ab2c3bc50db20547f4d48477357103" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5ab824b47ec456b87c646f77cad1e79becedde66bff7932d39d67237cc009af9 [INFO] running `Command { std: "docker" "start" "-a" "5ab824b47ec456b87c646f77cad1e79becedde66bff7932d39d67237cc009af9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5ab824b47ec456b87c646f77cad1e79becedde66bff7932d39d67237cc009af9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5ab824b47ec456b87c646f77cad1e79becedde66bff7932d39d67237cc009af9", kill_on_drop: false }` [INFO] [stdout] 5ab824b47ec456b87c646f77cad1e79becedde66bff7932d39d67237cc009af9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+f21fbac535ab2c3bc50db20547f4d48477357103" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c27c0fb82574414e8b84321ee7681d8ce0d97ef88ee15f69d855689de27afc16 [INFO] running `Command { std: "docker" "start" "-a" "c27c0fb82574414e8b84321ee7681d8ce0d97ef88ee15f69d855689de27afc16", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.171 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Compiling semver v1.0.26 [INFO] [stderr] Compiling pkg-config v0.3.32 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling zstd-safe v7.2.4 [INFO] [stderr] Checking futures-sink v0.3.31 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Checking pin-project-lite v0.2.16 [INFO] [stderr] Checking futures-core v0.3.31 [INFO] [stderr] Compiling paste v1.0.15 [INFO] [stderr] Compiling anyhow v1.0.86 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Checking adler2 v2.0.0 [INFO] [stderr] Checking smallvec v1.14.0 [INFO] [stderr] Checking futures-io v0.3.31 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Checking futures-channel v0.3.31 [INFO] [stderr] Checking futures-task v0.3.31 [INFO] [stderr] Compiling snap v1.1.1 [INFO] [stderr] Checking miniz_oxide v0.8.5 [INFO] [stderr] Checking crc32fast v1.4.2 [INFO] [stderr] Checking bytes v1.10.1 [INFO] [stderr] Checking crc-catalog v2.4.0 [INFO] [stderr] Compiling thiserror v1.0.63 [INFO] [stderr] Checking equivalent v1.0.2 [INFO] [stderr] Checking hashbrown v0.15.3 [INFO] [stderr] Compiling virtue v0.0.18 [INFO] [stderr] Checking crc v3.3.0 [INFO] [stderr] Checking uuid v1.16.0 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling rustc_version v0.4.1 [INFO] [stderr] Checking unty v0.0.4 [INFO] [stderr] Checking indexmap v2.9.0 [INFO] [stderr] Compiling crc32c v0.6.8 [INFO] [stderr] Checking flate2 v1.1.1 [INFO] [stderr] Compiling bincode_derive v2.0.1 [INFO] [stderr] Compiling jobserver v0.1.33 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling cc v1.2.25 [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] Compiling syn v2.0.75 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Checking bincode v2.0.1 [INFO] [stderr] Compiling zstd-sys v2.0.15+zstd.1.5.7 [INFO] [stderr] Compiling lz4-sys v1.11.1+lz4-1.10.0 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling thiserror-impl v1.0.63 [INFO] [stderr] Checking tokio v1.44.1 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Checking zstd v0.13.3 [INFO] [stderr] Checking futures-executor v0.3.31 [INFO] [stderr] Checking futures v0.3.31 [INFO] [stderr] Checking lz4 v1.28.1 [INFO] [stderr] Checking kafka-protocol v0.15.1 [INFO] [stderr] Checking codecrafters-kafka v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/main.rs:48:21 [INFO] [stdout] | [INFO] [stdout] 34 | / loop { [INFO] [stdout] 35 | | match rd.read(&mut buffer).await { [INFO] [stdout] 36 | | Ok(n) if n > 0 => { [INFO] [stdout] 37 | | let mut buf = BytesMut::from(&buffer[4..n]); [INFO] [stdout] ... | [INFO] [stdout] 47 | | } [INFO] [stdout] | |_____________________- any code following this expression is unreachable [INFO] [stdout] 48 | let _ = socket.shutdown().await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/main.rs:48:21 [INFO] [stdout] | [INFO] [stdout] 34 | / loop { [INFO] [stdout] 35 | | match rd.read(&mut buffer).await { [INFO] [stdout] 36 | | Ok(n) if n > 0 => { [INFO] [stdout] 37 | | let mut buf = BytesMut::from(&buffer[4..n]); [INFO] [stdout] ... | [INFO] [stdout] 47 | | } [INFO] [stdout] | |_____________________- any code following this expression is unreachable [INFO] [stdout] 48 | let _ = socket.shutdown().await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 37.17s [INFO] running `Command { std: "docker" "inspect" "c27c0fb82574414e8b84321ee7681d8ce0d97ef88ee15f69d855689de27afc16", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c27c0fb82574414e8b84321ee7681d8ce0d97ef88ee15f69d855689de27afc16", kill_on_drop: false }` [INFO] [stdout] c27c0fb82574414e8b84321ee7681d8ce0d97ef88ee15f69d855689de27afc16