[INFO] cloning repository https://github.com/wwwhoami/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/wwwhoami/codecrafters-kafka-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwwwhoami%2Fcodecrafters-kafka-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwwwhoami%2Fcodecrafters-kafka-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a059aa995508df2a3a646d2d2e1cf07e4e71d211 [INFO] testing wwwhoami/codecrafters-kafka-rust against try#8de4c7234dd9b97c9d76b58671343fdbbc9a433e+target=x86_64-unknown-linux-musl for musl_upgrade_1_2_5_with_getrandom_patch_0 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwwwhoami%2Fcodecrafters-kafka-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/wwwhoami/codecrafters-kafka-rust [INFO] finished tweaking git repo https://github.com/wwwhoami/codecrafters-kafka-rust [INFO] tweaked toml for git repo https://github.com/wwwhoami/codecrafters-kafka-rust written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/wwwhoami/codecrafters-kafka-rust on toolchain 8de4c7234dd9b97c9d76b58671343fdbbc9a433e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/wwwhoami/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" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 34738e5031092cbfb2814949a6e74929ce0a86e48f77ff561fe7d2d8111085d4 [INFO] running `Command { std: "docker" "start" "-a" "34738e5031092cbfb2814949a6e74929ce0a86e48f77ff561fe7d2d8111085d4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "34738e5031092cbfb2814949a6e74929ce0a86e48f77ff561fe7d2d8111085d4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "34738e5031092cbfb2814949a6e74929ce0a86e48f77ff561fe7d2d8111085d4", kill_on_drop: false }` [INFO] [stdout] 34738e5031092cbfb2814949a6e74929ce0a86e48f77ff561fe7d2d8111085d4 [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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "build" "--frozen" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] c002a9252fc36840abb4a88951270e6c0e9ab902fd1e219287366d3175d07dff [INFO] running `Command { std: "docker" "start" "-a" "c002a9252fc36840abb4a88951270e6c0e9ab902fd1e219287366d3175d07dff", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.174 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling semver v1.0.26 [INFO] [stderr] Compiling autocfg v1.5.0 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling cfg-if v1.0.1 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling thiserror v1.0.63 [INFO] [stderr] Compiling anyhow v1.0.86 [INFO] [stderr] Compiling pin-project-lite v0.2.16 [INFO] [stderr] Compiling bytes v1.10.1 [INFO] [stderr] Compiling uuid v1.17.0 [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling lock_api v0.4.13 [INFO] [stderr] Compiling rustc_version v0.4.1 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling crc32c v0.6.8 [INFO] [stderr] Compiling syn v2.0.75 [INFO] [stderr] Compiling mio v1.0.4 [INFO] [stderr] Compiling socket2 v0.5.10 [INFO] [stderr] Compiling signal-hook-registry v1.4.5 [INFO] [stderr] Compiling parking_lot v0.12.4 [INFO] [stderr] Compiling thiserror-impl v1.0.63 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling tokio v1.45.1 [INFO] [stderr] Compiling codecrafters-kafka v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: associated function `from_string` is never used [INFO] [stdout] --> src/protocol/primitives.rs:91:12 [INFO] [stdout] | [INFO] [stdout] 90 | impl CompactString { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] 91 | pub fn from_string(value: String) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `value` is never used [INFO] [stdout] --> src/protocol/primitives.rs:461:19 [INFO] [stdout] | [INFO] [stdout] 460 | impl INT32 { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] 461 | pub(crate) fn value(&self) -> i32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `value` is never used [INFO] [stdout] --> src/protocol/primitives.rs:521:19 [INFO] [stdout] | [INFO] [stdout] 520 | impl INT64 { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] 521 | pub(crate) fn value(&self) -> i64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/protocol/request.rs:82:26 [INFO] [stdout] | [INFO] [stdout] 82 | ApiVersionsRequestV4(ApiVersionsRequestV4), [INFO] [stdout] | -------------------- ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `RequestBody` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 82 - ApiVersionsRequestV4(ApiVersionsRequestV4), [INFO] [stdout] 82 + ApiVersionsRequestV4(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `client_software_name`, `client_software_version`, and `tag` are never read [INFO] [stdout] --> src/protocol/request.rs:170:5 [INFO] [stdout] | [INFO] [stdout] 169 | pub struct ApiVersionsRequestV4 { [INFO] [stdout] | -------------------- fields in this struct [INFO] [stdout] 170 | client_software_name: CompactString, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 171 | client_software_version: CompactString, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 172 | tag: CompactArray, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ApiVersionsRequestV4` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `response_partiotion_limit`, `cursor`, and `tag` are never read [INFO] [stdout] --> src/protocol/request.rs:207:5 [INFO] [stdout] | [INFO] [stdout] 205 | pub struct DescribeTopicPartitionsRequestV0 { [INFO] [stdout] | -------------------------------- fields in this struct [INFO] [stdout] 206 | topics: CompactArray, [INFO] [stdout] 207 | response_partiotion_limit: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 208 | cursor: u8, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 209 | tag: CompactArray, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DescribeTopicPartitionsRequestV0` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `topics` is never used [INFO] [stdout] --> src/protocol/request.rs:213:12 [INFO] [stdout] | [INFO] [stdout] 212 | impl DescribeTopicPartitionsRequestV0 { [INFO] [stdout] | ------------------------------------- method in this implementation [INFO] [stdout] 213 | pub fn topics(&self) -> &CompactArray { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `tag` is never read [INFO] [stdout] --> src/protocol/request.rs:270:5 [INFO] [stdout] | [INFO] [stdout] 268 | pub struct Topic { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 269 | topic: CompactString, [INFO] [stdout] 270 | tag: CompactArray, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Topic` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/protocol/request.rs:296:5 [INFO] [stdout] | [INFO] [stdout] 295 | pub struct FetchRequestV16 { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 296 | max_wait_ms: i32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 297 | min_bytes: i32, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 298 | max_bytes: i32, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 299 | isolation_level: i8, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 300 | session_id: i32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 301 | session_epoch: i32, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 302 | topics: CompactArray, [INFO] [stdout] 303 | forgotten_topics: CompactArray, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 304 | rack_id: CompactString, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FetchRequestV16` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `partitions` and `tag` are never read [INFO] [stdout] --> src/protocol/request.rs:382:5 [INFO] [stdout] | [INFO] [stdout] 380 | pub struct TopicsPartitions { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] 381 | topic_id: uuid::Uuid, [INFO] [stdout] 382 | partitions: CompactArray, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 383 | tag: CompactArray, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TopicsPartitions` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `partition`, `current_leader_epoch`, `fetch_offset`, `last_fetched_epoch`, `log_start_offset`, and `partition_max_bytes` are never read [INFO] [stdout] --> src/protocol/request.rs:430:5 [INFO] [stdout] | [INFO] [stdout] 429 | pub struct Partition { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 430 | partition: i32, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 431 | current_leader_epoch: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 432 | fetch_offset: i64, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 433 | last_fetched_epoch: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 434 | log_start_offset: i64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 435 | partition_max_bytes: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Partition` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `topic_id` and `partitions` are never read [INFO] [stdout] --> src/protocol/request.rs:477:5 [INFO] [stdout] | [INFO] [stdout] 476 | pub(crate) struct ForgottenTopic { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 477 | topic_id: uuid::Uuid, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 478 | partitions: i32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ForgottenTopic` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `UnknownServerError` is never constructed [INFO] [stdout] --> src/protocol/response.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 13 | pub enum ErrorCode { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] 14 | None = 0, [INFO] [stdout] 15 | UnknownServerError = -1, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ErrorCode` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/protocol/response.rs:318:19 [INFO] [stdout] | [INFO] [stdout] 317 | impl Partition { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] 318 | pub(crate) fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `find_batches_by_topic` is never used [INFO] [stdout] --> src/protocol/cluster_metadata.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 21 | impl ClusterMetadata { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] 22 | fn find_batches_by_topic(&self, topic: &str) -> Vec<&Batch> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `values` is never used [INFO] [stdout] --> src/protocol/cluster_metadata.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 32 | impl ClusterMetadata { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] 33 | pub fn values(&self) -> std::collections::btree_map::Values<'_, i64, Batch> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `as_feature` and `as_partition` are never used [INFO] [stdout] --> src/protocol/cluster_metadata.rs:425:19 [INFO] [stdout] | [INFO] [stdout] 415 | impl RecordValueByType { [INFO] [stdout] | ---------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 425 | pub(crate) fn as_feature(&self) -> Option<&FeatureRecordValue> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 441 | pub(crate) fn as_partition(&self) -> Option<&PartitionRecordValue> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `topic_uuid`, `removing_replicas_array`, `adding_replicas_array`, `partition_epoch`, `directories_array`, and `tagged_fields_count` are never used [INFO] [stdout] --> src/protocol/cluster_metadata.rs:582:12 [INFO] [stdout] | [INFO] [stdout] 577 | impl PartitionRecordValue { [INFO] [stdout] | ------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 582 | pub fn topic_uuid(&self) -> uuid::Uuid { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 594 | pub fn removing_replicas_array(&self) -> &CompactArray { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 598 | pub fn adding_replicas_array(&self) -> &CompactArray { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 610 | pub fn partition_epoch(&self) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 614 | pub fn directories_array(&self) -> &[uuid::Uuid] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 618 | pub fn tagged_fields_count(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 19.49s [INFO] running `Command { std: "docker" "inspect" "c002a9252fc36840abb4a88951270e6c0e9ab902fd1e219287366d3175d07dff", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c002a9252fc36840abb4a88951270e6c0e9ab902fd1e219287366d3175d07dff", kill_on_drop: false }` [INFO] [stdout] c002a9252fc36840abb4a88951270e6c0e9ab902fd1e219287366d3175d07dff [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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--no-run" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 534daa47cfe4b3df8af3f31a0f246b51fb6e60889d16d27bdf6a4ccb0f6afc07 [INFO] running `Command { std: "docker" "start" "-a" "534daa47cfe4b3df8af3f31a0f246b51fb6e60889d16d27bdf6a4ccb0f6afc07", kill_on_drop: false }` [INFO] [stdout] warning: associated function `from_string` is never used [INFO] [stdout] --> src/protocol/primitives.rs:91:12 [INFO] [stdout] | [INFO] [stdout] 90 | impl CompactString { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] 91 | pub fn from_string(value: String) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `value` is never used [INFO] [stdout] --> src/protocol/primitives.rs:461:19 [INFO] [stdout] | [INFO] [stdout] 460 | impl INT32 { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] 461 | pub(crate) fn value(&self) -> i32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `value` is never used [INFO] [stdout] --> src/protocol/primitives.rs:521:19 [INFO] [stdout] | [INFO] [stdout] 520 | impl INT64 { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] 521 | pub(crate) fn value(&self) -> i64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/protocol/request.rs:82:26 [INFO] [stdout] | [INFO] [stdout] 82 | ApiVersionsRequestV4(ApiVersionsRequestV4), [INFO] [stdout] | -------------------- ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `RequestBody` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 82 - ApiVersionsRequestV4(ApiVersionsRequestV4), [INFO] [stdout] 82 + ApiVersionsRequestV4(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `client_software_name`, `client_software_version`, and `tag` are never read [INFO] [stdout] --> src/protocol/request.rs:170:5 [INFO] [stdout] | [INFO] [stdout] 169 | pub struct ApiVersionsRequestV4 { [INFO] [stdout] | -------------------- fields in this struct [INFO] [stdout] 170 | client_software_name: CompactString, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 171 | client_software_version: CompactString, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 172 | tag: CompactArray, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ApiVersionsRequestV4` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `response_partiotion_limit`, `cursor`, and `tag` are never read [INFO] [stdout] --> src/protocol/request.rs:207:5 [INFO] [stdout] | [INFO] [stdout] 205 | pub struct DescribeTopicPartitionsRequestV0 { [INFO] [stdout] | -------------------------------- fields in this struct [INFO] [stdout] 206 | topics: CompactArray, [INFO] [stdout] 207 | response_partiotion_limit: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 208 | cursor: u8, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 209 | tag: CompactArray, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DescribeTopicPartitionsRequestV0` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `topics` is never used [INFO] [stdout] --> src/protocol/request.rs:213:12 [INFO] [stdout] | [INFO] [stdout] 212 | impl DescribeTopicPartitionsRequestV0 { [INFO] [stdout] | ------------------------------------- method in this implementation [INFO] [stdout] 213 | pub fn topics(&self) -> &CompactArray { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `tag` is never read [INFO] [stdout] --> src/protocol/request.rs:270:5 [INFO] [stdout] | [INFO] [stdout] 268 | pub struct Topic { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 269 | topic: CompactString, [INFO] [stdout] 270 | tag: CompactArray, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Topic` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/protocol/request.rs:296:5 [INFO] [stdout] | [INFO] [stdout] 295 | pub struct FetchRequestV16 { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 296 | max_wait_ms: i32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 297 | min_bytes: i32, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 298 | max_bytes: i32, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 299 | isolation_level: i8, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 300 | session_id: i32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 301 | session_epoch: i32, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 302 | topics: CompactArray, [INFO] [stdout] 303 | forgotten_topics: CompactArray, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 304 | rack_id: CompactString, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FetchRequestV16` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `partitions` and `tag` are never read [INFO] [stdout] --> src/protocol/request.rs:382:5 [INFO] [stdout] | [INFO] [stdout] 380 | pub struct TopicsPartitions { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] 381 | topic_id: uuid::Uuid, [INFO] [stdout] 382 | partitions: CompactArray, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 383 | tag: CompactArray, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TopicsPartitions` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling codecrafters-kafka v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: fields `partition`, `current_leader_epoch`, `fetch_offset`, `last_fetched_epoch`, `log_start_offset`, and `partition_max_bytes` are never read [INFO] [stdout] --> src/protocol/request.rs:430:5 [INFO] [stdout] | [INFO] [stdout] 429 | pub struct Partition { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 430 | partition: i32, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 431 | current_leader_epoch: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 432 | fetch_offset: i64, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 433 | last_fetched_epoch: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 434 | log_start_offset: i64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 435 | partition_max_bytes: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Partition` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `topic_id` and `partitions` are never read [INFO] [stdout] --> src/protocol/request.rs:477:5 [INFO] [stdout] | [INFO] [stdout] 476 | pub(crate) struct ForgottenTopic { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 477 | topic_id: uuid::Uuid, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 478 | partitions: i32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ForgottenTopic` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `UnknownServerError` is never constructed [INFO] [stdout] --> src/protocol/response.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 13 | pub enum ErrorCode { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] 14 | None = 0, [INFO] [stdout] 15 | UnknownServerError = -1, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ErrorCode` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/protocol/response.rs:318:19 [INFO] [stdout] | [INFO] [stdout] 317 | impl Partition { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] 318 | pub(crate) fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `find_batches_by_topic` is never used [INFO] [stdout] --> src/protocol/cluster_metadata.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 21 | impl ClusterMetadata { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] 22 | fn find_batches_by_topic(&self, topic: &str) -> Vec<&Batch> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `values` is never used [INFO] [stdout] --> src/protocol/cluster_metadata.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 32 | impl ClusterMetadata { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] 33 | pub fn values(&self) -> std::collections::btree_map::Values<'_, i64, Batch> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `as_feature` and `as_partition` are never used [INFO] [stdout] --> src/protocol/cluster_metadata.rs:425:19 [INFO] [stdout] | [INFO] [stdout] 415 | impl RecordValueByType { [INFO] [stdout] | ---------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 425 | pub(crate) fn as_feature(&self) -> Option<&FeatureRecordValue> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 441 | pub(crate) fn as_partition(&self) -> Option<&PartitionRecordValue> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `topic_uuid`, `removing_replicas_array`, `adding_replicas_array`, `partition_epoch`, `directories_array`, and `tagged_fields_count` are never used [INFO] [stdout] --> src/protocol/cluster_metadata.rs:582:12 [INFO] [stdout] | [INFO] [stdout] 577 | impl PartitionRecordValue { [INFO] [stdout] | ------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 582 | pub fn topic_uuid(&self) -> uuid::Uuid { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 594 | pub fn removing_replicas_array(&self) -> &CompactArray { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 598 | pub fn adding_replicas_array(&self) -> &CompactArray { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 610 | pub fn partition_epoch(&self) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 614 | pub fn directories_array(&self) -> &[uuid::Uuid] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 618 | pub fn tagged_fields_count(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_string` is never used [INFO] [stdout] --> src/protocol/primitives.rs:91:12 [INFO] [stdout] | [INFO] [stdout] 90 | impl CompactString { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] 91 | pub fn from_string(value: String) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `value` is never used [INFO] [stdout] --> src/protocol/primitives.rs:461:19 [INFO] [stdout] | [INFO] [stdout] 460 | impl INT32 { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] 461 | pub(crate) fn value(&self) -> i32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `value` is never used [INFO] [stdout] --> src/protocol/primitives.rs:521:19 [INFO] [stdout] | [INFO] [stdout] 520 | impl INT64 { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] 521 | pub(crate) fn value(&self) -> i64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/protocol/request.rs:82:26 [INFO] [stdout] | [INFO] [stdout] 82 | ApiVersionsRequestV4(ApiVersionsRequestV4), [INFO] [stdout] | -------------------- ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `RequestBody` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 82 - ApiVersionsRequestV4(ApiVersionsRequestV4), [INFO] [stdout] 82 + ApiVersionsRequestV4(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `client_software_name`, `client_software_version`, and `tag` are never read [INFO] [stdout] --> src/protocol/request.rs:170:5 [INFO] [stdout] | [INFO] [stdout] 169 | pub struct ApiVersionsRequestV4 { [INFO] [stdout] | -------------------- fields in this struct [INFO] [stdout] 170 | client_software_name: CompactString, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 171 | client_software_version: CompactString, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 172 | tag: CompactArray, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ApiVersionsRequestV4` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `response_partiotion_limit`, `cursor`, and `tag` are never read [INFO] [stdout] --> src/protocol/request.rs:207:5 [INFO] [stdout] | [INFO] [stdout] 205 | pub struct DescribeTopicPartitionsRequestV0 { [INFO] [stdout] | -------------------------------- fields in this struct [INFO] [stdout] 206 | topics: CompactArray, [INFO] [stdout] 207 | response_partiotion_limit: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 208 | cursor: u8, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 209 | tag: CompactArray, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DescribeTopicPartitionsRequestV0` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `topics` is never used [INFO] [stdout] --> src/protocol/request.rs:213:12 [INFO] [stdout] | [INFO] [stdout] 212 | impl DescribeTopicPartitionsRequestV0 { [INFO] [stdout] | ------------------------------------- method in this implementation [INFO] [stdout] 213 | pub fn topics(&self) -> &CompactArray { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `tag` is never read [INFO] [stdout] --> src/protocol/request.rs:270:5 [INFO] [stdout] | [INFO] [stdout] 268 | pub struct Topic { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 269 | topic: CompactString, [INFO] [stdout] 270 | tag: CompactArray, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Topic` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/protocol/request.rs:296:5 [INFO] [stdout] | [INFO] [stdout] 295 | pub struct FetchRequestV16 { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 296 | max_wait_ms: i32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 297 | min_bytes: i32, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 298 | max_bytes: i32, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 299 | isolation_level: i8, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 300 | session_id: i32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 301 | session_epoch: i32, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 302 | topics: CompactArray, [INFO] [stdout] 303 | forgotten_topics: CompactArray, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 304 | rack_id: CompactString, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FetchRequestV16` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `partitions` and `tag` are never read [INFO] [stdout] --> src/protocol/request.rs:382:5 [INFO] [stdout] | [INFO] [stdout] 380 | pub struct TopicsPartitions { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] 381 | topic_id: uuid::Uuid, [INFO] [stdout] 382 | partitions: CompactArray, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 383 | tag: CompactArray, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TopicsPartitions` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `partition`, `current_leader_epoch`, `fetch_offset`, `last_fetched_epoch`, `log_start_offset`, and `partition_max_bytes` are never read [INFO] [stdout] --> src/protocol/request.rs:430:5 [INFO] [stdout] | [INFO] [stdout] 429 | pub struct Partition { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 430 | partition: i32, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 431 | current_leader_epoch: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 432 | fetch_offset: i64, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 433 | last_fetched_epoch: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 434 | log_start_offset: i64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 435 | partition_max_bytes: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Partition` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `topic_id` and `partitions` are never read [INFO] [stdout] --> src/protocol/request.rs:477:5 [INFO] [stdout] | [INFO] [stdout] 476 | pub(crate) struct ForgottenTopic { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 477 | topic_id: uuid::Uuid, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 478 | partitions: i32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ForgottenTopic` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `UnknownServerError` is never constructed [INFO] [stdout] --> src/protocol/response.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 13 | pub enum ErrorCode { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] 14 | None = 0, [INFO] [stdout] 15 | UnknownServerError = -1, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ErrorCode` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/protocol/response.rs:318:19 [INFO] [stdout] | [INFO] [stdout] 317 | impl Partition { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] 318 | pub(crate) fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `find_batches_by_topic` is never used [INFO] [stdout] --> src/protocol/cluster_metadata.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 21 | impl ClusterMetadata { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] 22 | fn find_batches_by_topic(&self, topic: &str) -> Vec<&Batch> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `values` is never used [INFO] [stdout] --> src/protocol/cluster_metadata.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 32 | impl ClusterMetadata { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] 33 | pub fn values(&self) -> std::collections::btree_map::Values<'_, i64, Batch> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `as_feature` and `as_partition` are never used [INFO] [stdout] --> src/protocol/cluster_metadata.rs:425:19 [INFO] [stdout] | [INFO] [stdout] 415 | impl RecordValueByType { [INFO] [stdout] | ---------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 425 | pub(crate) fn as_feature(&self) -> Option<&FeatureRecordValue> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 441 | pub(crate) fn as_partition(&self) -> Option<&PartitionRecordValue> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `topic_uuid`, `removing_replicas_array`, `adding_replicas_array`, `partition_epoch`, `directories_array`, and `tagged_fields_count` are never used [INFO] [stdout] --> src/protocol/cluster_metadata.rs:582:12 [INFO] [stdout] | [INFO] [stdout] 577 | impl PartitionRecordValue { [INFO] [stdout] | ------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 582 | pub fn topic_uuid(&self) -> uuid::Uuid { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 594 | pub fn removing_replicas_array(&self) -> &CompactArray { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 598 | pub fn adding_replicas_array(&self) -> &CompactArray { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 610 | pub fn partition_epoch(&self) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 614 | pub fn directories_array(&self) -> &[uuid::Uuid] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 618 | pub fn tagged_fields_count(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.08s [INFO] running `Command { std: "docker" "inspect" "534daa47cfe4b3df8af3f31a0f246b51fb6e60889d16d27bdf6a4ccb0f6afc07", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "534daa47cfe4b3df8af3f31a0f246b51fb6e60889d16d27bdf6a4ccb0f6afc07", kill_on_drop: false }` [INFO] [stdout] 534daa47cfe4b3df8af3f31a0f246b51fb6e60889d16d27bdf6a4ccb0f6afc07 [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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 5b50299af5d0ef6b600529c7801c4e1617d9c95055549fd1bd04d4fc643d7b24 [INFO] running `Command { std: "docker" "start" "-a" "5b50299af5d0ef6b600529c7801c4e1617d9c95055549fd1bd04d4fc643d7b24", kill_on_drop: false }` [INFO] [stderr] warning: associated function `from_string` is never used [INFO] [stderr] --> src/protocol/primitives.rs:91:12 [INFO] [stderr] | [INFO] [stderr] 90 | impl CompactString { [INFO] [stderr] | ------------------ associated function in this implementation [INFO] [stderr] 91 | pub fn from_string(value: String) -> Self { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: method `value` is never used [INFO] [stderr] --> src/protocol/primitives.rs:461:19 [INFO] [stderr] | [INFO] [stderr] 460 | impl INT32 { [INFO] [stderr] | ---------- method in this implementation [INFO] [stderr] 461 | pub(crate) fn value(&self) -> i32 { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `value` is never used [INFO] [stderr] --> src/protocol/primitives.rs:521:19 [INFO] [stderr] | [INFO] [stderr] 520 | impl INT64 { [INFO] [stderr] | ---------- method in this implementation [INFO] [stderr] 521 | pub(crate) fn value(&self) -> i64 { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `0` is never read [INFO] [stderr] --> src/protocol/request.rs:82:26 [INFO] [stderr] | [INFO] [stderr] 82 | ApiVersionsRequestV4(ApiVersionsRequestV4), [INFO] [stderr] | -------------------- ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | field in this variant [INFO] [stderr] | [INFO] [stderr] = note: `RequestBody` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stderr] | [INFO] [stderr] 82 - ApiVersionsRequestV4(ApiVersionsRequestV4), [INFO] [stderr] 82 + ApiVersionsRequestV4(()), [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: fields `client_software_name`, `client_software_version`, and `tag` are never read [INFO] [stderr] --> src/protocol/request.rs:170:5 [INFO] [stderr] | [INFO] [stderr] 169 | pub struct ApiVersionsRequestV4 { [INFO] [stderr] | -------------------- fields in this struct [INFO] [stderr] 170 | client_software_name: CompactString, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 171 | client_software_version: CompactString, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 172 | tag: CompactArray, [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = note: `ApiVersionsRequestV4` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: fields `response_partiotion_limit`, `cursor`, and `tag` are never read [INFO] [stderr] --> src/protocol/request.rs:207:5 [INFO] [stderr] | [INFO] [stderr] 205 | pub struct DescribeTopicPartitionsRequestV0 { [INFO] [stderr] | -------------------------------- fields in this struct [INFO] [stderr] 206 | topics: CompactArray, [INFO] [stderr] 207 | response_partiotion_limit: i32, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 208 | cursor: u8, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] 209 | tag: CompactArray, [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = note: `DescribeTopicPartitionsRequestV0` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: method `topics` is never used [INFO] [stderr] --> src/protocol/request.rs:213:12 [INFO] [stderr] | [INFO] [stderr] 212 | impl DescribeTopicPartitionsRequestV0 { [INFO] [stderr] | ------------------------------------- method in this implementation [INFO] [stderr] 213 | pub fn topics(&self) -> &CompactArray { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `tag` is never read [INFO] [stderr] --> src/protocol/request.rs:270:5 [INFO] [stderr] | [INFO] [stderr] 268 | pub struct Topic { [INFO] [stderr] | ----- field in this struct [INFO] [stderr] 269 | topic: CompactString, [INFO] [stderr] 270 | tag: CompactArray, [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Topic` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: multiple fields are never read [INFO] [stderr] --> src/protocol/request.rs:296:5 [INFO] [stderr] | [INFO] [stderr] 295 | pub struct FetchRequestV16 { [INFO] [stderr] | --------------- fields in this struct [INFO] [stderr] 296 | max_wait_ms: i32, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] 297 | min_bytes: i32, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] 298 | max_bytes: i32, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] 299 | isolation_level: i8, [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] 300 | session_id: i32, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] 301 | session_epoch: i32, [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] 302 | topics: CompactArray, [INFO] [stderr] 303 | forgotten_topics: CompactArray, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] 304 | rack_id: CompactString, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `FetchRequestV16` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: fields `partitions` and `tag` are never read [INFO] [stderr] --> src/protocol/request.rs:382:5 [INFO] [stderr] | [INFO] [stderr] 380 | pub struct TopicsPartitions { [INFO] [stderr] | ---------------- fields in this struct [INFO] [stderr] 381 | topic_id: uuid::Uuid, [INFO] [stderr] 382 | partitions: CompactArray, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] 383 | tag: CompactArray, [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = note: `TopicsPartitions` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: fields `partition`, `current_leader_epoch`, `fetch_offset`, `last_fetched_epoch`, `log_start_offset`, and `partition_max_bytes` are never read [INFO] [stderr] --> src/protocol/request.rs:430:5 [INFO] [stderr] | [INFO] [stderr] 429 | pub struct Partition { [INFO] [stderr] | --------- fields in this struct [INFO] [stderr] 430 | partition: i32, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] 431 | current_leader_epoch: i32, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 432 | fetch_offset: i64, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] 433 | last_fetched_epoch: i32, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 434 | log_start_offset: i64, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] 435 | partition_max_bytes: i32, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Partition` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: fields `topic_id` and `partitions` are never read [INFO] [stderr] --> src/protocol/request.rs:477:5 [INFO] [stderr] | [INFO] [stderr] 476 | pub(crate) struct ForgottenTopic { [INFO] [stderr] | -------------- fields in this struct [INFO] [stderr] 477 | topic_id: uuid::Uuid, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] 478 | partitions: i32, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `ForgottenTopic` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: variant `UnknownServerError` is never constructed [INFO] [stderr] --> src/protocol/response.rs:15:5 [INFO] [stderr] | [INFO] [stderr] 13 | pub enum ErrorCode { [INFO] [stderr] | --------- variant in this enum [INFO] [stderr] 14 | None = 0, [INFO] [stderr] 15 | UnknownServerError = -1, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `ErrorCode` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: associated function `new` is never used [INFO] [stderr] --> src/protocol/response.rs:318:19 [INFO] [stderr] | [INFO] [stderr] 317 | impl Partition { [INFO] [stderr] | -------------- associated function in this implementation [INFO] [stderr] 318 | pub(crate) fn new( [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: method `find_batches_by_topic` is never used [INFO] [stderr] --> src/protocol/cluster_metadata.rs:22:8 [INFO] [stderr] | [INFO] [stderr] 21 | impl ClusterMetadata { [INFO] [stderr] | -------------------- method in this implementation [INFO] [stderr] 22 | fn find_batches_by_topic(&self, topic: &str) -> Vec<&Batch> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `values` is never used [INFO] [stderr] --> src/protocol/cluster_metadata.rs:33:12 [INFO] [stderr] | [INFO] [stderr] 32 | impl ClusterMetadata { [INFO] [stderr] | -------------------- method in this implementation [INFO] [stderr] 33 | pub fn values(&self) -> std::collections::btree_map::Values<'_, i64, Batch> { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `as_feature` and `as_partition` are never used [INFO] [stderr] --> src/protocol/cluster_metadata.rs:425:19 [INFO] [stderr] | [INFO] [stderr] 415 | impl RecordValueByType { [INFO] [stderr] | ---------------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 425 | pub(crate) fn as_feature(&self) -> Option<&FeatureRecordValue> { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 441 | pub(crate) fn as_partition(&self) -> Option<&PartitionRecordValue> { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `topic_uuid`, `removing_replicas_array`, `adding_replicas_array`, `partition_epoch`, `directories_array`, and `tagged_fields_count` are never used [INFO] [stderr] --> src/protocol/cluster_metadata.rs:582:12 [INFO] [stderr] | [INFO] [stderr] 577 | impl PartitionRecordValue { [INFO] [stderr] | ------------------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 582 | pub fn topic_uuid(&self) -> uuid::Uuid { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 594 | pub fn removing_replicas_array(&self) -> &CompactArray { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 598 | pub fn adding_replicas_array(&self) -> &CompactArray { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 610 | pub fn partition_epoch(&self) -> i32 { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 614 | pub fn directories_array(&self) -> &[uuid::Uuid] { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 618 | pub fn tagged_fields_count(&self) -> u32 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `codecrafters-kafka` (lib) generated 18 warnings [INFO] [stderr] warning: `codecrafters-kafka` (lib test) generated 18 warnings (18 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.06s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/codecrafters_kafka-a9eaec0d2f4ed9e6) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/codecrafters_kafka-31158f79b4c2fb98) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "5b50299af5d0ef6b600529c7801c4e1617d9c95055549fd1bd04d4fc643d7b24", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5b50299af5d0ef6b600529c7801c4e1617d9c95055549fd1bd04d4fc643d7b24", kill_on_drop: false }` [INFO] [stdout] 5b50299af5d0ef6b600529c7801c4e1617d9c95055549fd1bd04d4fc643d7b24