[INFO] cloning repository https://github.com/thooton/starlight-node [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/thooton/starlight-node" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fthooton%2Fstarlight-node", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fthooton%2Fstarlight-node'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a8b3bcdcf499bcd885faba347afe74502c683d52 [INFO] checking thooton/starlight-node against master#c1feb3eceef7d5f0126c309a87062cf413fe0a25 for pr-121053 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fthooton%2Fstarlight-node" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/thooton/starlight-node on toolchain c1feb3eceef7d5f0126c309a87062cf413fe0a25 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c1feb3eceef7d5f0126c309a87062cf413fe0a25" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/thooton/starlight-node [INFO] finished tweaking git repo https://github.com/thooton/starlight-node [INFO] tweaked toml for git repo https://github.com/thooton/starlight-node written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/thooton/starlight-node 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" "+c1feb3eceef7d5f0126c309a87062cf413fe0a25" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [ERROR] this task or one of its parent failed! [ERROR] no output for 300 seconds [ERROR] note: run with `RUST_BACKTRACE=1` to display a backtrace. [INFO] checking thooton/starlight-node against try#0d3c0c4551bd9d6b6a4bd51e251b596e0195adf5 for pr-121053 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fthooton%2Fstarlight-node" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/thooton/starlight-node on toolchain 0d3c0c4551bd9d6b6a4bd51e251b596e0195adf5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+0d3c0c4551bd9d6b6a4bd51e251b596e0195adf5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/thooton/starlight-node [INFO] finished tweaking git repo https://github.com/thooton/starlight-node [INFO] tweaked toml for git repo https://github.com/thooton/starlight-node written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/thooton/starlight-node 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" "+0d3c0c4551bd9d6b6a4bd51e251b596e0195adf5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded topk v0.5.0 [INFO] [stderr] Downloaded heed-types v0.8.0 [INFO] [stderr] Downloaded heed-traits v0.8.0 [INFO] [stderr] Downloaded ed25519-dalek-blake2-feeless v1.0.1 [INFO] [stderr] Downloaded heed v0.11.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:99613afd962a8cfa530ec1899472a458bd015a1ab0af876cf7eb06f6006d81ea" "/opt/rustwide/cargo-home/bin/cargo" "+0d3c0c4551bd9d6b6a4bd51e251b596e0195adf5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c7ba5f8daded4c9c70e51710ec5a9b5ce24c4480762e559f14fa4f59726e498a [INFO] running `Command { std: "docker" "start" "-a" "c7ba5f8daded4c9c70e51710ec5a9b5ce24c4480762e559f14fa4f59726e498a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c7ba5f8daded4c9c70e51710ec5a9b5ce24c4480762e559f14fa4f59726e498a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c7ba5f8daded4c9c70e51710ec5a9b5ce24c4480762e559f14fa4f59726e498a", kill_on_drop: false }` [INFO] [stdout] c7ba5f8daded4c9c70e51710ec5a9b5ce24c4480762e559f14fa4f59726e498a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:99613afd962a8cfa530ec1899472a458bd015a1ab0af876cf7eb06f6006d81ea" "/opt/rustwide/cargo-home/bin/cargo" "+0d3c0c4551bd9d6b6a4bd51e251b596e0195adf5" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7950fc30a682de57c45aeeae45b35a2a6328ed9f2807c37fd0a98d6abc9a349c [INFO] running `Command { std: "docker" "start" "-a" "7950fc30a682de57c45aeeae45b35a2a6328ed9f2807c37fd0a98d6abc9a349c", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.153 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling proc-macro2 v1.0.79 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling serde v1.0.197 [INFO] [stderr] Checking itoa v1.0.10 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Checking once_cell v1.19.0 [INFO] [stderr] Compiling crossbeam-utils v0.8.19 [INFO] [stderr] Compiling pkg-config v0.3.30 [INFO] [stderr] Checking ppv-lite86 v0.2.17 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling ahash v0.7.8 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Compiling serde_json v1.0.114 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Compiling jobserver v0.1.28 [INFO] [stderr] Compiling cfg_aliases v0.1.1 [INFO] [stderr] Compiling num-traits v0.2.18 [INFO] [stderr] Checking ryu v1.0.17 [INFO] [stderr] Compiling syn v2.0.52 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Checking bytes v1.5.0 [INFO] [stderr] Compiling cc v1.0.90 [INFO] [stderr] Checking equivalent v1.0.1 [INFO] [stderr] Checking futures-core v0.3.30 [INFO] [stderr] Checking getrandom v0.2.12 [INFO] [stderr] Checking smallvec v1.13.1 [INFO] [stderr] Checking pin-project-lite v0.2.13 [INFO] [stderr] Checking hashbrown v0.14.3 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking http v1.1.0 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Checking hashbrown v0.12.3 [INFO] [stderr] Checking digest v0.9.0 [INFO] [stderr] Compiling lock_api v0.4.11 [INFO] [stderr] Compiling crunchy v0.2.2 [INFO] [stderr] Checking indexmap v2.2.5 [INFO] [stderr] Compiling httparse v1.8.0 [INFO] [stderr] Checking subtle v2.5.0 [INFO] [stderr] Compiling parking_lot_core v0.8.6 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking http-body v1.0.0 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking mio v0.8.11 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking socket2 v0.5.6 [INFO] [stderr] Compiling static_init_macro v1.0.2 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Compiling priority-queue v1.4.0 [INFO] [stderr] Checking instant v0.1.12 [INFO] [stderr] Checking opaque-debug v0.3.1 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Compiling radium v0.7.0 [INFO] [stderr] Compiling libm v0.2.8 [INFO] [stderr] Compiling zstd-sys v2.0.9+zstd.1.5.5 [INFO] [stderr] Compiling lmdb-rkv-sys v0.11.2 [INFO] [stderr] Checking static_assertions v1.1.0 [INFO] [stderr] Checking futures-task v0.3.30 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Compiling blake3 v1.5.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking crypto-mac v0.8.0 [INFO] [stderr] Checking block-buffer v0.9.0 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking futures-channel v0.3.30 [INFO] [stderr] Compiling static_init v1.0.3 [INFO] [stderr] Checking crossbeam-queue v0.3.11 [INFO] [stderr] Checking crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling reed-solomon-erasure v6.0.0 [INFO] [stderr] Checking winnow v0.6.5 [INFO] [stderr] Checking tap v1.0.1 [INFO] [stderr] Checking either v1.11.0 [INFO] [stderr] Checking arrayref v0.3.7 [INFO] [stderr] Checking constant_time_eq v0.3.0 [INFO] [stderr] Checking bytemuck v1.15.0 [INFO] [stderr] Checking hex v0.4.3 [INFO] [stderr] Compiling zstd-safe v7.0.0 [INFO] [stderr] Compiling memchr v2.7.1 [INFO] [stderr] Checking signature v1.6.4 [INFO] [stderr] Checking heed-traits v0.8.0 [INFO] [stderr] Checking httpdate v1.0.3 [INFO] [stderr] Compiling rayon-core v1.12.1 [INFO] [stderr] Checking rustc-hex v2.1.0 [INFO] [stderr] Checking cpufeatures v0.2.12 [INFO] [stderr] Checking arrayvec v0.7.4 [INFO] [stderr] Checking zerocopy v0.7.32 [INFO] [stderr] Checking sha2 v0.9.9 [INFO] [stderr] Checking fixed-hash v0.8.0 [INFO] [stderr] Checking ed25519 v1.5.3 [INFO] [stderr] Checking uint v0.9.5 [INFO] [stderr] Checking wyz v0.5.1 [INFO] [stderr] Checking crossbeam-deque v0.8.5 [INFO] [stderr] Checking synchronoise v1.0.1 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking blake2 v0.9.2 [INFO] [stderr] Checking parking_lot v0.11.2 [INFO] [stderr] Checking lru v0.7.8 [INFO] [stderr] Checking page_size v0.4.2 [INFO] [stderr] Checking half v2.4.1 [INFO] [stderr] Checking regex-syntax v0.8.3 [INFO] [stderr] Checking iana-time-zone v0.1.60 [INFO] [stderr] Checking plotters-backend v0.3.5 [INFO] [stderr] Checking clap_lex v0.7.0 [INFO] [stderr] Checking spin v0.9.8 [INFO] [stderr] Checking ciborium-io v0.2.2 [INFO] [stderr] Checking anstyle v1.0.6 [INFO] [stderr] Checking funty v2.0.0 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Checking fixedbitset v0.4.2 [INFO] [stderr] Checking clap_builder v4.5.2 [INFO] [stderr] Checking petgraph v0.6.4 [INFO] [stderr] Compiling serde_derive v1.0.197 [INFO] [stderr] Compiling tokio-macros v2.2.0 [INFO] [stderr] Compiling zeroize_derive v1.4.2 [INFO] [stderr] Checking regex-automata v0.4.6 [INFO] [stderr] Checking bitvec v1.0.1 [INFO] [stderr] Checking ciborium-ll v0.2.2 [INFO] [stderr] Checking plotters-svg v0.3.5 [INFO] [stderr] Checking tokio v1.36.0 [INFO] [stderr] Checking zeroize v1.3.0 [INFO] [stderr] Checking chrono v0.4.35 [INFO] [stderr] Checking curve25519-dalek v3.2.1 [INFO] [stderr] Checking topk v0.5.0 [INFO] [stderr] Checking primitive-types v0.12.2 [INFO] [stderr] Checking blake2b_simd v1.0.2 [INFO] [stderr] Checking itertools v0.10.5 [INFO] [stderr] Checking priority-queue v2.0.2 [INFO] [stderr] Checking http-body-util v0.1.1 [INFO] [stderr] Checking memmap2 v0.9.4 [INFO] [stderr] Checking cast v0.3.0 [INFO] [stderr] Checking same-file v1.0.6 [INFO] [stderr] Checking rayon v1.10.0 [INFO] [stderr] Checking regex v1.10.4 [INFO] [stderr] Checking walkdir v2.5.0 [INFO] [stderr] Checking plotters v0.3.5 [INFO] [stderr] Checking hyper v1.2.0 [INFO] [stderr] Checking clap v4.5.4 [INFO] [stderr] Checking is-terminal v0.4.12 [INFO] [stderr] Checking anes v0.1.6 [INFO] [stderr] Checking oorandom v11.1.3 [INFO] [stderr] Checking criterion-plot v0.5.0 [INFO] [stderr] Checking hyper-util v0.1.3 [INFO] [stderr] Checking serde_spanned v0.6.5 [INFO] [stderr] Checking toml_datetime v0.6.5 [INFO] [stderr] Checking bincode v1.3.3 [INFO] [stderr] Checking ed25519-dalek-blake2-feeless v1.0.1 [INFO] [stderr] Checking ciborium v0.2.2 [INFO] [stderr] Checking toml_edit v0.22.9 [INFO] [stderr] Checking heed-types v0.8.0 [INFO] [stderr] Checking tinytemplate v1.2.1 [INFO] [stderr] Checking heed v0.11.0 [INFO] [stderr] Checking criterion v0.5.1 [INFO] [stderr] Checking toml v0.8.12 [INFO] [stderr] Checking starlight-node v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: expected `;`, found `}` [INFO] [stdout] --> src/state/chain.rs:225:17 [INFO] [stdout] | [INFO] [stdout] 225 | Some(()) [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 226 | } [INFO] [stdout] | - unexpected token [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `batch::BatchFactory` [INFO] [stdout] --> src/state/mod.rs:11:24 [INFO] [stdout] | [INFO] [stdout] 11 | pub use batch::{Batch, BatchFactory}; [INFO] [stdout] | ^^^^^^^^^^^^ no `BatchFactory` in `state::batch` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Endpoint`, `Receiver` [INFO] [stdout] --> src/app/mod.rs:5:22 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::network::{Endpoint, Transmitter, Receiver}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Private`, `Seed` [INFO] [stdout] --> src/app/mod.rs:10:22 [INFO] [stdout] | [INFO] [stdout] 10 | keys::{Identity, Private, Seed}, [INFO] [stdout] | ^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize`, `Serialize` [INFO] [stdout] --> src/app/mod.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `str::FromStr` [INFO] [stdout] --> src/app/mod.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | str::FromStr, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::sync::mpsc` [INFO] [stdout] --> src/app/mod.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | use tokio::sync::mpsc; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::Hash` [INFO] [stdout] --> src/keys/seed.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use super::Hash; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Deserialize` [INFO] [stdout] --> src/network/transmitter.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `UnboundedReceiver`, `UnboundedSender` [INFO] [stdout] --> src/network/transmitter.rs:7:18 [INFO] [stdout] | [INFO] [stdout] 7 | sync::mpsc::{UnboundedReceiver, UnboundedSender}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DefaultInitVec`, `Private`, `Signature`, `Transaction`, `UninitVec`, `error`, `self` [INFO] [stdout] --> src/network/transmitter.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | error, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 12 | keys::{Identity, Private, Public, Signature}, [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^ [INFO] [stdout] 13 | protocol::{Amount, Slot, Transaction}, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 14 | util::{self, DefaultInitVec, Error, UninitVec, Version}, [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ShredNote`, `Shred` [INFO] [stdout] --> src/network/transmitter.rs:18:69 [INFO] [stdout] | [INFO] [stdout] 18 | use super::{models::TelemetryNote, CenterMap, Endpoint, Note, Peer, Shred, ShredNote}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `CenterMapValue` [INFO] [stdout] --> src/network/mod.rs:9:29 [INFO] [stdout] | [INFO] [stdout] 9 | use center_map::{CenterMap, CenterMapValue}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `compress`, `decompress` [INFO] [stdout] --> src/network/mod.rs:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | use compress::{compress, decompress}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Slot`, `keys::Public` [INFO] [stdout] --> src/state/account.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | keys::Public, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 5 | protocol::{Amount, Slot}, util::Atomic, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Amount` [INFO] [stdout] --> src/state/chain.rs:3:81 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::{error, process::{Mailbox, Message, Process}, keys::Hash, protocol::{Amount, Open, Slot, Transaction, Verified}, util::Error}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Visitable` [INFO] [stdout] --> src/state/dag.rs:4:18 [INFO] [stdout] | [INFO] [stdout] 4 | visit::{Dfs, Visitable, Walker}, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Instant` [INFO] [stdout] --> src/protocol/slot.rs:1:27 [INFO] [stdout] | [INFO] [stdout] 1 | use std::time::{Duration, Instant, SystemTime}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Archived`, `error` [INFO] [stdout] --> src/protocol/transaction.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | error, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 3 | keys::{Difficulty, Hash, Public, Signature, Work}, [INFO] [stdout] 4 | util::{self, Archived, Error}, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `UpperHex` [INFO] [stdout] --> src/util/encoding.rs:6:25 [INFO] [stdout] | [INFO] [stdout] 6 | use std::fmt::{Display, UpperHex}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trailing semicolon in macro used in expression position [INFO] [stdout] --> src/app/log.rs:39:61 [INFO] [stdout] | [INFO] [stdout] 39 | crate::app::log::manual("ERROR", &format!($($arg)*)); [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] ::: src/process/mod.rs:42:27 [INFO] [stdout] | [INFO] [stdout] 42 | Err(e) => log_error!("process {} failed: {}", P::NAME, e), [INFO] [stdout] | ----------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #79813 [INFO] [stdout] = note: `#[warn(semicolon_in_expressions_from_macros)]` on by default [INFO] [stdout] = note: this warning originates in the macro `log_error` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::hash::Hasher` [INFO] [stdout] --> src/waiting/mempool.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::hash::Hasher; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `protocol::Transaction` [INFO] [stdout] --> src/waiting/mempool.rs:3:31 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::{keys::Difficulty, protocol::Transaction}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `transmitter` [INFO] [stdout] --> src/app/mod.rs:77:9 [INFO] [stdout] | [INFO] [stdout] 77 | let transmitter = process::spawn(Transmitter::new( [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_transmitter` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/network/receiver.rs:57:21 [INFO] [stdout] | [INFO] [stdout] 57 | Err(e) => continue [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `clock` [INFO] [stdout] --> src/state/scheduler.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | let clock = Clock::new(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_clock` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `leader_schedule` [INFO] [stdout] --> src/state/scheduler.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | let leader_schedule = LeaderSchedule::empty(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_leader_schedule` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0782]: trait objects must include the `dyn` keyword [INFO] [stdout] --> src/waiting/tx_pool.rs:47:21 [INFO] [stdout] | [INFO] [stdout] 47 | Process::Chain.send(Message::TransactionList(Box::new((slot, txs)))); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: add `dyn` keyword before this trait [INFO] [stdout] | [INFO] [stdout] 47 | ::Chain.send(Message::TransactionList(Box::new((slot, txs)))); [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated item named `Chain` found for trait `Process` [INFO] [stdout] --> src/waiting/tx_pool.rs:47:30 [INFO] [stdout] | [INFO] [stdout] 47 | Process::Chain.send(Message::TransactionList(Box::new((slot, txs)))); [INFO] [stdout] | ^^^^^ associated item not found in `Process` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0782]: trait objects must include the `dyn` keyword [INFO] [stdout] --> src/waiting/open_pool.rs:45:21 [INFO] [stdout] | [INFO] [stdout] 45 | Process::Chain.send(Message::OpenList(Box::new((slot, opens)))); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: add `dyn` keyword before this trait [INFO] [stdout] | [INFO] [stdout] 45 | ::Chain.send(Message::OpenList(Box::new((slot, opens)))); [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated item named `Chain` found for trait `Process` [INFO] [stdout] --> src/waiting/open_pool.rs:45:30 [INFO] [stdout] | [INFO] [stdout] 45 | Process::Chain.send(Message::OpenList(Box::new((slot, opens)))); [INFO] [stdout] | ^^^^^ associated item not found in `Process` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `verify_and_hash` found for reference `&Open` in the current scope [INFO] [stdout] --> src/state/block.rs:59:25 [INFO] [stdout] | [INFO] [stdout] 59 | |open| open.verify_and_hash(), [INFO] [stdout] | ^^^^^^^^^^^^^^^ method not found in `&Open` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Verifiable` which provides `verify_and_hash` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use crate::protocol::verified::Verifiable; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `verify_and_hash` found for reference `&Transaction` in the current scope [INFO] [stdout] --> src/state/block.rs:63:21 [INFO] [stdout] | [INFO] [stdout] 63 | |tr| tr.verify_and_hash(), [INFO] [stdout] | ^^^^^^^^^^^^^^^ method not found in `&Transaction` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Verifiable` which provides `verify_and_hash` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use crate::protocol::verified::Verifiable; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/state/block.rs:56:10 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn sign( [INFO] [stdout] | ---- implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] ... [INFO] [stdout] 56 | ) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ expected `Result`, found `()` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `std::result::Result` [INFO] [stdout] found unit type `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `verify_and_hash` found for reference `&Open` in the current scope [INFO] [stdout] --> src/state/block.rs:111:25 [INFO] [stdout] | [INFO] [stdout] 111 | |open| open.verify_and_hash(), [INFO] [stdout] | ^^^^^^^^^^^^^^^ method not found in `&Open` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Verifiable` which provides `verify_and_hash` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use crate::protocol::verified::Verifiable; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected `;`, found `}` [INFO] [stdout] --> src/state/chain.rs:225:17 [INFO] [stdout] | [INFO] [stdout] 225 | Some(()) [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 226 | } [INFO] [stdout] | - unexpected token [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `verify_and_hash` found for reference `&Transaction` in the current scope [INFO] [stdout] --> src/state/block.rs:115:21 [INFO] [stdout] | [INFO] [stdout] 115 | |tr| tr.verify_and_hash(), [INFO] [stdout] | ^^^^^^^^^^^^^^^ method not found in `&Transaction` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Verifiable` which provides `verify_and_hash` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use crate::protocol::verified::Verifiable; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0782]: trait objects must include the `dyn` keyword [INFO] [stdout] --> src/state/chain.rs:32:22 [INFO] [stdout] | [INFO] [stdout] 32 | mailbox: Process::Chain.take_mailbox().unwrap(), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: add `dyn` keyword before this trait [INFO] [stdout] | [INFO] [stdout] 32 | mailbox: ::Chain.take_mailbox().unwrap(), [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated item named `Chain` found for trait `Process` [INFO] [stdout] --> src/state/chain.rs:32:31 [INFO] [stdout] | [INFO] [stdout] 32 | mailbox: Process::Chain.take_mailbox().unwrap(), [INFO] [stdout] | ^^^^^ associated item not found in `Process` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `batch::BatchFactory` [INFO] [stdout] --> src/state/mod.rs:11:24 [INFO] [stdout] | [INFO] [stdout] 11 | pub use batch::{Batch, BatchFactory}; [INFO] [stdout] | ^^^^^^^^^^^^ no `BatchFactory` in `state::batch` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Endpoint`, `Receiver` [INFO] [stdout] --> src/app/mod.rs:5:22 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::network::{Endpoint, Transmitter, Receiver}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Private`, `Seed` [INFO] [stdout] --> src/app/mod.rs:10:22 [INFO] [stdout] | [INFO] [stdout] 10 | keys::{Identity, Private, Seed}, [INFO] [stdout] | ^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize`, `Serialize` [INFO] [stdout] --> src/app/mod.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `str::FromStr` [INFO] [stdout] --> src/app/mod.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | str::FromStr, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::sync::mpsc` [INFO] [stdout] --> src/app/mod.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | use tokio::sync::mpsc; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::Hash` [INFO] [stdout] --> src/keys/seed.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use super::Hash; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::keys::Seed` [INFO] [stdout] --> src/keys/work.rs:107:9 [INFO] [stdout] | [INFO] [stdout] 107 | use crate::keys::Seed; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Deserialize` [INFO] [stdout] --> src/network/transmitter.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `UnboundedReceiver`, `UnboundedSender` [INFO] [stdout] --> src/network/transmitter.rs:7:18 [INFO] [stdout] | [INFO] [stdout] 7 | sync::mpsc::{UnboundedReceiver, UnboundedSender}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DefaultInitVec`, `Private`, `Signature`, `Transaction`, `UninitVec`, `error`, `self` [INFO] [stdout] --> src/network/transmitter.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | error, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 12 | keys::{Identity, Private, Public, Signature}, [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^ [INFO] [stdout] 13 | protocol::{Amount, Slot, Transaction}, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 14 | util::{self, DefaultInitVec, Error, UninitVec, Version}, [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ShredNote`, `Shred` [INFO] [stdout] --> src/network/transmitter.rs:18:69 [INFO] [stdout] | [INFO] [stdout] 18 | use super::{models::TelemetryNote, CenterMap, Endpoint, Note, Peer, Shred, ShredNote}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `CenterMapValue` [INFO] [stdout] --> src/network/mod.rs:9:29 [INFO] [stdout] | [INFO] [stdout] 9 | use center_map::{CenterMap, CenterMapValue}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `compress`, `decompress` [INFO] [stdout] --> src/network/mod.rs:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | use compress::{compress, decompress}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Slot`, `keys::Public` [INFO] [stdout] --> src/state/account.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | keys::Public, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 5 | protocol::{Amount, Slot}, util::Atomic, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Amount` [INFO] [stdout] --> src/state/chain.rs:3:81 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::{error, process::{Mailbox, Message, Process}, keys::Hash, protocol::{Amount, Open, Slot, Transaction, Verified}, util::Error}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Visitable` [INFO] [stdout] --> src/state/dag.rs:4:18 [INFO] [stdout] | [INFO] [stdout] 4 | visit::{Dfs, Visitable, Walker}, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Instant` [INFO] [stdout] --> src/protocol/slot.rs:1:27 [INFO] [stdout] | [INFO] [stdout] 1 | use std::time::{Duration, Instant, SystemTime}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Archived`, `error` [INFO] [stdout] --> src/protocol/transaction.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | error, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 3 | keys::{Difficulty, Hash, Public, Signature, Work}, [INFO] [stdout] 4 | util::{self, Archived, Error}, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `UpperHex` [INFO] [stdout] --> src/util/encoding.rs:6:25 [INFO] [stdout] | [INFO] [stdout] 6 | use std::fmt::{Display, UpperHex}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trailing semicolon in macro used in expression position [INFO] [stdout] --> src/app/log.rs:39:61 [INFO] [stdout] | [INFO] [stdout] 39 | crate::app::log::manual("ERROR", &format!($($arg)*)); [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] ::: src/process/mod.rs:42:27 [INFO] [stdout] | [INFO] [stdout] 42 | Err(e) => log_error!("process {} failed: {}", P::NAME, e), [INFO] [stdout] | ----------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #79813 [INFO] [stdout] = note: `#[warn(semicolon_in_expressions_from_macros)]` on by default [INFO] [stdout] = note: this warning originates in the macro `log_error` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::hash::Hasher` [INFO] [stdout] --> src/waiting/mempool.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::hash::Hasher; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `protocol::Transaction` [INFO] [stdout] --> src/waiting/mempool.rs:3:31 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::{keys::Difficulty, protocol::Transaction}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `finalize_block` found for struct `Bank` in the current scope [INFO] [stdout] --> src/state/chain.rs:53:27 [INFO] [stdout] | [INFO] [stdout] 53 | self.bank.finalize_block(block); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/state/bank.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Bank { [INFO] [stdout] | --------------- method `finalize_block` not found for this struct [INFO] [stdout] | [INFO] [stdout] help: there is a method `finalize_task` with a similar name [INFO] [stdout] | [INFO] [stdout] 53 | self.bank.finalize_task(block); [INFO] [stdout] | ~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `transmitter` [INFO] [stdout] --> src/app/mod.rs:77:9 [INFO] [stdout] | [INFO] [stdout] 77 | let transmitter = process::spawn(Transmitter::new( [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_transmitter` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `revert_block` found for struct `Bank` in the current scope [INFO] [stdout] --> src/state/chain.rs:70:23 [INFO] [stdout] | [INFO] [stdout] 70 | self.bank.revert_block(self.active.get(h).unwrap()); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/state/bank.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Bank { [INFO] [stdout] | --------------- method `revert_block` not found for this struct [INFO] [stdout] | [INFO] [stdout] help: there is a method `revert_task` with a similar name [INFO] [stdout] | [INFO] [stdout] 70 | self.bank.revert_task(self.active.get(h).unwrap()); [INFO] [stdout] | ~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/network/receiver.rs:57:21 [INFO] [stdout] | [INFO] [stdout] 57 | Err(e) => continue [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `clock` [INFO] [stdout] --> src/state/scheduler.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | let clock = Clock::new(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_clock` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `leader_schedule` [INFO] [stdout] --> src/state/scheduler.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | let leader_schedule = LeaderSchedule::empty(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_leader_schedule` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0782]: trait objects must include the `dyn` keyword [INFO] [stdout] --> src/waiting/tx_pool.rs:47:21 [INFO] [stdout] | [INFO] [stdout] 47 | Process::Chain.send(Message::TransactionList(Box::new((slot, txs)))); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: add `dyn` keyword before this trait [INFO] [stdout] | [INFO] [stdout] 47 | ::Chain.send(Message::TransactionList(Box::new((slot, txs)))); [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated item named `Chain` found for trait `Process` [INFO] [stdout] --> src/waiting/tx_pool.rs:47:30 [INFO] [stdout] | [INFO] [stdout] 47 | Process::Chain.send(Message::TransactionList(Box::new((slot, txs)))); [INFO] [stdout] | ^^^^^ associated item not found in `Process` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0782]: trait objects must include the `dyn` keyword [INFO] [stdout] --> src/waiting/open_pool.rs:45:21 [INFO] [stdout] | [INFO] [stdout] 45 | Process::Chain.send(Message::OpenList(Box::new((slot, opens)))); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: add `dyn` keyword before this trait [INFO] [stdout] | [INFO] [stdout] 45 | ::Chain.send(Message::OpenList(Box::new((slot, opens)))); [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated item named `Chain` found for trait `Process` [INFO] [stdout] --> src/waiting/open_pool.rs:45:30 [INFO] [stdout] | [INFO] [stdout] 45 | Process::Chain.send(Message::OpenList(Box::new((slot, opens)))); [INFO] [stdout] | ^^^^^ associated item not found in `Process` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `finalize_block` found for struct `Bank` in the current scope [INFO] [stdout] --> src/state/chain.rs:83:23 [INFO] [stdout] | [INFO] [stdout] 83 | self.bank.finalize_block(block); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/state/bank.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Bank { [INFO] [stdout] | --------------- method `finalize_block` not found for this struct [INFO] [stdout] | [INFO] [stdout] help: there is a method `finalize_task` with a similar name [INFO] [stdout] | [INFO] [stdout] 83 | self.bank.finalize_task(block); [INFO] [stdout] | ~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `revert_block` found for struct `Bank` in the current scope [INFO] [stdout] --> src/state/chain.rs:140:23 [INFO] [stdout] | [INFO] [stdout] 140 | self.bank.revert_block(self.active.get(h).unwrap()); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/state/bank.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Bank { [INFO] [stdout] | --------------- method `revert_block` not found for this struct [INFO] [stdout] | [INFO] [stdout] help: there is a method `revert_task` with a similar name [INFO] [stdout] | [INFO] [stdout] 140 | self.bank.revert_task(self.active.get(h).unwrap()); [INFO] [stdout] | ~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `revert_block` found for struct `Bank` in the current scope [INFO] [stdout] --> src/state/chain.rs:177:31 [INFO] [stdout] | [INFO] [stdout] 177 | self.bank.revert_block(self.active.get(h).unwrap()); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/state/bank.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Bank { [INFO] [stdout] | --------------- method `revert_block` not found for this struct [INFO] [stdout] | [INFO] [stdout] help: there is a method `revert_task` with a similar name [INFO] [stdout] | [INFO] [stdout] 177 | self.bank.revert_task(self.active.get(h).unwrap()); [INFO] [stdout] | ~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/state/chain.rs:200:39 [INFO] [stdout] | [INFO] [stdout] 200 | if self.bank.process_open(open, batch).is_ok() { [INFO] [stdout] | ------------ ^^^^ expected `&Open`, found `&Box>` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&Open` [INFO] [stdout] found reference `&Box>` [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/state/bank.rs:67:12 [INFO] [stdout] | [INFO] [stdout] 67 | pub fn process_open(&mut self, open: &Open, batch: Batch) -> Result<(), ()> { [INFO] [stdout] | ^^^^^^^^^^^^ ----------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated item named `Some` found for struct `Block` in the current scope [INFO] [stdout] --> src/state/chain.rs:225:9 [INFO] [stdout] | [INFO] [stdout] 224 | let block = Block:: [INFO] [stdout] | _____________________- [INFO] [stdout] 225 | | Some(()) [INFO] [stdout] | | -^^^^ associated item not found in `Block` [INFO] [stdout] | |________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] ::: src/state/block.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Block { [INFO] [stdout] | ---------------- associated item `Some` not found for this struct [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `Block` consider using one of the following associated functions: [INFO] [stdout] Block::sign [INFO] [stdout] Block::genesis [INFO] [stdout] --> src/state/block.rs:46:5 [INFO] [stdout] | [INFO] [stdout] 46 | / pub fn sign( [INFO] [stdout] 47 | | private: Private, [INFO] [stdout] 48 | | slot: Slot, [INFO] [stdout] 49 | | previous: Hash, [INFO] [stdout] ... | [INFO] [stdout] 55 | | vote_hashes: Vec, [INFO] [stdout] 56 | | ) -> Result { [INFO] [stdout] | |____________________________^ [INFO] [stdout] ... [INFO] [stdout] 78 | pub fn genesis(private: Private) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/state/chain.rs:190:43 [INFO] [stdout] | [INFO] [stdout] 190 | pub fn try_create_block(&mut self) -> Option<()> { [INFO] [stdout] | ---------------- ^^^^^^^^^^ expected `Option<()>`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] | [INFO] [stdout] = note: expected enum `std::option::Option<()>` [INFO] [stdout] found unit type `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `verify_and_hash` found for reference `&Open` in the current scope [INFO] [stdout] --> src/state/block.rs:59:25 [INFO] [stdout] | [INFO] [stdout] 59 | |open| open.verify_and_hash(), [INFO] [stdout] | ^^^^^^^^^^^^^^^ method not found in `&Open` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Verifiable` which provides `verify_and_hash` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use crate::protocol::verified::Verifiable; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `verify_and_hash` found for reference `&Transaction` in the current scope [INFO] [stdout] --> src/state/block.rs:63:21 [INFO] [stdout] | [INFO] [stdout] 63 | |tr| tr.verify_and_hash(), [INFO] [stdout] | ^^^^^^^^^^^^^^^ method not found in `&Transaction` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Verifiable` which provides `verify_and_hash` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use crate::protocol::verified::Verifiable; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/state/block.rs:56:10 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn sign( [INFO] [stdout] | ---- implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] ... [INFO] [stdout] 56 | ) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ expected `Result`, found `()` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `std::result::Result` [INFO] [stdout] found unit type `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0782]: trait objects must include the `dyn` keyword [INFO] [stdout] --> src/waiting/tx_pool.rs:29:22 [INFO] [stdout] | [INFO] [stdout] 29 | mailbox: Process::TxPool.take_mailbox().unwrap(), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: add `dyn` keyword before this trait [INFO] [stdout] | [INFO] [stdout] 29 | mailbox: ::TxPool.take_mailbox().unwrap(), [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated item named `TxPool` found for trait `Process` [INFO] [stdout] --> src/waiting/tx_pool.rs:29:31 [INFO] [stdout] | [INFO] [stdout] 29 | mailbox: Process::TxPool.take_mailbox().unwrap(), [INFO] [stdout] | ^^^^^^ associated item not found in `Process` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0782]: trait objects must include the `dyn` keyword [INFO] [stdout] --> src/waiting/open_pool.rs:27:22 [INFO] [stdout] | [INFO] [stdout] 27 | mailbox: Process::OpenPool.take_mailbox().unwrap(), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: add `dyn` keyword before this trait [INFO] [stdout] | [INFO] [stdout] 27 | mailbox: ::OpenPool.take_mailbox().unwrap(), [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated item named `OpenPool` found for trait `Process` [INFO] [stdout] --> src/waiting/open_pool.rs:27:31 [INFO] [stdout] | [INFO] [stdout] 27 | mailbox: Process::OpenPool.take_mailbox().unwrap(), [INFO] [stdout] | ^^^^^^^^ associated item not found in `Process` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Serialize` [INFO] [stdout] --> src/network/transmitter.rs:4:26 [INFO] [stdout] | [INFO] [stdout] 4 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `verify_and_hash` found for reference `&Open` in the current scope [INFO] [stdout] --> src/state/block.rs:111:25 [INFO] [stdout] | [INFO] [stdout] 111 | |open| open.verify_and_hash(), [INFO] [stdout] | ^^^^^^^^^^^^^^^ method not found in `&Open` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Verifiable` which provides `verify_and_hash` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use crate::protocol::verified::Verifiable; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `verify_and_hash` found for reference `&Transaction` in the current scope [INFO] [stdout] --> src/state/block.rs:115:21 [INFO] [stdout] | [INFO] [stdout] 115 | |tr| tr.verify_and_hash(), [INFO] [stdout] | ^^^^^^^^^^^^^^^ method not found in `&Transaction` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Verifiable` which provides `verify_and_hash` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use crate::protocol::verified::Verifiable; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0782]: trait objects must include the `dyn` keyword [INFO] [stdout] --> src/state/chain.rs:32:22 [INFO] [stdout] | [INFO] [stdout] 32 | mailbox: Process::Chain.take_mailbox().unwrap(), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: add `dyn` keyword before this trait [INFO] [stdout] | [INFO] [stdout] 32 | mailbox: ::Chain.take_mailbox().unwrap(), [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated item named `Chain` found for trait `Process` [INFO] [stdout] --> src/state/chain.rs:32:31 [INFO] [stdout] | [INFO] [stdout] 32 | mailbox: Process::Chain.take_mailbox().unwrap(), [INFO] [stdout] | ^^^^^ associated item not found in `Process` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/state/bank.rs:20:14 [INFO] [stdout] | [INFO] [stdout] 20 | let (mut index_db, mut account_list, mut next_batch) = ( [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] --> src/state/bank.rs:20:46 [INFO] [stdout] | [INFO] [stdout] 20 | let (mut index_db, mut account_list, mut next_batch) = ( [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `self.account_list` as mutable, as it is behind a `&` reference [INFO] [stdout] --> src/state/bank.rs:91:9 [INFO] [stdout] | [INFO] [stdout] 91 | self.account_list.pop(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ `self` is a `&` reference, so the data it refers to cannot be borrowed as mutable [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be a mutable reference [INFO] [stdout] | [INFO] [stdout] 89 | pub fn revert_open(&mut self, tx: &Transaction) { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `finalize_block` found for struct `Bank` in the current scope [INFO] [stdout] --> src/state/chain.rs:53:27 [INFO] [stdout] | [INFO] [stdout] 53 | self.bank.finalize_block(block); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/state/bank.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Bank { [INFO] [stdout] | --------------- method `finalize_block` not found for this struct [INFO] [stdout] | [INFO] [stdout] help: there is a method `finalize_task` with a similar name [INFO] [stdout] | [INFO] [stdout] 53 | self.bank.finalize_task(block); [INFO] [stdout] | ~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/util/merkle.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | n => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `>::archive` in constant functions [INFO] [stdout] --> src/util/atomic.rs:14:37 [INFO] [stdout] | [INFO] [stdout] 14 | value: AtomicU64::new(v.archive()), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] help: add `#![feature(const_trait_impl)]` to the crate attributes to enable [INFO] [stdout] --> src/lib.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 + #![feature(const_trait_impl)] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: borrow of moved value: `env` [INFO] [stdout] --> src/storage/database.rs:17:17 [INFO] [stdout] | [INFO] [stdout] 14 | let env = EnvOpenOptions::new().open(directory)?; [INFO] [stdout] | --- move occurs because `env` has type `Env`, which does not implement the `Copy` trait [INFO] [stdout] 15 | Ok(Self { [INFO] [stdout] 16 | env, [INFO] [stdout] | --- value moved here [INFO] [stdout] 17 | db: env.create_database(None)? [INFO] [stdout] | ^^^ value borrowed here after move [INFO] [stdout] | [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 16 | env: env.clone(), [INFO] [stdout] | +++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `exists` [INFO] [stdout] --> src/storage/object_store.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | let exists = std::fs::metadata(file_path).is_ok(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_exists` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `default` [INFO] [stdout] --> src/storage/object_store.rs:12:34 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn open(file_path: &str, default: T) -> Result { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_default` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/storage/object_store.rs:23:22 [INFO] [stdout] | [INFO] [stdout] 23 | let memmap = unsafe { MmapRaw::map_raw(&file)? }; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `process` as mutable, as it is not declared as mutable [INFO] [stdout] --> src/process/mod.rs:40:19 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn spawn(process: P) -> Handle { [INFO] [stdout] | ------- help: consider changing this to be mutable: `mut process` [INFO] [stdout] ... [INFO] [stdout] 40 | match process.run(&mut mailbox, handle.clone()).await { [INFO] [stdout] | ^^^^^^^ cannot borrow as mutable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `mailbox` as mutable, as it is not declared as mutable [INFO] [stdout] --> src/process/mod.rs:40:31 [INFO] [stdout] | [INFO] [stdout] 40 | match process.run(&mut mailbox, handle.clone()).await { [INFO] [stdout] | ^^^^^^^^^^^^ cannot borrow as mutable [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be mutable [INFO] [stdout] | [INFO] [stdout] 38 | let mut mailbox = Mailbox(rx); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0310]: the parameter type `P` may not live long enough [INFO] [stdout] --> src/process/mod.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | / tokio::spawn(async move { [INFO] [stdout] 37 | | let handle = Handle(tx); [INFO] [stdout] 38 | | let mailbox = Mailbox(rx); [INFO] [stdout] 39 | | loop { [INFO] [stdout] ... | [INFO] [stdout] 44 | | } [INFO] [stdout] 45 | | }); [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |______the parameter type `P` must be valid for the static lifetime... [INFO] [stdout] | ...so that the type `P` will meet its required lifetime bounds [INFO] [stdout] | [INFO] [stdout] help: consider adding an explicit lifetime bound [INFO] [stdout] | [INFO] [stdout] 33 | pub fn spawn(process: P) -> Handle { [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 31 previous errors; 32 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0015, E0308, E0310, E0382, E0432, E0596, E0599, E0782. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0015`. [INFO] [stdout] [INFO] [stderr] error: could not compile `starlight-node` (lib) due to 32 previous errors; 33 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0599]: no method named `revert_block` found for struct `Bank` in the current scope [INFO] [stdout] --> src/state/chain.rs:70:23 [INFO] [stdout] | [INFO] [stdout] 70 | self.bank.revert_block(self.active.get(h).unwrap()); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/state/bank.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Bank { [INFO] [stdout] | --------------- method `revert_block` not found for this struct [INFO] [stdout] | [INFO] [stdout] help: there is a method `revert_task` with a similar name [INFO] [stdout] | [INFO] [stdout] 70 | self.bank.revert_task(self.active.get(h).unwrap()); [INFO] [stdout] | ~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `finalize_block` found for struct `Bank` in the current scope [INFO] [stdout] --> src/state/chain.rs:83:23 [INFO] [stdout] | [INFO] [stdout] 83 | self.bank.finalize_block(block); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/state/bank.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Bank { [INFO] [stdout] | --------------- method `finalize_block` not found for this struct [INFO] [stdout] | [INFO] [stdout] help: there is a method `finalize_task` with a similar name [INFO] [stdout] | [INFO] [stdout] 83 | self.bank.finalize_task(block); [INFO] [stdout] | ~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `revert_block` found for struct `Bank` in the current scope [INFO] [stdout] --> src/state/chain.rs:140:23 [INFO] [stdout] | [INFO] [stdout] 140 | self.bank.revert_block(self.active.get(h).unwrap()); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/state/bank.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Bank { [INFO] [stdout] | --------------- method `revert_block` not found for this struct [INFO] [stdout] | [INFO] [stdout] help: there is a method `revert_task` with a similar name [INFO] [stdout] | [INFO] [stdout] 140 | self.bank.revert_task(self.active.get(h).unwrap()); [INFO] [stdout] | ~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `revert_block` found for struct `Bank` in the current scope [INFO] [stdout] --> src/state/chain.rs:177:31 [INFO] [stdout] | [INFO] [stdout] 177 | self.bank.revert_block(self.active.get(h).unwrap()); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/state/bank.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Bank { [INFO] [stdout] | --------------- method `revert_block` not found for this struct [INFO] [stdout] | [INFO] [stdout] help: there is a method `revert_task` with a similar name [INFO] [stdout] | [INFO] [stdout] 177 | self.bank.revert_task(self.active.get(h).unwrap()); [INFO] [stdout] | ~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/state/chain.rs:200:39 [INFO] [stdout] | [INFO] [stdout] 200 | if self.bank.process_open(open, batch).is_ok() { [INFO] [stdout] | ------------ ^^^^ expected `&Open`, found `&Box>` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&Open` [INFO] [stdout] found reference `&Box>` [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/state/bank.rs:67:12 [INFO] [stdout] | [INFO] [stdout] 67 | pub fn process_open(&mut self, open: &Open, batch: Batch) -> Result<(), ()> { [INFO] [stdout] | ^^^^^^^^^^^^ ----------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated item named `Some` found for struct `Block` in the current scope [INFO] [stdout] --> src/state/chain.rs:225:9 [INFO] [stdout] | [INFO] [stdout] 224 | let block = Block:: [INFO] [stdout] | _____________________- [INFO] [stdout] 225 | | Some(()) [INFO] [stdout] | | -^^^^ associated item not found in `Block` [INFO] [stdout] | |________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] ::: src/state/block.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Block { [INFO] [stdout] | ---------------- associated item `Some` not found for this struct [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `Block` consider using one of the following associated functions: [INFO] [stdout] Block::sign [INFO] [stdout] Block::genesis [INFO] [stdout] --> src/state/block.rs:46:5 [INFO] [stdout] | [INFO] [stdout] 46 | / pub fn sign( [INFO] [stdout] 47 | | private: Private, [INFO] [stdout] 48 | | slot: Slot, [INFO] [stdout] 49 | | previous: Hash, [INFO] [stdout] ... | [INFO] [stdout] 55 | | vote_hashes: Vec, [INFO] [stdout] 56 | | ) -> Result { [INFO] [stdout] | |____________________________^ [INFO] [stdout] ... [INFO] [stdout] 78 | pub fn genesis(private: Private) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/state/chain.rs:190:43 [INFO] [stdout] | [INFO] [stdout] 190 | pub fn try_create_block(&mut self) -> Option<()> { [INFO] [stdout] | ---------------- ^^^^^^^^^^ expected `Option<()>`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] | [INFO] [stdout] = note: expected enum `std::option::Option<()>` [INFO] [stdout] found unit type `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0782]: trait objects must include the `dyn` keyword [INFO] [stdout] --> src/waiting/tx_pool.rs:29:22 [INFO] [stdout] | [INFO] [stdout] 29 | mailbox: Process::TxPool.take_mailbox().unwrap(), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: add `dyn` keyword before this trait [INFO] [stdout] | [INFO] [stdout] 29 | mailbox: ::TxPool.take_mailbox().unwrap(), [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated item named `TxPool` found for trait `Process` [INFO] [stdout] --> src/waiting/tx_pool.rs:29:31 [INFO] [stdout] | [INFO] [stdout] 29 | mailbox: Process::TxPool.take_mailbox().unwrap(), [INFO] [stdout] | ^^^^^^ associated item not found in `Process` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0782]: trait objects must include the `dyn` keyword [INFO] [stdout] --> src/waiting/open_pool.rs:27:22 [INFO] [stdout] | [INFO] [stdout] 27 | mailbox: Process::OpenPool.take_mailbox().unwrap(), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: add `dyn` keyword before this trait [INFO] [stdout] | [INFO] [stdout] 27 | mailbox: ::OpenPool.take_mailbox().unwrap(), [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated item named `OpenPool` found for trait `Process` [INFO] [stdout] --> src/waiting/open_pool.rs:27:31 [INFO] [stdout] | [INFO] [stdout] 27 | mailbox: Process::OpenPool.take_mailbox().unwrap(), [INFO] [stdout] | ^^^^^^^^ associated item not found in `Process` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Serialize` [INFO] [stdout] --> src/network/transmitter.rs:4:26 [INFO] [stdout] | [INFO] [stdout] 4 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/state/bank.rs:20:14 [INFO] [stdout] | [INFO] [stdout] 20 | let (mut index_db, mut account_list, mut next_batch) = ( [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] --> src/state/bank.rs:20:46 [INFO] [stdout] | [INFO] [stdout] 20 | let (mut index_db, mut account_list, mut next_batch) = ( [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `self.account_list` as mutable, as it is behind a `&` reference [INFO] [stdout] --> src/state/bank.rs:91:9 [INFO] [stdout] | [INFO] [stdout] 91 | self.account_list.pop(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ `self` is a `&` reference, so the data it refers to cannot be borrowed as mutable [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be a mutable reference [INFO] [stdout] | [INFO] [stdout] 89 | pub fn revert_open(&mut self, tx: &Transaction) { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/util/merkle.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | n => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `>::archive` in constant functions [INFO] [stdout] --> src/util/atomic.rs:14:37 [INFO] [stdout] | [INFO] [stdout] 14 | value: AtomicU64::new(v.archive()), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] help: add `#![feature(const_trait_impl)]` to the crate attributes to enable [INFO] [stdout] --> src/lib.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 + #![feature(const_trait_impl)] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: borrow of moved value: `env` [INFO] [stdout] --> src/storage/database.rs:17:17 [INFO] [stdout] | [INFO] [stdout] 14 | let env = EnvOpenOptions::new().open(directory)?; [INFO] [stdout] | --- move occurs because `env` has type `Env`, which does not implement the `Copy` trait [INFO] [stdout] 15 | Ok(Self { [INFO] [stdout] 16 | env, [INFO] [stdout] | --- value moved here [INFO] [stdout] 17 | db: env.create_database(None)? [INFO] [stdout] | ^^^ value borrowed here after move [INFO] [stdout] | [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 16 | env: env.clone(), [INFO] [stdout] | +++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `exists` [INFO] [stdout] --> src/storage/object_store.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | let exists = std::fs::metadata(file_path).is_ok(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_exists` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `default` [INFO] [stdout] --> src/storage/object_store.rs:12:34 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn open(file_path: &str, default: T) -> Result { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_default` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/storage/object_store.rs:23:22 [INFO] [stdout] | [INFO] [stdout] 23 | let memmap = unsafe { MmapRaw::map_raw(&file)? }; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `process` as mutable, as it is not declared as mutable [INFO] [stdout] --> src/process/mod.rs:40:19 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn spawn(process: P) -> Handle { [INFO] [stdout] | ------- help: consider changing this to be mutable: `mut process` [INFO] [stdout] ... [INFO] [stdout] 40 | match process.run(&mut mailbox, handle.clone()).await { [INFO] [stdout] | ^^^^^^^ cannot borrow as mutable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `mailbox` as mutable, as it is not declared as mutable [INFO] [stdout] --> src/process/mod.rs:40:31 [INFO] [stdout] | [INFO] [stdout] 40 | match process.run(&mut mailbox, handle.clone()).await { [INFO] [stdout] | ^^^^^^^^^^^^ cannot borrow as mutable [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be mutable [INFO] [stdout] | [INFO] [stdout] 38 | let mut mailbox = Mailbox(rx); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0310]: the parameter type `P` may not live long enough [INFO] [stdout] --> src/process/mod.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | / tokio::spawn(async move { [INFO] [stdout] 37 | | let handle = Handle(tx); [INFO] [stdout] 38 | | let mailbox = Mailbox(rx); [INFO] [stdout] 39 | | loop { [INFO] [stdout] ... | [INFO] [stdout] 44 | | } [INFO] [stdout] 45 | | }); [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |______the parameter type `P` must be valid for the static lifetime... [INFO] [stdout] | ...so that the type `P` will meet its required lifetime bounds [INFO] [stdout] | [INFO] [stdout] help: consider adding an explicit lifetime bound [INFO] [stdout] | [INFO] [stdout] 33 | pub fn spawn(process: P) -> Handle { [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 31 previous errors; 33 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0015, E0308, E0310, E0382, E0432, E0596, E0599, E0782. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0015`. [INFO] [stdout] [INFO] [stderr] error: could not compile `starlight-node` (lib test) due to 32 previous errors; 34 warnings emitted [INFO] running `Command { std: "docker" "inspect" "7950fc30a682de57c45aeeae45b35a2a6328ed9f2807c37fd0a98d6abc9a349c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7950fc30a682de57c45aeeae45b35a2a6328ed9f2807c37fd0a98d6abc9a349c", kill_on_drop: false }` [INFO] [stdout] 7950fc30a682de57c45aeeae45b35a2a6328ed9f2807c37fd0a98d6abc9a349c