[INFO] cloning repository https://github.com/diegopy/p2pcontroller [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/diegopy/p2pcontroller" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdiegopy%2Fp2pcontroller", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdiegopy%2Fp2pcontroller'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] f8a5ca754dec34101c33f0474082368162050481 [INFO] checking diegopy/p2pcontroller against master#af4a5a13a15fa0c60e06321077ef452f769b42fd for pr-122960-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdiegopy%2Fp2pcontroller" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/diegopy/p2pcontroller on toolchain af4a5a13a15fa0c60e06321077ef452f769b42fd [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/diegopy/p2pcontroller [INFO] finished tweaking git repo https://github.com/diegopy/p2pcontroller [INFO] tweaked toml for git repo https://github.com/diegopy/p2pcontroller written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/diegopy/p2pcontroller 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" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [ERROR] this task or one of its parent failed! [ERROR] no output for 300 seconds [ERROR] note: run with `RUST_BACKTRACE=1` to display a backtrace. [INFO] checking diegopy/p2pcontroller against try#36dbcaee1a55543dfc181be52a69d99ff46ff62f for pr-122960-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdiegopy%2Fp2pcontroller" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/diegopy/p2pcontroller on toolchain 36dbcaee1a55543dfc181be52a69d99ff46ff62f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/diegopy/p2pcontroller [INFO] finished tweaking git repo https://github.com/diegopy/p2pcontroller [INFO] tweaked toml for git repo https://github.com/diegopy/p2pcontroller written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/diegopy/p2pcontroller 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" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 56997cd2e324960e19ff68ff319ba631aad6cb46e0f1c146d57eae0a7c2bcf6f [INFO] running `Command { std: "docker" "start" "-a" "56997cd2e324960e19ff68ff319ba631aad6cb46e0f1c146d57eae0a7c2bcf6f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "56997cd2e324960e19ff68ff319ba631aad6cb46e0f1c146d57eae0a7c2bcf6f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "56997cd2e324960e19ff68ff319ba631aad6cb46e0f1c146d57eae0a7c2bcf6f", kill_on_drop: false }` [INFO] [stdout] 56997cd2e324960e19ff68ff319ba631aad6cb46e0f1c146d57eae0a7c2bcf6f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 613d412afbe6b70960ca2f4bff31c587bcb06f049978e9c53f76c839f0a1fada [INFO] running `Command { std: "docker" "start" "-a" "613d412afbe6b70960ca2f4bff31c587bcb06f049978e9c53f76c839f0a1fada", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Compiling proc-macro2 v1.0.36 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling syn v1.0.86 [INFO] [stderr] Compiling libc v0.2.119 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling futures-core v0.3.21 [INFO] [stderr] Compiling serde_derive v1.0.136 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling futures-channel v0.3.21 [INFO] [stderr] Compiling serde v1.0.136 [INFO] [stderr] Compiling futures-task v0.3.21 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Checking pin-project-lite v0.2.8 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling rustversion v1.0.6 [INFO] [stderr] Compiling futures-util v0.3.21 [INFO] [stderr] Checking futures-sink v0.3.21 [INFO] [stderr] Compiling heck v0.4.0 [INFO] [stderr] Compiling indexmap v1.8.0 [INFO] [stderr] Checking futures-io v0.3.21 [INFO] [stderr] Checking slab v0.4.5 [INFO] [stderr] Compiling parking_lot_core v0.9.1 [INFO] [stderr] Compiling quote v1.0.15 [INFO] [stderr] Compiling serde_json v1.0.79 [INFO] [stderr] Checking smallvec v1.8.0 [INFO] [stderr] Checking hashbrown v0.11.2 [INFO] [stderr] Compiling anyhow v1.0.55 [INFO] [stderr] Checking mio v0.8.0 [INFO] [stderr] Checking lock_api v0.4.6 [INFO] [stderr] Checking num_cpus v1.13.1 [INFO] [stderr] Checking socket2 v0.4.4 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking os_str_bytes v6.0.0 [INFO] [stderr] Checking strsim v0.10.0 [INFO] [stderr] Checking num_threads v0.1.3 [INFO] [stderr] Checking ryu v1.0.9 [INFO] [stderr] Checking textwrap v0.15.0 [INFO] [stderr] Checking termcolor v1.1.3 [INFO] [stderr] Checking itoa v1.0.1 [INFO] [stderr] Checking parking_lot v0.12.0 [INFO] [stderr] Compiling futures-macro v0.3.21 [INFO] [stderr] Compiling clap_derive v3.1.4 [INFO] [stderr] Compiling tokio-macros v1.7.0 [INFO] [stderr] Compiling strum_macros v0.24.0 [INFO] [stderr] Checking tokio v1.17.0 [INFO] [stderr] Checking strum v0.24.0 [INFO] [stderr] Checking clap v3.1.5 [INFO] [stderr] Checking futures-executor v0.3.21 [INFO] [stderr] Checking futures v0.3.21 [INFO] [stderr] Checking time v0.3.7 [INFO] [stderr] Checking toml v0.5.8 [INFO] [stderr] Checking p2pcontroller v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2021 edition to 2024 [INFO] [stderr] Fixed src/network/mod.rs (1 fix) [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/network/controller.rs:109:5 [INFO] [stdout] | [INFO] [stdout] 109 | config: Config, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `state` is never read [INFO] [stdout] --> src/network/controller.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 37 | pub struct NetworkController { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 41 | state: Arc, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `feedback_peer_alive` is never used [INFO] [stdout] --> src/network/controller.rs:94:12 [INFO] [stdout] | [INFO] [stdout] 44 | impl NetworkController { [INFO] [stdout] | ---------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 94 | pub fn feedback_peer_alive(&self, address: SocketAddr, is_outgoing: bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `in_alive_count`, `in_handshacking_count`, and `set_peer_alive` are never used [INFO] [stdout] --> src/network/controller.rs:243:12 [INFO] [stdout] | [INFO] [stdout] 235 | impl ControllerState { [INFO] [stdout] | -------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 243 | pub fn in_alive_count(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 247 | pub fn in_handshacking_count(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 306 | pub fn set_peer_alive(&self, address: SocketAddr, is_outgoing: bool) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `OutConnecting`, `OutAlive`, and `InAlive` are never constructed [INFO] [stdout] --> src/network/peer.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub enum PeerState { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 9 | Idle, //we know about the peer but we aren't currently doing anything with it [INFO] [stdout] 10 | OutConnecting, //we are currently trying to establish an outgoing TCP connection to the peer [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 11 | OutHandshaking, //we are currently handshaking with a peeer after having established and outgoing TCP connection to it [INFO] [stdout] 12 | OutAlive, //we have an outgoing TCP connection to the peer and the handshake is done, the peer is functional [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 13 | InHandshaking, //we are currently handshaking with a peeer after this peer established a TCP connection towards our node [INFO] [stdout] 14 | InAlive, //the peer has established a TCP connection towards us and the handshake is done, the peer is functional [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PeerState` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `set_alive` is never used [INFO] [stdout] --> src/network/peer.rs:69:12 [INFO] [stdout] | [INFO] [stdout] 25 | impl Peer { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 69 | pub fn set_alive(&mut self, is_outgoing: bool) -> StateChange { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/network/controller.rs:95:9 [INFO] [stdout] | [INFO] [stdout] 95 | self.state.set_peer_alive(address, is_outgoing); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 95 | let _ = self.state.set_peer_alive(address, is_outgoing); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 14.14s [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/network/controller.rs:109:5 [INFO] [stdout] | [INFO] [stdout] 109 | config: Config, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `state` is never read [INFO] [stdout] --> src/network/controller.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 37 | pub struct NetworkController { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 41 | state: Arc, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `feedback_peer_alive` is never used [INFO] [stdout] --> src/network/controller.rs:94:12 [INFO] [stdout] | [INFO] [stdout] 44 | impl NetworkController { [INFO] [stdout] | ---------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 94 | pub fn feedback_peer_alive(&self, address: SocketAddr, is_outgoing: bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `in_alive_count`, `in_handshacking_count`, and `set_peer_alive` are never used [INFO] [stdout] --> src/network/controller.rs:243:12 [INFO] [stdout] | [INFO] [stdout] 235 | impl ControllerState { [INFO] [stdout] | -------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 243 | pub fn in_alive_count(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 247 | pub fn in_handshacking_count(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 306 | pub fn set_peer_alive(&self, address: SocketAddr, is_outgoing: bool) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `OutConnecting`, `OutAlive`, and `InAlive` are never constructed [INFO] [stdout] --> src/network/peer.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub enum PeerState { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 9 | Idle, //we know about the peer but we aren't currently doing anything with it [INFO] [stdout] 10 | OutConnecting, //we are currently trying to establish an outgoing TCP connection to the peer [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 11 | OutHandshaking, //we are currently handshaking with a peeer after having established and outgoing TCP connection to it [INFO] [stdout] 12 | OutAlive, //we have an outgoing TCP connection to the peer and the handshake is done, the peer is functional [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 13 | InHandshaking, //we are currently handshaking with a peeer after this peer established a TCP connection towards our node [INFO] [stdout] 14 | InAlive, //the peer has established a TCP connection towards us and the handshake is done, the peer is functional [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PeerState` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `set_alive` is never used [INFO] [stdout] --> src/network/peer.rs:69:12 [INFO] [stdout] | [INFO] [stdout] 25 | impl Peer { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 69 | pub fn set_alive(&mut self, is_outgoing: bool) -> StateChange { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/network/controller.rs:95:9 [INFO] [stdout] | [INFO] [stdout] 95 | self.state.set_peer_alive(address, is_outgoing); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 95 | let _ = self.state.set_peer_alive(address, is_outgoing); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking p2pcontroller v0.1.0 (/tmp/fixit) [INFO] [stdout] warning: the item `Future` is imported redundantly [INFO] [stdout] --> src/network/controller.rs:2:49 [INFO] [stdout] | [INFO] [stdout] 2 | use futures::{future, stream::FuturesUnordered, Future, StreamExt}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] --> /rustc/36dbcaee1a55543dfc181be52a69d99ff46ff62f/library/std/src/prelude/mod.rs:161:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Future` is already defined here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Future` is imported redundantly [INFO] [stdout] --> src/network/controller.rs:2:49 [INFO] [stdout] | [INFO] [stdout] 2 | use futures::{future, stream::FuturesUnordered, Future, StreamExt}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] --> /rustc/36dbcaee1a55543dfc181be52a69d99ff46ff62f/library/std/src/prelude/mod.rs:161:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Future` is already defined here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/network/controller.rs:109:5 [INFO] [stdout] | [INFO] [stdout] 109 | config: Config, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/network/controller.rs:109:5 [INFO] [stdout] | [INFO] [stdout] 109 | config: Config, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `state` is never read [INFO] [stdout] --> src/network/controller.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 37 | pub struct NetworkController { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 41 | state: Arc, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `feedback_peer_alive` is never used [INFO] [stdout] --> src/network/controller.rs:94:12 [INFO] [stdout] | [INFO] [stdout] 44 | impl NetworkController { [INFO] [stdout] | ---------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 94 | pub fn feedback_peer_alive(&self, address: SocketAddr, is_outgoing: bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `in_alive_count`, `in_handshacking_count`, and `set_peer_alive` are never used [INFO] [stdout] --> src/network/controller.rs:243:12 [INFO] [stdout] | [INFO] [stdout] 235 | impl ControllerState { [INFO] [stdout] | -------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 243 | pub fn in_alive_count(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 247 | pub fn in_handshacking_count(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 306 | pub fn set_peer_alive(&self, address: SocketAddr, is_outgoing: bool) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `OutConnecting`, `OutAlive`, and `InAlive` are never constructed [INFO] [stdout] --> src/network/peer.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub enum PeerState { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 9 | Idle, //we know about the peer but we aren't currently doing anything with it [INFO] [stdout] 10 | OutConnecting, //we are currently trying to establish an outgoing TCP connection to the peer [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 11 | OutHandshaking, //we are currently handshaking with a peeer after having established and outgoing TCP connection to it [INFO] [stdout] 12 | OutAlive, //we have an outgoing TCP connection to the peer and the handshake is done, the peer is functional [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 13 | InHandshaking, //we are currently handshaking with a peeer after this peer established a TCP connection towards our node [INFO] [stdout] 14 | InAlive, //the peer has established a TCP connection towards us and the handshake is done, the peer is functional [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PeerState` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `set_alive` is never used [INFO] [stdout] --> src/network/peer.rs:69:12 [INFO] [stdout] | [INFO] [stdout] 25 | impl Peer { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 69 | pub fn set_alive(&mut self, is_outgoing: bool) -> StateChange { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `state` is never read [INFO] [stdout] --> src/network/controller.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 37 | pub struct NetworkController { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 41 | state: Arc, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `feedback_peer_alive` is never used [INFO] [stdout] --> src/network/controller.rs:94:12 [INFO] [stdout] | [INFO] [stdout] 44 | impl NetworkController { [INFO] [stdout] | ---------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 94 | pub fn feedback_peer_alive(&self, address: SocketAddr, is_outgoing: bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `in_alive_count`, `in_handshacking_count`, and `set_peer_alive` are never used [INFO] [stdout] --> src/network/controller.rs:243:12 [INFO] [stdout] | [INFO] [stdout] 235 | impl ControllerState { [INFO] [stdout] | -------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 243 | pub fn in_alive_count(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 247 | pub fn in_handshacking_count(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 306 | pub fn set_peer_alive(&self, address: SocketAddr, is_outgoing: bool) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `OutConnecting`, `OutAlive`, and `InAlive` are never constructed [INFO] [stdout] --> src/network/peer.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub enum PeerState { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 9 | Idle, //we know about the peer but we aren't currently doing anything with it [INFO] [stdout] 10 | OutConnecting, //we are currently trying to establish an outgoing TCP connection to the peer [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 11 | OutHandshaking, //we are currently handshaking with a peeer after having established and outgoing TCP connection to it [INFO] [stdout] 12 | OutAlive, //we have an outgoing TCP connection to the peer and the handshake is done, the peer is functional [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 13 | InHandshaking, //we are currently handshaking with a peeer after this peer established a TCP connection towards our node [INFO] [stdout] 14 | InAlive, //the peer has established a TCP connection towards us and the handshake is done, the peer is functional [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PeerState` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `set_alive` is never used [INFO] [stdout] --> src/network/peer.rs:69:12 [INFO] [stdout] | [INFO] [stdout] 25 | impl Peer { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 69 | pub fn set_alive(&mut self, is_outgoing: bool) -> StateChange { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/network/controller.rs:95:9 [INFO] [stdout] | [INFO] [stdout] 95 | self.state.set_peer_alive(address, is_outgoing); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 95 | let _ = self.state.set_peer_alive(address, is_outgoing); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/network/controller.rs:95:9 [INFO] [stdout] | [INFO] [stdout] 95 | self.state.set_peer_alive(address, is_outgoing); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 95 | let _ = self.state.set_peer_alive(address, is_outgoing); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.37s [INFO] running `Command { std: "docker" "inspect" "613d412afbe6b70960ca2f4bff31c587bcb06f049978e9c53f76c839f0a1fada", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "613d412afbe6b70960ca2f4bff31c587bcb06f049978e9c53f76c839f0a1fada", kill_on_drop: false }` [INFO] [stdout] 613d412afbe6b70960ca2f4bff31c587bcb06f049978e9c53f76c839f0a1fada