[INFO] cloning repository https://github.com/lizhanhui/rocketmq-client-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/lizhanhui/rocketmq-client-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flizhanhui%2Frocketmq-client-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flizhanhui%2Frocketmq-client-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 8c278d03c87a6a47023abf1ef8fe09f939637e9b [INFO] checking lizhanhui/rocketmq-client-rs against master#385fa9d845dd326c6bbfd58c22244215e431948a for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flizhanhui%2Frocketmq-client-rs" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/lizhanhui/rocketmq-client-rs on toolchain 385fa9d845dd326c6bbfd58c22244215e431948a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/lizhanhui/rocketmq-client-rs [INFO] finished tweaking git repo https://github.com/lizhanhui/rocketmq-client-rs [INFO] tweaked toml for git repo https://github.com/lizhanhui/rocketmq-client-rs written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/lizhanhui/rocketmq-client-rs 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" "+385fa9d845dd326c6bbfd58c22244215e431948a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded syn v1.0.96 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a59ae67d380dce47bb974743548d299ae5f1e9e7576e831ed050bfaec77044e5 [INFO] running `Command { std: "docker" "start" "-a" "a59ae67d380dce47bb974743548d299ae5f1e9e7576e831ed050bfaec77044e5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a59ae67d380dce47bb974743548d299ae5f1e9e7576e831ed050bfaec77044e5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a59ae67d380dce47bb974743548d299ae5f1e9e7576e831ed050bfaec77044e5", kill_on_drop: false }` [INFO] [stdout] a59ae67d380dce47bb974743548d299ae5f1e9e7576e831ed050bfaec77044e5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4e61701c43b9fb49fe037ce50ee7071294d316f913197b6fac10242660872584 [INFO] running `Command { std: "docker" "start" "-a" "4e61701c43b9fb49fe037ce50ee7071294d316f913197b6fac10242660872584", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.39 [INFO] [stderr] Compiling unicode-ident v1.0.0 [INFO] [stderr] Compiling libc v0.2.126 [INFO] [stderr] Compiling syn v1.0.96 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling serde_derive v1.0.137 [INFO] [stderr] Compiling parking_lot_core v0.9.3 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Compiling serde v1.0.137 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Compiling lock_api v0.4.7 [INFO] [stderr] Checking smallvec v1.8.0 [INFO] [stderr] Compiling serde_json v1.0.81 [INFO] [stderr] Checking once_cell v1.12.0 [INFO] [stderr] Compiling quote v1.0.18 [INFO] [stderr] Checking pin-project-lite v0.2.9 [INFO] [stderr] Checking ryu v1.0.10 [INFO] [stderr] Checking itoa v1.0.2 [INFO] [stderr] Checking bytes v1.1.0 [INFO] [stderr] Checking signal-hook-registry v1.4.0 [INFO] [stderr] Checking mio v0.8.3 [INFO] [stderr] Checking num_cpus v1.13.1 [INFO] [stderr] Checking socket2 v0.4.4 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Compiling tokio-macros v1.8.0 [INFO] [stderr] Compiling thiserror-impl v1.0.31 [INFO] [stderr] Checking tokio v1.19.2 [INFO] [stderr] Checking thiserror v1.0.31 [INFO] [stderr] Checking rocketmq-client v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: the item `SocketAddr` is imported redundantly [INFO] [stdout] --> src/connection.rs:115:9 [INFO] [stdout] | [INFO] [stdout] 114 | use super::*; [INFO] [stdout] | -------- the item `SocketAddr` is already imported here [INFO] [stdout] 115 | use std::net::SocketAddr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `bytes` is imported redundantly [INFO] [stdout] --> src/frame.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use bytes::{self, Buf, BufMut, Bytes, BytesMut}; [INFO] [stdout] | ^^^^ the item `bytes` is already defined by prelude [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `bytes` is imported redundantly [INFO] [stdout] --> src/message.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use bytes; [INFO] [stdout] | ^^^^^ the item `bytes` is already defined by prelude [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Vec` is imported redundantly [INFO] [stdout] --> src/message.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::vec::Vec; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/385fa9d845dd326c6bbfd58c22244215e431948a/library/std/src/prelude/mod.rs:144:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Vec` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Vec` is imported redundantly [INFO] [stdout] --> src/protocol.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::vec::Vec; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/385fa9d845dd326c6bbfd58c22244215e431948a/library/std/src/prelude/mod.rs:144:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Vec` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `HashMap` is imported redundantly [INFO] [stdout] --> src/protocol.rs:123:9 [INFO] [stdout] | [INFO] [stdout] 122 | use super::*; [INFO] [stdout] | -------- the item `HashMap` is already imported here [INFO] [stdout] 123 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `bytes` is imported redundantly [INFO] [stdout] --> src/connection.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | use bytes::{self, Buf, BytesMut}; [INFO] [stdout] | ^^^^ the item `bytes` is already defined by prelude [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `bytes` is imported redundantly [INFO] [stdout] --> src/frame.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use bytes::{self, Buf, BufMut, Bytes, BytesMut}; [INFO] [stdout] | ^^^^ the item `bytes` is already defined by prelude [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BufMut`, `Buf`, `BytesMut` [INFO] [stdout] --> src/frame.rs:176:17 [INFO] [stdout] | [INFO] [stdout] 176 | use bytes::{Buf, BufMut, BytesMut}; [INFO] [stdout] | ^^^ ^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Frame`, `Language`, `Type` [INFO] [stdout] --> src/frame.rs:178:17 [INFO] [stdout] | [INFO] [stdout] 178 | use super::{Frame, Language, Type}; [INFO] [stdout] | ^^^^^ ^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `bytes` is imported redundantly [INFO] [stdout] --> src/message.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use bytes; [INFO] [stdout] | ^^^^^ the item `bytes` is already defined by prelude [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Vec` is imported redundantly [INFO] [stdout] --> src/message.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::vec::Vec; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/385fa9d845dd326c6bbfd58c22244215e431948a/library/std/src/prelude/mod.rs:144:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Vec` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Vec` is imported redundantly [INFO] [stdout] --> src/protocol.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::vec::Vec; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/385fa9d845dd326c6bbfd58c22244215e431948a/library/std/src/prelude/mod.rs:144:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Vec` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `message` [INFO] [stdout] --> src/publisher.rs:17:31 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn publish(&mut self, message: &Message) {} [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_message` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `manager` [INFO] [stdout] --> src/route.rs:71:13 [INFO] [stdout] | [INFO] [stdout] 71 | let manager = RouteManager::new(addrs)?; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_manager` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ConnectionManager` is never constructed [INFO] [stdout] --> src/connection.rs:98:19 [INFO] [stdout] | [INFO] [stdout] 98 | pub(crate) struct ConnectionManager { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/connection.rs:103:19 [INFO] [stdout] | [INFO] [stdout] 102 | impl ConnectionManager { [INFO] [stdout] | ---------------------- associated function in this implementation [INFO] [stdout] 103 | pub(crate) fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Other` is never constructed [INFO] [stdout] --> src/frame.rs:66:5 [INFO] [stdout] | [INFO] [stdout] 61 | pub(crate) enum Error { [INFO] [stdout] | ----- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 66 | Other(error::ClientError), [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Error` 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 `properties` is never read [INFO] [stdout] --> src/message.rs:24:16 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Message { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 24 | pub(crate) properties: HashMap, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `filter_server_table` is never read [INFO] [stdout] --> src/protocol.rs:56:16 [INFO] [stdout] | [INFO] [stdout] 48 | pub struct TopicRouteData { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 56 | pub(crate) filter_server_table: HashMap>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TopicRouteData` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Publisher` is never constructed [INFO] [stdout] --> src/publisher.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | struct Publisher { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `publish` are never used [INFO] [stdout] --> src/publisher.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl Publisher { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 11 | pub fn new(group: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 17 | pub fn publish(&mut self, message: &Message) {} [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `endpoints` and `topic_routes` are never read [INFO] [stdout] --> src/route.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub(crate) struct RouteManager { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 12 | /// Endpoints remain constant after construction. [INFO] [stdout] 13 | endpoints: Arc>>, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | topic_routes: Arc>>>, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `route` is never used [INFO] [stdout] --> src/route.rs:41:19 [INFO] [stdout] | [INFO] [stdout] 19 | impl RouteManager { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 41 | pub(crate) fn route( [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `message` [INFO] [stdout] --> src/publisher.rs:17:31 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn publish(&mut self, message: &Message) {} [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_message` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ConnectionManager` is never constructed [INFO] [stdout] --> src/connection.rs:98:19 [INFO] [stdout] | [INFO] [stdout] 98 | pub(crate) struct ConnectionManager { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/connection.rs:103:19 [INFO] [stdout] | [INFO] [stdout] 102 | impl ConnectionManager { [INFO] [stdout] | ---------------------- associated function in this implementation [INFO] [stdout] 103 | pub(crate) fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `RequestCode` is never used [INFO] [stdout] --> src/frame.rs:26:17 [INFO] [stdout] | [INFO] [stdout] 26 | pub(crate) enum RequestCode { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Other` is never constructed [INFO] [stdout] --> src/frame.rs:66:5 [INFO] [stdout] | [INFO] [stdout] 61 | pub(crate) enum Error { [INFO] [stdout] | ----- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 66 | Other(error::ClientError), [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Type` is never used [INFO] [stdout] --> src/frame.rs:70:17 [INFO] [stdout] | [INFO] [stdout] 70 | pub(crate) enum Type { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/frame.rs:77:8 [INFO] [stdout] | [INFO] [stdout] 75 | impl Frame { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 76 | // Generate next opaque, aka, request identifier. [INFO] [stdout] 77 | fn next_opaque() -> i32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | pub(crate) fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 144 | pub(crate) fn put_ext_field(&mut self, key: &str, value: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 148 | pub(crate) fn remark(&self) -> &str { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 152 | pub(crate) fn frame_type(&self) -> Type { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 159 | pub(crate) fn mark_response_type(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 163 | pub(crate) fn add_ext_headers(&mut self, header: impl Into>) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 170 | pub(crate) fn body(&self) -> bytes::Bytes { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `properties` is never read [INFO] [stdout] --> src/message.rs:24:16 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Message { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 24 | pub(crate) properties: HashMap, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `broker_name`, `read_queue_nums`, `write_queue_nums`, `perm`, and `topic_syn_flag` are never read [INFO] [stdout] --> src/protocol.rs:31:16 [INFO] [stdout] | [INFO] [stdout] 30 | pub struct QueueData { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 31 | pub(crate) broker_name: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 32 | pub(crate) read_queue_nums: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 33 | pub(crate) write_queue_nums: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 34 | pub(crate) perm: i32, [INFO] [stdout] | ^^^^ [INFO] [stdout] 35 | pub(crate) topic_syn_flag: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `QueueData` 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 `cluster`, `broker_name`, and `broker_addrs` are never read [INFO] [stdout] --> src/protocol.rs:41:16 [INFO] [stdout] | [INFO] [stdout] 40 | pub struct BrokerData { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 41 | pub(crate) cluster: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 42 | pub(crate) broker_name: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 43 | pub(crate) broker_addrs: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BrokerData` 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 `order_topic_conf`, `queue_datas`, `broker_datas`, and `filter_server_table` are never read [INFO] [stdout] --> src/protocol.rs:49:16 [INFO] [stdout] | [INFO] [stdout] 48 | pub struct TopicRouteData { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 49 | pub(crate) order_topic_conf: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 50 | [INFO] [stdout] 51 | pub(crate) queue_datas: Vec, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 52 | [INFO] [stdout] 53 | pub(crate) broker_datas: Vec, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | pub(crate) filter_server_table: HashMap>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TopicRouteData` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Publisher` is never constructed [INFO] [stdout] --> src/publisher.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | struct Publisher { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `publish` are never used [INFO] [stdout] --> src/publisher.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl Publisher { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 11 | pub fn new(group: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 17 | pub fn publish(&mut self, message: &Message) {} [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RouteManager` is never constructed [INFO] [stdout] --> src/route.rs:11:19 [INFO] [stdout] | [INFO] [stdout] 11 | pub(crate) struct RouteManager { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `route` are never used [INFO] [stdout] --> src/route.rs:20:19 [INFO] [stdout] | [INFO] [stdout] 19 | impl RouteManager { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 20 | pub(crate) fn new(addrs: &str) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | pub(crate) fn route( [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 22 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 24.23s [INFO] running `Command { std: "docker" "inspect" "4e61701c43b9fb49fe037ce50ee7071294d316f913197b6fac10242660872584", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4e61701c43b9fb49fe037ce50ee7071294d316f913197b6fac10242660872584", kill_on_drop: false }` [INFO] [stdout] 4e61701c43b9fb49fe037ce50ee7071294d316f913197b6fac10242660872584 [INFO] checking lizhanhui/rocketmq-client-rs against try#645bb72776a6a56a1a8f52631a44bd082b2ba509 for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flizhanhui%2Frocketmq-client-rs" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/lizhanhui/rocketmq-client-rs on toolchain 645bb72776a6a56a1a8f52631a44bd082b2ba509 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/lizhanhui/rocketmq-client-rs [INFO] finished tweaking git repo https://github.com/lizhanhui/rocketmq-client-rs [INFO] tweaked toml for git repo https://github.com/lizhanhui/rocketmq-client-rs written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/lizhanhui/rocketmq-client-rs 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" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 62a8eea069659237cc49c34d985500f5b96980e3a48de0f2a01d99740890760d [INFO] running `Command { std: "docker" "start" "-a" "62a8eea069659237cc49c34d985500f5b96980e3a48de0f2a01d99740890760d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "62a8eea069659237cc49c34d985500f5b96980e3a48de0f2a01d99740890760d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "62a8eea069659237cc49c34d985500f5b96980e3a48de0f2a01d99740890760d", kill_on_drop: false }` [INFO] [stdout] 62a8eea069659237cc49c34d985500f5b96980e3a48de0f2a01d99740890760d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 945a20cf64892cf216a48ab4b3f2affa11f2135a5b1cd276c358c91d646029df [INFO] running `Command { std: "docker" "start" "-a" "945a20cf64892cf216a48ab4b3f2affa11f2135a5b1cd276c358c91d646029df", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.39 [INFO] [stderr] Compiling unicode-ident v1.0.0 [INFO] [stderr] Compiling libc v0.2.126 [INFO] [stderr] Compiling syn v1.0.96 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling serde_derive v1.0.137 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Compiling parking_lot_core v0.9.3 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Checking smallvec v1.8.0 [INFO] [stderr] Compiling serde v1.0.137 [INFO] [stderr] Compiling serde_json v1.0.81 [INFO] [stderr] Compiling lock_api v0.4.7 [INFO] [stderr] Checking ryu v1.0.10 [INFO] [stderr] Checking itoa v1.0.2 [INFO] [stderr] Checking once_cell v1.12.0 [INFO] [stderr] Checking pin-project-lite v0.2.9 [INFO] [stderr] Checking bytes v1.1.0 [INFO] [stderr] Compiling quote v1.0.18 [INFO] [stderr] Checking num_cpus v1.13.1 [INFO] [stderr] Checking socket2 v0.4.4 [INFO] [stderr] Checking mio v0.8.3 [INFO] [stderr] Checking signal-hook-registry v1.4.0 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Compiling thiserror-impl v1.0.31 [INFO] [stderr] Compiling tokio-macros v1.8.0 [INFO] [stderr] Checking tokio v1.19.2 [INFO] [stderr] Checking thiserror v1.0.31 [INFO] [stderr] Checking rocketmq-client v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: the item `bytes` is imported redundantly [INFO] [stdout] --> src/connection.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | use bytes::{self, Buf, BytesMut}; [INFO] [stdout] | ^^^^ the item `bytes` is already defined by prelude [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `bytes` is imported redundantly [INFO] [stdout] --> src/frame.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use bytes::{self, Buf, BufMut, Bytes, BytesMut}; [INFO] [stdout] | ^^^^ the item `bytes` is already defined by prelude [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BufMut`, `Buf`, `BytesMut` [INFO] [stdout] --> src/frame.rs:176:17 [INFO] [stdout] | [INFO] [stdout] 176 | use bytes::{Buf, BufMut, BytesMut}; [INFO] [stdout] | ^^^ ^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Frame`, `Language`, `Type` [INFO] [stdout] --> src/frame.rs:178:17 [INFO] [stdout] | [INFO] [stdout] 178 | use super::{Frame, Language, Type}; [INFO] [stdout] | ^^^^^ ^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `bytes` is imported redundantly [INFO] [stdout] --> src/message.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use bytes; [INFO] [stdout] | ^^^^^ the item `bytes` is already defined by prelude [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Vec` is imported redundantly [INFO] [stdout] --> src/message.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::vec::Vec; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/645bb72776a6a56a1a8f52631a44bd082b2ba509/library/std/src/prelude/mod.rs:144:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Vec` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Vec` is imported redundantly [INFO] [stdout] --> src/protocol.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::vec::Vec; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/645bb72776a6a56a1a8f52631a44bd082b2ba509/library/std/src/prelude/mod.rs:144:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Vec` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `SocketAddr` is imported redundantly [INFO] [stdout] --> src/connection.rs:115:9 [INFO] [stdout] | [INFO] [stdout] 114 | use super::*; [INFO] [stdout] | -------- the item `SocketAddr` is already imported here [INFO] [stdout] 115 | use std::net::SocketAddr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `bytes` is imported redundantly [INFO] [stdout] --> src/frame.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use bytes::{self, Buf, BufMut, Bytes, BytesMut}; [INFO] [stdout] | ^^^^ the item `bytes` is already defined by prelude [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `bytes` is imported redundantly [INFO] [stdout] --> src/message.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use bytes; [INFO] [stdout] | ^^^^^ the item `bytes` is already defined by prelude [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Vec` is imported redundantly [INFO] [stdout] --> src/message.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::vec::Vec; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/645bb72776a6a56a1a8f52631a44bd082b2ba509/library/std/src/prelude/mod.rs:144:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Vec` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Vec` is imported redundantly [INFO] [stdout] --> src/protocol.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::vec::Vec; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/645bb72776a6a56a1a8f52631a44bd082b2ba509/library/std/src/prelude/mod.rs:144:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Vec` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `HashMap` is imported redundantly [INFO] [stdout] --> src/protocol.rs:123:9 [INFO] [stdout] | [INFO] [stdout] 122 | use super::*; [INFO] [stdout] | -------- the item `HashMap` is already imported here [INFO] [stdout] 123 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `message` [INFO] [stdout] --> src/publisher.rs:17:31 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn publish(&mut self, message: &Message) {} [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_message` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ConnectionManager` is never constructed [INFO] [stdout] --> src/connection.rs:98:19 [INFO] [stdout] | [INFO] [stdout] 98 | pub(crate) struct ConnectionManager { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/connection.rs:103:19 [INFO] [stdout] | [INFO] [stdout] 102 | impl ConnectionManager { [INFO] [stdout] | ---------------------- associated function in this implementation [INFO] [stdout] 103 | pub(crate) fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `RequestCode` is never used [INFO] [stdout] --> src/frame.rs:26:17 [INFO] [stdout] | [INFO] [stdout] 26 | pub(crate) enum RequestCode { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Other` is never constructed [INFO] [stdout] --> src/frame.rs:66:5 [INFO] [stdout] | [INFO] [stdout] 61 | pub(crate) enum Error { [INFO] [stdout] | ----- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 66 | Other(error::ClientError), [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Type` is never used [INFO] [stdout] --> src/frame.rs:70:17 [INFO] [stdout] | [INFO] [stdout] 70 | pub(crate) enum Type { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/frame.rs:77:8 [INFO] [stdout] | [INFO] [stdout] 75 | impl Frame { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 76 | // Generate next opaque, aka, request identifier. [INFO] [stdout] 77 | fn next_opaque() -> i32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | pub(crate) fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 144 | pub(crate) fn put_ext_field(&mut self, key: &str, value: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 148 | pub(crate) fn remark(&self) -> &str { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 152 | pub(crate) fn frame_type(&self) -> Type { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 159 | pub(crate) fn mark_response_type(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 163 | pub(crate) fn add_ext_headers(&mut self, header: impl Into>) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 170 | pub(crate) fn body(&self) -> bytes::Bytes { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `properties` is never read [INFO] [stdout] --> src/message.rs:24:16 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Message { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 24 | pub(crate) properties: HashMap, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `broker_name`, `read_queue_nums`, `write_queue_nums`, `perm`, and `topic_syn_flag` are never read [INFO] [stdout] --> src/protocol.rs:31:16 [INFO] [stdout] | [INFO] [stdout] 30 | pub struct QueueData { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 31 | pub(crate) broker_name: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 32 | pub(crate) read_queue_nums: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 33 | pub(crate) write_queue_nums: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 34 | pub(crate) perm: i32, [INFO] [stdout] | ^^^^ [INFO] [stdout] 35 | pub(crate) topic_syn_flag: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `QueueData` 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 `cluster`, `broker_name`, and `broker_addrs` are never read [INFO] [stdout] --> src/protocol.rs:41:16 [INFO] [stdout] | [INFO] [stdout] 40 | pub struct BrokerData { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 41 | pub(crate) cluster: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 42 | pub(crate) broker_name: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 43 | pub(crate) broker_addrs: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BrokerData` 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 `order_topic_conf`, `queue_datas`, `broker_datas`, and `filter_server_table` are never read [INFO] [stdout] --> src/protocol.rs:49:16 [INFO] [stdout] | [INFO] [stdout] 48 | pub struct TopicRouteData { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 49 | pub(crate) order_topic_conf: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 50 | [INFO] [stdout] 51 | pub(crate) queue_datas: Vec, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 52 | [INFO] [stdout] 53 | pub(crate) broker_datas: Vec, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | pub(crate) filter_server_table: HashMap>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TopicRouteData` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Publisher` is never constructed [INFO] [stdout] --> src/publisher.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | struct Publisher { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `publish` are never used [INFO] [stdout] --> src/publisher.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl Publisher { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 11 | pub fn new(group: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 17 | pub fn publish(&mut self, message: &Message) {} [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RouteManager` is never constructed [INFO] [stdout] --> src/route.rs:11:19 [INFO] [stdout] | [INFO] [stdout] 11 | pub(crate) struct RouteManager { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `route` are never used [INFO] [stdout] --> src/route.rs:20:19 [INFO] [stdout] | [INFO] [stdout] 19 | impl RouteManager { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 20 | pub(crate) fn new(addrs: &str) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | pub(crate) fn route( [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 22 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `message` [INFO] [stdout] --> src/publisher.rs:17:31 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn publish(&mut self, message: &Message) {} [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_message` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `manager` [INFO] [stdout] --> src/route.rs:71:13 [INFO] [stdout] | [INFO] [stdout] 71 | let manager = RouteManager::new(addrs)?; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_manager` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ConnectionManager` is never constructed [INFO] [stdout] --> src/connection.rs:98:19 [INFO] [stdout] | [INFO] [stdout] 98 | pub(crate) struct ConnectionManager { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/connection.rs:103:19 [INFO] [stdout] | [INFO] [stdout] 102 | impl ConnectionManager { [INFO] [stdout] | ---------------------- associated function in this implementation [INFO] [stdout] 103 | pub(crate) fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Other` is never constructed [INFO] [stdout] --> src/frame.rs:66:5 [INFO] [stdout] | [INFO] [stdout] 61 | pub(crate) enum Error { [INFO] [stdout] | ----- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 66 | Other(error::ClientError), [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Error` 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 `properties` is never read [INFO] [stdout] --> src/message.rs:24:16 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Message { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 24 | pub(crate) properties: HashMap, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `filter_server_table` is never read [INFO] [stdout] --> src/protocol.rs:56:16 [INFO] [stdout] | [INFO] [stdout] 48 | pub struct TopicRouteData { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 56 | pub(crate) filter_server_table: HashMap>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TopicRouteData` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Publisher` is never constructed [INFO] [stdout] --> src/publisher.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | struct Publisher { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `publish` are never used [INFO] [stdout] --> src/publisher.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl Publisher { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 11 | pub fn new(group: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 17 | pub fn publish(&mut self, message: &Message) {} [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `endpoints` and `topic_routes` are never read [INFO] [stdout] --> src/route.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub(crate) struct RouteManager { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 12 | /// Endpoints remain constant after construction. [INFO] [stdout] 13 | endpoints: Arc>>, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | topic_routes: Arc>>>, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `route` is never used [INFO] [stdout] --> src/route.rs:41:19 [INFO] [stdout] | [INFO] [stdout] 19 | impl RouteManager { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 41 | pub(crate) fn route( [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 25.36s [INFO] running `Command { std: "docker" "inspect" "945a20cf64892cf216a48ab4b3f2affa11f2135a5b1cd276c358c91d646029df", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "945a20cf64892cf216a48ab4b3f2affa11f2135a5b1cd276c358c91d646029df", kill_on_drop: false }` [INFO] [stdout] 945a20cf64892cf216a48ab4b3f2affa11f2135a5b1cd276c358c91d646029df