[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 c0bbd1b6d95c5dc13a0e7f2e2c5dfb0387e1f2d4 for pr-161358 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsajadbanooie%2Fdiscovery-rs" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-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-1-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/sajadbanooie/discovery-rs on toolchain c0bbd1b6d95c5dc13a0e7f2e2c5dfb0387e1f2d4 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c0bbd1b6d95c5dc13a0e7f2e2c5dfb0387e1f2d4" "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" "+c0bbd1b6d95c5dc13a0e7f2e2c5dfb0387e1f2d4" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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] ca8077feda1aa0b329c6fd4bfb8c4f6fab8b97080a1a5c3de5c7037f5dba7a25 [INFO] running `Command { std: "docker" "start" "ca8077feda1aa0b329c6fd4bfb8c4f6fab8b97080a1a5c3de5c7037f5dba7a25", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ca8077feda1aa0b329c6fd4bfb8c4f6fab8b97080a1a5c3de5c7037f5dba7a25", 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" "ca8077feda1aa0b329c6fd4bfb8c4f6fab8b97080a1a5c3de5c7037f5dba7a25" "/opt/rustwide/cargo-home/bin/cargo" "+c0bbd1b6d95c5dc13a0e7f2e2c5dfb0387e1f2d4" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ca8077feda1aa0b329c6fd4bfb8c4f6fab8b97080a1a5c3de5c7037f5dba7a25", 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" "ca8077feda1aa0b329c6fd4bfb8c4f6fab8b97080a1a5c3de5c7037f5dba7a25" "/opt/rustwide/cargo-home/bin/cargo" "+c0bbd1b6d95c5dc13a0e7f2e2c5dfb0387e1f2d4" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] Checking futures-sink v0.3.32 [INFO] [stderr] Checking tracing v0.1.44 [INFO] [stderr] Checking indexmap v2.14.0 [INFO] [stderr] Compiling syn v2.0.117 [INFO] [stderr] Checking parking_lot_core v0.9.12 [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 futures-channel v0.3.32 [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 tokio v1.52.3 [INFO] [stderr] Checking futures-util v0.3.32 [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] error[E0038]: the trait `ImplFor` is not dyn compatible [INFO] [stdout] --> src/core/crypto.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | pub type CryptoImpl = dyn ImplFor; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ `ImplFor` is not dyn compatible [INFO] [stdout] | [INFO] [stdout] note: for a trait to be dyn compatible it needs to allow building a vtable [INFO] [stdout] for more information, visit [INFO] [stdout] --> src/core.rs:35:14 [INFO] [stdout] | [INFO] [stdout] 33 | pub trait ImplFor { [INFO] [stdout] | ------- this trait is not dyn compatible... [INFO] [stdout] 34 | type SubSystem; [INFO] [stdout] 35 | async fn init(settings: &settings::Section) -> Result>; [INFO] [stdout] | ^^^^ ...because associated function `init` has no `self` parameter [INFO] [stdout] 36 | async fn fini(subsystem: Box); [INFO] [stdout] | ^^^^ ...because associated function `fini` has no `self` parameter [INFO] [stdout] = help: only type `transport::tcp::TcpTransportPlugin` implements `ImplFor` within this crate; consider using it directly instead. [INFO] [stdout] = note: `ImplFor` may be implemented in other crates; if you want to support your users passing their own types here, you can't refer to a specific type [INFO] [stdout] help: consider turning `init` into a method by giving it a `&self` argument [INFO] [stdout] --> src/core.rs:35:19 [INFO] [stdout] | [INFO] [stdout] 35 | async fn init(&self, settings: &settings::Section) -> Result>; [INFO] [stdout] | ++++++ [INFO] [stdout] help: alternatively, consider constraining `init` so it does not apply to trait objects [INFO] [stdout] --> src/core.rs:35:80 [INFO] [stdout] | [INFO] [stdout] 35 | async fn init(settings: &settings::Section) -> Result> where Self: Sized; [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] help: consider turning `fini` into a method by giving it a `&self` argument [INFO] [stdout] --> src/core.rs:36:19 [INFO] [stdout] | [INFO] [stdout] 36 | async fn fini(&self, subsystem: Box); [INFO] [stdout] | ++++++ [INFO] [stdout] help: alternatively, consider constraining `fini` so it does not apply to trait objects [INFO] [stdout] --> src/core.rs:36:51 [INFO] [stdout] | [INFO] [stdout] 36 | async fn fini(subsystem: Box) where Self: Sized; [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0038]: the trait `ImplFor` is not dyn compatible [INFO] [stdout] --> src/core/db.rs:25:1 [INFO] [stdout] | [INFO] [stdout] 25 | pub type DatabaseImpl = dyn ImplFor; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ `ImplFor` is not dyn compatible [INFO] [stdout] | [INFO] [stdout] note: for a trait to be dyn compatible it needs to allow building a vtable [INFO] [stdout] for more information, visit [INFO] [stdout] --> src/core.rs:35:14 [INFO] [stdout] | [INFO] [stdout] 33 | pub trait ImplFor { [INFO] [stdout] | ------- this trait is not dyn compatible... [INFO] [stdout] 34 | type SubSystem; [INFO] [stdout] 35 | async fn init(settings: &settings::Section) -> Result>; [INFO] [stdout] | ^^^^ ...because associated function `init` has no `self` parameter [INFO] [stdout] 36 | async fn fini(subsystem: Box); [INFO] [stdout] | ^^^^ ...because associated function `fini` has no `self` parameter [INFO] [stdout] = help: only type `transport::tcp::TcpTransportPlugin` implements `ImplFor` within this crate; consider using it directly instead. [INFO] [stdout] = note: `ImplFor` may be implemented in other crates; if you want to support your users passing their own types here, you can't refer to a specific type [INFO] [stdout] help: consider turning `init` into a method by giving it a `&self` argument [INFO] [stdout] --> src/core.rs:35:19 [INFO] [stdout] | [INFO] [stdout] 35 | async fn init(&self, settings: &settings::Section) -> Result>; [INFO] [stdout] | ++++++ [INFO] [stdout] help: alternatively, consider constraining `init` so it does not apply to trait objects [INFO] [stdout] --> src/core.rs:35:80 [INFO] [stdout] | [INFO] [stdout] 35 | async fn init(settings: &settings::Section) -> Result> where Self: Sized; [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] help: consider turning `fini` into a method by giving it a `&self` argument [INFO] [stdout] --> src/core.rs:36:19 [INFO] [stdout] | [INFO] [stdout] 36 | async fn fini(&self, subsystem: Box); [INFO] [stdout] | ++++++ [INFO] [stdout] help: alternatively, consider constraining `fini` so it does not apply to trait objects [INFO] [stdout] --> src/core.rs:36:51 [INFO] [stdout] | [INFO] [stdout] 36 | async fn fini(subsystem: Box) where Self: Sized; [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0038]: the trait `ImplFor` is not dyn compatible [INFO] [stdout] --> src/core/message_serializer.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | pub type MessageSerializerImpl = dyn ImplFor; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `ImplFor` is not dyn compatible [INFO] [stdout] | [INFO] [stdout] note: for a trait to be dyn compatible it needs to allow building a vtable [INFO] [stdout] for more information, visit [INFO] [stdout] --> src/core.rs:35:14 [INFO] [stdout] | [INFO] [stdout] 33 | pub trait ImplFor { [INFO] [stdout] | ------- this trait is not dyn compatible... [INFO] [stdout] 34 | type SubSystem; [INFO] [stdout] 35 | async fn init(settings: &settings::Section) -> Result>; [INFO] [stdout] | ^^^^ ...because associated function `init` has no `self` parameter [INFO] [stdout] 36 | async fn fini(subsystem: Box); [INFO] [stdout] | ^^^^ ...because associated function `fini` has no `self` parameter [INFO] [stdout] = help: only type `transport::tcp::TcpTransportPlugin` implements `ImplFor` within this crate; consider using it directly instead. [INFO] [stdout] = note: `ImplFor` may be implemented in other crates; if you want to support your users passing their own types here, you can't refer to a specific type [INFO] [stdout] help: consider turning `init` into a method by giving it a `&self` argument [INFO] [stdout] --> src/core.rs:35:19 [INFO] [stdout] | [INFO] [stdout] 35 | async fn init(&self, settings: &settings::Section) -> Result>; [INFO] [stdout] | ++++++ [INFO] [stdout] help: alternatively, consider constraining `init` so it does not apply to trait objects [INFO] [stdout] --> src/core.rs:35:80 [INFO] [stdout] | [INFO] [stdout] 35 | async fn init(settings: &settings::Section) -> Result> where Self: Sized; [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] help: consider turning `fini` into a method by giving it a `&self` argument [INFO] [stdout] --> src/core.rs:36:19 [INFO] [stdout] | [INFO] [stdout] 36 | async fn fini(&self, subsystem: Box); [INFO] [stdout] | ++++++ [INFO] [stdout] help: alternatively, consider constraining `fini` so it does not apply to trait objects [INFO] [stdout] --> src/core.rs:36:51 [INFO] [stdout] | [INFO] [stdout] 36 | async fn fini(subsystem: Box) where Self: Sized; [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0038]: the trait `ImplFor` is not dyn compatible [INFO] [stdout] --> src/core/session.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22 | pub type SessionStorageImpl = dyn ImplFor; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ `ImplFor` is not dyn compatible [INFO] [stdout] | [INFO] [stdout] note: for a trait to be dyn compatible it needs to allow building a vtable [INFO] [stdout] for more information, visit [INFO] [stdout] --> src/core.rs:35:14 [INFO] [stdout] | [INFO] [stdout] 33 | pub trait ImplFor { [INFO] [stdout] | ------- this trait is not dyn compatible... [INFO] [stdout] 34 | type SubSystem; [INFO] [stdout] 35 | async fn init(settings: &settings::Section) -> Result>; [INFO] [stdout] | ^^^^ ...because associated function `init` has no `self` parameter [INFO] [stdout] 36 | async fn fini(subsystem: Box); [INFO] [stdout] | ^^^^ ...because associated function `fini` has no `self` parameter [INFO] [stdout] = help: only type `transport::tcp::TcpTransportPlugin` implements `ImplFor` within this crate; consider using it directly instead. [INFO] [stdout] = note: `ImplFor` may be implemented in other crates; if you want to support your users passing their own types here, you can't refer to a specific type [INFO] [stdout] help: consider turning `init` into a method by giving it a `&self` argument [INFO] [stdout] --> src/core.rs:35:19 [INFO] [stdout] | [INFO] [stdout] 35 | async fn init(&self, settings: &settings::Section) -> Result>; [INFO] [stdout] | ++++++ [INFO] [stdout] help: alternatively, consider constraining `init` so it does not apply to trait objects [INFO] [stdout] --> src/core.rs:35:80 [INFO] [stdout] | [INFO] [stdout] 35 | async fn init(settings: &settings::Section) -> Result> where Self: Sized; [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] help: consider turning `fini` into a method by giving it a `&self` argument [INFO] [stdout] --> src/core.rs:36:19 [INFO] [stdout] | [INFO] [stdout] 36 | async fn fini(&self, subsystem: Box); [INFO] [stdout] | ++++++ [INFO] [stdout] help: alternatively, consider constraining `fini` so it does not apply to trait objects [INFO] [stdout] --> src/core.rs:36:51 [INFO] [stdout] | [INFO] [stdout] 36 | async fn fini(subsystem: Box) where Self: Sized; [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0038]: the trait `ImplFor` is not dyn compatible [INFO] [stdout] --> src/core/transport.rs:42:1 [INFO] [stdout] | [INFO] [stdout] 42 | pub type TransportImpl = dyn ImplFor; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ `ImplFor` is not dyn compatible [INFO] [stdout] | [INFO] [stdout] note: for a trait to be dyn compatible it needs to allow building a vtable [INFO] [stdout] for more information, visit [INFO] [stdout] --> src/core.rs:35:14 [INFO] [stdout] | [INFO] [stdout] 33 | pub trait ImplFor { [INFO] [stdout] | ------- this trait is not dyn compatible... [INFO] [stdout] 34 | type SubSystem; [INFO] [stdout] 35 | async fn init(settings: &settings::Section) -> Result>; [INFO] [stdout] | ^^^^ ...because associated function `init` has no `self` parameter [INFO] [stdout] 36 | async fn fini(subsystem: Box); [INFO] [stdout] | ^^^^ ...because associated function `fini` has no `self` parameter [INFO] [stdout] = help: only type `transport::tcp::TcpTransportPlugin` implements `ImplFor` within this crate; consider using it directly instead. [INFO] [stdout] = note: `ImplFor` may be implemented in other crates; if you want to support your users passing their own types here, you can't refer to a specific type [INFO] [stdout] help: consider turning `init` into a method by giving it a `&self` argument [INFO] [stdout] --> src/core.rs:35:19 [INFO] [stdout] | [INFO] [stdout] 35 | async fn init(&self, settings: &settings::Section) -> Result>; [INFO] [stdout] | ++++++ [INFO] [stdout] help: alternatively, consider constraining `init` so it does not apply to trait objects [INFO] [stdout] --> src/core.rs:35:80 [INFO] [stdout] | [INFO] [stdout] 35 | async fn init(settings: &settings::Section) -> Result> where Self: Sized; [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] help: consider turning `fini` into a method by giving it a `&self` argument [INFO] [stdout] --> src/core.rs:36:19 [INFO] [stdout] | [INFO] [stdout] 36 | async fn fini(&self, subsystem: Box); [INFO] [stdout] | ++++++ [INFO] [stdout] help: alternatively, consider constraining `fini` so it does not apply to trait objects [INFO] [stdout] --> src/core.rs:36:51 [INFO] [stdout] | [INFO] [stdout] 36 | async fn fini(subsystem: Box) where Self: Sized; [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] error[E0038]: the trait `ImplFor` is not dyn compatible [INFO] [stdout] --> src/core/crypto.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | pub type CryptoImpl = dyn ImplFor; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ `ImplFor` is not dyn compatible [INFO] [stdout] | [INFO] [stdout] note: for a trait to be dyn compatible it needs to allow building a vtable [INFO] [stdout] for more information, visit [INFO] [stdout] --> src/core.rs:35:14 [INFO] [stdout] | [INFO] [stdout] 33 | pub trait ImplFor { [INFO] [stdout] | ------- this trait is not dyn compatible... [INFO] [stdout] 34 | type SubSystem; [INFO] [stdout] 35 | async fn init(settings: &settings::Section) -> Result>; [INFO] [stdout] | ^^^^ ...because associated function `init` has no `self` parameter [INFO] [stdout] 36 | async fn fini(subsystem: Box); [INFO] [stdout] | ^^^^ ...because associated function `fini` has no `self` parameter [INFO] [stdout] = help: only type `transport::tcp::TcpTransportPlugin` implements `ImplFor` within this crate; consider using it directly instead. [INFO] [stdout] = note: `ImplFor` may be implemented in other crates; if you want to support your users passing their own types here, you can't refer to a specific type [INFO] [stdout] help: consider turning `init` into a method by giving it a `&self` argument [INFO] [stdout] --> src/core.rs:35:19 [INFO] [stdout] | [INFO] [stdout] 35 | async fn init(&self, settings: &settings::Section) -> Result>; [INFO] [stdout] | ++++++ [INFO] [stdout] help: alternatively, consider constraining `init` so it does not apply to trait objects [INFO] [stdout] --> src/core.rs:35:80 [INFO] [stdout] | [INFO] [stdout] 35 | async fn init(settings: &settings::Section) -> Result> where Self: Sized; [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] help: consider turning `fini` into a method by giving it a `&self` argument [INFO] [stdout] --> src/core.rs:36:19 [INFO] [stdout] | [INFO] [stdout] 36 | async fn fini(&self, subsystem: Box); [INFO] [stdout] | ++++++ [INFO] [stdout] help: alternatively, consider constraining `fini` so it does not apply to trait objects [INFO] [stdout] --> src/core.rs:36:51 [INFO] [stdout] | [INFO] [stdout] 36 | async fn fini(subsystem: Box) where Self: Sized; [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0038]: the trait `ImplFor` is not dyn compatible [INFO] [stdout] --> src/core/db.rs:25:1 [INFO] [stdout] | [INFO] [stdout] 25 | pub type DatabaseImpl = dyn ImplFor; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ `ImplFor` is not dyn compatible [INFO] [stdout] | [INFO] [stdout] note: for a trait to be dyn compatible it needs to allow building a vtable [INFO] [stdout] for more information, visit [INFO] [stdout] --> src/core.rs:35:14 [INFO] [stdout] | [INFO] [stdout] 33 | pub trait ImplFor { [INFO] [stdout] | ------- this trait is not dyn compatible... [INFO] [stdout] 34 | type SubSystem; [INFO] [stdout] 35 | async fn init(settings: &settings::Section) -> Result>; [INFO] [stdout] | ^^^^ ...because associated function `init` has no `self` parameter [INFO] [stdout] 36 | async fn fini(subsystem: Box); [INFO] [stdout] | ^^^^ ...because associated function `fini` has no `self` parameter [INFO] [stdout] = help: only type `transport::tcp::TcpTransportPlugin` implements `ImplFor` within this crate; consider using it directly instead. [INFO] [stdout] = note: `ImplFor` may be implemented in other crates; if you want to support your users passing their own types here, you can't refer to a specific type [INFO] [stdout] help: consider turning `init` into a method by giving it a `&self` argument [INFO] [stdout] --> src/core.rs:35:19 [INFO] [stdout] | [INFO] [stdout] 35 | async fn init(&self, settings: &settings::Section) -> Result>; [INFO] [stdout] | ++++++ [INFO] [stdout] help: alternatively, consider constraining `init` so it does not apply to trait objects [INFO] [stdout] --> src/core.rs:35:80 [INFO] [stdout] | [INFO] [stdout] 35 | async fn init(settings: &settings::Section) -> Result> where Self: Sized; [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] help: consider turning `fini` into a method by giving it a `&self` argument [INFO] [stdout] --> src/core.rs:36:19 [INFO] [stdout] | [INFO] [stdout] 36 | async fn fini(&self, subsystem: Box); [INFO] [stdout] | ++++++ [INFO] [stdout] help: alternatively, consider constraining `fini` so it does not apply to trait objects [INFO] [stdout] --> src/core.rs:36:51 [INFO] [stdout] | [INFO] [stdout] 36 | async fn fini(subsystem: Box) where Self: Sized; [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0038]: the trait `ImplFor` is not dyn compatible [INFO] [stdout] --> src/core/message_serializer.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | pub type MessageSerializerImpl = dyn ImplFor; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `ImplFor` is not dyn compatible [INFO] [stdout] | [INFO] [stdout] note: for a trait to be dyn compatible it needs to allow building a vtable [INFO] [stdout] for more information, visit [INFO] [stdout] --> src/core.rs:35:14 [INFO] [stdout] | [INFO] [stdout] 33 | pub trait ImplFor { [INFO] [stdout] | ------- this trait is not dyn compatible... [INFO] [stdout] 34 | type SubSystem; [INFO] [stdout] 35 | async fn init(settings: &settings::Section) -> Result>; [INFO] [stdout] | ^^^^ ...because associated function `init` has no `self` parameter [INFO] [stdout] 36 | async fn fini(subsystem: Box); [INFO] [stdout] | ^^^^ ...because associated function `fini` has no `self` parameter [INFO] [stdout] = help: only type `transport::tcp::TcpTransportPlugin` implements `ImplFor` within this crate; consider using it directly instead. [INFO] [stdout] = note: `ImplFor` may be implemented in other crates; if you want to support your users passing their own types here, you can't refer to a specific type [INFO] [stdout] help: consider turning `init` into a method by giving it a `&self` argument [INFO] [stdout] --> src/core.rs:35:19 [INFO] [stdout] | [INFO] [stdout] 35 | async fn init(&self, settings: &settings::Section) -> Result>; [INFO] [stdout] | ++++++ [INFO] [stdout] help: alternatively, consider constraining `init` so it does not apply to trait objects [INFO] [stdout] --> src/core.rs:35:80 [INFO] [stdout] | [INFO] [stdout] 35 | async fn init(settings: &settings::Section) -> Result> where Self: Sized; [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] help: consider turning `fini` into a method by giving it a `&self` argument [INFO] [stdout] --> src/core.rs:36:19 [INFO] [stdout] | [INFO] [stdout] 36 | async fn fini(&self, subsystem: Box); [INFO] [stdout] | ++++++ [INFO] [stdout] help: alternatively, consider constraining `fini` so it does not apply to trait objects [INFO] [stdout] --> src/core.rs:36:51 [INFO] [stdout] | [INFO] [stdout] 36 | async fn fini(subsystem: Box) where Self: Sized; [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0038]: the trait `ImplFor` is not dyn compatible [INFO] [stdout] --> src/core/session.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22 | pub type SessionStorageImpl = dyn ImplFor; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ `ImplFor` is not dyn compatible [INFO] [stdout] | [INFO] [stdout] note: for a trait to be dyn compatible it needs to allow building a vtable [INFO] [stdout] for more information, visit [INFO] [stdout] --> src/core.rs:35:14 [INFO] [stdout] | [INFO] [stdout] 33 | pub trait ImplFor { [INFO] [stdout] | ------- this trait is not dyn compatible... [INFO] [stdout] 34 | type SubSystem; [INFO] [stdout] 35 | async fn init(settings: &settings::Section) -> Result>; [INFO] [stdout] | ^^^^ ...because associated function `init` has no `self` parameter [INFO] [stdout] 36 | async fn fini(subsystem: Box); [INFO] [stdout] | ^^^^ ...because associated function `fini` has no `self` parameter [INFO] [stdout] = help: only type `transport::tcp::TcpTransportPlugin` implements `ImplFor` within this crate; consider using it directly instead. [INFO] [stdout] = note: `ImplFor` may be implemented in other crates; if you want to support your users passing their own types here, you can't refer to a specific type [INFO] [stdout] help: consider turning `init` into a method by giving it a `&self` argument [INFO] [stdout] --> src/core.rs:35:19 [INFO] [stdout] | [INFO] [stdout] 35 | async fn init(&self, settings: &settings::Section) -> Result>; [INFO] [stdout] | ++++++ [INFO] [stdout] help: alternatively, consider constraining `init` so it does not apply to trait objects [INFO] [stdout] --> src/core.rs:35:80 [INFO] [stdout] | [INFO] [stdout] 35 | async fn init(settings: &settings::Section) -> Result> where Self: Sized; [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] help: consider turning `fini` into a method by giving it a `&self` argument [INFO] [stdout] --> src/core.rs:36:19 [INFO] [stdout] | [INFO] [stdout] 36 | async fn fini(&self, subsystem: Box); [INFO] [stdout] | ++++++ [INFO] [stdout] help: alternatively, consider constraining `fini` so it does not apply to trait objects [INFO] [stdout] --> src/core.rs:36:51 [INFO] [stdout] | [INFO] [stdout] 36 | async fn fini(subsystem: Box) where Self: Sized; [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0038]: the trait `ImplFor` is not dyn compatible [INFO] [stdout] --> src/core/transport.rs:42:1 [INFO] [stdout] | [INFO] [stdout] 42 | pub type TransportImpl = dyn ImplFor; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ `ImplFor` is not dyn compatible [INFO] [stdout] | [INFO] [stdout] note: for a trait to be dyn compatible it needs to allow building a vtable [INFO] [stdout] for more information, visit [INFO] [stdout] --> src/core.rs:35:14 [INFO] [stdout] | [INFO] [stdout] 33 | pub trait ImplFor { [INFO] [stdout] | ------- this trait is not dyn compatible... [INFO] [stdout] 34 | type SubSystem; [INFO] [stdout] 35 | async fn init(settings: &settings::Section) -> Result>; [INFO] [stdout] | ^^^^ ...because associated function `init` has no `self` parameter [INFO] [stdout] 36 | async fn fini(subsystem: Box); [INFO] [stdout] | ^^^^ ...because associated function `fini` has no `self` parameter [INFO] [stdout] = help: only type `transport::tcp::TcpTransportPlugin` implements `ImplFor` within this crate; consider using it directly instead. [INFO] [stdout] = note: `ImplFor` may be implemented in other crates; if you want to support your users passing their own types here, you can't refer to a specific type [INFO] [stdout] help: consider turning `init` into a method by giving it a `&self` argument [INFO] [stdout] --> src/core.rs:35:19 [INFO] [stdout] | [INFO] [stdout] 35 | async fn init(&self, settings: &settings::Section) -> Result>; [INFO] [stdout] | ++++++ [INFO] [stdout] help: alternatively, consider constraining `init` so it does not apply to trait objects [INFO] [stdout] --> src/core.rs:35:80 [INFO] [stdout] | [INFO] [stdout] 35 | async fn init(settings: &settings::Section) -> Result> where Self: Sized; [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] help: consider turning `fini` into a method by giving it a `&self` argument [INFO] [stdout] --> src/core.rs:36:19 [INFO] [stdout] | [INFO] [stdout] 36 | async fn fini(&self, subsystem: Box); [INFO] [stdout] | ++++++ [INFO] [stdout] help: alternatively, consider constraining `fini` so it does not apply to trait objects [INFO] [stdout] --> src/core.rs:36:51 [INFO] [stdout] | [INFO] [stdout] 36 | async fn fini(subsystem: Box) where Self: Sized; [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: `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] For more information about this error, try `rustc --explain E0038`. [INFO] [stdout] [INFO] [stderr] error: could not compile `discovery` (lib) due to 5 previous errors; 30 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [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: `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] For more information about this error, try `rustc --explain E0038`. [INFO] [stdout] [INFO] [stderr] error: could not compile `discovery` (lib test) due to 5 previous errors; 30 warnings emitted [INFO] running `Command { std: "docker" "inspect" "ca8077feda1aa0b329c6fd4bfb8c4f6fab8b97080a1a5c3de5c7037f5dba7a25", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ca8077feda1aa0b329c6fd4bfb8c4f6fab8b97080a1a5c3de5c7037f5dba7a25", kill_on_drop: false }` [INFO] [stdout] ca8077feda1aa0b329c6fd4bfb8c4f6fab8b97080a1a5c3de5c7037f5dba7a25