[INFO] cloning repository https://github.com/jonas089/pos-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/jonas089/pos-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjonas089%2Fpos-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjonas089%2Fpos-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ad1c2925229ea79fa72e2e49cf48386ca6de4d60 [INFO] testing jonas089/pos-rust against 1.79.0 for beta-1.80-4 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjonas089%2Fpos-rust" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/jonas089/pos-rust on toolchain 1.79.0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.79.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/jonas089/pos-rust [INFO] finished tweaking git repo https://github.com/jonas089/pos-rust [INFO] tweaked toml for git repo https://github.com/jonas089/pos-rust written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/jonas089/pos-rust 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" "+1.79.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded winnow v0.5.28 [INFO] [stderr] Downloaded tokio v1.35.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+1.79.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] badfda1ff4a467f5f943e4370502a13547d08643ac27b3a333328a0cee4df2df [INFO] running `Command { std: "docker" "start" "-a" "badfda1ff4a467f5f943e4370502a13547d08643ac27b3a333328a0cee4df2df", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "badfda1ff4a467f5f943e4370502a13547d08643ac27b3a333328a0cee4df2df", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "badfda1ff4a467f5f943e4370502a13547d08643ac27b3a333328a0cee4df2df", kill_on_drop: false }` [INFO] [stdout] badfda1ff4a467f5f943e4370502a13547d08643ac27b3a333328a0cee4df2df [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+1.79.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 634027f41da08edcfd41c24dfaf7483de8f5e8dca9a05eeb36265c5bed8a8a6a [INFO] running `Command { std: "docker" "start" "-a" "634027f41da08edcfd41c24dfaf7483de8f5e8dca9a05eeb36265c5bed8a8a6a", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.70 [INFO] [stderr] Compiling libc v0.2.151 [INFO] [stderr] Compiling once_cell v1.19.0 [INFO] [stderr] Compiling serde v1.0.193 [INFO] [stderr] Compiling zerocopy v0.7.31 [INFO] [stderr] Compiling http v0.2.11 [INFO] [stderr] Compiling rustix v0.38.28 [INFO] [stderr] Compiling futures-util v0.3.29 [INFO] [stderr] Compiling linux-raw-sys v0.4.12 [INFO] [stderr] Compiling smallvec v1.11.2 [INFO] [stderr] Compiling deranged v0.3.10 [INFO] [stderr] Compiling ref-cast v1.0.21 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Compiling hashbrown v0.14.3 [INFO] [stderr] Compiling winnow v0.5.28 [INFO] [stderr] Compiling tracing-core v0.1.32 [INFO] [stderr] Compiling num-traits v0.2.17 [INFO] [stderr] Compiling ahash v0.8.6 [INFO] [stderr] Compiling rocket v0.5.0 [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Compiling fallible-streaming-iterator v0.1.9 [INFO] [stderr] Compiling fallible-iterator v0.3.0 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling dotenv v0.15.0 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Compiling indexmap v2.1.0 [INFO] [stderr] Compiling syn v2.0.41 [INFO] [stderr] Compiling socket2 v0.5.5 [INFO] [stderr] Compiling mio v0.8.10 [INFO] [stderr] Compiling num_cpus v1.16.0 [INFO] [stderr] Compiling signal-hook-registry v1.4.1 [INFO] [stderr] Compiling socket2 v0.4.10 [INFO] [stderr] Compiling http-body v0.4.6 [INFO] [stderr] Compiling time v0.3.30 [INFO] [stderr] Compiling getrandom v0.2.11 [INFO] [stderr] Compiling tokio v1.35.0 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling libsqlite3-sys v0.27.0 [INFO] [stderr] Compiling parking_lot_core v0.9.9 [INFO] [stderr] Compiling hashlink v0.8.4 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling chrono v0.4.31 [INFO] [stderr] Compiling parking_lot v0.12.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling rusqlite v0.30.0 [INFO] [stderr] Compiling cookie v0.18.0 [INFO] [stderr] Compiling is-terminal v0.4.9 [INFO] [stderr] Compiling tempfile v3.8.1 [INFO] [stderr] Compiling yansi v1.0.0-rc.1 [INFO] [stderr] Compiling futures v0.3.29 [INFO] [stderr] Compiling hyper v0.14.27 [INFO] [stderr] Compiling proc-macro2-diagnostics v0.10.1 [INFO] [stderr] Compiling devise_core v0.4.1 [INFO] [stderr] Compiling serde_derive v1.0.193 [INFO] [stderr] Compiling tokio-macros v2.2.0 [INFO] [stderr] Compiling pear_codegen v0.2.8 [INFO] [stderr] Compiling ref-cast-impl v1.0.21 [INFO] [stderr] Compiling async-stream-impl v0.3.5 [INFO] [stderr] Compiling async-trait v0.1.74 [INFO] [stderr] Compiling devise_codegen v0.4.1 [INFO] [stderr] Compiling async-stream v0.3.5 [INFO] [stderr] Compiling pear v0.2.8 [INFO] [stderr] Compiling devise v0.4.1 [INFO] [stderr] Compiling rocket_http v0.5.0 [INFO] [stderr] Compiling rocket_codegen v0.5.0 [INFO] [stderr] Compiling tokio-util v0.7.10 [INFO] [stderr] Compiling tokio-stream v0.1.14 [INFO] [stderr] Compiling multer v2.1.0 [INFO] [stderr] Compiling toml_datetime v0.6.5 [INFO] [stderr] Compiling serde_spanned v0.6.4 [INFO] [stderr] Compiling uncased v0.9.9 [INFO] [stderr] Compiling ubyte v0.10.4 [INFO] [stderr] Compiling serde_json v1.0.108 [INFO] [stderr] Compiling h2 v0.3.22 [INFO] [stderr] Compiling toml_edit v0.21.0 [INFO] [stderr] Compiling toml v0.8.8 [INFO] [stderr] Compiling figment v0.10.12 [INFO] [stderr] Compiling pos-rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `DateTime` [INFO] [stdout] --> src/helpers.rs:3:14 [INFO] [stdout] | [INFO] [stdout] 3 | use chrono::{DateTime, Local}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rocket::time::format_description::modifier::UnixTimestamp` [INFO] [stdout] --> src/storage.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use rocket::time::format_description::modifier::UnixTimestamp; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `dotenv::dotenv` [INFO] [stdout] --> src/storage.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use dotenv::dotenv; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/storage.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::helpers::hash_input` [INFO] [stdout] --> src/storage.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::helpers::hash_input; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/storage.rs:57:17 [INFO] [stdout] | [INFO] [stdout] 57 | Err(err) => Ok(None), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/storage.rs:116:17 [INFO] [stdout] | [INFO] [stdout] 116 | Err(err) => Ok(None), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `genesis_block` is never used [INFO] [stdout] --> src/helpers.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn genesis_block() -> Block{ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_validator_set` is never used [INFO] [stdout] --> src/helpers.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn create_validator_set(n: u64, stakes: Vec) -> Vec{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `default_validator_set` is never used [INFO] [stdout] --> src/helpers.rs:48:8 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn default_validator_set() -> Vec{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `initialize_blockstore_with_genesis` is never used [INFO] [stdout] --> src/helpers.rs:53:8 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn initialize_blockstore_with_genesis(storage: &Storage){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `initialize_candidatestore` is never used [INFO] [stdout] --> src/helpers.rs:58:8 [INFO] [stdout] | [INFO] [stdout] 58 | pub fn initialize_candidatestore(storage: &Storage){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_block_with_height` is never used [INFO] [stdout] --> src/helpers.rs:62:8 [INFO] [stdout] | [INFO] [stdout] 62 | pub fn get_block_with_height(storage: &Storage, height: &u64) -> Block{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_candidate_pool` is never used [INFO] [stdout] --> src/helpers.rs:67:8 [INFO] [stdout] | [INFO] [stdout] 67 | pub fn get_candidate_pool(storage: &Storage, height: &u64) -> BlockChain{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `purge_dbs` is never used [INFO] [stdout] --> src/helpers.rs:72:8 [INFO] [stdout] | [INFO] [stdout] 72 | pub fn purge_dbs(blockstorage: PathBuf, candidatestorage: PathBuf){ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_random_number` is never used [INFO] [stdout] --> src/helpers.rs:93:8 [INFO] [stdout] | [INFO] [stdout] 93 | pub fn generate_random_number() -> u64{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_validator_weight` is never used [INFO] [stdout] --> src/helpers.rs:98:8 [INFO] [stdout] | [INFO] [stdout] 98 | pub fn get_validator_weight(stake: u64, total_votes: u64) -> u128{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_random_number_vrf` is never used [INFO] [stdout] --> src/helpers.rs:105:8 [INFO] [stdout] | [INFO] [stdout] 105 | pub fn generate_random_number_vrf(){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `create`, `insert`, and `height` are never used [INFO] [stdout] --> src/storage.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub trait BlockStore{ [INFO] [stdout] | ---------- methods in this trait [INFO] [stdout] 11 | fn create(&self) -> Result<()>; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 12 | fn insert(&self, height: u64, block: Block) -> Result<()>; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 13 | fn height(&self, height: u64)-> Result>; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `create` and `insert` are never used [INFO] [stdout] --> src/storage.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 16 | pub trait CandidateStore{ [INFO] [stdout] | -------------- methods in this trait [INFO] [stdout] 17 | fn create(&self) -> Result<()>; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 18 | fn insert(&self, height: u64, block: Block) -> Result<()>; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 20 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `DateTime` [INFO] [stdout] --> src/helpers.rs:3:14 [INFO] [stdout] | [INFO] [stdout] 3 | use chrono::{DateTime, Local}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rocket::time::format_description::modifier::UnixTimestamp` [INFO] [stdout] --> src/storage.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use rocket::time::format_description::modifier::UnixTimestamp; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `dotenv::dotenv` [INFO] [stdout] --> src/storage.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use dotenv::dotenv; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/storage.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::helpers::hash_input` [INFO] [stdout] --> src/storage.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::helpers::hash_input; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `genesis_block` [INFO] [stdout] --> src/main.rs:16:33 [INFO] [stdout] | [INFO] [stdout] 16 | use helpers::{chrono_timestamp, genesis_block, default_validator_set, initialize_blockstore_with_genesis, initialize_candidatestore, get_... [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/storage.rs:57:17 [INFO] [stdout] | [INFO] [stdout] 57 | Err(err) => Ok(None), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/storage.rs:116:17 [INFO] [stdout] | [INFO] [stdout] 116 | Err(err) => Ok(None), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_random_number_vrf` is never used [INFO] [stdout] --> src/helpers.rs:105:8 [INFO] [stdout] | [INFO] [stdout] 105 | pub fn generate_random_number_vrf(){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `block_hash_from_instance`, `new`, and `validate` are never used [INFO] [stdout] --> src/types.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl Block{ [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 17 | pub fn block_hash_from_instance(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn new(index: u64, timestamp: &str, bpm: String, prev_hash: Option<&String>, validator: Validator) -> Block { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn validate(block: Block, prev_block: Block) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `stake` is never read [INFO] [stdout] --> src/types.rs:99:9 [INFO] [stdout] | [INFO] [stdout] 97 | pub struct Vote{ [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 98 | pub block: Block, [INFO] [stdout] 99 | pub stake: u64 [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 57.80s [INFO] running `Command { std: "docker" "inspect" "634027f41da08edcfd41c24dfaf7483de8f5e8dca9a05eeb36265c5bed8a8a6a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "634027f41da08edcfd41c24dfaf7483de8f5e8dca9a05eeb36265c5bed8a8a6a", kill_on_drop: false }` [INFO] [stdout] 634027f41da08edcfd41c24dfaf7483de8f5e8dca9a05eeb36265c5bed8a8a6a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+1.79.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 114785b6d02994ba8da1f28a7db7bf40c3803a7273512283251bcca251d66c82 [INFO] running `Command { std: "docker" "start" "-a" "114785b6d02994ba8da1f28a7db7bf40c3803a7273512283251bcca251d66c82", kill_on_drop: false }` [INFO] [stdout] warning: unused import: `DateTime` [INFO] [stdout] --> src/helpers.rs:3:14 [INFO] [stdout] | [INFO] [stdout] 3 | use chrono::{DateTime, Local}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rocket::time::format_description::modifier::UnixTimestamp` [INFO] [stdout] --> src/storage.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use rocket::time::format_description::modifier::UnixTimestamp; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `dotenv::dotenv` [INFO] [stdout] --> src/storage.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use dotenv::dotenv; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/storage.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::helpers::hash_input` [INFO] [stdout] --> src/storage.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::helpers::hash_input; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/storage.rs:57:17 [INFO] [stdout] | [INFO] [stdout] 57 | Err(err) => Ok(None), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/storage.rs:116:17 [INFO] [stdout] | [INFO] [stdout] 116 | Err(err) => Ok(None), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `genesis_block` is never used [INFO] [stdout] --> src/helpers.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn genesis_block() -> Block{ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_validator_set` is never used [INFO] [stdout] --> src/helpers.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn create_validator_set(n: u64, stakes: Vec) -> Vec{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `default_validator_set` is never used [INFO] [stdout] --> src/helpers.rs:48:8 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn default_validator_set() -> Vec{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `initialize_blockstore_with_genesis` is never used [INFO] [stdout] --> src/helpers.rs:53:8 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn initialize_blockstore_with_genesis(storage: &Storage){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `initialize_candidatestore` is never used [INFO] [stdout] --> src/helpers.rs:58:8 [INFO] [stdout] | [INFO] [stdout] 58 | pub fn initialize_candidatestore(storage: &Storage){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_block_with_height` is never used [INFO] [stdout] --> src/helpers.rs:62:8 [INFO] [stdout] | [INFO] [stdout] 62 | pub fn get_block_with_height(storage: &Storage, height: &u64) -> Block{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_candidate_pool` is never used [INFO] [stdout] --> src/helpers.rs:67:8 [INFO] [stdout] | [INFO] [stdout] 67 | pub fn get_candidate_pool(storage: &Storage, height: &u64) -> BlockChain{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `purge_dbs` is never used [INFO] [stdout] --> src/helpers.rs:72:8 [INFO] [stdout] | [INFO] [stdout] 72 | pub fn purge_dbs(blockstorage: PathBuf, candidatestorage: PathBuf){ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_random_number` is never used [INFO] [stdout] --> src/helpers.rs:93:8 [INFO] [stdout] | [INFO] [stdout] 93 | pub fn generate_random_number() -> u64{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_validator_weight` is never used [INFO] [stdout] --> src/helpers.rs:98:8 [INFO] [stdout] | [INFO] [stdout] 98 | pub fn get_validator_weight(stake: u64, total_votes: u64) -> u128{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_random_number_vrf` is never used [INFO] [stdout] --> src/helpers.rs:105:8 [INFO] [stdout] | [INFO] [stdout] 105 | pub fn generate_random_number_vrf(){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `create`, `insert`, and `height` are never used [INFO] [stdout] --> src/storage.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub trait BlockStore{ [INFO] [stdout] | ---------- methods in this trait [INFO] [stdout] 11 | fn create(&self) -> Result<()>; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 12 | fn insert(&self, height: u64, block: Block) -> Result<()>; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 13 | fn height(&self, height: u64)-> Result>; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `create` and `insert` are never used [INFO] [stdout] --> src/storage.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 16 | pub trait CandidateStore{ [INFO] [stdout] | -------------- methods in this trait [INFO] [stdout] 17 | fn create(&self) -> Result<()>; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 18 | fn insert(&self, height: u64, block: Block) -> Result<()>; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling pos-rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: 20 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `DateTime` [INFO] [stdout] --> src/helpers.rs:3:14 [INFO] [stdout] | [INFO] [stdout] 3 | use chrono::{DateTime, Local}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rocket::time::format_description::modifier::UnixTimestamp` [INFO] [stdout] --> src/storage.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use rocket::time::format_description::modifier::UnixTimestamp; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `DateTime` [INFO] [stdout] --> src/helpers.rs:3:14 [INFO] [stdout] | [INFO] [stdout] 3 | use chrono::{DateTime, Local}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rocket::time::format_description::modifier::UnixTimestamp` [INFO] [stdout] --> src/storage.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use rocket::time::format_description::modifier::UnixTimestamp; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `genesis_block` [INFO] [stdout] --> src/main.rs:16:33 [INFO] [stdout] | [INFO] [stdout] 16 | use helpers::{chrono_timestamp, genesis_block, default_validator_set, initialize_blockstore_with_genesis, initialize_candidatestore, get_... [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/storage.rs:57:17 [INFO] [stdout] | [INFO] [stdout] 57 | Err(err) => Ok(None), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/storage.rs:116:17 [INFO] [stdout] | [INFO] [stdout] 116 | Err(err) => Ok(None), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/storage.rs:57:17 [INFO] [stdout] | [INFO] [stdout] 57 | Err(err) => Ok(None), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/storage.rs:116:17 [INFO] [stdout] | [INFO] [stdout] 116 | Err(err) => Ok(None), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `default_validator_set` is never used [INFO] [stdout] --> src/helpers.rs:48:8 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn default_validator_set() -> Vec{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_random_number_vrf` is never used [INFO] [stdout] --> src/helpers.rs:105:8 [INFO] [stdout] | [INFO] [stdout] 105 | pub fn generate_random_number_vrf(){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `block_hash_from_instance`, `new`, and `validate` are never used [INFO] [stdout] --> src/types.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl Block{ [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 17 | pub fn block_hash_from_instance(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn new(index: u64, timestamp: &str, bpm: String, prev_hash: Option<&String>, validator: Validator) -> Block { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn validate(block: Block, prev_block: Block) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `stake` is never read [INFO] [stdout] --> src/types.rs:99:9 [INFO] [stdout] | [INFO] [stdout] 97 | pub struct Vote{ [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 98 | pub block: Block, [INFO] [stdout] 99 | pub stake: u64 [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `initialize_blockstore_with_genesis` is never used [INFO] [stdout] --> src/helpers.rs:53:8 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn initialize_blockstore_with_genesis(storage: &Storage){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `initialize_candidatestore` is never used [INFO] [stdout] --> src/helpers.rs:58:8 [INFO] [stdout] | [INFO] [stdout] 58 | pub fn initialize_candidatestore(storage: &Storage){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_block_with_height` is never used [INFO] [stdout] --> src/helpers.rs:62:8 [INFO] [stdout] | [INFO] [stdout] 62 | pub fn get_block_with_height(storage: &Storage, height: &u64) -> Block{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_candidate_pool` is never used [INFO] [stdout] --> src/helpers.rs:67:8 [INFO] [stdout] | [INFO] [stdout] 67 | pub fn get_candidate_pool(storage: &Storage, height: &u64) -> BlockChain{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `purge_dbs` is never used [INFO] [stdout] --> src/helpers.rs:72:8 [INFO] [stdout] | [INFO] [stdout] 72 | pub fn purge_dbs(blockstorage: PathBuf, candidatestorage: PathBuf){ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_random_number` is never used [INFO] [stdout] --> src/helpers.rs:93:8 [INFO] [stdout] | [INFO] [stdout] 93 | pub fn generate_random_number() -> u64{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_validator_weight` is never used [INFO] [stdout] --> src/helpers.rs:98:8 [INFO] [stdout] | [INFO] [stdout] 98 | pub fn get_validator_weight(stake: u64, total_votes: u64) -> u128{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_random_number_vrf` is never used [INFO] [stdout] --> src/helpers.rs:105:8 [INFO] [stdout] | [INFO] [stdout] 105 | pub fn generate_random_number_vrf(){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 4.54s [INFO] running `Command { std: "docker" "inspect" "114785b6d02994ba8da1f28a7db7bf40c3803a7273512283251bcca251d66c82", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "114785b6d02994ba8da1f28a7db7bf40c3803a7273512283251bcca251d66c82", kill_on_drop: false }` [INFO] [stdout] 114785b6d02994ba8da1f28a7db7bf40c3803a7273512283251bcca251d66c82 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+1.79.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 8520aa01486cf922e6353a5c252c6684bf37fa582f4dbf19dd2576d4a0d48c47 [INFO] running `Command { std: "docker" "start" "-a" "8520aa01486cf922e6353a5c252c6684bf37fa582f4dbf19dd2576d4a0d48c47", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `DateTime` [INFO] [stderr] --> src/helpers.rs:3:14 [INFO] [stderr] | [INFO] [stderr] 3 | use chrono::{DateTime, Local}; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `rocket::time::format_description::modifier::UnixTimestamp` [INFO] [stderr] --> src/storage.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use rocket::time::format_description::modifier::UnixTimestamp; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `dotenv::dotenv` [INFO] [stderr] --> src/storage.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | use dotenv::dotenv; [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::env` [INFO] [stderr] --> src/storage.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 6 | use std::env; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `crate::helpers::hash_input` [INFO] [stderr] --> src/storage.rs:7:5 [INFO] [stderr] | [INFO] [stderr] 7 | use crate::helpers::hash_input; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `err` [INFO] [stderr] --> src/storage.rs:57:17 [INFO] [stderr] | [INFO] [stderr] 57 | Err(err) => Ok(None), [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `err` [INFO] [stderr] --> src/storage.rs:116:17 [INFO] [stderr] | [INFO] [stderr] 116 | Err(err) => Ok(None), [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stderr] [INFO] [stderr] warning: function `genesis_block` is never used [INFO] [stderr] --> src/helpers.rs:22:8 [INFO] [stderr] | [INFO] [stderr] 22 | pub fn genesis_block() -> Block{ [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: function `create_validator_set` is never used [INFO] [stderr] --> src/helpers.rs:37:8 [INFO] [stderr] | [INFO] [stderr] 37 | pub fn create_validator_set(n: u64, stakes: Vec) -> Vec{ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `default_validator_set` is never used [INFO] [stderr] --> src/helpers.rs:48:8 [INFO] [stderr] | [INFO] [stderr] 48 | pub fn default_validator_set() -> Vec{ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `initialize_blockstore_with_genesis` is never used [INFO] [stderr] --> src/helpers.rs:53:8 [INFO] [stderr] | [INFO] [stderr] 53 | pub fn initialize_blockstore_with_genesis(storage: &Storage){ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `initialize_candidatestore` is never used [INFO] [stderr] --> src/helpers.rs:58:8 [INFO] [stderr] | [INFO] [stderr] 58 | pub fn initialize_candidatestore(storage: &Storage){ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `get_block_with_height` is never used [INFO] [stderr] --> src/helpers.rs:62:8 [INFO] [stderr] | [INFO] [stderr] 62 | pub fn get_block_with_height(storage: &Storage, height: &u64) -> Block{ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `get_candidate_pool` is never used [INFO] [stderr] --> src/helpers.rs:67:8 [INFO] [stderr] | [INFO] [stderr] 67 | pub fn get_candidate_pool(storage: &Storage, height: &u64) -> BlockChain{ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `purge_dbs` is never used [INFO] [stderr] --> src/helpers.rs:72:8 [INFO] [stderr] | [INFO] [stderr] 72 | pub fn purge_dbs(blockstorage: PathBuf, candidatestorage: PathBuf){ [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `generate_random_number` is never used [INFO] [stderr] --> src/helpers.rs:93:8 [INFO] [stderr] | [INFO] [stderr] 93 | pub fn generate_random_number() -> u64{ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `get_validator_weight` is never used [INFO] [stderr] --> src/helpers.rs:98:8 [INFO] [stderr] | [INFO] [stderr] 98 | pub fn get_validator_weight(stake: u64, total_votes: u64) -> u128{ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `generate_random_number_vrf` is never used [INFO] [stderr] --> src/helpers.rs:105:8 [INFO] [stderr] | [INFO] [stderr] 105 | pub fn generate_random_number_vrf(){ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `create`, `insert`, and `height` are never used [INFO] [stderr] --> src/storage.rs:11:8 [INFO] [stderr] | [INFO] [stderr] 10 | pub trait BlockStore{ [INFO] [stderr] | ---------- methods in this trait [INFO] [stderr] 11 | fn create(&self) -> Result<()>; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] 12 | fn insert(&self, height: u64, block: Block) -> Result<()>; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] 13 | fn height(&self, height: u64)-> Result>; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `create` and `insert` are never used [INFO] [stderr] --> src/storage.rs:17:8 [INFO] [stderr] | [INFO] [stderr] 16 | pub trait CandidateStore{ [INFO] [stderr] | -------------- methods in this trait [INFO] [stderr] 17 | fn create(&self) -> Result<()>; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] 18 | fn insert(&self, height: u64, block: Block) -> Result<()>; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `default_validator_set` is never used [INFO] [stderr] --> src/helpers.rs:48:8 [INFO] [stderr] | [INFO] [stderr] 48 | pub fn default_validator_set() -> Vec{ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `pos-rust` (lib) generated 20 warnings (run `cargo fix --lib -p pos-rust` to apply 5 suggestions) [INFO] [stderr] warning: `pos-rust` (lib test) generated 13 warnings (12 duplicates) [INFO] [stderr] warning: unused import: `genesis_block` [INFO] [stderr] --> src/main.rs:16:33 [INFO] [stderr] | [INFO] [stderr] 16 | use helpers::{chrono_timestamp, genesis_block, default_validator_set, initialize_blockstore_with_genesis, initialize_candidatestore, get_... [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `generate_random_number_vrf` is never used [INFO] [stderr] --> src/helpers.rs:105:8 [INFO] [stderr] | [INFO] [stderr] 105 | pub fn generate_random_number_vrf(){ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated items `block_hash_from_instance`, `new`, and `validate` are never used [INFO] [stderr] --> src/types.rs:17:12 [INFO] [stderr] | [INFO] [stderr] 16 | impl Block{ [INFO] [stderr] | ---------- associated items in this implementation [INFO] [stderr] 17 | pub fn block_hash_from_instance(&self) -> String { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 23 | pub fn new(index: u64, timestamp: &str, bpm: String, prev_hash: Option<&String>, validator: Validator) -> Block { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 47 | pub fn validate(block: Block, prev_block: Block) -> bool { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `stake` is never read [INFO] [stderr] --> src/types.rs:99:9 [INFO] [stderr] | [INFO] [stderr] 97 | pub struct Vote{ [INFO] [stderr] | ---- field in this struct [INFO] [stderr] 98 | pub block: Block, [INFO] [stderr] 99 | pub stake: u64 [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `pos-rust` (bin "pos-rust" test) generated 8 warnings (4 duplicates) (run `cargo fix --bin "pos-rust" --tests` to apply 1 suggestion) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.37s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/pos_rust-7f1a972474995774) [INFO] [stdout] [INFO] [stdout] running 2 tests [INFO] [stdout] test storage::test_block_store ... FAILED [INFO] [stdout] test storage::test_candidate_store ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- storage::test_block_store stdout ---- [INFO] [stdout] thread 'storage::test_block_store' panicked at src/storage.rs:131:42: [INFO] [stdout] Failed to create db file at: "./blocks.db"!: SqliteFailure(Error { code: CannotOpen, extended_code: 14 }, Some("unable to open database file: ./blocks.db")) [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x55eb01800d75 - std::backtrace_rs::backtrace::libunwind::trace::h1a07e5dba0da0cd2 [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/std/src/../../backtrace/src/backtrace/libunwind.rs:105:5 [INFO] [stdout] 1: 0x55eb01800d75 - std::backtrace_rs::backtrace::trace_unsynchronized::h61b9b8394328c0bc [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stdout] 2: 0x55eb01800d75 - std::sys_common::backtrace::_print_fmt::h1c5e18b460934cff [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/std/src/sys_common/backtrace.rs:68:5 [INFO] [stdout] 3: 0x55eb01800d75 - ::fmt::h1e1a1972118942ad [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/std/src/sys_common/backtrace.rs:44:22 [INFO] [stdout] 4: 0x55eb01827e2b - core::fmt::rt::Argument::fmt::h07af2b4071d536cd [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/core/src/fmt/rt.rs:165:63 [INFO] [stdout] 5: 0x55eb01827e2b - core::fmt::write::hc090a2ffd6b28c4a [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/core/src/fmt/mod.rs:1157:21 [INFO] [stdout] 6: 0x55eb017fe51f - std::io::Write::write_fmt::h9443d787e8277bd2 [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/std/src/io/mod.rs:1832:15 [INFO] [stdout] 7: 0x55eb01800b4e - std::sys_common::backtrace::_print::h4e80c5803d4ee35b [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/std/src/sys_common/backtrace.rs:47:5 [INFO] [stdout] 8: 0x55eb01800b4e - std::sys_common::backtrace::print::ha96650907276675e [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/std/src/sys_common/backtrace.rs:34:9 [INFO] [stdout] 9: 0x55eb018024c9 - std::panicking::default_hook::{{closure}}::h215c2a0a8346e0e0 [INFO] [stdout] 10: 0x55eb0180218e - std::panicking::default_hook::h207342be97478370 [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/std/src/panicking.rs:295:9 [INFO] [stdout] 11: 0x55eb0175934a - as core::ops::function::Fn>::call::haebd875eeb75949f [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/alloc/src/boxed.rs:2036:9 [INFO] [stdout] 12: 0x55eb0175934a - test::test_main::{{closure}}::h9108cb0ebacdb458 [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/test/src/lib.rs:137:21 [INFO] [stdout] 13: 0x55eb01802a96 - as core::ops::function::Fn>::call::ha9c3bc81d312fd83 [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/alloc/src/boxed.rs:2036:9 [INFO] [stdout] 14: 0x55eb01802a96 - std::panicking::rust_panic_with_hook::hac8bdceee1e4fe2c [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/std/src/panicking.rs:799:13 [INFO] [stdout] 15: 0x55eb01802844 - std::panicking::begin_panic_handler::{{closure}}::h00d785e82757ce3c [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/std/src/panicking.rs:664:13 [INFO] [stdout] 16: 0x55eb01801239 - std::sys_common::backtrace::__rust_end_short_backtrace::h1628d957bcd06996 [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/std/src/sys_common/backtrace.rs:171:18 [INFO] [stdout] 17: 0x55eb01802577 - rust_begin_unwind [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/std/src/panicking.rs:652:5 [INFO] [stdout] 18: 0x55eb01702a33 - core::panicking::panic_fmt::hdc63834ffaaefae5 [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/core/src/panicking.rs:72:14 [INFO] [stdout] 19: 0x55eb01702f66 - core::result::unwrap_failed::h82b551e0ff2b2176 [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/core/src/result.rs:1654:5 [INFO] [stdout] 20: 0x55eb017052b6 - core::result::Result::expect::h6aeba769247dab43 [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/core/src/result.rs:1034:23 [INFO] [stdout] 21: 0x55eb0171543b - pos_rust::storage::test_block_store::h235360ac29b682fb [INFO] [stdout] at /opt/rustwide/workdir/src/storage.rs:131:13 [INFO] [stdout] 22: 0x55eb01715137 - pos_rust::storage::test_block_store::{{closure}}::h80e6671971b85239 [INFO] [stdout] at /opt/rustwide/workdir/src/storage.rs:122:22 [INFO] [stdout] 23: 0x55eb017203c6 - core::ops::function::FnOnce::call_once::hf2afa6a719779123 [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 24: 0x55eb0175dd2b - core::ops::function::FnOnce::call_once::hb194ee8411fb46c7 [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 25: 0x55eb0175dd2b - test::__rust_begin_short_backtrace::h871a93aaa56c76c5 [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/test/src/lib.rs:623:18 [INFO] [stdout] 26: 0x55eb0175d431 - test::run_test_in_process::{{closure}}::h6d9e6b0161cb50c6 [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/test/src/lib.rs:646:60 [INFO] [stdout] 27: 0x55eb0175d431 - as core::ops::function::FnOnce<()>>::call_once::hb9f3c63b5d0e0baa [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 28: 0x55eb0175d431 - std::panicking::try::do_call::h83eb4c9b7c70ebcc [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/std/src/panicking.rs:559:40 [INFO] [stdout] 29: 0x55eb0175d431 - std::panicking::try::h5ffd56bf671a89b3 [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/std/src/panicking.rs:523:19 [INFO] [stdout] 30: 0x55eb0175d431 - std::panic::catch_unwind::h044e758d6cbf65b7 [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/std/src/panic.rs:149:14 [INFO] [stdout] 31: 0x55eb0175d431 - test::run_test_in_process::hf7ca2db08c9223b8 [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/test/src/lib.rs:646:27 [INFO] [stdout] 32: 0x55eb0175d431 - test::run_test::{{closure}}::h9657c20462181b87 [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/test/src/lib.rs:569:43 [INFO] [stdout] 33: 0x55eb01725eb4 - test::run_test::{{closure}}::h80c3aef427ce62cc [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/test/src/lib.rs:597:41 [INFO] [stdout] 34: 0x55eb01725eb4 - std::sys_common::backtrace::__rust_begin_short_backtrace::h43274eec75e29097 [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/std/src/sys_common/backtrace.rs:155:18 [INFO] [stdout] 35: 0x55eb0172a922 - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::hea1335728d2a7953 [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/std/src/thread/mod.rs:542:17 [INFO] [stdout] 36: 0x55eb0172a922 - as core::ops::function::FnOnce<()>>::call_once::hb16d5d5fd985753c [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 37: 0x55eb0172a922 - std::panicking::try::do_call::h65de05e16c44e167 [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/std/src/panicking.rs:559:40 [INFO] [stdout] 38: 0x55eb0172a922 - std::panicking::try::h187f01afe14eb3bf [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/std/src/panicking.rs:523:19 [INFO] [stdout] 39: 0x55eb0172a922 - std::panic::catch_unwind::h1b55347b2c8efb63 [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/std/src/panic.rs:149:14 [INFO] [stdout] 40: 0x55eb0172a922 - std::thread::Builder::spawn_unchecked_::{{closure}}::hea39e0adaff5b52d [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/std/src/thread/mod.rs:541:30 [INFO] [stdout] 41: 0x55eb0172a922 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h9b61aba01c3c1f32 [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 42: 0x55eb0180720b - as core::ops::function::FnOnce>::call_once::h09e5a4c541afa800 [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/alloc/src/boxed.rs:2022:9 [INFO] [stdout] 43: 0x55eb0180720b - as core::ops::function::FnOnce>::call_once::h9c8b03c22f4e7026 [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/alloc/src/boxed.rs:2022:9 [INFO] [stdout] 44: 0x55eb0180720b - std::sys::pal::unix::thread::Thread::new::thread_start::h522bc89a54da820a [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/std/src/sys/pal/unix/thread.rs:108:17 [INFO] [stdout] 45: 0x7f519e0feac3 - [INFO] [stdout] 46: 0x7f519e18fa04 - __clone [INFO] [stdout] 47: 0x0 - [INFO] [stdout] [INFO] [stdout] ---- storage::test_candidate_store stdout ---- [INFO] [stdout] thread 'storage::test_candidate_store' panicked at src/storage.rs:148:46: [INFO] [stdout] Failed to create db file at: "./candidates.db"!: SqliteFailure(Error { code: CannotOpen, extended_code: 14 }, Some("unable to open database file: ./candidates.db")) [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x55eb01800d75 - std::backtrace_rs::backtrace::libunwind::trace::h1a07e5dba0da0cd2 [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/std/src/../../backtrace/src/backtrace/libunwind.rs:105:5 [INFO] [stdout] 1: 0x55eb01800d75 - std::backtrace_rs::backtrace::trace_unsynchronized::h61b9b8394328c0bc [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stdout] 2: 0x55eb01800d75 - std::sys_common::backtrace::_print_fmt::h1c5e18b460934cff [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/std/src/sys_common/backtrace.rs:68:5 [INFO] [stdout] 3: 0x55eb01800d75 - ::fmt::h1e1a1972118942ad [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/std/src/sys_common/backtrace.rs:44:22 [INFO] [stdout] 4: 0x55eb01827e2b - core::fmt::rt::Argument::fmt::h07af2b4071d536cd [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/core/src/fmt/rt.rs:165:63 [INFO] [stdout] 5: 0x55eb01827e2b - core::fmt::write::hc090a2ffd6b28c4a [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/core/src/fmt/mod.rs:1157:21 [INFO] [stdout] 6: 0x55eb017fe51f - std::io::Write::write_fmt::h9443d787e8277bd2 [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/std/src/io/mod.rs:1832:15 [INFO] [stdout] 7: 0x55eb01800b4e - std::sys_common::backtrace::_print::h4e80c5803d4ee35b [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/std/src/sys_common/backtrace.rs:47:5 [INFO] [stdout] 8: 0x55eb01800b4e - std::sys_common::backtrace::print::ha96650907276675e [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/std/src/sys_common/backtrace.rs:34:9 [INFO] [stdout] 9: 0x55eb018024c9 - std::panicking::default_hook::{{closure}}::h215c2a0a8346e0e0 [INFO] [stdout] 10: 0x55eb0180218e - std::panicking::default_hook::h207342be97478370 [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/std/src/panicking.rs:295:9 [INFO] [stdout] 11: 0x55eb0175934a - as core::ops::function::Fn>::call::haebd875eeb75949f [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/alloc/src/boxed.rs:2036:9 [INFO] [stdout] 12: 0x55eb0175934a - test::test_main::{{closure}}::h9108cb0ebacdb458 [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/test/src/lib.rs:137:21 [INFO] [stdout] 13: 0x55eb01802a96 - as core::ops::function::Fn>::call::ha9c3bc81d312fd83 [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/alloc/src/boxed.rs:2036:9 [INFO] [stdout] 14: 0x55eb01802a96 - std::panicking::rust_panic_with_hook::hac8bdceee1e4fe2c [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/std/src/panicking.rs:799:13 [INFO] [stdout] 15: 0x55eb01802844 - std::panicking::begin_panic_handler::{{closure}}::h00d785e82757ce3c [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/std/src/panicking.rs:664:13 [INFO] [stdout] 16: 0x55eb01801239 - std::sys_common::backtrace::__rust_end_short_backtrace::h1628d957bcd06996 [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/std/src/sys_common/backtrace.rs:171:18 [INFO] [stdout] 17: 0x55eb01802577 - rust_begin_unwind [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/std/src/panicking.rs:652:5 [INFO] [stdout] 18: 0x55eb01702a33 - core::panicking::panic_fmt::hdc63834ffaaefae5 [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/core/src/panicking.rs:72:14 [INFO] [stdout] 19: 0x55eb01702f66 - core::result::unwrap_failed::h82b551e0ff2b2176 [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/core/src/result.rs:1654:5 [INFO] [stdout] 20: 0x55eb017052b6 - core::result::Result::expect::h6aeba769247dab43 [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/core/src/result.rs:1034:23 [INFO] [stdout] 21: 0x55eb01715a2a - pos_rust::storage::test_candidate_store::hd7d696e0ae244d39 [INFO] [stdout] at /opt/rustwide/workdir/src/storage.rs:148:13 [INFO] [stdout] 22: 0x55eb01715717 - pos_rust::storage::test_candidate_store::{{closure}}::h2524b41b519adb0e [INFO] [stdout] at /opt/rustwide/workdir/src/storage.rs:139:26 [INFO] [stdout] 23: 0x55eb01720326 - core::ops::function::FnOnce::call_once::h8ba31a69ed508bb1 [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 24: 0x55eb0175dd2b - core::ops::function::FnOnce::call_once::hb194ee8411fb46c7 [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 25: 0x55eb0175dd2b - test::__rust_begin_short_backtrace::h871a93aaa56c76c5 [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/test/src/lib.rs:623:18 [INFO] [stdout] 26: 0x55eb0175d431 - test::run_test_in_process::{{closure}}::h6d9e6b0161cb50c6 [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/test/src/lib.rs:646:60 [INFO] [stdout] 27: 0x55eb0175d431 - as core::ops::function::FnOnce<()>>::call_once::hb9f3c63b5d0e0baa [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 28: 0x55eb0175d431 - std::panicking::try::do_call::h83eb4c9b7c70ebcc [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/std/src/panicking.rs:559:40 [INFO] [stdout] 29: 0x55eb0175d431 - std::panicking::try::h5ffd56bf671a89b3 [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/std/src/panicking.rs:523:19 [INFO] [stdout] 30: 0x55eb0175d431 - std::panic::catch_unwind::h044e758d6cbf65b7 [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/std/src/panic.rs:149:14 [INFO] [stdout] 31: 0x55eb0175d431 - test::run_test_in_process::hf7ca2db08c9223b8 [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/test/src/lib.rs:646:27 [INFO] [stdout] 32: 0x55eb0175d431 - test::run_test::{{closure}}::h9657c20462181b87 [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/test/src/lib.rs:569:43 [INFO] [stdout] 33: 0x55eb01725eb4 - test::run_test::{{closure}}::h80c3aef427ce62cc [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/test/src/lib.rs:597:41 [INFO] [stdout] 34: 0x55eb01725eb4 - std::sys_common::backtrace::__rust_begin_short_backtrace::h43274eec75e29097 [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/std/src/sys_common/backtrace.rs:155:18 [INFO] [stdout] 35: 0x55eb0172a922 - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::hea1335728d2a7953 [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/std/src/thread/mod.rs:542:17 [INFO] [stdout] 36: 0x55eb0172a922 - as core::ops::function::FnOnce<()>>::call_once::hb16d5d5fd985753c [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 37: 0x55eb0172a922 - std::panicking::try::do_call::h65de05e16c44e167 [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/std/src/panicking.rs:559:40 [INFO] [stdout] 38: 0x55eb0172a922 - std::panicking::try::h187f01afe14eb3bf [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/std/src/panicking.rs:523:19 [INFO] [stdout] 39: 0x55eb0172a922 - std::panic::catch_unwind::h1b55347b2c8efb63 [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/std/src/panic.rs:149:14 [INFO] [stdout] 40: 0x55eb0172a922 - std::thread::Builder::spawn_unchecked_::{{closure}}::hea39e0adaff5b52d [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/std/src/thread/mod.rs:541:30 [INFO] [stdout] 41: 0x55eb0172a922 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h9b61aba01c3c1f32 [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 42: 0x55eb0180720b - as core::ops::function::FnOnce>::call_once::h09e5a4c541afa800 [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/alloc/src/boxed.rs:2022:9 [INFO] [stdout] 43: 0x55eb0180720b - as core::ops::function::FnOnce>::call_once::h9c8b03c22f4e7026 [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/alloc/src/boxed.rs:2022:9 [INFO] [stdout] 44: 0x55eb0180720b - std::sys::pal::unix::thread::Thread::new::thread_start::h522bc89a54da820a [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/std/src/sys/pal/unix/thread.rs:108:17 [INFO] [stdout] 45: 0x7f519e0feac3 - [INFO] [stdout] 46: 0x7f519e18fa04 - __clone [INFO] [stdout] 47: 0x0 - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] storage::test_block_store [INFO] [stdout] storage::test_candidate_store [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 2 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.16s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass `--lib` [INFO] running `Command { std: "docker" "inspect" "8520aa01486cf922e6353a5c252c6684bf37fa582f4dbf19dd2576d4a0d48c47", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8520aa01486cf922e6353a5c252c6684bf37fa582f4dbf19dd2576d4a0d48c47", kill_on_drop: false }` [INFO] [stdout] 8520aa01486cf922e6353a5c252c6684bf37fa582f4dbf19dd2576d4a0d48c47 [INFO] testing jonas089/pos-rust against beta-2024-06-22 for beta-1.80-4 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjonas089%2Fpos-rust" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/jonas089/pos-rust on toolchain beta-2024-06-22 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+beta-2024-06-22" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/jonas089/pos-rust [INFO] finished tweaking git repo https://github.com/jonas089/pos-rust [INFO] tweaked toml for git repo https://github.com/jonas089/pos-rust written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/jonas089/pos-rust 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" "+beta-2024-06-22" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2024-06-22" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] daf267f036a1515a37ea0a0da91c3116f179138ce246c715e1ef346b8637210a [INFO] running `Command { std: "docker" "start" "-a" "daf267f036a1515a37ea0a0da91c3116f179138ce246c715e1ef346b8637210a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "daf267f036a1515a37ea0a0da91c3116f179138ce246c715e1ef346b8637210a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "daf267f036a1515a37ea0a0da91c3116f179138ce246c715e1ef346b8637210a", kill_on_drop: false }` [INFO] [stdout] daf267f036a1515a37ea0a0da91c3116f179138ce246c715e1ef346b8637210a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2024-06-22" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 81f01798566d72d3edfad10d5bfaccfe7c2b07985ec9e8ba7ca935106003aa6f [INFO] running `Command { std: "docker" "start" "-a" "81f01798566d72d3edfad10d5bfaccfe7c2b07985ec9e8ba7ca935106003aa6f", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.70 [INFO] [stderr] Compiling libc v0.2.151 [INFO] [stderr] Compiling once_cell v1.19.0 [INFO] [stderr] Compiling serde v1.0.193 [INFO] [stderr] Compiling zerocopy v0.7.31 [INFO] [stderr] Compiling rustix v0.38.28 [INFO] [stderr] Compiling http v0.2.11 [INFO] [stderr] Compiling futures-util v0.3.29 [INFO] [stderr] Compiling linux-raw-sys v0.4.12 [INFO] [stderr] Compiling smallvec v1.11.2 [INFO] [stderr] Compiling deranged v0.3.10 [INFO] [stderr] Compiling ref-cast v1.0.21 [INFO] [stderr] Compiling winnow v0.5.28 [INFO] [stderr] Compiling hashbrown v0.14.3 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Compiling tracing-core v0.1.32 [INFO] [stderr] Compiling num-traits v0.2.17 [INFO] [stderr] Compiling rocket v0.5.0 [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Compiling unicode-xid v0.2.4 [INFO] [stderr] Compiling ahash v0.8.6 [INFO] [stderr] Compiling fastrand v2.0.1 [INFO] [stderr] Compiling glob v0.3.1 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Compiling indexmap v2.1.0 [INFO] [stderr] Compiling http-body v0.4.6 [INFO] [stderr] Compiling time v0.3.30 [INFO] [stderr] Compiling syn v2.0.41 [INFO] [stderr] Compiling fallible-iterator v0.3.0 [INFO] [stderr] Compiling binascii v0.1.4 [INFO] [stderr] Compiling fallible-streaming-iterator v0.1.9 [INFO] [stderr] Compiling atomic v0.5.3 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling socket2 v0.5.5 [INFO] [stderr] Compiling mio v0.8.10 [INFO] [stderr] Compiling num_cpus v1.16.0 [INFO] [stderr] Compiling signal-hook-registry v1.4.1 [INFO] [stderr] Compiling socket2 v0.4.10 [INFO] [stderr] Compiling getrandom v0.2.11 [INFO] [stderr] Compiling libsqlite3-sys v0.27.0 [INFO] [stdout] error[E0282]: type annotations needed for `Box<_>` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/time-0.3.30/src/format_description/parse/mod.rs:83:9 [INFO] [stdout] | [INFO] [stdout] 83 | let items = format_items [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 86 | Ok(items.into()) [INFO] [stdout] | ---- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `items` an explicit type, where the placeholders `_` are specified [INFO] [stdout] | [INFO] [stdout] 83 | let items: Box<_> = format_items [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling parking_lot_core v0.9.9 [INFO] [stderr] Compiling hashlink v0.8.4 [INFO] [stderr] Compiling chrono v0.4.31 [INFO] [stderr] Compiling tokio v1.35.0 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling parking_lot v0.12.1 [INFO] [stderr] Compiling dotenv v0.15.0 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rusqlite v0.30.0 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stderr] error: could not compile `time` (lib) due to 2 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] running `Command { std: "docker" "inspect" "81f01798566d72d3edfad10d5bfaccfe7c2b07985ec9e8ba7ca935106003aa6f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "81f01798566d72d3edfad10d5bfaccfe7c2b07985ec9e8ba7ca935106003aa6f", kill_on_drop: false }` [INFO] [stdout] 81f01798566d72d3edfad10d5bfaccfe7c2b07985ec9e8ba7ca935106003aa6f