[INFO] cloning repository https://github.com/bytemaker-io/eth-pos [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/bytemaker-io/eth-pos" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbytemaker-io%2Feth-pos", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbytemaker-io%2Feth-pos'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 9a515b913aca9a455e2a7882f86ac162cd311fe5 [INFO] testing bytemaker-io/eth-pos against try#8de4c7234dd9b97c9d76b58671343fdbbc9a433e+target=x86_64-unknown-linux-musl for musl_upgrade_1_2_5_with_getrandom_patch_0 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbytemaker-io%2Feth-pos" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] removed /workspace/builds/worker-7-tc1/source/.cargo/config [INFO] started tweaking git repo https://github.com/bytemaker-io/eth-pos [INFO] finished tweaking git repo https://github.com/bytemaker-io/eth-pos [INFO] tweaked toml for git repo https://github.com/bytemaker-io/eth-pos written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/bytemaker-io/eth-pos 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/bytemaker-io/eth-pos 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] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded pnet_datalink v0.33.0 [INFO] [stderr] Downloaded sonyflake v0.2.0 [INFO] [stderr] Downloaded pnet_macros_support v0.33.0 [INFO] [stderr] Downloaded pnet_sys v0.33.0 [INFO] [stderr] Downloaded pnet_transport v0.33.0 [INFO] [stderr] Downloaded pnet_packet v0.33.0 [INFO] [stderr] Downloaded pnet_base v0.33.0 [INFO] [stderr] Downloaded pnet_macros v0.33.0 [INFO] [stderr] Downloaded pnet v0.33.0 [INFO] [stderr] Downloaded roaring v0.10.4 [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] 7d5a47bcfac26e5a44ac52fe08d33f23ab2b11e9b04925e47ea8a1410bc46e7d [INFO] running `Command { std: "docker" "start" "-a" "7d5a47bcfac26e5a44ac52fe08d33f23ab2b11e9b04925e47ea8a1410bc46e7d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7d5a47bcfac26e5a44ac52fe08d33f23ab2b11e9b04925e47ea8a1410bc46e7d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7d5a47bcfac26e5a44ac52fe08d33f23ab2b11e9b04925e47ea8a1410bc46e7d", kill_on_drop: false }` [INFO] [stdout] 7d5a47bcfac26e5a44ac52fe08d33f23ab2b11e9b04925e47ea8a1410bc46e7d [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] 9b4d01020520ef18b94fb2b22c20eb578080e754b56113ff482e9e3942658fe6 [INFO] running `Command { std: "docker" "start" "-a" "9b4d01020520ef18b94fb2b22c20eb578080e754b56113ff482e9e3942658fe6", kill_on_drop: false }` [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] [stderr] Compiling proc-macro2 v1.0.79 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling serde v1.0.197 [INFO] [stderr] Compiling libc v0.2.154 [INFO] [stderr] Compiling crossbeam-utils v0.8.19 [INFO] [stderr] Compiling memchr v2.7.1 [INFO] [stderr] Compiling no-std-net v0.6.0 [INFO] [stderr] Compiling once_cell v1.19.0 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling regex-syntax v0.8.2 [INFO] [stderr] Compiling autocfg v1.2.0 [INFO] [stderr] Compiling thiserror v1.0.58 [INFO] [stderr] Compiling pnet v0.33.0 [INFO] [stderr] Compiling radium v0.7.0 [INFO] [stderr] Compiling rayon-core v1.12.1 [INFO] [stderr] Compiling pnet_base v0.33.0 [INFO] [stderr] Compiling log v0.4.21 [INFO] [stderr] Compiling pin-project-lite v0.2.14 [INFO] [stderr] Compiling pnet_macros_support v0.33.0 [INFO] [stderr] Compiling tracing-core v0.1.32 [INFO] [stderr] Compiling iana-time-zone v0.1.60 [INFO] [stderr] Compiling serde_json v1.0.114 [INFO] [stderr] Compiling itoa v1.0.10 [INFO] [stderr] Compiling regex-syntax v0.6.29 [INFO] [stderr] Compiling num-traits v0.2.18 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling cc v1.0.96 [INFO] [stderr] Compiling fs_extra v1.3.0 [INFO] [stderr] Compiling tap v1.0.1 [INFO] [stderr] Compiling utf8parse v0.2.1 [INFO] [stderr] Compiling wyz v0.5.1 [INFO] [stderr] Compiling anstyle-parse v0.2.3 [INFO] [stderr] Compiling colorchoice v1.0.0 [INFO] [stderr] Compiling ryu v1.0.17 [INFO] [stderr] Compiling funty v2.0.0 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling syn v2.0.58 [INFO] [stderr] Compiling pnet_sys v0.33.0 [INFO] [stderr] Compiling crossbeam-deque v0.8.5 [INFO] [stderr] Compiling anstyle v1.0.6 [INFO] [stderr] Compiling bytemuck v1.15.0 [INFO] [stderr] Compiling chrono v0.4.38 [INFO] [stderr] Compiling regex-automata v0.1.10 [INFO] [stderr] Compiling anstyle-query v1.0.2 [INFO] [stderr] Compiling either v1.11.0 [INFO] [stderr] Compiling powerfmt v0.2.0 [INFO] [stderr] Compiling overload v0.1.1 [INFO] [stderr] Compiling nu-ansi-term v0.46.0 [INFO] [stderr] Compiling deranged v0.3.11 [INFO] [stderr] Compiling sharded-slab v0.1.7 [INFO] [stderr] Compiling thread_local v1.1.8 [INFO] [stderr] Compiling regex-automata v0.4.6 [INFO] [stderr] Compiling matchers v0.1.0 [INFO] [stderr] Compiling jemalloc-sys v0.3.2 [INFO] [stderr] Compiling rayon v1.10.0 [INFO] [stderr] Compiling anstream v0.6.13 [INFO] [stderr] Compiling roaring v0.10.4 [INFO] [stderr] Compiling bitvec v1.0.1 [INFO] [stderr] Compiling tracing-log v0.2.0 [INFO] [stderr] Compiling time-core v0.1.2 [INFO] [stderr] Compiling num-conv v0.1.0 [INFO] [stderr] Compiling ipnetwork v0.20.0 [INFO] [stderr] Compiling tracing-serde v0.1.3 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling clap_lex v0.7.0 [INFO] [stderr] Compiling heck v0.5.0 [INFO] [stderr] Compiling strsim v0.11.1 [INFO] [stderr] Compiling pnet_datalink v0.33.0 [INFO] [stderr] Compiling clap_builder v4.5.2 [INFO] [stderr] Compiling time v0.3.36 [INFO] [stderr] Compiling crossbeam-channel v0.5.12 [INFO] [stderr] Compiling regex v1.10.4 [INFO] [stderr] Compiling pnet_macros v0.33.0 [INFO] [stderr] Compiling thiserror-impl v1.0.58 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling clap_derive v4.5.4 [INFO] [stderr] Compiling pnet_packet v0.33.0 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling tracing-subscriber v0.3.18 [INFO] [stderr] Compiling clap v4.5.4 [INFO] [stderr] Compiling pnet_transport v0.33.0 [INFO] [stderr] Compiling sonyflake v0.2.0 [INFO] [stderr] Compiling pos v0.1.0 (/opt/rustwide/workdir/pos) [INFO] [stdout] warning: unused import: `crate::broadcast_block_event::BroadcastBlockEvent` [INFO] [stdout] --> pos/src/node.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::broadcast_block_event::BroadcastBlockEvent; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashSet` [INFO] [stdout] --> pos/src/node.rs:5:33 [INFO] [stdout] | [INFO] [stdout] 5 | use std::collections::{HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `MessageType` [INFO] [stdout] --> pos/src/broadcast_block_event.rs:4:41 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::message_structure::{Message, MessageType}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SIGN_BLOCK_MESSAGE_TIME` [INFO] [stdout] --> pos/src/collect_attestation_event.rs:15:53 [INFO] [stdout] | [INFO] [stdout] 15 | AGGREGATE_PUBLIC_KEY, AGGREGATE_SIGNATURE_TIME, SIGN_BLOCK_MESSAGE_TIME, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::Node` [INFO] [stdout] --> pos/src/collect_attestation_event.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use crate::Node; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::process::id` [INFO] [stdout] --> pos/src/collect_attestation_event.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | use std::process::id; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tracing::field::debug` [INFO] [stdout] --> pos/src/collect_attestation_event.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | use tracing::field::debug; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `error`, `event`, and `info` [INFO] [stdout] --> pos/src/collect_attestation_event.rs:25:22 [INFO] [stdout] | [INFO] [stdout] 25 | use tracing::{debug, error, event, info}; [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `MyProcessEventWrapper` [INFO] [stdout] --> pos/src/merge_broadcast_attestation_event.rs:2:31 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::event::{EventType, MyProcessEventWrapper, ProcessEvent}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tracing::field::debug` [INFO] [stdout] --> pos/src/merge_broadcast_attestation_event.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use tracing::field::debug; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `error` [INFO] [stdout] --> pos/src/merge_broadcast_attestation_event.rs:17:22 [INFO] [stdout] | [INFO] [stdout] 17 | use tracing::{debug, error, info}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::block::Block` [INFO] [stdout] --> pos/src/validate_block_event.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::block::Block; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::broadcast_attestations_message::BroadcastAttestationsMessage` [INFO] [stdout] --> pos/src/validate_block_event.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::broadcast_attestations_message::BroadcastAttestationsMessage; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `MessageType` and `Message` [INFO] [stdout] --> pos/src/validate_block_event.rs:14:32 [INFO] [stdout] | [INFO] [stdout] 14 | use crate::message_structure::{Message, MessageType}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::rice_golomb_coding::RiceGolombCoding` [INFO] [stdout] --> pos/src/validate_block_event.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use crate::rice_golomb_coding::RiceGolombCoding; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling tracing-appender v0.2.3 [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> pos/src/discrete_event_dispatcher.rs:32:17 [INFO] [stdout] | [INFO] [stdout] 32 | for (k, v) in pos_network.get_nodes_set().get_nodes_mapping().iter() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> pos/src/discrete_event_dispatcher.rs:84:22 [INFO] [stdout] | [INFO] [stdout] 84 | for (k, v) in self.timer_event_manager.iter() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k1` [INFO] [stdout] --> pos/src/discrete_event_dispatcher.rs:85:26 [INFO] [stdout] | [INFO] [stdout] 85 | for (k1, v1) in v.iter() { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_k1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v1` [INFO] [stdout] --> pos/src/discrete_event_dispatcher.rs:85:30 [INFO] [stdout] | [INFO] [stdout] 85 | for (k1, v1) in v.iter() { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_v1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> pos/src/discrete_event_dispatcher.rs:111:17 [INFO] [stdout] | [INFO] [stdout] 111 | let mut option = self.event_queue.pop(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> pos/src/discrete_event_dispatcher.rs:112:17 [INFO] [stdout] | [INFO] [stdout] 112 | let mut event = option.unwrap(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> pos/src/discrete_event_dispatcher.rs:113:17 [INFO] [stdout] | [INFO] [stdout] 113 | let mut event_wrapper = event.0; [INFO] [stdout] | ----^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> pos/src/discrete_event_dispatcher.rs:178:33 [INFO] [stdout] | [INFO] [stdout] 178 | ... let mut vec = self [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> pos/src/discrete_event_dispatcher.rs:203:45 [INFO] [stdout] | [INFO] [stdout] 203 | ... let mut event = v.borrow_mut(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x1` [INFO] [stdout] --> pos/src/proposal_new_block_event.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | x1: &mut HashSet, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_x1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time_recorder` [INFO] [stdout] --> pos/src/broadcast_block_event.rs:59:9 [INFO] [stdout] | [INFO] [stdout] 59 | time_recorder: &mut TimeRecorder, [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_time_recorder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x1` [INFO] [stdout] --> pos/src/broadcast_block_event.rs:60:9 [INFO] [stdout] | [INFO] [stdout] 60 | x1: &mut HashSet, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_x1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> pos/src/collect_attestation_event.rs:143:25 [INFO] [stdout] | [INFO] [stdout] 143 | for (k, v) in id_and_coefficient.iter_mut() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `has_block` [INFO] [stdout] --> pos/src/collect_attestation_event.rs:58:9 [INFO] [stdout] | [INFO] [stdout] 58 | has_block: &mut Vec, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_has_block` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time_recorder` [INFO] [stdout] --> pos/src/collect_attestation_event.rs:59:9 [INFO] [stdout] | [INFO] [stdout] 59 | time_recorder: &mut TimeRecorder, [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_time_recorder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `whole_validators_num` [INFO] [stdout] --> pos/src/merge_broadcast_attestation_event.rs:126:13 [INFO] [stdout] | [INFO] [stdout] 126 | let whole_validators_num = pos_network.get_nodes_set().get_nodes_mapping().len(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_whole_validators_num` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> pos/src/merge_broadcast_attestation_event.rs:154:17 [INFO] [stdout] | [INFO] [stdout] 154 | for (k, v) in known_id_and_signature.iter() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `has_block` [INFO] [stdout] --> pos/src/merge_broadcast_attestation_event.rs:117:9 [INFO] [stdout] | [INFO] [stdout] 117 | has_block: &mut Vec, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_has_block` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time_recorder` [INFO] [stdout] --> pos/src/merge_broadcast_attestation_event.rs:118:9 [INFO] [stdout] | [INFO] [stdout] 118 | time_recorder: &mut TimeRecorder, [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_time_recorder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x1` [INFO] [stdout] --> pos/src/merge_broadcast_attestation_event.rs:119:9 [INFO] [stdout] | [INFO] [stdout] 119 | x1: &mut HashSet, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_x1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> pos/src/merge_broadcast_attestation_event.rs:146:21 [INFO] [stdout] | [INFO] [stdout] 146 | let mut vec = vec![*k; *v as usize]; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `q` is never read [INFO] [stdout] --> pos/src/rice_golomb_coding.rs:67:17 [INFO] [stdout] | [INFO] [stdout] 67 | let mut q = 0; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `r` is never read [INFO] [stdout] --> pos/src/rice_golomb_coding.rs:68:17 [INFO] [stdout] | [INFO] [stdout] 68 | let mut r = 0; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time_recorder` [INFO] [stdout] --> pos/src/validate_block_event.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | time_recorder: &mut TimeRecorder, [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_time_recorder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x1` [INFO] [stdout] --> pos/src/validate_block_event.rs:54:9 [INFO] [stdout] | [INFO] [stdout] 54 | x1: &mut HashSet, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_x1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `duplicate_buffer` is never used [INFO] [stdout] --> pos/src/node.rs:94:19 [INFO] [stdout] | [INFO] [stdout] 21 | impl Node { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 94 | pub(crate) fn duplicate_buffer(mut vec1: Vec, mut vec2: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BLOCK_SIZE` is never used [INFO] [stdout] --> pos/src/space_cost_variable.rs:2:7 [INFO] [stdout] | [INFO] [stdout] 2 | const BLOCK_SIZE: u32 = 1500 * 8; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BLS_SIZE` is never used [INFO] [stdout] --> pos/src/space_cost_variable.rs:3:7 [INFO] [stdout] | [INFO] [stdout] 3 | const BLS_SIZE: u32 = 768; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MTU_SIZE` is never used [INFO] [stdout] --> pos/src/space_cost_variable.rs:4:7 [INFO] [stdout] | [INFO] [stdout] 4 | const MTU_SIZE: u32 = 1500 * 8; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `IP_HEADER_SIZE` is never used [INFO] [stdout] --> pos/src/space_cost_variable.rs:5:7 [INFO] [stdout] | [INFO] [stdout] 5 | const IP_HEADER_SIZE: u32 = 8 * 40; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `network_delay` is never read [INFO] [stdout] --> pos/src/broadcast_block_event.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct BroadcastBlockEvent { [INFO] [stdout] | ------------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 21 | network_delay: f64, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BroadcastBlockEvent` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `network_delay` is never read [INFO] [stdout] --> pos/src/collect_attestation_event.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct CollectAttestationEvent { [INFO] [stdout] | ----------------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 31 | network_delay: f64, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `sender_node_id`, `event_type`, `network_delay`, `arrive_time`, and `receiver_node_id` are never used [INFO] [stdout] --> pos/src/collect_attestation_event.rs:282:12 [INFO] [stdout] | [INFO] [stdout] 260 | impl CollectAttestationEvent { [INFO] [stdout] | ---------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 282 | pub fn sender_node_id(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 286 | pub fn event_type(&self) -> &EventType { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 289 | pub fn network_delay(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 293 | pub fn arrive_time(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 296 | pub fn receiver_node_id(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `v` and `k` are never read [INFO] [stdout] --> pos/src/rice_golomb_coding.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct RiceGolombCoding { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] 6 | v: u32, [INFO] [stdout] | ^ [INFO] [stdout] 7 | k: u32, [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> pos/src/discrete_event_dispatcher.rs:30:29 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn new(pos_network: &mut PosNetwork) -> EventDispatcher { [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] 30 | pub fn new(pos_network: &mut PosNetwork) -> EventDispatcher<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Message` should have a snake case name [INFO] [stdout] --> pos/src/collect_attestation_event.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | Message: Rc>, [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `message` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Message` should have a snake case name [INFO] [stdout] --> pos/src/collect_attestation_event.rs:267:9 [INFO] [stdout] | [INFO] [stdout] 267 | Message: Rc>, [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `message` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `Message` should have a snake case name [INFO] [stdout] --> pos/src/collect_attestation_event.rs:299:12 [INFO] [stdout] | [INFO] [stdout] 299 | pub fn Message(&self) -> &Message { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `message` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling jemallocator v0.3.2 [INFO] [stderr] Compiling emulator-launcher v0.1.0 (/opt/rustwide/workdir/emulator-launcher) [INFO] [stdout] warning: unused import: `std::collections::HashSet` [INFO] [stdout] --> emulator-launcher/src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::collections::HashSet; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `debug` [INFO] [stdout] --> emulator-launcher/src/main.rs:10:15 [INFO] [stdout] | [INFO] [stdout] 10 | use tracing::{debug, info, Level}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `clap::Parser` [INFO] [stdout] --> emulator-launcher/src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use clap::Parser; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `file_name` is never read [INFO] [stdout] --> emulator-launcher/src/main.rs:24:13 [INFO] [stdout] | [INFO] [stdout] 24 | let mut file_name: String = String::new(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> emulator-launcher/src/main.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | let mut log_level = "debug".to_string(); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 05s [INFO] running `Command { std: "docker" "inspect" "9b4d01020520ef18b94fb2b22c20eb578080e754b56113ff482e9e3942658fe6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9b4d01020520ef18b94fb2b22c20eb578080e754b56113ff482e9e3942658fe6", kill_on_drop: false }` [INFO] [stdout] 9b4d01020520ef18b94fb2b22c20eb578080e754b56113ff482e9e3942658fe6 [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] 3593bc0a51568413ce7f684ee494c1a3a43134f437d29e03db79d89f16d93367 [INFO] running `Command { std: "docker" "start" "-a" "3593bc0a51568413ce7f684ee494c1a3a43134f437d29e03db79d89f16d93367", kill_on_drop: false }` [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] [stdout] warning: unused import: `crate::broadcast_block_event::BroadcastBlockEvent` [INFO] [stdout] --> pos/src/node.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::broadcast_block_event::BroadcastBlockEvent; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashSet` [INFO] [stdout] --> pos/src/node.rs:5:33 [INFO] [stdout] | [INFO] [stdout] 5 | use std::collections::{HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `MessageType` [INFO] [stdout] --> pos/src/broadcast_block_event.rs:4:41 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::message_structure::{Message, MessageType}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SIGN_BLOCK_MESSAGE_TIME` [INFO] [stdout] --> pos/src/collect_attestation_event.rs:15:53 [INFO] [stdout] | [INFO] [stdout] 15 | AGGREGATE_PUBLIC_KEY, AGGREGATE_SIGNATURE_TIME, SIGN_BLOCK_MESSAGE_TIME, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::Node` [INFO] [stdout] --> pos/src/collect_attestation_event.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use crate::Node; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::process::id` [INFO] [stdout] --> pos/src/collect_attestation_event.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | use std::process::id; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tracing::field::debug` [INFO] [stdout] --> pos/src/collect_attestation_event.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | use tracing::field::debug; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `error`, `event`, and `info` [INFO] [stdout] --> pos/src/collect_attestation_event.rs:25:22 [INFO] [stdout] | [INFO] [stdout] 25 | use tracing::{debug, error, event, info}; [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `MyProcessEventWrapper` [INFO] [stdout] --> pos/src/merge_broadcast_attestation_event.rs:2:31 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::event::{EventType, MyProcessEventWrapper, ProcessEvent}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tracing::field::debug` [INFO] [stdout] --> pos/src/merge_broadcast_attestation_event.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use tracing::field::debug; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `error` [INFO] [stdout] --> pos/src/merge_broadcast_attestation_event.rs:17:22 [INFO] [stdout] | [INFO] [stdout] 17 | use tracing::{debug, error, info}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::block::Block` [INFO] [stdout] --> pos/src/validate_block_event.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::block::Block; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::broadcast_attestations_message::BroadcastAttestationsMessage` [INFO] [stdout] --> pos/src/validate_block_event.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::broadcast_attestations_message::BroadcastAttestationsMessage; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `MessageType` and `Message` [INFO] [stdout] --> pos/src/validate_block_event.rs:14:32 [INFO] [stdout] | [INFO] [stdout] 14 | use crate::message_structure::{Message, MessageType}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::rice_golomb_coding::RiceGolombCoding` [INFO] [stdout] --> pos/src/validate_block_event.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use crate::rice_golomb_coding::RiceGolombCoding; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> pos/src/discrete_event_dispatcher.rs:32:17 [INFO] [stdout] | [INFO] [stdout] 32 | for (k, v) in pos_network.get_nodes_set().get_nodes_mapping().iter() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> pos/src/discrete_event_dispatcher.rs:84:22 [INFO] [stdout] | [INFO] [stdout] 84 | for (k, v) in self.timer_event_manager.iter() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k1` [INFO] [stdout] --> pos/src/discrete_event_dispatcher.rs:85:26 [INFO] [stdout] | [INFO] [stdout] 85 | for (k1, v1) in v.iter() { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_k1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v1` [INFO] [stdout] --> pos/src/discrete_event_dispatcher.rs:85:30 [INFO] [stdout] | [INFO] [stdout] 85 | for (k1, v1) in v.iter() { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_v1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> pos/src/discrete_event_dispatcher.rs:111:17 [INFO] [stdout] | [INFO] [stdout] 111 | let mut option = self.event_queue.pop(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> pos/src/discrete_event_dispatcher.rs:112:17 [INFO] [stdout] | [INFO] [stdout] 112 | let mut event = option.unwrap(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> pos/src/discrete_event_dispatcher.rs:113:17 [INFO] [stdout] | [INFO] [stdout] 113 | let mut event_wrapper = event.0; [INFO] [stdout] | ----^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> pos/src/discrete_event_dispatcher.rs:178:33 [INFO] [stdout] | [INFO] [stdout] 178 | ... let mut vec = self [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> pos/src/discrete_event_dispatcher.rs:203:45 [INFO] [stdout] | [INFO] [stdout] 203 | ... let mut event = v.borrow_mut(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x1` [INFO] [stdout] --> pos/src/proposal_new_block_event.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | x1: &mut HashSet, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_x1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time_recorder` [INFO] [stdout] --> pos/src/broadcast_block_event.rs:59:9 [INFO] [stdout] | [INFO] [stdout] 59 | time_recorder: &mut TimeRecorder, [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_time_recorder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x1` [INFO] [stdout] --> pos/src/broadcast_block_event.rs:60:9 [INFO] [stdout] | [INFO] [stdout] 60 | x1: &mut HashSet, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_x1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> pos/src/collect_attestation_event.rs:143:25 [INFO] [stdout] | [INFO] [stdout] 143 | for (k, v) in id_and_coefficient.iter_mut() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `has_block` [INFO] [stdout] --> pos/src/collect_attestation_event.rs:58:9 [INFO] [stdout] | [INFO] [stdout] 58 | has_block: &mut Vec, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_has_block` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time_recorder` [INFO] [stdout] --> pos/src/collect_attestation_event.rs:59:9 [INFO] [stdout] | [INFO] [stdout] 59 | time_recorder: &mut TimeRecorder, [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_time_recorder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `whole_validators_num` [INFO] [stdout] --> pos/src/merge_broadcast_attestation_event.rs:126:13 [INFO] [stdout] | [INFO] [stdout] 126 | let whole_validators_num = pos_network.get_nodes_set().get_nodes_mapping().len(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_whole_validators_num` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> pos/src/merge_broadcast_attestation_event.rs:154:17 [INFO] [stdout] | [INFO] [stdout] 154 | for (k, v) in known_id_and_signature.iter() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `has_block` [INFO] [stdout] --> pos/src/merge_broadcast_attestation_event.rs:117:9 [INFO] [stdout] | [INFO] [stdout] 117 | has_block: &mut Vec, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_has_block` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time_recorder` [INFO] [stdout] --> pos/src/merge_broadcast_attestation_event.rs:118:9 [INFO] [stdout] | [INFO] [stdout] 118 | time_recorder: &mut TimeRecorder, [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_time_recorder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x1` [INFO] [stdout] --> pos/src/merge_broadcast_attestation_event.rs:119:9 [INFO] [stdout] | [INFO] [stdout] 119 | x1: &mut HashSet, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_x1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> pos/src/merge_broadcast_attestation_event.rs:146:21 [INFO] [stdout] | [INFO] [stdout] 146 | let mut vec = vec![*k; *v as usize]; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling pos v0.1.0 (/opt/rustwide/workdir/pos) [INFO] [stdout] warning: value assigned to `q` is never read [INFO] [stdout] --> pos/src/rice_golomb_coding.rs:67:17 [INFO] [stdout] | [INFO] [stdout] 67 | let mut q = 0; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling emulator-launcher v0.1.0 (/opt/rustwide/workdir/emulator-launcher) [INFO] [stdout] warning: value assigned to `r` is never read [INFO] [stdout] --> pos/src/rice_golomb_coding.rs:68:17 [INFO] [stdout] | [INFO] [stdout] 68 | let mut r = 0; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time_recorder` [INFO] [stdout] --> pos/src/validate_block_event.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | time_recorder: &mut TimeRecorder, [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_time_recorder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x1` [INFO] [stdout] --> pos/src/validate_block_event.rs:54:9 [INFO] [stdout] | [INFO] [stdout] 54 | x1: &mut HashSet, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_x1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `duplicate_buffer` is never used [INFO] [stdout] --> pos/src/node.rs:94:19 [INFO] [stdout] | [INFO] [stdout] 21 | impl Node { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 94 | pub(crate) fn duplicate_buffer(mut vec1: Vec, mut vec2: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BLOCK_SIZE` is never used [INFO] [stdout] --> pos/src/space_cost_variable.rs:2:7 [INFO] [stdout] | [INFO] [stdout] 2 | const BLOCK_SIZE: u32 = 1500 * 8; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BLS_SIZE` is never used [INFO] [stdout] --> pos/src/space_cost_variable.rs:3:7 [INFO] [stdout] | [INFO] [stdout] 3 | const BLS_SIZE: u32 = 768; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MTU_SIZE` is never used [INFO] [stdout] --> pos/src/space_cost_variable.rs:4:7 [INFO] [stdout] | [INFO] [stdout] 4 | const MTU_SIZE: u32 = 1500 * 8; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `IP_HEADER_SIZE` is never used [INFO] [stdout] --> pos/src/space_cost_variable.rs:5:7 [INFO] [stdout] | [INFO] [stdout] 5 | const IP_HEADER_SIZE: u32 = 8 * 40; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `network_delay` is never read [INFO] [stdout] --> pos/src/broadcast_block_event.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct BroadcastBlockEvent { [INFO] [stdout] | ------------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 21 | network_delay: f64, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BroadcastBlockEvent` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `network_delay` is never read [INFO] [stdout] --> pos/src/collect_attestation_event.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct CollectAttestationEvent { [INFO] [stdout] | ----------------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 31 | network_delay: f64, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `sender_node_id`, `event_type`, `network_delay`, `arrive_time`, and `receiver_node_id` are never used [INFO] [stdout] --> pos/src/collect_attestation_event.rs:282:12 [INFO] [stdout] | [INFO] [stdout] 260 | impl CollectAttestationEvent { [INFO] [stdout] | ---------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 282 | pub fn sender_node_id(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 286 | pub fn event_type(&self) -> &EventType { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 289 | pub fn network_delay(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 293 | pub fn arrive_time(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 296 | pub fn receiver_node_id(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `v` and `k` are never read [INFO] [stdout] --> pos/src/rice_golomb_coding.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct RiceGolombCoding { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] 6 | v: u32, [INFO] [stdout] | ^ [INFO] [stdout] 7 | k: u32, [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> pos/src/discrete_event_dispatcher.rs:30:29 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn new(pos_network: &mut PosNetwork) -> EventDispatcher { [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] 30 | pub fn new(pos_network: &mut PosNetwork) -> EventDispatcher<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Message` should have a snake case name [INFO] [stdout] --> pos/src/collect_attestation_event.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | Message: Rc>, [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `message` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Message` should have a snake case name [INFO] [stdout] --> pos/src/collect_attestation_event.rs:267:9 [INFO] [stdout] | [INFO] [stdout] 267 | Message: Rc>, [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `message` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `Message` should have a snake case name [INFO] [stdout] --> pos/src/collect_attestation_event.rs:299:12 [INFO] [stdout] | [INFO] [stdout] 299 | pub fn Message(&self) -> &Message { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `message` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashSet` [INFO] [stdout] --> emulator-launcher/src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::collections::HashSet; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `debug` [INFO] [stdout] --> emulator-launcher/src/main.rs:10:15 [INFO] [stdout] | [INFO] [stdout] 10 | use tracing::{debug, info, Level}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `clap::Parser` [INFO] [stdout] --> emulator-launcher/src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use clap::Parser; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `file_name` is never read [INFO] [stdout] --> emulator-launcher/src/main.rs:24:13 [INFO] [stdout] | [INFO] [stdout] 24 | let mut file_name: String = String::new(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> emulator-launcher/src/main.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | let mut log_level = "debug".to_string(); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::broadcast_block_event::BroadcastBlockEvent` [INFO] [stdout] --> pos/src/node.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::broadcast_block_event::BroadcastBlockEvent; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashSet` [INFO] [stdout] --> pos/src/node.rs:5:33 [INFO] [stdout] | [INFO] [stdout] 5 | use std::collections::{HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `MessageType` [INFO] [stdout] --> pos/src/broadcast_block_event.rs:4:41 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::message_structure::{Message, MessageType}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SIGN_BLOCK_MESSAGE_TIME` [INFO] [stdout] --> pos/src/collect_attestation_event.rs:15:53 [INFO] [stdout] | [INFO] [stdout] 15 | AGGREGATE_PUBLIC_KEY, AGGREGATE_SIGNATURE_TIME, SIGN_BLOCK_MESSAGE_TIME, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::Node` [INFO] [stdout] --> pos/src/collect_attestation_event.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use crate::Node; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::process::id` [INFO] [stdout] --> pos/src/collect_attestation_event.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | use std::process::id; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tracing::field::debug` [INFO] [stdout] --> pos/src/collect_attestation_event.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | use tracing::field::debug; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `error`, `event`, and `info` [INFO] [stdout] --> pos/src/collect_attestation_event.rs:25:22 [INFO] [stdout] | [INFO] [stdout] 25 | use tracing::{debug, error, event, info}; [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `MyProcessEventWrapper` [INFO] [stdout] --> pos/src/merge_broadcast_attestation_event.rs:2:31 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::event::{EventType, MyProcessEventWrapper, ProcessEvent}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tracing::field::debug` [INFO] [stdout] --> pos/src/merge_broadcast_attestation_event.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use tracing::field::debug; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `error` [INFO] [stdout] --> pos/src/merge_broadcast_attestation_event.rs:17:22 [INFO] [stdout] | [INFO] [stdout] 17 | use tracing::{debug, error, info}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::block::Block` [INFO] [stdout] --> pos/src/validate_block_event.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::block::Block; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::broadcast_attestations_message::BroadcastAttestationsMessage` [INFO] [stdout] --> pos/src/validate_block_event.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::broadcast_attestations_message::BroadcastAttestationsMessage; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `MessageType` and `Message` [INFO] [stdout] --> pos/src/validate_block_event.rs:14:32 [INFO] [stdout] | [INFO] [stdout] 14 | use crate::message_structure::{Message, MessageType}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::rice_golomb_coding::RiceGolombCoding` [INFO] [stdout] --> pos/src/validate_block_event.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use crate::rice_golomb_coding::RiceGolombCoding; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashSet` [INFO] [stdout] --> pos/src/lib.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | use std::collections::HashSet; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `debug` and `info` [INFO] [stdout] --> pos/src/lib.rs:36:19 [INFO] [stdout] | [INFO] [stdout] 36 | use tracing::{debug, error, info}; [INFO] [stdout] | ^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> pos/src/lib.rs:117:54 [INFO] [stdout] | [INFO] [stdout] 117 | let encoded_data = rice_golomb_coding.encode(&raw_data); [INFO] [stdout] | ------ ^^^^^^^^^ types differ in mutability [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut Vec` [INFO] [stdout] found reference `&Vec<{integer}>` [INFO] [stdout] note: method defined here [INFO] [stdout] --> pos/src/rice_golomb_coding.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn encode(&self, data_list: &mut Vec) -> BitVec { [INFO] [stdout] | ^^^^^^ ------------------------ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> pos/src/lib.rs:132:33 [INFO] [stdout] | [INFO] [stdout] 132 | let ids = rg.decode(suffix); [INFO] [stdout] | ------ ^^^^^^ expected `&BitSlice`, found `&str` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&BitSlice` [INFO] [stdout] found reference `&str` [INFO] [stdout] note: method defined here [INFO] [stdout] --> pos/src/rice_golomb_coding.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn decode(&self, encoded: &BitSlice) -> Vec { [INFO] [stdout] | ^^^^^^ ---------------------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> pos/src/discrete_event_dispatcher.rs:32:17 [INFO] [stdout] | [INFO] [stdout] 32 | for (k, v) in pos_network.get_nodes_set().get_nodes_mapping().iter() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> pos/src/discrete_event_dispatcher.rs:84:22 [INFO] [stdout] | [INFO] [stdout] 84 | for (k, v) in self.timer_event_manager.iter() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k1` [INFO] [stdout] --> pos/src/discrete_event_dispatcher.rs:85:26 [INFO] [stdout] | [INFO] [stdout] 85 | for (k1, v1) in v.iter() { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_k1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v1` [INFO] [stdout] --> pos/src/discrete_event_dispatcher.rs:85:30 [INFO] [stdout] | [INFO] [stdout] 85 | for (k1, v1) in v.iter() { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_v1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> pos/src/discrete_event_dispatcher.rs:111:17 [INFO] [stdout] | [INFO] [stdout] 111 | let mut option = self.event_queue.pop(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> pos/src/discrete_event_dispatcher.rs:112:17 [INFO] [stdout] | [INFO] [stdout] 112 | let mut event = option.unwrap(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> pos/src/discrete_event_dispatcher.rs:113:17 [INFO] [stdout] | [INFO] [stdout] 113 | let mut event_wrapper = event.0; [INFO] [stdout] | ----^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> pos/src/discrete_event_dispatcher.rs:178:33 [INFO] [stdout] | [INFO] [stdout] 178 | ... let mut vec = self [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> pos/src/discrete_event_dispatcher.rs:203:45 [INFO] [stdout] | [INFO] [stdout] 203 | ... let mut event = v.borrow_mut(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x1` [INFO] [stdout] --> pos/src/proposal_new_block_event.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | x1: &mut HashSet, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_x1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time_recorder` [INFO] [stdout] --> pos/src/broadcast_block_event.rs:59:9 [INFO] [stdout] | [INFO] [stdout] 59 | time_recorder: &mut TimeRecorder, [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_time_recorder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x1` [INFO] [stdout] --> pos/src/broadcast_block_event.rs:60:9 [INFO] [stdout] | [INFO] [stdout] 60 | x1: &mut HashSet, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_x1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> pos/src/collect_attestation_event.rs:143:25 [INFO] [stdout] | [INFO] [stdout] 143 | for (k, v) in id_and_coefficient.iter_mut() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `has_block` [INFO] [stdout] --> pos/src/collect_attestation_event.rs:58:9 [INFO] [stdout] | [INFO] [stdout] 58 | has_block: &mut Vec, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_has_block` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time_recorder` [INFO] [stdout] --> pos/src/collect_attestation_event.rs:59:9 [INFO] [stdout] | [INFO] [stdout] 59 | time_recorder: &mut TimeRecorder, [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_time_recorder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `whole_validators_num` [INFO] [stdout] --> pos/src/merge_broadcast_attestation_event.rs:126:13 [INFO] [stdout] | [INFO] [stdout] 126 | let whole_validators_num = pos_network.get_nodes_set().get_nodes_mapping().len(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_whole_validators_num` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> pos/src/merge_broadcast_attestation_event.rs:154:17 [INFO] [stdout] | [INFO] [stdout] 154 | for (k, v) in known_id_and_signature.iter() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `has_block` [INFO] [stdout] --> pos/src/merge_broadcast_attestation_event.rs:117:9 [INFO] [stdout] | [INFO] [stdout] 117 | has_block: &mut Vec, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_has_block` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time_recorder` [INFO] [stdout] --> pos/src/merge_broadcast_attestation_event.rs:118:9 [INFO] [stdout] | [INFO] [stdout] 118 | time_recorder: &mut TimeRecorder, [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_time_recorder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x1` [INFO] [stdout] --> pos/src/merge_broadcast_attestation_event.rs:119:9 [INFO] [stdout] | [INFO] [stdout] 119 | x1: &mut HashSet, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_x1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> pos/src/merge_broadcast_attestation_event.rs:146:21 [INFO] [stdout] | [INFO] [stdout] 146 | let mut vec = vec![*k; *v as usize]; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `q` is never read [INFO] [stdout] --> pos/src/rice_golomb_coding.rs:67:17 [INFO] [stdout] | [INFO] [stdout] 67 | let mut q = 0; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `r` is never read [INFO] [stdout] --> pos/src/rice_golomb_coding.rs:68:17 [INFO] [stdout] | [INFO] [stdout] 68 | let mut r = 0; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time_recorder` [INFO] [stdout] --> pos/src/validate_block_event.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | time_recorder: &mut TimeRecorder, [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_time_recorder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x1` [INFO] [stdout] --> pos/src/validate_block_event.rs:54:9 [INFO] [stdout] | [INFO] [stdout] 54 | x1: &mut HashSet, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_x1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `pos` (lib test) due to 2 previous errors; 42 warnings emitted [INFO] running `Command { std: "docker" "inspect" "3593bc0a51568413ce7f684ee494c1a3a43134f437d29e03db79d89f16d93367", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3593bc0a51568413ce7f684ee494c1a3a43134f437d29e03db79d89f16d93367", kill_on_drop: false }` [INFO] [stdout] 3593bc0a51568413ce7f684ee494c1a3a43134f437d29e03db79d89f16d93367