[INFO] cloning repository https://github.com/cndoit18/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/cndoit18/codecrafters-kafka-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcndoit18%2Fcodecrafters-kafka-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcndoit18%2Fcodecrafters-kafka-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 6e0e1772c5d50a57208a2d7bddee478bdde8b328 [INFO] checking cndoit18/codecrafters-kafka-rust against master#db0e836148accac8a22532e3596ac612b63c2d8e for pr-139272 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcndoit18%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] validating manifest of git repo https://github.com/cndoit18/codecrafters-kafka-rust on toolchain db0e836148accac8a22532e3596ac612b63c2d8e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+db0e836148accac8a22532e3596ac612b63c2d8e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/cndoit18/codecrafters-kafka-rust [INFO] finished tweaking git repo https://github.com/cndoit18/codecrafters-kafka-rust [INFO] tweaked toml for git repo https://github.com/cndoit18/codecrafters-kafka-rust written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/cndoit18/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" "+db0e836148accac8a22532e3596ac612b63c2d8e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+db0e836148accac8a22532e3596ac612b63c2d8e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8e04e6553a013f7623b6d37989a669899dabde439edb34e8d32f9da674c1c408 [INFO] running `Command { std: "docker" "start" "-a" "8e04e6553a013f7623b6d37989a669899dabde439edb34e8d32f9da674c1c408", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8e04e6553a013f7623b6d37989a669899dabde439edb34e8d32f9da674c1c408", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8e04e6553a013f7623b6d37989a669899dabde439edb34e8d32f9da674c1c408", kill_on_drop: false }` [INFO] [stdout] 8e04e6553a013f7623b6d37989a669899dabde439edb34e8d32f9da674c1c408 [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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+db0e836148accac8a22532e3596ac612b63c2d8e" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7b3dc7ede91124434a247b97827a5038c85bb95d4370fb1f9df44d75f328d732 [INFO] running `Command { std: "docker" "start" "-a" "7b3dc7ede91124434a247b97827a5038c85bb95d4370fb1f9df44d75f328d732", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling thiserror v1.0.63 [INFO] [stderr] Compiling anyhow v1.0.86 [INFO] [stderr] Checking bytes v1.7.1 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling syn v2.0.75 [INFO] [stderr] Compiling thiserror-impl v1.0.63 [INFO] [stderr] Checking codecrafters-kafka v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:258:21 [INFO] [stdout] | [INFO] [stdout] 258 | let mut f = File::open( [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:262:21 [INFO] [stdout] | [INFO] [stdout] 262 | let mut metadata = ClusterMetadata::parse(f)?; [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/main.rs:326:5 [INFO] [stdout] | [INFO] [stdout] 325 | struct ClusterMetadata { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 326 | offset: u64, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 327 | partition_leader_epoch: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 328 | magic: u8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 329 | crc: u32, [INFO] [stdout] | ^^^ [INFO] [stdout] 330 | attributes: u16, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 331 | last_offset_delta: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 332 | base_timestamp: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 333 | max_timestamp: u64, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 334 | producer_id: i64, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 335 | producer_epoch: i16, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 336 | base_sequence: i32, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 337 | records: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ClusterMetadata` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `attributes`, `timestamp_dalta`, and `offset_dalta` are never read [INFO] [stdout] --> src/main.rs:342:5 [INFO] [stdout] | [INFO] [stdout] 341 | struct Record { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 342 | attributes: u8, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 343 | timestamp_dalta: i8, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 344 | offset_dalta: i8, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Record` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:258:21 [INFO] [stdout] | [INFO] [stdout] 258 | let mut f = File::open( [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:262:21 [INFO] [stdout] | [INFO] [stdout] 262 | let mut metadata = ClusterMetadata::parse(f)?; [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/main.rs:326:5 [INFO] [stdout] | [INFO] [stdout] 325 | struct ClusterMetadata { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 326 | offset: u64, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 327 | partition_leader_epoch: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 328 | magic: u8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 329 | crc: u32, [INFO] [stdout] | ^^^ [INFO] [stdout] 330 | attributes: u16, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 331 | last_offset_delta: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 332 | base_timestamp: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 333 | max_timestamp: u64, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 334 | producer_id: i64, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 335 | producer_epoch: i16, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 336 | base_sequence: i32, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 337 | records: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ClusterMetadata` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `attributes`, `timestamp_dalta`, and `offset_dalta` are never read [INFO] [stdout] --> src/main.rs:342:5 [INFO] [stdout] | [INFO] [stdout] 341 | struct Record { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 342 | attributes: u8, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 343 | timestamp_dalta: i8, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 344 | offset_dalta: i8, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Record` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 5.52s [INFO] running `Command { std: "docker" "inspect" "7b3dc7ede91124434a247b97827a5038c85bb95d4370fb1f9df44d75f328d732", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7b3dc7ede91124434a247b97827a5038c85bb95d4370fb1f9df44d75f328d732", kill_on_drop: false }` [INFO] [stdout] 7b3dc7ede91124434a247b97827a5038c85bb95d4370fb1f9df44d75f328d732