[INFO] cloning repository https://github.com/sajadbanooie/discovery-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/sajadbanooie/discovery-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsajadbanooie%2Fdiscovery-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsajadbanooie%2Fdiscovery-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] deb0fe080177a1be852e2a92ac786ba49058bac6 [INFO] checking sajadbanooie/discovery-rs against 14450d27a2d0d3b3cb66037c8111ee3da14ed3c2 for pr-160391 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsajadbanooie%2Fdiscovery-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] started tweaking git repo https://github.com/sajadbanooie/discovery-rs [INFO] finished tweaking git repo https://github.com/sajadbanooie/discovery-rs [INFO] tweaked toml for git repo https://github.com/sajadbanooie/discovery-rs written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/sajadbanooie/discovery-rs on toolchain 14450d27a2d0d3b3cb66037c8111ee3da14ed3c2 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+14450d27a2d0d3b3cb66037c8111ee3da14ed3c2" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/sajadbanooie/discovery-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" "+14450d27a2d0d3b3cb66037c8111ee3da14ed3c2" "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/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:8683fc1fc2eb5c9ac98e0d076ab094b2ffac7f99da555d2b6a2e27f346de2ec7" "sleep" "infinity", kill_on_drop: false }` [INFO] [stdout] ac9f1e29f2214a54d822d9279d2c25fb26131e938f66e17736c1ed74c5471071 [INFO] running `Command { std: "docker" "start" "ac9f1e29f2214a54d822d9279d2c25fb26131e938f66e17736c1ed74c5471071", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ac9f1e29f2214a54d822d9279d2c25fb26131e938f66e17736c1ed74c5471071", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "ac9f1e29f2214a54d822d9279d2c25fb26131e938f66e17736c1ed74c5471071" "/opt/rustwide/cargo-home/bin/cargo" "+14450d27a2d0d3b3cb66037c8111ee3da14ed3c2" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ac9f1e29f2214a54d822d9279d2c25fb26131e938f66e17736c1ed74c5471071", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-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" "-w" "/opt/rustwide/workdir" "--user" "0:0" "ac9f1e29f2214a54d822d9279d2c25fb26131e938f66e17736c1ed74c5471071" "/opt/rustwide/cargo-home/bin/cargo" "+14450d27a2d0d3b3cb66037c8111ee3da14ed3c2" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.106 [INFO] [stderr] Compiling quote v1.0.45 [INFO] [stderr] Compiling libc v0.2.186 [INFO] [stderr] Checking pin-project-lite v0.2.17 [INFO] [stderr] Compiling parking_lot_core v0.9.12 [INFO] [stderr] Checking futures-core v0.3.32 [INFO] [stderr] Checking futures-sink v0.3.32 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Checking cfg-if v1.0.4 [INFO] [stderr] Checking smallvec v1.15.1 [INFO] [stderr] Checking bytes v1.11.1 [INFO] [stderr] Checking slab v0.4.12 [INFO] [stderr] Checking once_cell v1.21.4 [INFO] [stderr] Checking itoa v1.0.18 [INFO] [stderr] Compiling httparse v1.10.1 [INFO] [stderr] Checking hashbrown v0.17.1 [INFO] [stderr] Checking futures-io v0.3.32 [INFO] [stderr] Checking lock_api v0.4.14 [INFO] [stderr] Checking equivalent v1.0.2 [INFO] [stderr] Checking memchr v2.8.0 [INFO] [stderr] Checking futures-task v0.3.32 [INFO] [stderr] Checking try-lock v0.2.5 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Checking futures-channel v0.3.32 [INFO] [stderr] Checking tracing-core v0.1.36 [INFO] [stderr] Checking atomic-waker v1.1.2 [INFO] [stderr] Checking want v0.3.1 [INFO] [stderr] Checking httpdate v1.0.3 [INFO] [stderr] Checking http v1.4.0 [INFO] [stderr] Checking tracing v0.1.44 [INFO] [stderr] Compiling syn v2.0.117 [INFO] [stderr] Checking indexmap v2.14.0 [INFO] [stderr] Checking http-body v1.0.1 [INFO] [stderr] Checking errno v0.3.14 [INFO] [stderr] Checking mio v1.2.0 [INFO] [stderr] Checking socket2 v0.6.3 [INFO] [stderr] Checking signal-hook-registry v1.4.8 [INFO] [stderr] Checking parking_lot v0.12.5 [INFO] [stderr] Compiling tokio-macros v2.7.0 [INFO] [stderr] Compiling futures-macro v0.3.32 [INFO] [stderr] Checking futures-util v0.3.32 [INFO] [stderr] Checking tokio v1.52.3 [INFO] [stderr] Checking futures-executor v0.3.32 [INFO] [stderr] Checking futures v0.3.32 [INFO] [stderr] Checking tokio-util v0.7.18 [INFO] [stderr] Checking h2 v0.4.14 [INFO] [stderr] Checking hyper v1.9.0 [INFO] [stderr] Checking discovery v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `data_model::NodeProfile` [INFO] [stdout] --> src/core.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use data_model::NodeProfile; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `message::Message` [INFO] [stdout] --> src/core.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use message::Message; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Session` [INFO] [stdout] --> src/core.rs:6:15 [INFO] [stdout] | [INFO] [stdout] 6 | use session::{Session, SessionStorage}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `KeyType` and `PrivateKey` [INFO] [stdout] --> src/core/db.rs:1:49 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::core::data_model::{IDHash, INetAddr, KeyType, MSGSignature, PrivateKey, PubKey}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::core::settings::Settings` [INFO] [stdout] --> src/core/db.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::core::settings::Settings; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::core::crypto::Crypto` [INFO] [stdout] --> src/core/db.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::core::crypto::Crypto; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `write` [INFO] [stdout] --> src/core/message.rs:2:16 [INFO] [stdout] | [INFO] [stdout] 2 | use std::fmt::{write, Display, Formatter}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DBRecord` and `Database` [INFO] [stdout] --> src/core/session.rs:3:23 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::core::db::{DBRecord, Database}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::core::data_model::INetAddr` [INFO] [stdout] --> src/core/transport.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::core::data_model::INetAddr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::core::session::Session` [INFO] [stdout] --> src/core/transport.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::core::session::Session; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::core::data_model::NodeProfile` [INFO] [stdout] --> src/methods/invalid_method.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::core::data_model::NodeProfile; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `MessageType` [INFO] [stdout] --> src/methods/invalid_method.rs:2:37 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::core::message::{Message, MessageType}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::core::session::Session` [INFO] [stdout] --> src/methods/invalid_method.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::core::session::Session; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `SubSystems` and `message_types` [INFO] [stdout] --> src/methods/invalid_method.rs:5:19 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::core::{SubSystems, message_types}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::core::data_model::NodeProfile` [INFO] [stdout] --> src/methods/query_method.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::core::data_model::NodeProfile; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `MessageType` [INFO] [stdout] --> src/methods/query_method.rs:2:37 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::core::message::{Message, MessageType, MsgField}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::core::session::Session` [INFO] [stdout] --> src/methods/query_method.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::core::session::Session; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SubSystems` [INFO] [stdout] --> src/methods/query_method.rs:5:19 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::core::{SubSystems, message_types}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Display` and `Formatter` [INFO] [stdout] --> src/methods/query_method.rs:7:16 [INFO] [stdout] | [INFO] [stdout] 7 | use std::fmt::{Display, Formatter}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::core::data_model::NodeProfile` [INFO] [stdout] --> src/methods/auth_method.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::core::data_model::NodeProfile; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `MessageType` [INFO] [stdout] --> src/methods/auth_method.rs:2:37 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::core::message::{Message, MessageType, MsgField}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::core::session::Session` [INFO] [stdout] --> src/methods/auth_method.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::core::session::Session; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SubSystems` [INFO] [stdout] --> src/methods/auth_method.rs:5:19 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::core::{SubSystems, message_types}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Display` and `Formatter` [INFO] [stdout] --> src/methods/auth_method.rs:7:16 [INFO] [stdout] | [INFO] [stdout] 7 | use std::fmt::{Display, Formatter}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `futures::executor::block_on` [INFO] [stdout] --> src/transport/tcp.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use futures::executor::block_on; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `data_model::NodeProfile` [INFO] [stdout] --> src/core.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use data_model::NodeProfile; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `message::Message` [INFO] [stdout] --> src/core.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use message::Message; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Session` [INFO] [stdout] --> src/core.rs:6:15 [INFO] [stdout] | [INFO] [stdout] 6 | use session::{Session, SessionStorage}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `KeyType` and `PrivateKey` [INFO] [stdout] --> src/core/db.rs:1:49 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::core::data_model::{IDHash, INetAddr, KeyType, MSGSignature, PrivateKey, PubKey}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::core::settings::Settings` [INFO] [stdout] --> src/core/db.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::core::settings::Settings; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::core::crypto::Crypto` [INFO] [stdout] --> src/core/db.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::core::crypto::Crypto; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `write` [INFO] [stdout] --> src/core/message.rs:2:16 [INFO] [stdout] | [INFO] [stdout] 2 | use std::fmt::{write, Display, Formatter}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DBRecord` and `Database` [INFO] [stdout] --> src/core/session.rs:3:23 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::core::db::{DBRecord, Database}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::core::data_model::INetAddr` [INFO] [stdout] --> src/core/transport.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::core::data_model::INetAddr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::core::session::Session` [INFO] [stdout] --> src/core/transport.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::core::session::Session; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::core::data_model::NodeProfile` [INFO] [stdout] --> src/methods/invalid_method.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::core::data_model::NodeProfile; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `MessageType` [INFO] [stdout] --> src/methods/invalid_method.rs:2:37 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::core::message::{Message, MessageType}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::core::session::Session` [INFO] [stdout] --> src/methods/invalid_method.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::core::session::Session; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `SubSystems` and `message_types` [INFO] [stdout] --> src/methods/invalid_method.rs:5:19 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::core::{SubSystems, message_types}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::core::data_model::NodeProfile` [INFO] [stdout] --> src/methods/query_method.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::core::data_model::NodeProfile; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `MessageType` [INFO] [stdout] --> src/methods/query_method.rs:2:37 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::core::message::{Message, MessageType, MsgField}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::core::session::Session` [INFO] [stdout] --> src/methods/query_method.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::core::session::Session; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SubSystems` [INFO] [stdout] --> src/methods/query_method.rs:5:19 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::core::{SubSystems, message_types}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Display` and `Formatter` [INFO] [stdout] --> src/methods/query_method.rs:7:16 [INFO] [stdout] | [INFO] [stdout] 7 | use std::fmt::{Display, Formatter}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::core::data_model::NodeProfile` [INFO] [stdout] --> src/methods/auth_method.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::core::data_model::NodeProfile; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `MessageType` [INFO] [stdout] --> src/methods/auth_method.rs:2:37 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::core::message::{Message, MessageType, MsgField}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::core::session::Session` [INFO] [stdout] --> src/methods/auth_method.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::core::session::Session; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SubSystems` [INFO] [stdout] --> src/methods/auth_method.rs:5:19 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::core::{SubSystems, message_types}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Display` and `Formatter` [INFO] [stdout] --> src/methods/auth_method.rs:7:16 [INFO] [stdout] | [INFO] [stdout] 7 | use std::fmt::{Display, Formatter}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `futures::executor::block_on` [INFO] [stdout] --> src/transport/tcp.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use futures::executor::block_on; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `context` [INFO] [stdout] --> src/methods/invalid_method.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | context: MethodContext<'a>, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_context` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg` [INFO] [stdout] --> src/methods/invalid_method.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | msg: &Message, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `context` [INFO] [stdout] --> src/methods/invalid_method.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | context: MethodContext<'a>, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_context` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg` [INFO] [stdout] --> src/methods/invalid_method.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | msg: &Message, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> src/methods/auth_method.rs:35:18 [INFO] [stdout] | [INFO] [stdout] 35 | Some(other) => None, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> src/methods/auth_method.rs:35:18 [INFO] [stdout] | [INFO] [stdout] 35 | Some(other) => None, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `settings` [INFO] [stdout] --> src/transport/tcp.rs:28:19 [INFO] [stdout] | [INFO] [stdout] 28 | async fn init(settings: &settings::Section) -> Result> { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_settings` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `subsystem` [INFO] [stdout] --> src/transport/tcp.rs:34:19 [INFO] [stdout] | [INFO] [stdout] 34 | async fn fini(subsystem: Box) {} [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_subsystem` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `settings` [INFO] [stdout] --> src/transport/tcp.rs:28:19 [INFO] [stdout] | [INFO] [stdout] 28 | async fn init(settings: &settings::Section) -> Result> { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_settings` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `subsystem` [INFO] [stdout] --> src/transport/tcp.rs:34:19 [INFO] [stdout] | [INFO] [stdout] 34 | async fn fini(subsystem: Box) {} [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_subsystem` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `key_type` and `key` are never read [INFO] [stdout] --> src/core/data_model.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct PubKey { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 13 | key_type: KeyType, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 14 | key: String, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PubKey` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `key_type` and `key` are never read [INFO] [stdout] --> src/core/data_model.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct PrivateKey { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 19 | key_type: KeyType, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 20 | key: String, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PrivateKey` 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 `inet_type` and `addr` are never read [INFO] [stdout] --> src/core/data_model.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 30 | pub struct INetAddr { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 31 | inet_type: INetType, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 32 | addr: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `INetAddr` 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 `key_type` and `sig` are never read [INFO] [stdout] --> src/core/data_model.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 36 | pub struct MSGSignature { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 37 | key_type: KeyType, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 38 | sig: String, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MSGSignature` 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 `node_name`, `node_id`, `id_hash`, `pubkey`, and `private_key` are never read [INFO] [stdout] --> src/core/data_model.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 42 | pub struct NodeProfile { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 43 | node_name: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 44 | node_id: ID, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 45 | id_hash: IDHash, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 46 | pubkey: PubKey, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 47 | private_key: PrivateKey, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `NodeProfile` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Result` is never used [INFO] [stdout] --> src/core/message_serializer.rs:5:6 [INFO] [stdout] | [INFO] [stdout] 5 | type Result = std::result::Result>; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `InvalidFieldType` is never constructed [INFO] [stdout] --> src/methods.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | struct InvalidFieldType<'a>{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `addr` is never read [INFO] [stdout] --> src/transport/tcp.rs:18:16 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct TcpSession { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 18 | pub(crate) addr: std::net::SocketAddr, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> src/core.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | async fn init(settings: &settings::Section) -> Result>; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] = note: `#[warn(async_fn_in_trait)]` on by default [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 35 - async fn init(settings: &settings::Section) -> Result>; [INFO] [stdout] 35 + fn init(settings: &settings::Section) -> impl std::future::Future>> + Send; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> src/core.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | async fn fini(subsystem: Box); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 36 - async fn fini(subsystem: Box); [INFO] [stdout] 36 + fn fini(subsystem: Box) -> impl std::future::Future + Send; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> src/core/methods.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | async fn handle(&mut self, context: MethodContext<'a>, msg: &crate::core::message::Message) -> crate::core::Result, msg: &crate::core::message::Message) -> crate::core::Result; [INFO] [stdout] 12 + fn handle(&mut self, context: MethodContext<'a>, msg: &crate::core::message::Message) -> impl std::future::Future> + Send; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `key_type` and `key` are never read [INFO] [stdout] --> src/core/data_model.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct PubKey { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 13 | key_type: KeyType, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 14 | key: String, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PubKey` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `key_type` and `key` are never read [INFO] [stdout] --> src/core/data_model.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct PrivateKey { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 19 | key_type: KeyType, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 20 | key: String, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PrivateKey` 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 `inet_type` and `addr` are never read [INFO] [stdout] --> src/core/data_model.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 30 | pub struct INetAddr { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 31 | inet_type: INetType, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 32 | addr: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `INetAddr` 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 `key_type` and `sig` are never read [INFO] [stdout] --> src/core/data_model.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 36 | pub struct MSGSignature { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 37 | key_type: KeyType, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 38 | sig: String, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MSGSignature` 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 `node_name`, `node_id`, `id_hash`, `pubkey`, and `private_key` are never read [INFO] [stdout] --> src/core/data_model.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 42 | pub struct NodeProfile { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 43 | node_name: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 44 | node_id: ID, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 45 | id_hash: IDHash, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 46 | pubkey: PubKey, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 47 | private_key: PrivateKey, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `NodeProfile` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Result` is never used [INFO] [stdout] --> src/core/message_serializer.rs:5:6 [INFO] [stdout] | [INFO] [stdout] 5 | type Result = std::result::Result>; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `InvalidFieldType` is never constructed [INFO] [stdout] --> src/methods.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | struct InvalidFieldType<'a>{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `addr` is never read [INFO] [stdout] --> src/transport/tcp.rs:18:16 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct TcpSession { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 18 | pub(crate) addr: std::net::SocketAddr, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> src/core.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | async fn init(settings: &settings::Section) -> Result>; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] = note: `#[warn(async_fn_in_trait)]` on by default [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 35 - async fn init(settings: &settings::Section) -> Result>; [INFO] [stdout] 35 + fn init(settings: &settings::Section) -> impl std::future::Future>> + Send; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> src/core.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | async fn fini(subsystem: Box); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 36 - async fn fini(subsystem: Box); [INFO] [stdout] 36 + fn fini(subsystem: Box) -> impl std::future::Future + Send; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> src/core/methods.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | async fn handle(&mut self, context: MethodContext<'a>, msg: &crate::core::message::Message) -> crate::core::Result, msg: &crate::core::message::Message) -> crate::core::Result; [INFO] [stdout] 12 + fn handle(&mut self, context: MethodContext<'a>, msg: &crate::core::message::Message) -> impl std::future::Future> + Send; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `discovery::transport::*` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use discovery::transport::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `discovery::transport::*` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use discovery::transport::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 20.87s [INFO] running `Command { std: "docker" "inspect" "ac9f1e29f2214a54d822d9279d2c25fb26131e938f66e17736c1ed74c5471071", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ac9f1e29f2214a54d822d9279d2c25fb26131e938f66e17736c1ed74c5471071", kill_on_drop: false }` [INFO] [stdout] ac9f1e29f2214a54d822d9279d2c25fb26131e938f66e17736c1ed74c5471071