[INFO] cloning repository https://github.com/exbucks/blockchain-fromscratch [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/exbucks/blockchain-fromscratch" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fexbucks%2Fblockchain-fromscratch", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fexbucks%2Fblockchain-fromscratch'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d115234340f2f76266dad89603588bb2e690ba56 [INFO] testing exbucks/blockchain-fromscratch against 1.100.0-beta.1 for beta-1.100-4 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fexbucks%2Fblockchain-fromscratch" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/exbucks/blockchain-fromscratch [INFO] finished tweaking git repo https://github.com/exbucks/blockchain-fromscratch [INFO] tweaked toml for git repo https://github.com/exbucks/blockchain-fromscratch written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/exbucks/blockchain-fromscratch on toolchain 1.100.0-beta.1 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.100.0-beta.1" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/exbucks/blockchain-fromscratch 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.100.0-beta.1" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:77db811e55d90add9212f6832c23229e3de5f1c1f9905e8cb07319ea15df73ac" "sleep" "infinity", kill_on_drop: false }` [INFO] [stdout] 6cc3a0214ebbfc9328d21a1091971d684c1df054f7109ecb60699e314c437f74 [INFO] running `Command { std: "docker" "start" "6cc3a0214ebbfc9328d21a1091971d684c1df054f7109ecb60699e314c437f74", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6cc3a0214ebbfc9328d21a1091971d684c1df054f7109ecb60699e314c437f74", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "6cc3a0214ebbfc9328d21a1091971d684c1df054f7109ecb60699e314c437f74" "/opt/rustwide/cargo-home/bin/cargo" "+1.100.0-beta.1" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6cc3a0214ebbfc9328d21a1091971d684c1df054f7109ecb60699e314c437f74", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-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" "-w" "/opt/rustwide/workdir" "--user" "0:0" "6cc3a0214ebbfc9328d21a1091971d684c1df054f7109ecb60699e314c437f74" "/opt/rustwide/cargo-home/bin/cargo" "+1.100.0-beta.1" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] Compiling diy-blockchain v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `Block` and `Header` [INFO] [stdout] --> src/c2_blockchain/mod.rs:7:25 [INFO] [stdout] | [INFO] [stdout] 7 | pub use p6_rich_state::{Block, Header}; [INFO] [stdout] | ^^^^^ ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::hash` [INFO] [stdout] --> src/c2_blockchain/p1_header_chain.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::hash; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::hash` [INFO] [stdout] --> src/c2_blockchain/p2_extrinsic_state.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::hash; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::hash` [INFO] [stdout] --> src/c2_blockchain/p3_consensus.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::hash; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::hash` [INFO] [stdout] --> src/c2_blockchain/p4_batched_extrinsics.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::hash; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::hash` [INFO] [stdout] --> src/c2_blockchain/p5_fork_choice.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::hash; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::hash` [INFO] [stdout] --> src/c2_blockchain/p6_rich_state.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use crate::hash; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::marker::PhantomData` [INFO] [stdout] --> src/c3_consensus/p4_even_only.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::marker::PhantomData; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `!: Consensus` is not satisfied [INFO] [stdout] --> src/c3_consensus/p6_forking.rs:50:6 [INFO] [stdout] | [INFO] [stdout] 50 | ) -> impl Consensus { [INFO] [stdout] | ^^^^^^^^^^^^^^ the trait `Consensus` is not implemented for `!` [INFO] [stdout] 51 | todo!("Exercise 3") [INFO] [stdout] | ------------------- return type was inferred to be `!` here [INFO] [stdout] | [INFO] [stdout] help: the following other types implement trait `Consensus` [INFO] [stdout] --> src/c3_consensus/mod.rs:88:1 [INFO] [stdout] | [INFO] [stdout] 88 | impl Consensus for () { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ `()` [INFO] [stdout] | [INFO] [stdout] ::: src/c3_consensus/p6_forking.rs:21:1 [INFO] [stdout] | [INFO] [stdout] 21 | / impl Consensus for Forked [INFO] [stdout] 22 | | where [INFO] [stdout] 23 | | D: Clone + core::fmt::Debug + Eq + PartialEq + std::hash::Hash, [INFO] [stdout] 24 | | B: Consensus, [INFO] [stdout] 25 | | A: Consensus, [INFO] [stdout] 26 | | B::Digest: Into, [INFO] [stdout] 27 | | A::Digest: Into, [INFO] [stdout] | |_______________________^ `Forked` [INFO] [stdout] | [INFO] [stdout] ::: src/c3_consensus/p1_pow.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | impl Consensus for Pow { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ `Pow` [INFO] [stdout] | [INFO] [stdout] ::: src/c3_consensus/p3_poa.rs:19:1 [INFO] [stdout] | [INFO] [stdout] 19 | impl Consensus for SimplePoa { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `SimplePoa` [INFO] [stdout] = note: this error might have been caused by changes to Rust's type-inference algorithm (see issue #148922 for more information) [INFO] [stdout] = help: you might have intended to use the type `()` here instead [INFO] [stdout] help: `!` can be coerced to any type; consider casting it to a concrete type that implements the trait [INFO] [stdout] | [INFO] [stdout] 51 | todo!("Exercise 3") as /* Type */ [INFO] [stdout] | +++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `!: Consensus` is not satisfied [INFO] [stdout] --> src/c3_consensus/p6_forking.rs:59:6 [INFO] [stdout] | [INFO] [stdout] 59 | ) -> impl Consensus { [INFO] [stdout] | ^^^^^^^^^^^^^^ the trait `Consensus` is not implemented for `!` [INFO] [stdout] 60 | todo!("Exercise 4") [INFO] [stdout] | ------------------- return type was inferred to be `!` here [INFO] [stdout] | [INFO] [stdout] help: the following other types implement trait `Consensus` [INFO] [stdout] --> src/c3_consensus/mod.rs:88:1 [INFO] [stdout] | [INFO] [stdout] 88 | impl Consensus for () { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ `()` [INFO] [stdout] | [INFO] [stdout] ::: src/c3_consensus/p6_forking.rs:21:1 [INFO] [stdout] | [INFO] [stdout] 21 | / impl Consensus for Forked [INFO] [stdout] 22 | | where [INFO] [stdout] 23 | | D: Clone + core::fmt::Debug + Eq + PartialEq + std::hash::Hash, [INFO] [stdout] 24 | | B: Consensus, [INFO] [stdout] 25 | | A: Consensus, [INFO] [stdout] 26 | | B::Digest: Into, [INFO] [stdout] 27 | | A::Digest: Into, [INFO] [stdout] | |_______________________^ `Forked` [INFO] [stdout] | [INFO] [stdout] ::: src/c3_consensus/p1_pow.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | impl Consensus for Pow { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ `Pow` [INFO] [stdout] | [INFO] [stdout] ::: src/c3_consensus/p3_poa.rs:19:1 [INFO] [stdout] | [INFO] [stdout] 19 | impl Consensus for SimplePoa { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `SimplePoa` [INFO] [stdout] = note: this error might have been caused by changes to Rust's type-inference algorithm (see issue #148922 for more information) [INFO] [stdout] = help: you might have intended to use the type `()` here instead [INFO] [stdout] help: `!` can be coerced to any type; consider casting it to a concrete type that implements the trait [INFO] [stdout] | [INFO] [stdout] 60 | todo!("Exercise 4") as /* Type */ [INFO] [stdout] | +++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `!: Consensus` is not satisfied [INFO] [stdout] --> src/c3_consensus/p6_forking.rs:70:70 [INFO] [stdout] | [INFO] [stdout] 70 | fn even_after_given_height(fork_height: u64) -> impl Consensus { [INFO] [stdout] | ^^^^^^^^^^^^^^ the trait `Consensus` is not implemented for `!` [INFO] [stdout] 71 | todo!("Exercise 5") [INFO] [stdout] | ------------------- return type was inferred to be `!` here [INFO] [stdout] | [INFO] [stdout] help: the following other types implement trait `Consensus` [INFO] [stdout] --> src/c3_consensus/mod.rs:88:1 [INFO] [stdout] | [INFO] [stdout] 88 | impl Consensus for () { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ `()` [INFO] [stdout] | [INFO] [stdout] ::: src/c3_consensus/p6_forking.rs:21:1 [INFO] [stdout] | [INFO] [stdout] 21 | / impl Consensus for Forked [INFO] [stdout] 22 | | where [INFO] [stdout] 23 | | D: Clone + core::fmt::Debug + Eq + PartialEq + std::hash::Hash, [INFO] [stdout] 24 | | B: Consensus, [INFO] [stdout] 25 | | A: Consensus, [INFO] [stdout] 26 | | B::Digest: Into, [INFO] [stdout] 27 | | A::Digest: Into, [INFO] [stdout] | |_______________________^ `Forked` [INFO] [stdout] | [INFO] [stdout] ::: src/c3_consensus/p1_pow.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | impl Consensus for Pow { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ `Pow` [INFO] [stdout] | [INFO] [stdout] ::: src/c3_consensus/p3_poa.rs:19:1 [INFO] [stdout] | [INFO] [stdout] 19 | impl Consensus for SimplePoa { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `SimplePoa` [INFO] [stdout] = note: this error might have been caused by changes to Rust's type-inference algorithm (see issue #148922 for more information) [INFO] [stdout] = help: you might have intended to use the type `()` here instead [INFO] [stdout] help: `!` can be coerced to any type; consider casting it to a concrete type that implements the trait [INFO] [stdout] | [INFO] [stdout] 71 | todo!("Exercise 5") as /* Type */ [INFO] [stdout] | +++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `!: Consensus` is not satisfied [INFO] [stdout] --> src/c3_consensus/p6_forking.rs:84:6 [INFO] [stdout] | [INFO] [stdout] 84 | ) -> impl Consensus { [INFO] [stdout] | ^^^^^^^^^^^^^^ the trait `Consensus` is not implemented for `!` [INFO] [stdout] 85 | todo!("Exercise 6") [INFO] [stdout] | ------------------- return type was inferred to be `!` here [INFO] [stdout] | [INFO] [stdout] help: the following other types implement trait `Consensus` [INFO] [stdout] --> src/c3_consensus/mod.rs:88:1 [INFO] [stdout] | [INFO] [stdout] 88 | impl Consensus for () { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ `()` [INFO] [stdout] | [INFO] [stdout] ::: src/c3_consensus/p6_forking.rs:21:1 [INFO] [stdout] | [INFO] [stdout] 21 | / impl Consensus for Forked [INFO] [stdout] 22 | | where [INFO] [stdout] 23 | | D: Clone + core::fmt::Debug + Eq + PartialEq + std::hash::Hash, [INFO] [stdout] 24 | | B: Consensus, [INFO] [stdout] 25 | | A: Consensus, [INFO] [stdout] 26 | | B::Digest: Into, [INFO] [stdout] 27 | | A::Digest: Into, [INFO] [stdout] | |_______________________^ `Forked` [INFO] [stdout] | [INFO] [stdout] ::: src/c3_consensus/p1_pow.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | impl Consensus for Pow { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ `Pow` [INFO] [stdout] | [INFO] [stdout] ::: src/c3_consensus/p3_poa.rs:19:1 [INFO] [stdout] | [INFO] [stdout] 19 | impl Consensus for SimplePoa { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `SimplePoa` [INFO] [stdout] = note: this error might have been caused by changes to Rust's type-inference algorithm (see issue #148922 for more information) [INFO] [stdout] = help: you might have intended to use the type `()` here instead [INFO] [stdout] help: `!` can be coerced to any type; consider casting it to a concrete type that implements the trait [INFO] [stdout] | [INFO] [stdout] 85 | todo!("Exercise 6") as /* Type */ [INFO] [stdout] | +++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::num::::max_value`: replaced by the `MAX` associated constant on this type [INFO] [stdout] --> src/c2_blockchain/p3_consensus.rs:16:29 [INFO] [stdout] | [INFO] [stdout] 16 | const THRESHOLD: u64 = u64::max_value() / 100; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::num::::max_value`: replaced by the `MAX` associated constant on this type [INFO] [stdout] --> src/c2_blockchain/p5_fork_choice.rs:13:29 [INFO] [stdout] | [INFO] [stdout] 13 | const THRESHOLD: u64 = u64::max_value() / 100; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `starting_state` [INFO] [stdout] --> src/c1_state_machine/p1_switches.rs:17:19 [INFO] [stdout] | [INFO] [stdout] 17 | fn next_state(starting_state: &bool, t: &()) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_starting_state` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/c1_state_machine/p1_switches.rs:17:42 [INFO] [stdout] | [INFO] [stdout] 17 | fn next_state(starting_state: &bool, t: &()) -> bool { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `starting_state` [INFO] [stdout] --> src/c1_state_machine/p1_switches.rs:44:19 [INFO] [stdout] | [INFO] [stdout] 44 | fn next_state(starting_state: &TwoSwitches, t: &Toggle) -> TwoSwitches { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_starting_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/c1_state_machine/p1_switches.rs:44:49 [INFO] [stdout] | [INFO] [stdout] 44 | fn next_state(starting_state: &TwoSwitches, t: &Toggle) -> TwoSwitches { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `starting_state` [INFO] [stdout] --> src/c1_state_machine/p2_laundry_machine.rs:42:19 [INFO] [stdout] | [INFO] [stdout] 42 | fn next_state(starting_state: &ClothesState, t: &ClothesAction) -> ClothesState { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_starting_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/c1_state_machine/p2_laundry_machine.rs:42:50 [INFO] [stdout] | [INFO] [stdout] 42 | fn next_state(starting_state: &ClothesState, t: &ClothesAction) -> ClothesState { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `starting_state` [INFO] [stdout] --> src/c1_state_machine/p3_atm.rs:60:19 [INFO] [stdout] | [INFO] [stdout] 60 | fn next_state(starting_state: &Self::State, t: &Self::Transition) -> Self::State { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_starting_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/c1_state_machine/p3_atm.rs:60:49 [INFO] [stdout] | [INFO] [stdout] 60 | fn next_state(starting_state: &Self::State, t: &Self::Transition) -> Self::State { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `starting_state` [INFO] [stdout] --> src/c1_state_machine/p4_accounted_currency.rs:47:19 [INFO] [stdout] | [INFO] [stdout] 47 | fn next_state(starting_state: &Balances, t: &AccountingTransaction) -> Balances { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_starting_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/c1_state_machine/p4_accounted_currency.rs:47:46 [INFO] [stdout] | [INFO] [stdout] 47 | fn next_state(starting_state: &Balances, t: &AccountingTransaction) -> Balances { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `starting_state` [INFO] [stdout] --> src/c1_state_machine/p5_digital_cash.rs:96:19 [INFO] [stdout] | [INFO] [stdout] 96 | fn next_state(starting_state: &Self::State, t: &Self::Transition) -> Self::State { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_starting_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/c1_state_machine/p5_digital_cash.rs:96:49 [INFO] [stdout] | [INFO] [stdout] 96 | fn next_state(starting_state: &Self::State, t: &Self::Transition) -> Self::State { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `chain` [INFO] [stdout] --> src/c2_blockchain/p1_header_chain.rs:40:32 [INFO] [stdout] | [INFO] [stdout] 40 | fn verify_sub_chain(&self, chain: &[Header]) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_chain` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `extrinsic` [INFO] [stdout] --> src/c2_blockchain/p2_extrinsic_state.rs:38:21 [INFO] [stdout] | [INFO] [stdout] 38 | fn child(&self, extrinsic: u64) -> Self { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_extrinsic` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `chain` [INFO] [stdout] --> src/c2_blockchain/p2_extrinsic_state.rs:50:32 [INFO] [stdout] | [INFO] [stdout] 50 | fn verify_sub_chain(&self, chain: &[Header]) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_chain` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/c2_blockchain/p2_extrinsic_state.rs:58:22 [INFO] [stdout] | [INFO] [stdout] 58 | fn build_valid_chain(n: u64) -> Vec
{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `extrinsic` [INFO] [stdout] --> src/c2_blockchain/p3_consensus.rs:44:21 [INFO] [stdout] | [INFO] [stdout] 44 | fn child(&self, extrinsic: u64) -> Self { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_extrinsic` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `chain` [INFO] [stdout] --> src/c2_blockchain/p3_consensus.rs:52:32 [INFO] [stdout] | [INFO] [stdout] 52 | fn verify_sub_chain(&self, chain: &[Header]) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_chain` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `chain` [INFO] [stdout] --> src/c2_blockchain/p3_consensus.rs:64:37 [INFO] [stdout] | [INFO] [stdout] 64 | fn verify_sub_chain_even(&self, chain: &[Header]) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_chain` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `chain` [INFO] [stdout] --> src/c2_blockchain/p3_consensus.rs:70:36 [INFO] [stdout] | [INFO] [stdout] 70 | fn verify_sub_chain_odd(&self, chain: &[Header]) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_chain` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `extrinsics_root` [INFO] [stdout] --> src/c2_blockchain/p4_batched_extrinsics.rs:37:25 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn child(&self, extrinsics_root: Hash, state: u64) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_extrinsics_root` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/c2_blockchain/p4_batched_extrinsics.rs:37:48 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn child(&self, extrinsics_root: Hash, state: u64) -> Self { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `child` [INFO] [stdout] --> src/c2_blockchain/p4_batched_extrinsics.rs:48:28 [INFO] [stdout] | [INFO] [stdout] 48 | fn verify_child(&self, child: &Header) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_child` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `chain` [INFO] [stdout] --> src/c2_blockchain/p4_batched_extrinsics.rs:59:32 [INFO] [stdout] | [INFO] [stdout] 59 | fn verify_sub_chain(&self, chain: &[Header]) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_chain` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `extrinsics` [INFO] [stdout] --> src/c2_blockchain/p4_batched_extrinsics.rs:84:25 [INFO] [stdout] | [INFO] [stdout] 84 | pub fn child(&self, extrinsics: Vec) -> Self { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_extrinsics` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `chain` [INFO] [stdout] --> src/c2_blockchain/p4_batched_extrinsics.rs:91:36 [INFO] [stdout] | [INFO] [stdout] 91 | pub fn verify_sub_chain(&self, chain: &[Block]) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_chain` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `parent` [INFO] [stdout] --> src/c2_blockchain/p4_batched_extrinsics.rs:104:48 [INFO] [stdout] | [INFO] [stdout] 104 | fn build_invalid_child_block_with_valid_header(parent: &Header) -> Block { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_parent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `candidate_chains` [INFO] [stdout] --> src/c2_blockchain/p5_fork_choice.rs:35:23 [INFO] [stdout] | [INFO] [stdout] 35 | fn best_chain<'a>(candidate_chains: &[&'a [Header]]) -> &'a [Header] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_candidate_chains` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `chain_1` [INFO] [stdout] --> src/c2_blockchain/p5_fork_choice.rs:44:30 [INFO] [stdout] | [INFO] [stdout] 44 | fn first_chain_is_better(chain_1: &[Header], chain_2: &[Header]) -> bool { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_chain_1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `chain_2` [INFO] [stdout] --> src/c2_blockchain/p5_fork_choice.rs:44:50 [INFO] [stdout] | [INFO] [stdout] 44 | fn first_chain_is_better(chain_1: &[Header], chain_2: &[Header]) -> bool { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_chain_2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `candidate_chains` [INFO] [stdout] --> src/c2_blockchain/p5_fork_choice.rs:48:23 [INFO] [stdout] | [INFO] [stdout] 48 | fn best_chain<'a>(candidate_chains: &[&'a [Header]]) -> &'a [Header] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_candidate_chains` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block` [INFO] [stdout] --> src/c2_blockchain/p5_fork_choice.rs:70:20 [INFO] [stdout] | [INFO] [stdout] 70 | fn mine_extra_hard(block: &mut Block, threshold: u64) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_block` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `threshold` [INFO] [stdout] --> src/c2_blockchain/p5_fork_choice.rs:70:39 [INFO] [stdout] | [INFO] [stdout] 70 | fn mine_extra_hard(block: &mut Block, threshold: u64) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_threshold` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `chain_1` [INFO] [stdout] --> src/c2_blockchain/p5_fork_choice.rs:75:30 [INFO] [stdout] | [INFO] [stdout] 75 | fn first_chain_is_better(chain_1: &[Header], chain_2: &[Header]) -> bool { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_chain_1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `chain_2` [INFO] [stdout] --> src/c2_blockchain/p5_fork_choice.rs:75:50 [INFO] [stdout] | [INFO] [stdout] 75 | fn first_chain_is_better(chain_1: &[Header], chain_2: &[Header]) -> bool { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_chain_2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `candidate_chains` [INFO] [stdout] --> src/c2_blockchain/p5_fork_choice.rs:79:23 [INFO] [stdout] | [INFO] [stdout] 79 | fn best_chain<'a>(candidate_chains: &[&'a [Header]]) -> &'a [Header] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_candidate_chains` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `chain_1` [INFO] [stdout] --> src/c2_blockchain/p5_fork_choice.rs:101:30 [INFO] [stdout] | [INFO] [stdout] 101 | fn first_chain_is_better(chain_1: &[Header], chain_2: &[Header]) -> bool { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_chain_1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `chain_2` [INFO] [stdout] --> src/c2_blockchain/p5_fork_choice.rs:101:50 [INFO] [stdout] | [INFO] [stdout] 101 | fn first_chain_is_better(chain_1: &[Header], chain_2: &[Header]) -> bool { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_chain_2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `candidate_chains` [INFO] [stdout] --> src/c2_blockchain/p5_fork_choice.rs:105:23 [INFO] [stdout] | [INFO] [stdout] 105 | fn best_chain<'a>(candidate_chains: &[&'a [Header]]) -> &'a [Header] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_candidate_chains` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `genesis_state_root` [INFO] [stdout] --> src/c2_blockchain/p6_rich_state.rs:48:16 [INFO] [stdout] | [INFO] [stdout] 48 | fn genesis(genesis_state_root: Hash) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_genesis_state_root` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `extrinsics_root` [INFO] [stdout] --> src/c2_blockchain/p6_rich_state.rs:56:21 [INFO] [stdout] | [INFO] [stdout] 56 | fn child(&self, extrinsics_root: Hash, state_root: Hash) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_extrinsics_root` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state_root` [INFO] [stdout] --> src/c2_blockchain/p6_rich_state.rs:56:44 [INFO] [stdout] | [INFO] [stdout] 56 | fn child(&self, extrinsics_root: Hash, state_root: Hash) -> Self { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_state_root` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `child` [INFO] [stdout] --> src/c2_blockchain/p6_rich_state.rs:61:28 [INFO] [stdout] | [INFO] [stdout] 61 | fn verify_child(&self, child: &Header) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_child` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `chain` [INFO] [stdout] --> src/c2_blockchain/p6_rich_state.rs:66:32 [INFO] [stdout] | [INFO] [stdout] 66 | fn verify_sub_chain(&self, chain: &[Header]) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_chain` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `genesis_state` [INFO] [stdout] --> src/c2_blockchain/p6_rich_state.rs:90:20 [INFO] [stdout] | [INFO] [stdout] 90 | pub fn genesis(genesis_state: &State) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_genesis_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pre_state` [INFO] [stdout] --> src/c2_blockchain/p6_rich_state.rs:95:25 [INFO] [stdout] | [INFO] [stdout] 95 | pub fn child(&self, pre_state: &State, extrinsics: Vec) -> Self { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pre_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `extrinsics` [INFO] [stdout] --> src/c2_blockchain/p6_rich_state.rs:95:44 [INFO] [stdout] | [INFO] [stdout] 95 | pub fn child(&self, pre_state: &State, extrinsics: Vec) -> Self { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_extrinsics` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pre_state` [INFO] [stdout] --> src/c2_blockchain/p6_rich_state.rs:104:36 [INFO] [stdout] | [INFO] [stdout] 104 | pub fn verify_sub_chain(&self, pre_state: &State, chain: &[Block]) -> bool { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pre_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `chain` [INFO] [stdout] --> src/c2_blockchain/p6_rich_state.rs:104:55 [INFO] [stdout] | [INFO] [stdout] 104 | pub fn verify_sub_chain(&self, pre_state: &State, chain: &[Block]) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_chain` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `parent` [INFO] [stdout] --> src/c2_blockchain/p6_rich_state.rs:120:48 [INFO] [stdout] | [INFO] [stdout] 120 | fn build_invalid_child_block_with_valid_header(parent: &Header, pre_state: &State) -> Block { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_parent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pre_state` [INFO] [stdout] --> src/c2_blockchain/p6_rich_state.rs:120:65 [INFO] [stdout] | [INFO] [stdout] 120 | fn build_invalid_child_block_with_valid_header(parent: &Header, pre_state: &State) -> Block { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pre_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `header` [INFO] [stdout] --> src/c3_consensus/p1_pow.rs:21:42 [INFO] [stdout] | [INFO] [stdout] 21 | fn validate(&self, _: &Self::Digest, header: &Header) -> bool { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_header` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `partial_header` [INFO] [stdout] --> src/c3_consensus/p1_pow.rs:27:38 [INFO] [stdout] | [INFO] [stdout] 27 | fn seal(&self, _: &Self::Digest, partial_header: Header<()>) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_partial_header` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `header` [INFO] [stdout] --> src/c3_consensus/p2_dictator.rs:23:42 [INFO] [stdout] | [INFO] [stdout] 23 | fn validate(&self, _: &Self::Digest, header: &Header) -> bool { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_header` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `partial_header` [INFO] [stdout] --> src/c3_consensus/p2_dictator.rs:28:38 [INFO] [stdout] | [INFO] [stdout] 28 | fn seal(&self, _: &Self::Digest, partial_header: Header<()>) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_partial_header` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `parent_digest` [INFO] [stdout] --> src/c3_consensus/p3_poa.rs:22:24 [INFO] [stdout] | [INFO] [stdout] 22 | fn validate(&self, parent_digest: &Self::Digest, header: &Header) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_parent_digest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `header` [INFO] [stdout] --> src/c3_consensus/p3_poa.rs:22:54 [INFO] [stdout] | [INFO] [stdout] 22 | fn validate(&self, parent_digest: &Self::Digest, header: &Header) -> bool { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_header` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `parent_digest` [INFO] [stdout] --> src/c3_consensus/p3_poa.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | parent_digest: &Self::Digest, [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_parent_digest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `partial_header` [INFO] [stdout] --> src/c3_consensus/p3_poa.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | partial_header: Header<()>, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_partial_header` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `parent_digest` [INFO] [stdout] --> src/c3_consensus/p3_poa.rs:45:24 [INFO] [stdout] | [INFO] [stdout] 45 | fn validate(&self, parent_digest: &Self::Digest, header: &Header) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_parent_digest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `header` [INFO] [stdout] --> src/c3_consensus/p3_poa.rs:45:54 [INFO] [stdout] | [INFO] [stdout] 45 | fn validate(&self, parent_digest: &Self::Digest, header: &Header) -> bool { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_header` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `parent_digest` [INFO] [stdout] --> src/c3_consensus/p3_poa.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | parent_digest: &Self::Digest, [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_parent_digest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `partial_header` [INFO] [stdout] --> src/c3_consensus/p3_poa.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 52 | partial_header: Header<()>, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_partial_header` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `parent_digest` [INFO] [stdout] --> src/c3_consensus/p3_poa.rs:82:24 [INFO] [stdout] | [INFO] [stdout] 82 | fn validate(&self, parent_digest: &Self::Digest, header: &Header) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_parent_digest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `header` [INFO] [stdout] --> src/c3_consensus/p3_poa.rs:82:54 [INFO] [stdout] | [INFO] [stdout] 82 | fn validate(&self, parent_digest: &Self::Digest, header: &Header) -> bool { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_header` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `parent_digest` [INFO] [stdout] --> src/c3_consensus/p3_poa.rs:88:9 [INFO] [stdout] | [INFO] [stdout] 88 | parent_digest: &Self::Digest, [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_parent_digest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `partial_header` [INFO] [stdout] --> src/c3_consensus/p3_poa.rs:89:9 [INFO] [stdout] | [INFO] [stdout] 89 | partial_header: Header<()>, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_partial_header` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `parent_digest` [INFO] [stdout] --> src/c3_consensus/p4_even_only.rs:19:24 [INFO] [stdout] | [INFO] [stdout] 19 | fn validate(&self, parent_digest: &Self::Digest, header: &Header) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_parent_digest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `header` [INFO] [stdout] --> src/c3_consensus/p4_even_only.rs:19:54 [INFO] [stdout] | [INFO] [stdout] 19 | fn validate(&self, parent_digest: &Self::Digest, header: &Header) -> bool { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_header` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `parent_digest` [INFO] [stdout] --> src/c3_consensus/p4_even_only.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | parent_digest: &Self::Digest, [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_parent_digest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `partial_header` [INFO] [stdout] --> src/c3_consensus/p4_even_only.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | partial_header: Header<()>, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_partial_header` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `parent_digest` [INFO] [stdout] --> src/c3_consensus/p5_interleave.rs:52:24 [INFO] [stdout] | [INFO] [stdout] 52 | fn validate(&self, parent_digest: &Self::Digest, header: &Header) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_parent_digest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `header` [INFO] [stdout] --> src/c3_consensus/p5_interleave.rs:52:54 [INFO] [stdout] | [INFO] [stdout] 52 | fn validate(&self, parent_digest: &Self::Digest, header: &Header) -> bool { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_header` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `parent_digest` [INFO] [stdout] --> src/c3_consensus/p5_interleave.rs:58:9 [INFO] [stdout] | [INFO] [stdout] 58 | parent_digest: &Self::Digest, [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_parent_digest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `partial_header` [INFO] [stdout] --> src/c3_consensus/p5_interleave.rs:59:9 [INFO] [stdout] | [INFO] [stdout] 59 | partial_header: Header<()>, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_partial_header` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `parent_digest` [INFO] [stdout] --> src/c3_consensus/p6_forking.rs:31:24 [INFO] [stdout] | [INFO] [stdout] 31 | fn validate(&self, parent_digest: &Self::Digest, header: &Header) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_parent_digest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `header` [INFO] [stdout] --> src/c3_consensus/p6_forking.rs:31:54 [INFO] [stdout] | [INFO] [stdout] 31 | fn validate(&self, parent_digest: &Self::Digest, header: &Header) -> bool { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_header` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `parent_digest` [INFO] [stdout] --> src/c3_consensus/p6_forking.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | parent_digest: &Self::Digest, [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_parent_digest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `partial_header` [INFO] [stdout] --> src/c3_consensus/p6_forking.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | partial_header: Header<()>, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_partial_header` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `parent_digest` [INFO] [stdout] --> src/c3_consensus/mod.rs:72:9 [INFO] [stdout] | [INFO] [stdout] 72 | parent_digest: &Self::Digest, [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_parent_digest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `chain` [INFO] [stdout] --> src/c3_consensus/mod.rs:73:9 [INFO] [stdout] | [INFO] [stdout] 73 | chain: &[Header], [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_chain` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `partial_header` [INFO] [stdout] --> src/c3_consensus/mod.rs:97:38 [INFO] [stdout] | [INFO] [stdout] 97 | fn seal(&self, _: &Self::Digest, partial_header: Header<()>) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_partial_header` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `genesis_state_root` [INFO] [stdout] --> src/c4_framework/mod.rs:19:16 [INFO] [stdout] | [INFO] [stdout] 19 | fn genesis(genesis_state_root: Hash) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_genesis_state_root` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state_root` [INFO] [stdout] --> src/c4_framework/mod.rs:24:21 [INFO] [stdout] | [INFO] [stdout] 24 | fn child(&self, state_root: Hash, extrinsics_root: Hash) -> Self { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_state_root` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `extrinsics_root` [INFO] [stdout] --> src/c4_framework/mod.rs:24:39 [INFO] [stdout] | [INFO] [stdout] 24 | fn child(&self, state_root: Hash, extrinsics_root: Hash) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_extrinsics_root` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `child` [INFO] [stdout] --> src/c4_framework/mod.rs:29:28 [INFO] [stdout] | [INFO] [stdout] 29 | fn verify_child(&self, child: &Self) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_child` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `chain` [INFO] [stdout] --> src/c4_framework/mod.rs:34:32 [INFO] [stdout] | [INFO] [stdout] 34 | fn verify_sub_chain(&self, chain: &[Self]) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_chain` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `genesis_state` [INFO] [stdout] --> src/c4_framework/mod.rs:46:20 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn genesis(genesis_state: &SM::State) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_genesis_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pre_state` [INFO] [stdout] --> src/c4_framework/mod.rs:51:25 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn child(&self, pre_state: &SM::State, extrinsics: Vec) -> Self { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pre_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `extrinsics` [INFO] [stdout] --> src/c4_framework/mod.rs:51:48 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn child(&self, pre_state: &SM::State, extrinsics: Vec) -> Self { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_extrinsics` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pre_state` [INFO] [stdout] --> src/c4_framework/mod.rs:56:36 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn verify_sub_chain(&self, pre_state: &SM::State, chain: &[Self]) -> bool { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pre_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `chain` [INFO] [stdout] --> src/c4_framework/mod.rs:56:59 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn verify_sub_chain(&self, pre_state: &SM::State, chain: &[Self]) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_chain` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/c4_framework/mod.rs:64:5 [INFO] [stdout] | [INFO] [stdout] 64 | n: u64, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `genesis_state` [INFO] [stdout] --> src/c4_framework/mod.rs:65:5 [INFO] [stdout] | [INFO] [stdout] 65 | genesis_state: &SM::State, [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_genesis_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `diy-blockchain` (lib) due to 4 previous errors; 104 warnings emitted [INFO] running `Command { std: "docker" "inspect" "6cc3a0214ebbfc9328d21a1091971d684c1df054f7109ecb60699e314c437f74", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6cc3a0214ebbfc9328d21a1091971d684c1df054f7109ecb60699e314c437f74", kill_on_drop: false }` [INFO] [stdout] 6cc3a0214ebbfc9328d21a1091971d684c1df054f7109ecb60699e314c437f74