[INFO] cloning repository https://github.com/philoniare/blockchain-from-scratch
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/philoniare/blockchain-from-scratch" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fphiloniare%2Fblockchain-from-scratch", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fphiloniare%2Fblockchain-from-scratch'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] a5d0b0142c2f64c96b492e52171c0bc8d6a9d87c
[INFO] testing philoniare/blockchain-from-scratch 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%2Fphiloniare%2Fblockchain-from-scratch" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/philoniare/blockchain-from-scratch
[INFO] finished tweaking git repo https://github.com/philoniare/blockchain-from-scratch
[INFO] tweaked toml for git repo https://github.com/philoniare/blockchain-from-scratch written to /workspace/builds/worker-2-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/philoniare/blockchain-from-scratch 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/philoniare/blockchain-from-scratch 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] [stderr]     Blocking waiting for file lock on package cache
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] b339ba01ee0ffd4dea93e4a5d64663ca9e78bb35b7f9653bb56b40a78dc78ea5
[INFO] running `Command { std: "docker" "start" "b339ba01ee0ffd4dea93e4a5d64663ca9e78bb35b7f9653bb56b40a78dc78ea5", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "b339ba01ee0ffd4dea93e4a5d64663ca9e78bb35b7f9653bb56b40a78dc78ea5", 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" "b339ba01ee0ffd4dea93e4a5d64663ca9e78bb35b7f9653bb56b40a78dc78ea5" "/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" "b339ba01ee0ffd4dea93e4a5d64663ca9e78bb35b7f9653bb56b40a78dc78ea5", 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" "b339ba01ee0ffd4dea93e4a5d64663ca9e78bb35b7f9653bb56b40a78dc78ea5" "/opt/rustwide/cargo-home/bin/cargo" "+1.100.0-beta.1" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]    Compiling blockchain-from-scratch v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]   --> src/c1_state_machine/p1_switches.rs:48:8
[INFO] [stdout]    |
[INFO] [stdout] 48 |                 if (starting_state.first_switch) {
[INFO] [stdout]    |                    ^                           ^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 48 -                 if (starting_state.first_switch) {
[INFO] [stdout] 48 +                 if starting_state.first_switch {
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/c1_state_machine/p3_atm.rs:100:11
[INFO] [stdout]     |
[INFO] [stdout] 100 | ...                   if(withdraw_amount <= new_state.cash_inside) {
[INFO] [stdout]     |                         ^                                        ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 100 -                                 if(withdraw_amount <= new_state.cash_inside) {
[INFO] [stdout] 100 +                                 if withdraw_amount <= new_state.cash_inside {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[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: `std::thread::current`
[INFO] [stdout]   --> src/c2_blockchain/p2_extrinsic_state.rs:11:5
[INFO] [stdout]    |
[INFO] [stdout] 11 | use std::thread::current;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::thread::current`
[INFO] [stdout]  --> src/c2_blockchain/p4_batched_extrinsics.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use std::thread::current;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::hash::Hash`
[INFO] [stdout]   --> src/c2_blockchain/p5_fork_choice.rs:12:5
[INFO] [stdout]    |
[INFO] [stdout] 12 | use std::hash::Hash;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the trait bound `!: Consensus` is not satisfied
[INFO] [stdout]   --> src/c3_consensus/p1_pow.rs:35:37
[INFO] [stdout]    |
[INFO] [stdout] 35 | pub fn moderate_difficulty_pow() -> impl Consensus {
[INFO] [stdout]    |                                     ^^^^^^^^^^^^^^ the trait `Consensus` is not implemented for `!`
[INFO] [stdout] 36 |     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:90:1
[INFO] [stdout]    |
[INFO] [stdout] 90 | impl Consensus for () {
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^ `()`
[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]    = note: this error might have been caused by changes to Rust's type-inference algorithm (see issue #148922 <https://github.com/rust-lang/rust/issues/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] 36 |     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:51:6
[INFO] [stdout]    |
[INFO] [stdout] 51 | ) -> impl Consensus {
[INFO] [stdout]    |      ^^^^^^^^^^^^^^ the trait `Consensus` is not implemented for `!`
[INFO] [stdout] 52 |     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:90:1
[INFO] [stdout]    |
[INFO] [stdout] 90 |   impl Consensus for () {
[INFO] [stdout]    |   ^^^^^^^^^^^^^^^^^^^^^ `()`
[INFO] [stdout]    |
[INFO] [stdout]   ::: src/c3_consensus/p6_forking.rs:21:1
[INFO] [stdout]    |
[INFO] [stdout] 21 | / impl<D, B, A> Consensus for Forked<D, B, A>
[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<D>,
[INFO] [stdout] 27 | |     A::Digest: Into<D>,
[INFO] [stdout]    | |_______________________^ `Forked<D, B, A>`
[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]    = note: this error might have been caused by changes to Rust's type-inference algorithm (see issue #148922 <https://github.com/rust-lang/rust/issues/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] 52 |     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:60:6
[INFO] [stdout]    |
[INFO] [stdout] 60 | ) -> impl Consensus {
[INFO] [stdout]    |      ^^^^^^^^^^^^^^ the trait `Consensus` is not implemented for `!`
[INFO] [stdout] 61 |     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:90:1
[INFO] [stdout]    |
[INFO] [stdout] 90 |   impl Consensus for () {
[INFO] [stdout]    |   ^^^^^^^^^^^^^^^^^^^^^ `()`
[INFO] [stdout]    |
[INFO] [stdout]   ::: src/c3_consensus/p6_forking.rs:21:1
[INFO] [stdout]    |
[INFO] [stdout] 21 | / impl<D, B, A> Consensus for Forked<D, B, A>
[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<D>,
[INFO] [stdout] 27 | |     A::Digest: Into<D>,
[INFO] [stdout]    | |_______________________^ `Forked<D, B, A>`
[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]    = note: this error might have been caused by changes to Rust's type-inference algorithm (see issue #148922 <https://github.com/rust-lang/rust/issues/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] 61 |     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:72:70
[INFO] [stdout]    |
[INFO] [stdout] 72 | fn even_after_given_height<Original: Consensus>(fork_height: u64) -> impl Consensus {
[INFO] [stdout]    |                                                                      ^^^^^^^^^^^^^^ the trait `Consensus` is not implemented for `!`
[INFO] [stdout] 73 |     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:90:1
[INFO] [stdout]    |
[INFO] [stdout] 90 |   impl Consensus for () {
[INFO] [stdout]    |   ^^^^^^^^^^^^^^^^^^^^^ `()`
[INFO] [stdout]    |
[INFO] [stdout]   ::: src/c3_consensus/p6_forking.rs:21:1
[INFO] [stdout]    |
[INFO] [stdout] 21 | / impl<D, B, A> Consensus for Forked<D, B, A>
[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<D>,
[INFO] [stdout] 27 | |     A::Digest: Into<D>,
[INFO] [stdout]    | |_______________________^ `Forked<D, B, A>`
[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]    = note: this error might have been caused by changes to Rust's type-inference algorithm (see issue #148922 <https://github.com/rust-lang/rust/issues/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] 73 |     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:108:6
[INFO] [stdout]     |
[INFO] [stdout] 108 | ) -> impl Consensus {
[INFO] [stdout]     |      ^^^^^^^^^^^^^^ the trait `Consensus` is not implemented for `!`
[INFO] [stdout] 109 |     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:90:1
[INFO] [stdout]     |
[INFO] [stdout]  90 |   impl Consensus for () {
[INFO] [stdout]     |   ^^^^^^^^^^^^^^^^^^^^^ `()`
[INFO] [stdout]     |
[INFO] [stdout]    ::: src/c3_consensus/p6_forking.rs:21:1
[INFO] [stdout]     |
[INFO] [stdout]  21 | / impl<D, B, A> Consensus for Forked<D, B, A>
[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<D>,
[INFO] [stdout]  27 | |     A::Digest: Into<D>,
[INFO] [stdout]     | |_______________________^ `Forked<D, B, A>`
[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]     = note: this error might have been caused by changes to Rust's type-inference algorithm (see issue #148922 <https://github.com/rust-lang/rust/issues/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] 109 |     todo!("Exercise 6") as /* Type */
[INFO] [stdout]     |                         +++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated associated function `core::num::<impl u64>::max_value`: replaced by the `MAX` associated constant on this type
[INFO] [stdout]   --> src/c2_blockchain/p3_consensus.rs:17:29
[INFO] [stdout]    |
[INFO] [stdout] 17 | 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::<impl u64>::max_value`: replaced by the `MAX` associated constant on this type
[INFO] [stdout]   --> src/c2_blockchain/p5_fork_choice.rs:14:29
[INFO] [stdout]    |
[INFO] [stdout] 14 | const THRESHOLD: u64 = u64::max_value() / 100;
[INFO] [stdout]    |                             ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated associated function `core::num::<impl u64>::max_value`: replaced by the `MAX` associated constant on this type
[INFO] [stdout]    --> src/c2_blockchain/p5_fork_choice.rs:161:23
[INFO] [stdout]     |
[INFO] [stdout] 161 |         if hash(&c2) < u64::max_value() / 1000 {
[INFO] [stdout]     |                             ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `t`
[INFO] [stdout]   --> src/c1_state_machine/p1_switches.rs:17:39
[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]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `pin`
[INFO] [stdout]    --> src/c1_state_machine/p3_atm.rs:112:29
[INFO] [stdout]     |
[INFO] [stdout] 112 | ...                   Auth::Authenticating(pin) => {
[INFO] [stdout]     |                                            ^^^ help: if this is intentional, prefix it with an underscore: `_pin`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable pattern
[INFO] [stdout]   --> src/c1_state_machine/p6_open_ended.rs:86:4
[INFO] [stdout]    |
[INFO] [stdout] 86 |             _ => {},
[INFO] [stdout]    |             ^ no value can reach this
[INFO] [stdout]    |
[INFO] [stdout] note: multiple earlier patterns match some of the same values
[INFO] [stdout]   --> src/c1_state_machine/p6_open_ended.rs:86:4
[INFO] [stdout]    |
[INFO] [stdout] 58 |             Transition::DecideOnNextCourseOfAction => {
[INFO] [stdout]    |             -------------------------------------- matches some of the same values
[INFO] [stdout] ...
[INFO] [stdout] 68 |             Transition::Code => match get_day_of_week() {
[INFO] [stdout]    |             ---------------- matches some of the same values
[INFO] [stdout] ...
[INFO] [stdout] 81 |             Transition::DayDream => {
[INFO] [stdout]    |             -------------------- matches some of the same values
[INFO] [stdout] ...
[INFO] [stdout] 86 |             _ => {},
[INFO] [stdout]    |             ^ collectively making this unreachable
[INFO] [stdout]    = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable pattern
[INFO] [stdout]   --> src/c1_state_machine/p6_open_ended.rs:76:5
[INFO] [stdout]    |
[INFO] [stdout] 76 |                 _ => {
[INFO] [stdout]    |                 ^ no value can reach this
[INFO] [stdout]    |
[INFO] [stdout] note: multiple earlier patterns match some of the same values
[INFO] [stdout]   --> src/c1_state_machine/p6_open_ended.rs:76:5
[INFO] [stdout]    |
[INFO] [stdout] 69 |                 DayOfWeek::Wednesday => {
[INFO] [stdout]    |                 -------------------- matches some of the same values
[INFO] [stdout] ...
[INFO] [stdout] 73 |                 DayOfWeek::Thursday | DayOfWeek::Friday => {
[INFO] [stdout]    |                 --------------------------------------- matches some of the same values
[INFO] [stdout] ...
[INFO] [stdout] 76 |                 _ => {
[INFO] [stdout]    |                 ^ collectively making this unreachable
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `n`
[INFO] [stdout]   --> src/c2_blockchain/p2_extrinsic_state.rs:81:22
[INFO] [stdout]    |
[INFO] [stdout] 81 | fn build_valid_chain(n: u64) -> Vec<Header> {
[INFO] [stdout]    |                      ^ help: if this is intentional, prefix it with an underscore: `_n`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/c2_blockchain/p3_consensus.rs:46:7
[INFO] [stdout]    |
[INFO] [stdout] 46 |         let mut header = self;
[INFO] [stdout]    |             ----^^^^^^
[INFO] [stdout]    |             |
[INFO] [stdout]    |             help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `extrinsic_sum`
[INFO] [stdout]    --> src/c2_blockchain/p6_rich_state.rs:118:7
[INFO] [stdout]     |
[INFO] [stdout] 118 |         let extrinsic_sum: u64 = extrinsics.iter().sum();
[INFO] [stdout]     |             ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_extrinsic_sum`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/c2_blockchain/p6_rich_state.rs:169:6
[INFO] [stdout]     |
[INFO] [stdout] 169 |     let mut new_state = pre_state.clone();
[INFO] [stdout]     |         ----^^^^^^^^^
[INFO] [stdout]     |         |
[INFO] [stdout]     |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `header`
[INFO] [stdout]   --> src/c3_consensus/p1_pow.rs:21:39
[INFO] [stdout]    |
[INFO] [stdout] 21 |     fn validate(&self, _: &Self::Digest, header: &Header<Self::Digest>) -> 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:35
[INFO] [stdout]    |
[INFO] [stdout] 27 |     fn seal(&self, _: &Self::Digest, partial_header: Header<()>) -> Option<Header<Self::Digest>> {
[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:22:39
[INFO] [stdout]    |
[INFO] [stdout] 22 |     fn validate(&self, _: &Self::Digest, header: &Header<Self::Digest>) -> 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:27:35
[INFO] [stdout]    |
[INFO] [stdout] 27 |     fn seal(&self, _: &Self::Digest, partial_header: Header<()>) -> Option<Header<Self::Digest>> {
[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:23:21
[INFO] [stdout]    |
[INFO] [stdout] 23 |     fn validate(&self, parent_digest: &Self::Digest, header: &Header<Self::Digest>) -> 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:23:51
[INFO] [stdout]    |
[INFO] [stdout] 23 |     fn validate(&self, parent_digest: &Self::Digest, header: &Header<Self::Digest>) -> 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:29:3
[INFO] [stdout]    |
[INFO] [stdout] 29 |         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:30:3
[INFO] [stdout]    |
[INFO] [stdout] 30 |         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:46:21
[INFO] [stdout]    |
[INFO] [stdout] 46 |     fn validate(&self, parent_digest: &Self::Digest, header: &Header<Self::Digest>) -> 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:46:51
[INFO] [stdout]    |
[INFO] [stdout] 46 |     fn validate(&self, parent_digest: &Self::Digest, header: &Header<Self::Digest>) -> 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:52:3
[INFO] [stdout]    |
[INFO] [stdout] 52 |         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:53:3
[INFO] [stdout]    |
[INFO] [stdout] 53 |         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:84:21
[INFO] [stdout]    |
[INFO] [stdout] 84 |     fn validate(&self, parent_digest: &Self::Digest, header: &Header<Self::Digest>) -> 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:84:51
[INFO] [stdout]    |
[INFO] [stdout] 84 |     fn validate(&self, parent_digest: &Self::Digest, header: &Header<Self::Digest>) -> 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:90:3
[INFO] [stdout]    |
[INFO] [stdout] 90 |         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:91:3
[INFO] [stdout]    |
[INFO] [stdout] 91 |         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:20:21
[INFO] [stdout]    |
[INFO] [stdout] 20 |     fn validate(&self, parent_digest: &Self::Digest, header: &Header<Self::Digest>) -> 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:20:51
[INFO] [stdout]    |
[INFO] [stdout] 20 |     fn validate(&self, parent_digest: &Self::Digest, header: &Header<Self::Digest>) -> 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:26:3
[INFO] [stdout]    |
[INFO] [stdout] 26 |         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:27:3
[INFO] [stdout]    |
[INFO] [stdout] 27 |         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:21
[INFO] [stdout]    |
[INFO] [stdout] 31 |     fn validate(&self, parent_digest: &Self::Digest, header: &Header<Self::Digest>) -> 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:51
[INFO] [stdout]    |
[INFO] [stdout] 31 |     fn validate(&self, parent_digest: &Self::Digest, header: &Header<Self::Digest>) -> 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:3
[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:3
[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:74:3
[INFO] [stdout]    |
[INFO] [stdout] 74 |         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:75:3
[INFO] [stdout]    |
[INFO] [stdout] 75 |         chain: &[Header<Self::Digest>],
[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:99:35
[INFO] [stdout]    |
[INFO] [stdout] 99 |     fn seal(&self, _: &Self::Digest, partial_header: Header<()>) -> Option<Header<Self::Digest>> {
[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:13
[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:18
[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] [stderr] error: could not compile `blockchain-from-scratch` (lib) due to 5 previous errors; 56 warnings emitted
[INFO] [stdout] warning: unused variable: `extrinsics_root`
[INFO] [stdout]   --> src/c4_framework/mod.rs:24:36
[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:25
[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:29
[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:17
[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:22
[INFO] [stdout]    |
[INFO] [stdout] 51 |     pub fn child(&self, pre_state: &SM::State, extrinsics: Vec<u8>) -> 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:45
[INFO] [stdout]    |
[INFO] [stdout] 51 |     pub fn child(&self, pre_state: &SM::State, extrinsics: Vec<u8>) -> 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:33
[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:56
[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:2
[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:2
[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] running `Command { std: "docker" "inspect" "b339ba01ee0ffd4dea93e4a5d64663ca9e78bb35b7f9653bb56b40a78dc78ea5", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "b339ba01ee0ffd4dea93e4a5d64663ca9e78bb35b7f9653bb56b40a78dc78ea5", kill_on_drop: false }`
[INFO] [stdout] b339ba01ee0ffd4dea93e4a5d64663ca9e78bb35b7f9653bb56b40a78dc78ea5
