[INFO] cloning repository https://github.com/allemanfredi/simple-eth-node-discoverer [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/allemanfredi/simple-eth-node-discoverer" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fallemanfredi%2Fsimple-eth-node-discoverer", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fallemanfredi%2Fsimple-eth-node-discoverer'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 7e35e0c3d87a108361c616c2a2e335e6e2dc60de [INFO] testing allemanfredi/simple-eth-node-discoverer against try#8de4c7234dd9b97c9d76b58671343fdbbc9a433e+target=x86_64-unknown-linux-musl for musl_upgrade_1_2_5_with_libc_patch_0 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fallemanfredi%2Fsimple-eth-node-discoverer" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/allemanfredi/simple-eth-node-discoverer [INFO] finished tweaking git repo https://github.com/allemanfredi/simple-eth-node-discoverer [INFO] tweaked toml for git repo https://github.com/allemanfredi/simple-eth-node-discoverer written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/allemanfredi/simple-eth-node-discoverer on toolchain 8de4c7234dd9b97c9d76b58671343fdbbc9a433e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/allemanfredi/simple-eth-node-discoverer 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" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded hermit-abi v0.1.14 [INFO] [stderr] Downloaded block-buffer v0.8.0 [INFO] [stderr] Downloaded arc-swap v0.4.7 [INFO] [stderr] Downloaded miow v0.3.5 [INFO] [stderr] Downloaded subtle v2.2.3 [INFO] [stderr] Downloaded generic-array v0.14.2 [INFO] [stderr] Downloaded serde_derive v1.0.112 [INFO] [stderr] Downloaded serde v1.0.112 [INFO] [stderr] Downloaded proc-macro2 v1.0.18 [INFO] [stderr] Downloaded serde_json v1.0.55 [INFO] [stderr] Downloaded syn v1.0.31 [INFO] [stderr] Downloaded sha3 v0.9.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 219339a7cfb16803b02783231602cf5ef6fb0cf64d9483a0438fd53a02cd9b45 [INFO] running `Command { std: "docker" "start" "-a" "219339a7cfb16803b02783231602cf5ef6fb0cf64d9483a0438fd53a02cd9b45", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "219339a7cfb16803b02783231602cf5ef6fb0cf64d9483a0438fd53a02cd9b45", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "219339a7cfb16803b02783231602cf5ef6fb0cf64d9483a0438fd53a02cd9b45", kill_on_drop: false }` [INFO] [stdout] 219339a7cfb16803b02783231602cf5ef6fb0cf64d9483a0438fd53a02cd9b45 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "build" "--frozen" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 409594fe9615c04205a2aa5fd4604afdaeae79d01dce9cddd11c834cd08b904b [INFO] running `Command { std: "docker" "start" "-a" "409594fe9615c04205a2aa5fd4604afdaeae79d01dce9cddd11c834cd08b904b", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.71 [INFO] [stderr] Compiling typenum v1.12.0 [INFO] [stderr] Compiling proc-macro2 v1.0.18 [INFO] [stderr] Compiling syn v1.0.31 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Compiling serde v1.0.112 [INFO] [stderr] Compiling generic-array v0.14.2 [INFO] [stderr] Compiling serde_json v1.0.55 [INFO] [stderr] Compiling itoa v0.4.5 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Compiling utils v0.1.0 (/opt/rustwide/workdir/utils) [INFO] [stderr] Compiling arc-swap v0.4.7 [INFO] [stderr] Compiling bytes v0.5.4 [INFO] [stderr] Compiling keccak v0.1.0 [INFO] [stderr] Compiling subtle v2.2.3 [INFO] [stderr] Compiling cli v0.1.0 (/opt/rustwide/workdir/cli) [INFO] [stderr] Compiling getrandom v0.1.14 [INFO] [stderr] Compiling iovec v0.1.4 [INFO] [stderr] Compiling net2 v0.2.34 [INFO] [stderr] Compiling signal-hook-registry v1.2.0 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Compiling mio v0.6.22 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling generic-array v0.12.3 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling digest v0.8.1 [INFO] [stderr] Compiling crypto-mac v0.7.0 [INFO] [stderr] Compiling block-buffer v0.7.3 [INFO] [stderr] Compiling hmac v0.7.1 [INFO] [stderr] Compiling sha2 v0.8.2 [INFO] [stderr] Compiling block-buffer v0.8.0 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling hmac-drbg v0.2.0 [INFO] [stderr] Compiling sha3 v0.9.0 [INFO] [stderr] Compiling mio-uds v0.6.8 [INFO] [stderr] Compiling libsecp256k1 v0.3.5 [INFO] [stderr] Compiling serde_derive v1.0.112 [INFO] [stderr] Compiling tokio-macros v0.2.5 [INFO] [stderr] Compiling tokio v0.2.21 [INFO] [stderr] Compiling uuid v0.8.1 [INFO] [stderr] Compiling settings v0.1.0 (/opt/rustwide/workdir/settings) [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> settings/src/lib.rs:7:17 [INFO] [stdout] | [INFO] [stdout] 7 | #[derive(Debug, Deserialize)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_DefaultPeer` [INFO] [stdout] 8 | pub struct DefaultPeer { [INFO] [stdout] | ----------- `DefaultPeer` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> settings/src/lib.rs:13:17 [INFO] [stdout] | [INFO] [stdout] 13 | #[derive(Debug, Deserialize)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_Settings` [INFO] [stdout] 14 | pub struct Settings { [INFO] [stdout] | -------- `Settings` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling peers v0.1.0 (/opt/rustwide/workdir/peers) [INFO] [stdout] warning: unused imports: `Signature` and `verify` [INFO] [stdout] --> peers/src/discover/protocol.rs:2:23 [INFO] [stdout] | [INFO] [stdout] 2 | use secp256k1::{sign, verify, Message, PublicKey, SecretKey, Signature}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FIND_NODE` and `NEIGHBORS` [INFO] [stdout] --> peers/src/discover/protocol.rs:10:54 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::discover::packets::{Data, Header, Packet, FIND_NODE, NEIGHBORS, PING, PONG}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::peer::Peer` [INFO] [stdout] --> peers/src/discover/protocol.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::peer::Peer; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `recipient_ip` [INFO] [stdout] --> peers/src/discover/protocol.rs:129:24 [INFO] [stdout] | [INFO] [stdout] 129 | Data::Pong(recipient_ip, recipient_tcp_port, ping_hash, _, node_id) => { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_recipient_ip` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `recipient_tcp_port` [INFO] [stdout] --> peers/src/discover/protocol.rs:129:38 [INFO] [stdout] | [INFO] [stdout] 129 | Data::Pong(recipient_ip, recipient_tcp_port, ping_hash, _, node_id) => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_recipient_tcp_port` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node_id` [INFO] [stdout] --> peers/src/discover/protocol.rs:129:72 [INFO] [stdout] | [INFO] [stdout] 129 | Data::Pong(recipient_ip, recipient_tcp_port, ping_hash, _, node_id) => { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_node_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `self_peers` [INFO] [stdout] --> peers/src/peers_handler.rs:75:13 [INFO] [stdout] | [INFO] [stdout] 75 | let self_peers = self.peers.clone(); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_self_peers` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> peers/src/peer.rs:14:62 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn new(ip: [u8; 4], tcp_port: u16, id: Uuid, stream: &mut TcpStream) -> Peer { [INFO] [stdout] | ^^^^^^^^^^^^^^ ---- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 14 | pub fn new(ip: [u8; 4], tcp_port: u16, id: Uuid, stream: &mut TcpStream) -> Peer<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> peers/src/peers_handler.rs:63:9 [INFO] [stdout] | [INFO] [stdout] 63 | self.spawn_connect_with_default_peers(default_peers); [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] 63 | let _ = self.spawn_connect_with_default_peers(default_peers); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> peers/src/peers_handler.rs:64:9 [INFO] [stdout] | [INFO] [stdout] 64 | self.spawn_discover_new_peers(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 64 | let _ = self.spawn_discover_new_peers(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling simple-eth-node-discoverer v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 20.43s [INFO] running `Command { std: "docker" "inspect" "409594fe9615c04205a2aa5fd4604afdaeae79d01dce9cddd11c834cd08b904b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "409594fe9615c04205a2aa5fd4604afdaeae79d01dce9cddd11c834cd08b904b", kill_on_drop: false }` [INFO] [stdout] 409594fe9615c04205a2aa5fd4604afdaeae79d01dce9cddd11c834cd08b904b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--no-run" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 135884bb00ca960455c514945c579774cf0edd9a4492f07afdcedacda827fc90 [INFO] running `Command { std: "docker" "start" "-a" "135884bb00ca960455c514945c579774cf0edd9a4492f07afdcedacda827fc90", kill_on_drop: false }` [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> settings/src/lib.rs:7:17 [INFO] [stdout] | [INFO] [stdout] 7 | #[derive(Debug, Deserialize)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_DefaultPeer` [INFO] [stdout] 8 | pub struct DefaultPeer { [INFO] [stdout] | ----------- `DefaultPeer` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> settings/src/lib.rs:13:17 [INFO] [stdout] | [INFO] [stdout] 13 | #[derive(Debug, Deserialize)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_Settings` [INFO] [stdout] 14 | pub struct Settings { [INFO] [stdout] | -------- `Settings` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Signature` and `verify` [INFO] [stdout] --> peers/src/discover/protocol.rs:2:23 [INFO] [stdout] | [INFO] [stdout] 2 | use secp256k1::{sign, verify, Message, PublicKey, SecretKey, Signature}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FIND_NODE` and `NEIGHBORS` [INFO] [stdout] --> peers/src/discover/protocol.rs:10:54 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::discover::packets::{Data, Header, Packet, FIND_NODE, NEIGHBORS, PING, PONG}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::peer::Peer` [INFO] [stdout] --> peers/src/discover/protocol.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::peer::Peer; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `recipient_ip` [INFO] [stdout] --> peers/src/discover/protocol.rs:129:24 [INFO] [stdout] | [INFO] [stdout] 129 | Data::Pong(recipient_ip, recipient_tcp_port, ping_hash, _, node_id) => { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_recipient_ip` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `recipient_tcp_port` [INFO] [stdout] --> peers/src/discover/protocol.rs:129:38 [INFO] [stdout] | [INFO] [stdout] 129 | Data::Pong(recipient_ip, recipient_tcp_port, ping_hash, _, node_id) => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_recipient_tcp_port` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node_id` [INFO] [stdout] --> peers/src/discover/protocol.rs:129:72 [INFO] [stdout] | [INFO] [stdout] 129 | Data::Pong(recipient_ip, recipient_tcp_port, ping_hash, _, node_id) => { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_node_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `self_peers` [INFO] [stdout] --> peers/src/peers_handler.rs:75:13 [INFO] [stdout] | [INFO] [stdout] 75 | let self_peers = self.peers.clone(); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_self_peers` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> peers/src/peer.rs:14:62 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn new(ip: [u8; 4], tcp_port: u16, id: Uuid, stream: &mut TcpStream) -> Peer { [INFO] [stdout] | ^^^^^^^^^^^^^^ ---- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 14 | pub fn new(ip: [u8; 4], tcp_port: u16, id: Uuid, stream: &mut TcpStream) -> Peer<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> peers/src/peers_handler.rs:63:9 [INFO] [stdout] | [INFO] [stdout] 63 | self.spawn_connect_with_default_peers(default_peers); [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] 63 | let _ = self.spawn_connect_with_default_peers(default_peers); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> peers/src/peers_handler.rs:64:9 [INFO] [stdout] | [INFO] [stdout] 64 | self.spawn_discover_new_peers(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 64 | let _ = self.spawn_discover_new_peers(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling simple-eth-node-discoverer v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.51s [INFO] running `Command { std: "docker" "inspect" "135884bb00ca960455c514945c579774cf0edd9a4492f07afdcedacda827fc90", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "135884bb00ca960455c514945c579774cf0edd9a4492f07afdcedacda827fc90", kill_on_drop: false }` [INFO] [stdout] 135884bb00ca960455c514945c579774cf0edd9a4492f07afdcedacda827fc90 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 8b5366b35b74d280c259d7f9badf7791795b3bceba0d49b2a8d2d59f8413d1a9 [INFO] running `Command { std: "docker" "start" "-a" "8b5366b35b74d280c259d7f9badf7791795b3bceba0d49b2a8d2d59f8413d1a9", kill_on_drop: false }` [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> settings/src/lib.rs:7:17 [INFO] [stderr] | [INFO] [stderr] 7 | #[derive(Debug, Deserialize)] [INFO] [stderr] | ^---------- [INFO] [stderr] | | [INFO] [stderr] | `Deserialize` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_DefaultPeer` [INFO] [stderr] 8 | pub struct DefaultPeer { [INFO] [stderr] | ----------- `DefaultPeer` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stderr] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stderr] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stderr] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stderr] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> settings/src/lib.rs:13:17 [INFO] [stderr] | [INFO] [stderr] 13 | #[derive(Debug, Deserialize)] [INFO] [stderr] | ^---------- [INFO] [stderr] | | [INFO] [stderr] | `Deserialize` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_Settings` [INFO] [stderr] 14 | pub struct Settings { [INFO] [stderr] | -------- `Settings` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stderr] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stderr] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stderr] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: `settings` (lib) generated 2 warnings [INFO] [stderr] warning: unused imports: `Signature` and `verify` [INFO] [stderr] --> peers/src/discover/protocol.rs:2:23 [INFO] [stderr] | [INFO] [stderr] 2 | use secp256k1::{sign, verify, Message, PublicKey, SecretKey, Signature}; [INFO] [stderr] | ^^^^^^ ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused imports: `FIND_NODE` and `NEIGHBORS` [INFO] [stderr] --> peers/src/discover/protocol.rs:10:54 [INFO] [stderr] | [INFO] [stderr] 10 | use crate::discover::packets::{Data, Header, Packet, FIND_NODE, NEIGHBORS, PING, PONG}; [INFO] [stderr] | ^^^^^^^^^ ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `crate::peer::Peer` [INFO] [stderr] --> peers/src/discover/protocol.rs:11:5 [INFO] [stderr] | [INFO] [stderr] 11 | use crate::peer::Peer; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `recipient_ip` [INFO] [stderr] --> peers/src/discover/protocol.rs:129:24 [INFO] [stderr] | [INFO] [stderr] 129 | Data::Pong(recipient_ip, recipient_tcp_port, ping_hash, _, node_id) => { [INFO] [stderr] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_recipient_ip` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `recipient_tcp_port` [INFO] [stderr] --> peers/src/discover/protocol.rs:129:38 [INFO] [stderr] | [INFO] [stderr] 129 | Data::Pong(recipient_ip, recipient_tcp_port, ping_hash, _, node_id) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_recipient_tcp_port` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `node_id` [INFO] [stderr] --> peers/src/discover/protocol.rs:129:72 [INFO] [stderr] | [INFO] [stderr] 129 | Data::Pong(recipient_ip, recipient_tcp_port, ping_hash, _, node_id) => { [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_node_id` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `self_peers` [INFO] [stderr] --> peers/src/peers_handler.rs:75:13 [INFO] [stderr] | [INFO] [stderr] 75 | let self_peers = self.peers.clone(); [INFO] [stderr] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_self_peers` [INFO] [stderr] [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> peers/src/peer.rs:14:62 [INFO] [stderr] | [INFO] [stderr] 14 | pub fn new(ip: [u8; 4], tcp_port: u16, id: Uuid, stream: &mut TcpStream) -> Peer { [INFO] [stderr] | ^^^^^^^^^^^^^^ ---- the lifetime gets resolved as `'_` [INFO] [stderr] | | [INFO] [stderr] | this lifetime flows to the output [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stderr] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stderr] | [INFO] [stderr] 14 | pub fn new(ip: [u8; 4], tcp_port: u16, id: Uuid, stream: &mut TcpStream) -> Peer<'_> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> peers/src/peers_handler.rs:63:9 [INFO] [stderr] | [INFO] [stderr] 63 | self.spawn_connect_with_default_peers(default_peers); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] = note: `#[warn(unused_must_use)]` on by default [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 63 | let _ = self.spawn_connect_with_default_peers(default_peers); [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> peers/src/peers_handler.rs:64:9 [INFO] [stderr] | [INFO] [stderr] 64 | self.spawn_discover_new_peers(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 64 | let _ = self.spawn_discover_new_peers(); [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: `peers` (lib) generated 10 warnings (run `cargo fix --lib -p peers` to apply 4 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.08s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/simple_eth_node_discoverer-a4d6a2a64b7b7609) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "8b5366b35b74d280c259d7f9badf7791795b3bceba0d49b2a8d2d59f8413d1a9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8b5366b35b74d280c259d7f9badf7791795b3bceba0d49b2a8d2d59f8413d1a9", kill_on_drop: false }` [INFO] [stdout] 8b5366b35b74d280c259d7f9badf7791795b3bceba0d49b2a8d2d59f8413d1a9