[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] 95ccf74f5595ebe29389ac546fc772736669dccf [INFO] testing wwwhoami/codecrafters-kafka-rust against try#8de4c7234dd9b97c9d76b58671343fdbbc9a433e+target=x86_64-unknown-linux-musl for musl_upgrade_1_2_5_with_libc_patch_0 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwwwhoami%2Fcodecrafters-kafka-rust" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-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-4-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] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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] 4aa2aed417417e9bfaaf412a9253dd82ceaf0510bec545a295ab2d2b21b1c43e [INFO] running `Command { std: "docker" "start" "-a" "4aa2aed417417e9bfaaf412a9253dd82ceaf0510bec545a295ab2d2b21b1c43e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4aa2aed417417e9bfaaf412a9253dd82ceaf0510bec545a295ab2d2b21b1c43e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4aa2aed417417e9bfaaf412a9253dd82ceaf0510bec545a295ab2d2b21b1c43e", kill_on_drop: false }` [INFO] [stdout] 4aa2aed417417e9bfaaf412a9253dd82ceaf0510bec545a295ab2d2b21b1c43e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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] 7b4fa5e34994aaaaa0f63a282efc30a260102f2055a42f4b1ddefde7921d4203 [INFO] running `Command { std: "docker" "start" "-a" "7b4fa5e34994aaaaa0f63a282efc30a260102f2055a42f4b1ddefde7921d4203", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.174 [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling autocfg v1.5.0 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling cfg-if v1.0.1 [INFO] [stderr] Compiling thiserror v1.0.63 [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 lock_api v0.4.13 [INFO] [stderr] Compiling quote v1.0.36 [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 syn v2.0.75 [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: unused import: `UnsignedVarInt` [INFO] [stdout] --> src/protocol/response.rs:8:62 [INFO] [stdout] | [INFO] [stdout] 8 | ApiKey, CompactArray, CompactString, NullableString, UnsignedVarInt, VarInt, INT32, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FetchResponsePartition` and `FetchResponseTopic` [INFO] [stdout] --> src/server_async.rs:17:31 [INFO] [stdout] | [INFO] [stdout] 17 | FetchResponseBodyV16, FetchResponsePartition, FetchResponseTopic, Partition, ResponseBody, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/protocol/primitives.rs:89:12 [INFO] [stdout] | [INFO] [stdout] 88 | impl CompactString { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] 89 | pub fn new(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:390:19 [INFO] [stdout] | [INFO] [stdout] 389 | impl INT32 { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] 390 | 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:450:19 [INFO] [stdout] | [INFO] [stdout] 449 | impl INT64 { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] 450 | 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: associated function `new` is never used [INFO] [stdout] --> src/protocol/response.rs:391:19 [INFO] [stdout] | [INFO] [stdout] 390 | impl FetchResponseBodyV16 { [INFO] [stdout] | ------------------------- associated function in this implementation [INFO] [stdout] 391 | 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: multiple fields are never read [INFO] [stdout] --> src/protocol/cluster_metadata.rs:100:5 [INFO] [stdout] | [INFO] [stdout] 99 | pub(crate) struct Batch { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 100 | partition_leader_epoch: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 101 | magic_byte: u8, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 102 | crc: i32, [INFO] [stdout] | ^^^ [INFO] [stdout] 103 | attributes: u16, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 104 | last_offset_delta: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 105 | base_timestamp: i64, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 106 | max_timestamp: i64, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 107 | producer_id: i64, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 108 | producer_epoch: i16, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 109 | base_sequence: i32, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Batch` 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 `record_length`, `attributes`, `timestamp_delta`, `offset_delta`, `key`, and `headers_array_count` are never read [INFO] [stdout] --> src/protocol/cluster_metadata.rs:208:5 [INFO] [stdout] | [INFO] [stdout] 207 | pub(crate) struct Record { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 208 | record_length: VarInt, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 209 | attributes: u8, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 210 | timestamp_delta: VarInt, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 211 | offset_delta: VarInt, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 212 | key: Vec, [INFO] [stdout] | ^^^ [INFO] [stdout] 213 | record_value: RecordValue, [INFO] [stdout] 214 | headers_array_count: u32, [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: fields `frame_version`, `record_type`, and `version` are never read [INFO] [stdout] --> src/protocol/cluster_metadata.rs:268:5 [INFO] [stdout] | [INFO] [stdout] 267 | pub(crate) struct RecordValue { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 268 | frame_version: i8, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 269 | record_type: i8, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 270 | version: i8, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RecordValue` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/protocol/cluster_metadata.rs:306:13 [INFO] [stdout] | [INFO] [stdout] 306 | Feature(FeatureRecordValue), [INFO] [stdout] | ------- ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `RecordValueByType` 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] 306 - Feature(FeatureRecordValue), [INFO] [stdout] 306 + Feature(()), [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:324:19 [INFO] [stdout] | [INFO] [stdout] 311 | impl RecordValueByType { [INFO] [stdout] | ---------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 324 | pub(crate) fn as_feature(&self) -> Option<&FeatureRecordValue> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 340 | pub(crate) fn as_partition(&self) -> Option<&PartitionRecordValue> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name`, `feature_level`, and `tagged_fields_count` are never read [INFO] [stdout] --> src/protocol/cluster_metadata.rs:351:5 [INFO] [stdout] | [INFO] [stdout] 350 | pub struct FeatureRecordValue { [INFO] [stdout] | ------------------ fields in this struct [INFO] [stdout] 351 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 352 | feature_level: i16, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 353 | tagged_fields_count: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FeatureRecordValue` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `tagged_fields_count` is never read [INFO] [stdout] --> src/protocol/cluster_metadata.rs:384:5 [INFO] [stdout] | [INFO] [stdout] 381 | pub struct TopicRecordValue { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 384 | tagged_fields_count: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TopicRecordValue` 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 `removing_replicas_array`, `adding_replicas_array`, `partition_epoch`, `directories_array`, and `tagged_fields_count` are never read [INFO] [stdout] --> src/protocol/cluster_metadata.rs:432:5 [INFO] [stdout] | [INFO] [stdout] 427 | pub struct PartitionRecordValue { [INFO] [stdout] | -------------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 432 | removing_replicas_array: CompactArray, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 433 | adding_replicas_array: CompactArray, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 436 | partition_epoch: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 437 | directories_array: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 438 | tagged_fields_count: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PartitionRecordValue` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [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:446:12 [INFO] [stdout] | [INFO] [stdout] 441 | impl PartitionRecordValue { [INFO] [stdout] | ------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 446 | pub fn topic_uuid(&self) -> uuid::Uuid { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 458 | pub fn removing_replicas_array(&self) -> &CompactArray { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 462 | pub fn adding_replicas_array(&self) -> &CompactArray { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 474 | pub fn partition_epoch(&self) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 478 | pub fn directories_array(&self) -> &[uuid::Uuid] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 482 | pub fn tagged_fields_count(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 17.92s [INFO] running `Command { std: "docker" "inspect" "7b4fa5e34994aaaaa0f63a282efc30a260102f2055a42f4b1ddefde7921d4203", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7b4fa5e34994aaaaa0f63a282efc30a260102f2055a42f4b1ddefde7921d4203", kill_on_drop: false }` [INFO] [stdout] 7b4fa5e34994aaaaa0f63a282efc30a260102f2055a42f4b1ddefde7921d4203 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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] fc952e232e1d56cdcce321e67053f1eec0edb535ad7cdb4f67565f62f65d9c1e [INFO] running `Command { std: "docker" "start" "-a" "fc952e232e1d56cdcce321e67053f1eec0edb535ad7cdb4f67565f62f65d9c1e", kill_on_drop: false }` [INFO] [stdout] warning: unused import: `UnsignedVarInt` [INFO] [stdout] --> src/protocol/response.rs:8:62 [INFO] [stdout] | [INFO] [stdout] 8 | ApiKey, CompactArray, CompactString, NullableString, UnsignedVarInt, VarInt, INT32, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FetchResponsePartition` and `FetchResponseTopic` [INFO] [stdout] --> src/server_async.rs:17:31 [INFO] [stdout] | [INFO] [stdout] 17 | FetchResponseBodyV16, FetchResponsePartition, FetchResponseTopic, Partition, ResponseBody, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/protocol/primitives.rs:89:12 [INFO] [stdout] | [INFO] [stdout] 88 | impl CompactString { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] 89 | pub fn new(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:390:19 [INFO] [stdout] | [INFO] [stdout] 389 | impl INT32 { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] 390 | 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:450:19 [INFO] [stdout] | [INFO] [stdout] 449 | impl INT64 { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] 450 | 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: associated function `new` is never used [INFO] [stdout] --> src/protocol/response.rs:391:19 [INFO] [stdout] | [INFO] [stdout] 390 | impl FetchResponseBodyV16 { [INFO] [stdout] | ------------------------- associated function in this implementation [INFO] [stdout] 391 | 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] [stderr] Compiling codecrafters-kafka v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/protocol/cluster_metadata.rs:100:5 [INFO] [stdout] | [INFO] [stdout] 99 | pub(crate) struct Batch { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 100 | partition_leader_epoch: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 101 | magic_byte: u8, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 102 | crc: i32, [INFO] [stdout] | ^^^ [INFO] [stdout] 103 | attributes: u16, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 104 | last_offset_delta: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 105 | base_timestamp: i64, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 106 | max_timestamp: i64, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 107 | producer_id: i64, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 108 | producer_epoch: i16, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 109 | base_sequence: i32, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Batch` 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 `record_length`, `attributes`, `timestamp_delta`, `offset_delta`, `key`, and `headers_array_count` are never read [INFO] [stdout] --> src/protocol/cluster_metadata.rs:208:5 [INFO] [stdout] | [INFO] [stdout] 207 | pub(crate) struct Record { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 208 | record_length: VarInt, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 209 | attributes: u8, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 210 | timestamp_delta: VarInt, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 211 | offset_delta: VarInt, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 212 | key: Vec, [INFO] [stdout] | ^^^ [INFO] [stdout] 213 | record_value: RecordValue, [INFO] [stdout] 214 | headers_array_count: u32, [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: fields `frame_version`, `record_type`, and `version` are never read [INFO] [stdout] --> src/protocol/cluster_metadata.rs:268:5 [INFO] [stdout] | [INFO] [stdout] 267 | pub(crate) struct RecordValue { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 268 | frame_version: i8, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 269 | record_type: i8, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 270 | version: i8, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RecordValue` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/protocol/cluster_metadata.rs:306:13 [INFO] [stdout] | [INFO] [stdout] 306 | Feature(FeatureRecordValue), [INFO] [stdout] | ------- ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `RecordValueByType` 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] 306 - Feature(FeatureRecordValue), [INFO] [stdout] 306 + Feature(()), [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:324:19 [INFO] [stdout] | [INFO] [stdout] 311 | impl RecordValueByType { [INFO] [stdout] | ---------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 324 | pub(crate) fn as_feature(&self) -> Option<&FeatureRecordValue> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 340 | pub(crate) fn as_partition(&self) -> Option<&PartitionRecordValue> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name`, `feature_level`, and `tagged_fields_count` are never read [INFO] [stdout] --> src/protocol/cluster_metadata.rs:351:5 [INFO] [stdout] | [INFO] [stdout] 350 | pub struct FeatureRecordValue { [INFO] [stdout] | ------------------ fields in this struct [INFO] [stdout] 351 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 352 | feature_level: i16, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 353 | tagged_fields_count: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FeatureRecordValue` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `tagged_fields_count` is never read [INFO] [stdout] --> src/protocol/cluster_metadata.rs:384:5 [INFO] [stdout] | [INFO] [stdout] 381 | pub struct TopicRecordValue { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 384 | tagged_fields_count: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TopicRecordValue` 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 `removing_replicas_array`, `adding_replicas_array`, `partition_epoch`, `directories_array`, and `tagged_fields_count` are never read [INFO] [stdout] --> src/protocol/cluster_metadata.rs:432:5 [INFO] [stdout] | [INFO] [stdout] 427 | pub struct PartitionRecordValue { [INFO] [stdout] | -------------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 432 | removing_replicas_array: CompactArray, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 433 | adding_replicas_array: CompactArray, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 436 | partition_epoch: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 437 | directories_array: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 438 | tagged_fields_count: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PartitionRecordValue` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [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:446:12 [INFO] [stdout] | [INFO] [stdout] 441 | impl PartitionRecordValue { [INFO] [stdout] | ------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 446 | pub fn topic_uuid(&self) -> uuid::Uuid { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 458 | pub fn removing_replicas_array(&self) -> &CompactArray { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 462 | pub fn adding_replicas_array(&self) -> &CompactArray { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 474 | pub fn partition_epoch(&self) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 478 | pub fn directories_array(&self) -> &[uuid::Uuid] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 482 | pub fn tagged_fields_count(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `UnsignedVarInt` [INFO] [stdout] --> src/protocol/response.rs:8:62 [INFO] [stdout] | [INFO] [stdout] 8 | ApiKey, CompactArray, CompactString, NullableString, UnsignedVarInt, VarInt, INT32, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FetchResponsePartition` and `FetchResponseTopic` [INFO] [stdout] --> src/server_async.rs:17:31 [INFO] [stdout] | [INFO] [stdout] 17 | FetchResponseBodyV16, FetchResponsePartition, FetchResponseTopic, Partition, ResponseBody, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/protocol/primitives.rs:89:12 [INFO] [stdout] | [INFO] [stdout] 88 | impl CompactString { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] 89 | pub fn new(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:390:19 [INFO] [stdout] | [INFO] [stdout] 389 | impl INT32 { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] 390 | 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:450:19 [INFO] [stdout] | [INFO] [stdout] 449 | impl INT64 { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] 450 | 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: associated function `new` is never used [INFO] [stdout] --> src/protocol/response.rs:391:19 [INFO] [stdout] | [INFO] [stdout] 390 | impl FetchResponseBodyV16 { [INFO] [stdout] | ------------------------- associated function in this implementation [INFO] [stdout] 391 | 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: multiple fields are never read [INFO] [stdout] --> src/protocol/cluster_metadata.rs:100:5 [INFO] [stdout] | [INFO] [stdout] 99 | pub(crate) struct Batch { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 100 | partition_leader_epoch: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 101 | magic_byte: u8, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 102 | crc: i32, [INFO] [stdout] | ^^^ [INFO] [stdout] 103 | attributes: u16, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 104 | last_offset_delta: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 105 | base_timestamp: i64, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 106 | max_timestamp: i64, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 107 | producer_id: i64, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 108 | producer_epoch: i16, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 109 | base_sequence: i32, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Batch` 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 `record_length`, `attributes`, `timestamp_delta`, `offset_delta`, `key`, and `headers_array_count` are never read [INFO] [stdout] --> src/protocol/cluster_metadata.rs:208:5 [INFO] [stdout] | [INFO] [stdout] 207 | pub(crate) struct Record { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 208 | record_length: VarInt, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 209 | attributes: u8, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 210 | timestamp_delta: VarInt, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 211 | offset_delta: VarInt, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 212 | key: Vec, [INFO] [stdout] | ^^^ [INFO] [stdout] 213 | record_value: RecordValue, [INFO] [stdout] 214 | headers_array_count: u32, [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: fields `frame_version`, `record_type`, and `version` are never read [INFO] [stdout] --> src/protocol/cluster_metadata.rs:268:5 [INFO] [stdout] | [INFO] [stdout] 267 | pub(crate) struct RecordValue { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 268 | frame_version: i8, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 269 | record_type: i8, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 270 | version: i8, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RecordValue` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/protocol/cluster_metadata.rs:306:13 [INFO] [stdout] | [INFO] [stdout] 306 | Feature(FeatureRecordValue), [INFO] [stdout] | ------- ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `RecordValueByType` 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] 306 - Feature(FeatureRecordValue), [INFO] [stdout] 306 + Feature(()), [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:324:19 [INFO] [stdout] | [INFO] [stdout] 311 | impl RecordValueByType { [INFO] [stdout] | ---------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 324 | pub(crate) fn as_feature(&self) -> Option<&FeatureRecordValue> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 340 | pub(crate) fn as_partition(&self) -> Option<&PartitionRecordValue> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name`, `feature_level`, and `tagged_fields_count` are never read [INFO] [stdout] --> src/protocol/cluster_metadata.rs:351:5 [INFO] [stdout] | [INFO] [stdout] 350 | pub struct FeatureRecordValue { [INFO] [stdout] | ------------------ fields in this struct [INFO] [stdout] 351 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 352 | feature_level: i16, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 353 | tagged_fields_count: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FeatureRecordValue` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `tagged_fields_count` is never read [INFO] [stdout] --> src/protocol/cluster_metadata.rs:384:5 [INFO] [stdout] | [INFO] [stdout] 381 | pub struct TopicRecordValue { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 384 | tagged_fields_count: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TopicRecordValue` 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 `removing_replicas_array`, `adding_replicas_array`, `partition_epoch`, `directories_array`, and `tagged_fields_count` are never read [INFO] [stdout] --> src/protocol/cluster_metadata.rs:432:5 [INFO] [stdout] | [INFO] [stdout] 427 | pub struct PartitionRecordValue { [INFO] [stdout] | -------------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 432 | removing_replicas_array: CompactArray, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 433 | adding_replicas_array: CompactArray, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 436 | partition_epoch: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 437 | directories_array: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 438 | tagged_fields_count: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PartitionRecordValue` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [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:446:12 [INFO] [stdout] | [INFO] [stdout] 441 | impl PartitionRecordValue { [INFO] [stdout] | ------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 446 | pub fn topic_uuid(&self) -> uuid::Uuid { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 458 | pub fn removing_replicas_array(&self) -> &CompactArray { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 462 | pub fn adding_replicas_array(&self) -> &CompactArray { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 474 | pub fn partition_epoch(&self) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 478 | pub fn directories_array(&self) -> &[uuid::Uuid] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 482 | pub fn tagged_fields_count(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.67s [INFO] running `Command { std: "docker" "inspect" "fc952e232e1d56cdcce321e67053f1eec0edb535ad7cdb4f67565f62f65d9c1e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fc952e232e1d56cdcce321e67053f1eec0edb535ad7cdb4f67565f62f65d9c1e", kill_on_drop: false }` [INFO] [stdout] fc952e232e1d56cdcce321e67053f1eec0edb535ad7cdb4f67565f62f65d9c1e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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] 56dab73c549f2649fb3c001a36c52736e70dddfc19b4c8e3a1d08cc25ee23aa0 [INFO] running `Command { std: "docker" "start" "-a" "56dab73c549f2649fb3c001a36c52736e70dddfc19b4c8e3a1d08cc25ee23aa0", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `UnsignedVarInt` [INFO] [stderr] --> src/protocol/response.rs:8:62 [INFO] [stderr] | [INFO] [stderr] 8 | ApiKey, CompactArray, CompactString, NullableString, UnsignedVarInt, VarInt, INT32, [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused imports: `FetchResponsePartition` and `FetchResponseTopic` [INFO] [stderr] --> src/server_async.rs:17:31 [INFO] [stderr] | [INFO] [stderr] 17 | FetchResponseBodyV16, FetchResponsePartition, FetchResponseTopic, Partition, ResponseBody, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `new` is never used [INFO] [stderr] --> src/protocol/primitives.rs:89:12 [INFO] [stderr] | [INFO] [stderr] 88 | impl CompactString { [INFO] [stderr] | ------------------ associated function in this implementation [INFO] [stderr] 89 | pub fn new(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:390:19 [INFO] [stderr] | [INFO] [stderr] 389 | impl INT32 { [INFO] [stderr] | ---------- method in this implementation [INFO] [stderr] 390 | pub(crate) fn value(&self) -> i32 { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `value` is never used [INFO] [stderr] --> src/protocol/primitives.rs:450:19 [INFO] [stderr] | [INFO] [stderr] 449 | impl INT64 { [INFO] [stderr] | ---------- method in this implementation [INFO] [stderr] 450 | 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: associated function `new` is never used [INFO] [stderr] --> src/protocol/response.rs:391:19 [INFO] [stderr] | [INFO] [stderr] 390 | impl FetchResponseBodyV16 { [INFO] [stderr] | ------------------------- associated function in this implementation [INFO] [stderr] 391 | 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: multiple fields are never read [INFO] [stderr] --> src/protocol/cluster_metadata.rs:100:5 [INFO] [stderr] | [INFO] [stderr] 99 | pub(crate) struct Batch { [INFO] [stderr] | ----- fields in this struct [INFO] [stderr] 100 | partition_leader_epoch: i32, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 101 | magic_byte: u8, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] 102 | crc: i32, [INFO] [stderr] | ^^^ [INFO] [stderr] 103 | attributes: u16, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] 104 | last_offset_delta: i32, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] 105 | base_timestamp: i64, [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] 106 | max_timestamp: i64, [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] 107 | producer_id: i64, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] 108 | producer_epoch: i16, [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] 109 | base_sequence: i32, [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Batch` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: fields `record_length`, `attributes`, `timestamp_delta`, `offset_delta`, `key`, and `headers_array_count` are never read [INFO] [stderr] --> src/protocol/cluster_metadata.rs:208:5 [INFO] [stderr] | [INFO] [stderr] 207 | pub(crate) struct Record { [INFO] [stderr] | ------ fields in this struct [INFO] [stderr] 208 | record_length: VarInt, [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] 209 | attributes: u8, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] 210 | timestamp_delta: VarInt, [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] 211 | offset_delta: VarInt, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] 212 | key: Vec, [INFO] [stderr] | ^^^ [INFO] [stderr] 213 | record_value: RecordValue, [INFO] [stderr] 214 | headers_array_count: u32, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Record` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: fields `frame_version`, `record_type`, and `version` are never read [INFO] [stderr] --> src/protocol/cluster_metadata.rs:268:5 [INFO] [stderr] | [INFO] [stderr] 267 | pub(crate) struct RecordValue { [INFO] [stderr] | ----------- fields in this struct [INFO] [stderr] 268 | frame_version: i8, [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] 269 | record_type: i8, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] 270 | version: i8, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `RecordValue` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: field `0` is never read [INFO] [stderr] --> src/protocol/cluster_metadata.rs:306:13 [INFO] [stderr] | [INFO] [stderr] 306 | Feature(FeatureRecordValue), [INFO] [stderr] | ------- ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | field in this variant [INFO] [stderr] | [INFO] [stderr] = note: `RecordValueByType` 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] 306 - Feature(FeatureRecordValue), [INFO] [stderr] 306 + Feature(()), [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: methods `as_feature` and `as_partition` are never used [INFO] [stderr] --> src/protocol/cluster_metadata.rs:324:19 [INFO] [stderr] | [INFO] [stderr] 311 | impl RecordValueByType { [INFO] [stderr] | ---------------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 324 | pub(crate) fn as_feature(&self) -> Option<&FeatureRecordValue> { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 340 | pub(crate) fn as_partition(&self) -> Option<&PartitionRecordValue> { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `name`, `feature_level`, and `tagged_fields_count` are never read [INFO] [stderr] --> src/protocol/cluster_metadata.rs:351:5 [INFO] [stderr] | [INFO] [stderr] 350 | pub struct FeatureRecordValue { [INFO] [stderr] | ------------------ fields in this struct [INFO] [stderr] 351 | name: String, [INFO] [stderr] | ^^^^ [INFO] [stderr] 352 | feature_level: i16, [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] 353 | tagged_fields_count: u32, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `FeatureRecordValue` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: field `tagged_fields_count` is never read [INFO] [stderr] --> src/protocol/cluster_metadata.rs:384:5 [INFO] [stderr] | [INFO] [stderr] 381 | pub struct TopicRecordValue { [INFO] [stderr] | ---------------- field in this struct [INFO] [stderr] ... [INFO] [stderr] 384 | tagged_fields_count: u32, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `TopicRecordValue` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: fields `removing_replicas_array`, `adding_replicas_array`, `partition_epoch`, `directories_array`, and `tagged_fields_count` are never read [INFO] [stderr] --> src/protocol/cluster_metadata.rs:432:5 [INFO] [stderr] | [INFO] [stderr] 427 | pub struct PartitionRecordValue { [INFO] [stderr] | -------------------- fields in this struct [INFO] [stderr] ... [INFO] [stderr] 432 | removing_replicas_array: CompactArray, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 433 | adding_replicas_array: CompactArray, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 436 | partition_epoch: i32, [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] 437 | directories_array: Vec, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] 438 | tagged_fields_count: u32, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `PartitionRecordValue` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [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:446:12 [INFO] [stderr] | [INFO] [stderr] 441 | impl PartitionRecordValue { [INFO] [stderr] | ------------------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 446 | pub fn topic_uuid(&self) -> uuid::Uuid { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 458 | pub fn removing_replicas_array(&self) -> &CompactArray { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 462 | pub fn adding_replicas_array(&self) -> &CompactArray { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 474 | pub fn partition_epoch(&self) -> i32 { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 478 | pub fn directories_array(&self) -> &[uuid::Uuid] { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 482 | pub fn tagged_fields_count(&self) -> u32 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `codecrafters-kafka` (lib) generated 28 warnings (run `cargo fix --lib -p codecrafters-kafka` to apply 2 suggestions) [INFO] [stderr] warning: `codecrafters-kafka` (lib test) generated 28 warnings (28 duplicates) [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.08s [INFO] [stdout] running 0 tests [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/codecrafters_kafka-3530a990195e93a6) [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-5be852223c675cac) [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" "56dab73c549f2649fb3c001a36c52736e70dddfc19b4c8e3a1d08cc25ee23aa0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "56dab73c549f2649fb3c001a36c52736e70dddfc19b4c8e3a1d08cc25ee23aa0", kill_on_drop: false }` [INFO] [stdout] 56dab73c549f2649fb3c001a36c52736e70dddfc19b4c8e3a1d08cc25ee23aa0