[INFO] cloning repository https://github.com/ctangam/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/ctangam/codecrafters-kafka-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fctangam%2Fcodecrafters-kafka-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fctangam%2Fcodecrafters-kafka-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ff96167e0723d19cddff0a5fc54649bc5997b3b1 [INFO] building ctangam/codecrafters-kafka-rust against master#44f415c1d617ebc7b931a243b7b321ef8a6ca47c for pr-142134-abi-ast-error [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fctangam%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] validating manifest of git repo https://github.com/ctangam/codecrafters-kafka-rust on toolchain 44f415c1d617ebc7b931a243b7b321ef8a6ca47c [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+44f415c1d617ebc7b931a243b7b321ef8a6ca47c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ctangam/codecrafters-kafka-rust [INFO] finished tweaking git repo https://github.com/ctangam/codecrafters-kafka-rust [INFO] tweaked toml for git repo https://github.com/ctangam/codecrafters-kafka-rust written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/ctangam/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" "+44f415c1d617ebc7b931a243b7b321ef8a6ca47c" "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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+44f415c1d617ebc7b931a243b7b321ef8a6ca47c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5fd3b90acdce21d1509f9401a84a4789e6246ce59e2118b8f11521b604d27386 [INFO] running `Command { std: "docker" "start" "-a" "5fd3b90acdce21d1509f9401a84a4789e6246ce59e2118b8f11521b604d27386", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5fd3b90acdce21d1509f9401a84a4789e6246ce59e2118b8f11521b604d27386", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5fd3b90acdce21d1509f9401a84a4789e6246ce59e2118b8f11521b604d27386", kill_on_drop: false }` [INFO] [stdout] 5fd3b90acdce21d1509f9401a84a4789e6246ce59e2118b8f11521b604d27386 [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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+44f415c1d617ebc7b931a243b7b321ef8a6ca47c" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 40bd266bf4a080d26202888517f4339cba845790201e5790d8e0d013546d681b [INFO] running `Command { std: "docker" "start" "-a" "40bd266bf4a080d26202888517f4339cba845790201e5790d8e0d013546d681b", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling libc v0.2.158 [INFO] [stderr] Compiling unicode-ident v1.0.13 [INFO] [stderr] Compiling autocfg v1.3.0 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling scopeguard v1.2.0 [INFO] [stderr] Compiling anyhow v1.0.89 [INFO] [stderr] Compiling thiserror v1.0.63 [INFO] [stderr] Compiling bytes v1.7.1 [INFO] [stderr] Compiling pin-project-lite v0.2.14 [INFO] [stderr] Compiling pretty-hex v0.4.1 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling uuid v1.10.0 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling syn v2.0.77 [INFO] [stderr] Compiling socket2 v0.5.7 [INFO] [stderr] Compiling mio v1.0.2 [INFO] [stderr] Compiling signal-hook-registry v1.4.2 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling tokio-macros v2.4.0 [INFO] [stderr] Compiling thiserror-impl v1.0.63 [INFO] [stderr] Compiling tokio v1.40.0 [INFO] [stderr] Compiling kafka-starter-rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/fetch.rs:151:19 [INFO] [stdout] | [INFO] [stdout] 151 | fn from_bytes(mut buffer: &mut T) -> Self { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/main.rs:89:9 [INFO] [stdout] | [INFO] [stdout] 89 | _ => unimplemented!() [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/main.rs:89:9 [INFO] [stdout] | [INFO] [stdout] 67 | RequestBody::Fetch(ref fetch) => { [INFO] [stdout] | ----------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 74 | RequestBody::ApiVersion => { [INFO] [stdout] | ----------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 81 | RequestBody::Describe(ref describe) => { [INFO] [stdout] | ----------------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 89 | _ => unimplemented!() [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `error_code` [INFO] [stdout] --> src/main.rs:82:17 [INFO] [stdout] | [INFO] [stdout] 82 | let error_code = match request.header.request_api_version { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_error_code` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `client_id` is never read [INFO] [stdout] --> src/request.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 37 | pub struct RequestHeader { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 41 | client_id: (i16, String), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RequestHeader` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `partitions` is never read [INFO] [stdout] --> src/fetch.rs:89:5 [INFO] [stdout] | [INFO] [stdout] 87 | pub struct Topic { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 88 | topic_id: u128, [INFO] [stdout] 89 | partitions: (u8, Vec), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Topic` 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 `partition`, `current_leader_epoch`, `fetch_offset`, `last_fetched_epoch`, `log_start_offset`, and `partition_max_bytes` are never read [INFO] [stdout] --> src/fetch.rs:114:5 [INFO] [stdout] | [INFO] [stdout] 113 | pub struct PartitionReq { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 114 | partition: i32, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 115 | current_leader_epoch: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 116 | fetch_offset: i64, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 117 | last_fetched_epoch: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 118 | log_start_offset: i64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 119 | partition_max_bytes: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PartitionReq` 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 `topic_id` and `partitions` are never read [INFO] [stdout] --> src/fetch.rs:146:5 [INFO] [stdout] | [INFO] [stdout] 145 | pub struct ForgottenTopicsData { [INFO] [stdout] | ------------------- fields in this struct [INFO] [stdout] 146 | topic_id: u128, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 147 | partitions: (u8, Vec), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ForgottenTopicsData` 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 `response_partition_limit` is never read [INFO] [stdout] --> src/describe.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct DescribeTopicPartitionsRequest { [INFO] [stdout] | ------------------------------ field in this struct [INFO] [stdout] 9 | topics: (u8, Vec<(u8, String)>), [INFO] [stdout] 10 | response_partition_limit: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DescribeTopicPartitionsRequest` 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/cluster_metadata.rs:8:28 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct ClusterMetadata(Vec); [INFO] [stdout] | --------------- ^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] = note: `ClusterMetadata` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/cluster_metadata.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 24 | struct RecordBatch { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 25 | base_offset: u64, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 26 | batch_length: u32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 27 | partition_leader_epoch: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 28 | magic_byte: u8, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 29 | crc: u32, [INFO] [stdout] | ^^^ [INFO] [stdout] 30 | attributes: u16, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 31 | last_offset_delta: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 32 | base_timestamp: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 33 | max_timestamp: u64, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 34 | producer_id: i64, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 35 | producer_epoch: i16, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 36 | base_sequence: i32, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 37 | records_length: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 38 | records: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RecordBatch` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/cluster_metadata.rs:85:5 [INFO] [stdout] | [INFO] [stdout] 84 | struct Record { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 85 | length: u8, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 86 | attributes: u8, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 87 | timestamp_delta: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 88 | offset_delta: u8, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 89 | key_length: i8, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 90 | key: Option, [INFO] [stdout] | ^^^ [INFO] [stdout] 91 | value_length: i8, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 92 | frame_version: u8, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 93 | r#type: u8, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 94 | version: u8, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 95 | value: Value, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 96 | tagged_fields_count: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 97 | headers_array_count: u8, [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: field `0` is never read [INFO] [stdout] --> src/cluster_metadata.rs:151:24 [INFO] [stdout] | [INFO] [stdout] 151 | FeatureLevelRecord(FeatureLevelRecord), [INFO] [stdout] | ------------------ ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Value` 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] 151 - FeatureLevelRecord(FeatureLevelRecord), [INFO] [stdout] 151 + FeatureLevelRecord(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/cluster_metadata.rs:152:17 [INFO] [stdout] | [INFO] [stdout] 152 | TopicRecord(TopicRecord), [INFO] [stdout] | ----------- ^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Value` 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] 152 - TopicRecord(TopicRecord), [INFO] [stdout] 152 + TopicRecord(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/cluster_metadata.rs:153:21 [INFO] [stdout] | [INFO] [stdout] 153 | PartitionRecord(PartitionRecord), [INFO] [stdout] | --------------- ^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Value` 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] 153 - PartitionRecord(PartitionRecord), [INFO] [stdout] 153 + PartitionRecord(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name_length`, `name`, and `feature_level` are never read [INFO] [stdout] --> src/cluster_metadata.rs:158:5 [INFO] [stdout] | [INFO] [stdout] 157 | struct FeatureLevelRecord { [INFO] [stdout] | ------------------ fields in this struct [INFO] [stdout] 158 | name_length: i8, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 159 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 160 | feature_level: u16, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FeatureLevelRecord` 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 `name_length`, `topic_name`, and `topic_uuid` are never read [INFO] [stdout] --> src/cluster_metadata.rs:179:5 [INFO] [stdout] | [INFO] [stdout] 178 | struct TopicRecord { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 179 | name_length: i8, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 180 | topic_name: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 181 | topic_uuid: uuid::Uuid, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TopicRecord` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/cluster_metadata.rs:203:5 [INFO] [stdout] | [INFO] [stdout] 202 | struct PartitionRecord { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 203 | partition_id: u32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 204 | topic_uuid: uuid::Uuid, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 205 | length_of_replica_array: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 206 | replica_array: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 207 | length_of_isr_array: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 208 | isr_array: Vec, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 209 | length_of_rr_array: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 210 | rr_array: Vec, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 211 | length_of_ar_array: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 212 | ar_array: Vec, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 213 | leader: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 214 | leader_epoch: u32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 215 | partiton_epoch: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 216 | length_of_directories_array: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 217 | directories_array: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PartitionRecord` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 18.94s [INFO] running `Command { std: "docker" "inspect" "40bd266bf4a080d26202888517f4339cba845790201e5790d8e0d013546d681b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "40bd266bf4a080d26202888517f4339cba845790201e5790d8e0d013546d681b", kill_on_drop: false }` [INFO] [stdout] 40bd266bf4a080d26202888517f4339cba845790201e5790d8e0d013546d681b [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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+44f415c1d617ebc7b931a243b7b321ef8a6ca47c" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] bb705b3a2abecc953c8d06a1be34cd5d9c030e5b0cfb73911b6e7cf34f7244cf [INFO] running `Command { std: "docker" "start" "-a" "bb705b3a2abecc953c8d06a1be34cd5d9c030e5b0cfb73911b6e7cf34f7244cf", kill_on_drop: false }` [INFO] [stderr] Compiling kafka-starter-rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/fetch.rs:151:19 [INFO] [stdout] | [INFO] [stdout] 151 | fn from_bytes(mut buffer: &mut T) -> Self { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/main.rs:89:9 [INFO] [stdout] | [INFO] [stdout] 89 | _ => unimplemented!() [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/main.rs:89:9 [INFO] [stdout] | [INFO] [stdout] 67 | RequestBody::Fetch(ref fetch) => { [INFO] [stdout] | ----------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 74 | RequestBody::ApiVersion => { [INFO] [stdout] | ----------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 81 | RequestBody::Describe(ref describe) => { [INFO] [stdout] | ----------------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 89 | _ => unimplemented!() [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `error_code` [INFO] [stdout] --> src/main.rs:82:17 [INFO] [stdout] | [INFO] [stdout] 82 | let error_code = match request.header.request_api_version { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_error_code` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `client_id` is never read [INFO] [stdout] --> src/request.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 37 | pub struct RequestHeader { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 41 | client_id: (i16, String), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RequestHeader` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `partitions` is never read [INFO] [stdout] --> src/fetch.rs:89:5 [INFO] [stdout] | [INFO] [stdout] 87 | pub struct Topic { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 88 | topic_id: u128, [INFO] [stdout] 89 | partitions: (u8, Vec), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Topic` 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 `partition`, `current_leader_epoch`, `fetch_offset`, `last_fetched_epoch`, `log_start_offset`, and `partition_max_bytes` are never read [INFO] [stdout] --> src/fetch.rs:114:5 [INFO] [stdout] | [INFO] [stdout] 113 | pub struct PartitionReq { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 114 | partition: i32, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 115 | current_leader_epoch: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 116 | fetch_offset: i64, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 117 | last_fetched_epoch: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 118 | log_start_offset: i64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 119 | partition_max_bytes: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PartitionReq` 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 `topic_id` and `partitions` are never read [INFO] [stdout] --> src/fetch.rs:146:5 [INFO] [stdout] | [INFO] [stdout] 145 | pub struct ForgottenTopicsData { [INFO] [stdout] | ------------------- fields in this struct [INFO] [stdout] 146 | topic_id: u128, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 147 | partitions: (u8, Vec), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ForgottenTopicsData` 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 `response_partition_limit` is never read [INFO] [stdout] --> src/describe.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct DescribeTopicPartitionsRequest { [INFO] [stdout] | ------------------------------ field in this struct [INFO] [stdout] 9 | topics: (u8, Vec<(u8, String)>), [INFO] [stdout] 10 | response_partition_limit: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DescribeTopicPartitionsRequest` 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/cluster_metadata.rs:8:28 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct ClusterMetadata(Vec); [INFO] [stdout] | --------------- ^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] = note: `ClusterMetadata` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/cluster_metadata.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 24 | struct RecordBatch { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 25 | base_offset: u64, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 26 | batch_length: u32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 27 | partition_leader_epoch: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 28 | magic_byte: u8, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 29 | crc: u32, [INFO] [stdout] | ^^^ [INFO] [stdout] 30 | attributes: u16, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 31 | last_offset_delta: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 32 | base_timestamp: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 33 | max_timestamp: u64, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 34 | producer_id: i64, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 35 | producer_epoch: i16, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 36 | base_sequence: i32, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 37 | records_length: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 38 | records: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RecordBatch` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/cluster_metadata.rs:85:5 [INFO] [stdout] | [INFO] [stdout] 84 | struct Record { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 85 | length: u8, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 86 | attributes: u8, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 87 | timestamp_delta: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 88 | offset_delta: u8, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 89 | key_length: i8, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 90 | key: Option, [INFO] [stdout] | ^^^ [INFO] [stdout] 91 | value_length: i8, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 92 | frame_version: u8, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 93 | r#type: u8, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 94 | version: u8, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 95 | value: Value, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 96 | tagged_fields_count: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 97 | headers_array_count: u8, [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: field `0` is never read [INFO] [stdout] --> src/cluster_metadata.rs:151:24 [INFO] [stdout] | [INFO] [stdout] 151 | FeatureLevelRecord(FeatureLevelRecord), [INFO] [stdout] | ------------------ ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Value` 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] 151 - FeatureLevelRecord(FeatureLevelRecord), [INFO] [stdout] 151 + FeatureLevelRecord(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/cluster_metadata.rs:152:17 [INFO] [stdout] | [INFO] [stdout] 152 | TopicRecord(TopicRecord), [INFO] [stdout] | ----------- ^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Value` 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] 152 - TopicRecord(TopicRecord), [INFO] [stdout] 152 + TopicRecord(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/cluster_metadata.rs:153:21 [INFO] [stdout] | [INFO] [stdout] 153 | PartitionRecord(PartitionRecord), [INFO] [stdout] | --------------- ^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Value` 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] 153 - PartitionRecord(PartitionRecord), [INFO] [stdout] 153 + PartitionRecord(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name_length`, `name`, and `feature_level` are never read [INFO] [stdout] --> src/cluster_metadata.rs:158:5 [INFO] [stdout] | [INFO] [stdout] 157 | struct FeatureLevelRecord { [INFO] [stdout] | ------------------ fields in this struct [INFO] [stdout] 158 | name_length: i8, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 159 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 160 | feature_level: u16, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FeatureLevelRecord` 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 `name_length`, `topic_name`, and `topic_uuid` are never read [INFO] [stdout] --> src/cluster_metadata.rs:179:5 [INFO] [stdout] | [INFO] [stdout] 178 | struct TopicRecord { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 179 | name_length: i8, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 180 | topic_name: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 181 | topic_uuid: uuid::Uuid, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TopicRecord` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/cluster_metadata.rs:203:5 [INFO] [stdout] | [INFO] [stdout] 202 | struct PartitionRecord { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 203 | partition_id: u32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 204 | topic_uuid: uuid::Uuid, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 205 | length_of_replica_array: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 206 | replica_array: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 207 | length_of_isr_array: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 208 | isr_array: Vec, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 209 | length_of_rr_array: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 210 | rr_array: Vec, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 211 | length_of_ar_array: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 212 | ar_array: Vec, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 213 | leader: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 214 | leader_epoch: u32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 215 | partiton_epoch: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 216 | length_of_directories_array: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 217 | directories_array: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PartitionRecord` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.73s [INFO] running `Command { std: "docker" "inspect" "bb705b3a2abecc953c8d06a1be34cd5d9c030e5b0cfb73911b6e7cf34f7244cf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bb705b3a2abecc953c8d06a1be34cd5d9c030e5b0cfb73911b6e7cf34f7244cf", kill_on_drop: false }` [INFO] [stdout] bb705b3a2abecc953c8d06a1be34cd5d9c030e5b0cfb73911b6e7cf34f7244cf