[INFO] cloning repository https://github.com/Polkadot-Blockchain-Academy/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/Polkadot-Blockchain-Academy/blockchain-from-scratch" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FPolkadot-Blockchain-Academy%2Fblockchain-from-scratch", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FPolkadot-Blockchain-Academy%2Fblockchain-from-scratch'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 8ece3aef9f5d4d2314a20dfa86809dcb067aa22b [INFO] checking Polkadot-Blockchain-Academy/blockchain-from-scratch/8ece3aef9f5d4d2314a20dfa86809dcb067aa22b against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FPolkadot-Blockchain-Academy%2Fblockchain-from-scratch" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Polkadot-Blockchain-Academy/blockchain-from-scratch on toolchain ccf408f4326a858c00dd845a64a86b16f360a801 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Polkadot-Blockchain-Academy/blockchain-from-scratch [INFO] finished tweaking git repo https://github.com/Polkadot-Blockchain-Academy/blockchain-from-scratch [INFO] tweaked toml for git repo https://github.com/Polkadot-Blockchain-Academy/blockchain-from-scratch written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/Polkadot-Blockchain-Academy/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" "+ccf408f4326a858c00dd845a64a86b16f360a801" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5edc7178730f5cd18f4cd3a9c6acfb8325c82f6b4ec78f3a486a1e98f142ee4a [INFO] running `Command { std: "docker" "start" "-a" "5edc7178730f5cd18f4cd3a9c6acfb8325c82f6b4ec78f3a486a1e98f142ee4a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5edc7178730f5cd18f4cd3a9c6acfb8325c82f6b4ec78f3a486a1e98f142ee4a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5edc7178730f5cd18f4cd3a9c6acfb8325c82f6b4ec78f3a486a1e98f142ee4a", kill_on_drop: false }` [INFO] [stdout] 5edc7178730f5cd18f4cd3a9c6acfb8325c82f6b4ec78f3a486a1e98f142ee4a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 69cab6cd6dc4821b34d502d32bdb354aeb7da5cc5c8b869047854692505febd3 [INFO] running `Command { std: "docker" "start" "-a" "69cab6cd6dc4821b34d502d32bdb354aeb7da5cc5c8b869047854692505febd3", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Migrating Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Checking blockchain-from-scratch v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] Fixed src/c2_blockchain/mod.rs (1 fix) [INFO] [stdout] warning: this function depends on never type fallback being `()` [INFO] [stdout] --> src/c3_consensus/p1_pow.rs:35:1 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn moderate_difficulty_pow() -> impl Consensus { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #123748 [INFO] [stdout] = help: specify the types explicitly [INFO] [stdout] note: in edition 2024, the requirement `!: Consensus` will fail [INFO] [stdout] --> src/c3_consensus/p1_pow.rs:35:37 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn moderate_difficulty_pow() -> impl Consensus { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(dependency_on_unit_never_type_fallback)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function depends on never type fallback being `()` [INFO] [stdout] --> src/c3_consensus/p6_forking.rs:47:1 [INFO] [stdout] | [INFO] [stdout] 47 | / fn change_authorities( [INFO] [stdout] 48 | | fork_height: u64, [INFO] [stdout] 49 | | initial_authorities: Vec, [INFO] [stdout] 50 | | final_authorities: Vec, [INFO] [stdout] 51 | | ) -> impl Consensus { [INFO] [stdout] | |___________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #123748 [INFO] [stdout] = help: specify the types explicitly [INFO] [stdout] note: in edition 2024, the requirement `!: Consensus` will fail [INFO] [stdout] --> src/c3_consensus/p6_forking.rs:51:6 [INFO] [stdout] | [INFO] [stdout] 51 | ) -> impl Consensus { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fork_height` [INFO] [stdout] --> src/c3_consensus/p6_forking.rs:48:2 [INFO] [stdout] | [INFO] [stdout] 48 | fork_height: u64, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_fork_height` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `initial_authorities` [INFO] [stdout] --> src/c3_consensus/p6_forking.rs:49:2 [INFO] [stdout] | [INFO] [stdout] 49 | initial_authorities: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_initial_authorities` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `final_authorities` [INFO] [stdout] --> src/c3_consensus/p6_forking.rs:50:2 [INFO] [stdout] | [INFO] [stdout] 50 | final_authorities: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_final_authorities` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function depends on never type fallback being `()` [INFO] [stdout] --> src/c3_consensus/p6_forking.rs:56:1 [INFO] [stdout] | [INFO] [stdout] 56 | / fn change_difficulty( [INFO] [stdout] 57 | | fork_height: u64, [INFO] [stdout] 58 | | initial_difficulty: u64, [INFO] [stdout] 59 | | final_difficulty: u64, [INFO] [stdout] 60 | | ) -> impl Consensus { [INFO] [stdout] | |___________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #123748 [INFO] [stdout] = help: specify the types explicitly [INFO] [stdout] note: in edition 2024, the requirement `!: Consensus` will fail [INFO] [stdout] --> src/c3_consensus/p6_forking.rs:60:6 [INFO] [stdout] | [INFO] [stdout] 60 | ) -> impl Consensus { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fork_height` [INFO] [stdout] --> src/c3_consensus/p6_forking.rs:57:2 [INFO] [stdout] | [INFO] [stdout] 57 | fork_height: u64, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_fork_height` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `initial_difficulty` [INFO] [stdout] --> src/c3_consensus/p6_forking.rs:58:2 [INFO] [stdout] | [INFO] [stdout] 58 | initial_difficulty: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_initial_difficulty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `final_difficulty` [INFO] [stdout] --> src/c3_consensus/p6_forking.rs:59:2 [INFO] [stdout] | [INFO] [stdout] 59 | final_difficulty: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_final_difficulty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function depends on never type fallback being `()` [INFO] [stdout] --> src/c3_consensus/p6_forking.rs:72:1 [INFO] [stdout] | [INFO] [stdout] 72 | fn even_after_given_height(fork_height: u64) -> impl Consensus { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #123748 [INFO] [stdout] = help: specify the types explicitly [INFO] [stdout] note: in edition 2024, the requirement `!: Consensus` will fail [INFO] [stdout] --> src/c3_consensus/p6_forking.rs:72:70 [INFO] [stdout] | [INFO] [stdout] 72 | fn even_after_given_height(fork_height: u64) -> impl Consensus { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fork_height` [INFO] [stdout] --> src/c3_consensus/p6_forking.rs:72:49 [INFO] [stdout] | [INFO] [stdout] 72 | fn even_after_given_height(fork_height: u64) -> impl Consensus { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_fork_height` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function depends on never type fallback being `()` [INFO] [stdout] --> src/c3_consensus/p6_forking.rs:104:1 [INFO] [stdout] | [INFO] [stdout] 104 | / fn pow_to_poa( [INFO] [stdout] 105 | | fork_height: u64, [INFO] [stdout] 106 | | difficulty: u64, [INFO] [stdout] 107 | | authorities: Vec, [INFO] [stdout] 108 | | ) -> impl Consensus { [INFO] [stdout] | |___________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #123748 [INFO] [stdout] = help: specify the types explicitly [INFO] [stdout] note: in edition 2024, the requirement `!: Consensus` will fail [INFO] [stdout] --> src/c3_consensus/p6_forking.rs:108:6 [INFO] [stdout] | [INFO] [stdout] 108 | ) -> impl Consensus { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fork_height` [INFO] [stdout] --> src/c3_consensus/p6_forking.rs:105:2 [INFO] [stdout] | [INFO] [stdout] 105 | fork_height: u64, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_fork_height` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `difficulty` [INFO] [stdout] --> src/c3_consensus/p6_forking.rs:106:2 [INFO] [stdout] | [INFO] [stdout] 106 | difficulty: u64, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_difficulty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `authorities` [INFO] [stdout] --> src/c3_consensus/p6_forking.rs:107:2 [INFO] [stdout] | [INFO] [stdout] 107 | authorities: Vec, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_authorities` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `starting_state` [INFO] [stdout] --> src/c1_state_machine/p1_switches.rs:17:16 [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] [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] [INFO] [stdout] warning: unused variable: `starting_state` [INFO] [stdout] --> src/c1_state_machine/p1_switches.rs:44:16 [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:46 [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:16 [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:47 [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:61:16 [INFO] [stdout] | [INFO] [stdout] 61 | 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:61:46 [INFO] [stdout] | [INFO] [stdout] 61 | 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:43:16 [INFO] [stdout] | [INFO] [stdout] 43 | 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:43:43 [INFO] [stdout] | [INFO] [stdout] 43 | 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:90:16 [INFO] [stdout] | [INFO] [stdout] 90 | 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:90:46 [INFO] [stdout] | [INFO] [stdout] 90 | 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:39:29 [INFO] [stdout] | [INFO] [stdout] 39 | 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:41:18 [INFO] [stdout] | [INFO] [stdout] 41 | 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:51:29 [INFO] [stdout] | [INFO] [stdout] 51 | 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:59:22 [INFO] [stdout] | [INFO] [stdout] 59 | 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:45:18 [INFO] [stdout] | [INFO] [stdout] 45 | 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:53:29 [INFO] [stdout] | [INFO] [stdout] 53 | 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:65:34 [INFO] [stdout] | [INFO] [stdout] 65 | 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:71:33 [INFO] [stdout] | [INFO] [stdout] 71 | 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:22 [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:45 [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:25 [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:29 [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:22 [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:33 [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:20 [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:27 [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:47 [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:20 [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:27 [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:47 [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:20 [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:27 [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:47 [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:20 [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:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | 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:59:18 [INFO] [stdout] | [INFO] [stdout] 59 | 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:59:41 [INFO] [stdout] | [INFO] [stdout] 59 | 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:64:25 [INFO] [stdout] | [INFO] [stdout] 64 | 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:69:29 [INFO] [stdout] | [INFO] [stdout] 69 | 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:93:17 [INFO] [stdout] | [INFO] [stdout] 93 | 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:98:22 [INFO] [stdout] | [INFO] [stdout] 98 | 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:98:41 [INFO] [stdout] | [INFO] [stdout] 98 | 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:107:33 [INFO] [stdout] | [INFO] [stdout] 107 | 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:107:52 [INFO] [stdout] | [INFO] [stdout] 107 | 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:123:48 [INFO] [stdout] | [INFO] [stdout] 123 | 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:123:65 [INFO] [stdout] | [INFO] [stdout] 123 | 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:39 [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:35 [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:22:39 [INFO] [stdout] | [INFO] [stdout] 22 | 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:27:35 [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: `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) -> 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) -> 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) -> 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) -> 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) -> 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) -> 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) -> 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) -> 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) -> 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) -> 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], [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> { [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] [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) -> 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) -> 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] warning: associated function `human_name` is never used [INFO] [stdout] --> src/c1_state_machine/mod.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 13 | pub trait StateMachine { [INFO] [stdout] | ------------ associated function in this trait [INFO] [stdout] ... [INFO] [stdout] 26 | fn human_name() -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/c1_state_machine/p3_atm.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | SwipeCard(u64), [INFO] [stdout] | --------- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 21 | SwipeCard(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/c1_state_machine/p3_atm.rs:23:11 [INFO] [stdout] | [INFO] [stdout] 23 | PressKey(Key), [INFO] [stdout] | -------- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 23 | PressKey(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `minter` and `amount` are never read [INFO] [stdout] --> src/c1_state_machine/p4_accounted_currency.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | Mint { minter: User, amount: u64 }, [INFO] [stdout] | ---- ^^^^^^ ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `burner` and `amount` are never read [INFO] [stdout] --> src/c1_state_machine/p4_accounted_currency.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | Burn { burner: User, amount: u64 }, [INFO] [stdout] | ---- ^^^^^^ ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `sender`, `receiver`, and `amount` are never read [INFO] [stdout] --> src/c1_state_machine/p4_accounted_currency.rs:35:13 [INFO] [stdout] | [INFO] [stdout] 35 | Transfer { sender: User, receiver: User, amount: u64 }, [INFO] [stdout] | -------- ^^^^^^ ^^^^^^^^ ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `next_serial` is never used [INFO] [stdout] --> src/c1_state_machine/p5_digital_cash.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 33 | impl State { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn next_serial(&self) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `minter` and `amount` are never read [INFO] [stdout] --> src/c1_state_machine/p5_digital_cash.rs:76:9 [INFO] [stdout] | [INFO] [stdout] 76 | Mint { minter: User, amount: u64 }, [INFO] [stdout] | ---- ^^^^^^ ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `spends` and `receives` are never read [INFO] [stdout] --> src/c1_state_machine/p5_digital_cash.rs:82:13 [INFO] [stdout] | [INFO] [stdout] 82 | Transfer { spends: Vec, receives: Vec }, [INFO] [stdout] | -------- ^^^^^^ ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_valid_chain` is never used [INFO] [stdout] --> src/c2_blockchain/p2_extrinsic_state.rs:59:4 [INFO] [stdout] | [INFO] [stdout] 59 | fn build_valid_chain(n: u64) -> Vec
{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_an_invalid_chain` is never used [INFO] [stdout] --> src/c2_blockchain/p2_extrinsic_state.rs:73:4 [INFO] [stdout] | [INFO] [stdout] 73 | fn build_an_invalid_chain() -> Vec
{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FORK_HEIGHT` is never used [INFO] [stdout] --> src/c2_blockchain/p3_consensus.rs:21:7 [INFO] [stdout] | [INFO] [stdout] 21 | const FORK_HEIGHT: u64 = 2; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `verify_sub_chain` is never used [INFO] [stdout] --> src/c2_blockchain/p4_batched_extrinsics.rs:59:5 [INFO] [stdout] | [INFO] [stdout] 28 | impl Header { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 59 | fn verify_sub_chain(&self, chain: &[Header]) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `verify_sub_chain` is never used [INFO] [stdout] --> src/c2_blockchain/p6_rich_state.rs:69:5 [INFO] [stdout] | [INFO] [stdout] 49 | impl Header { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 69 | fn verify_sub_chain(&self, chain: &[Header]) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `validate`, `seal`, `verify_sub_chain`, and `human_name` are never used [INFO] [stdout] --> src/c3_consensus/mod.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 35 | pub trait Consensus { [INFO] [stdout] | --------- associated items in this trait [INFO] [stdout] ... [INFO] [stdout] 47 | fn validate(&self, parent_digest: &Self::Digest, header: &Header) -> bool; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | fn seal( [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 72 | fn verify_sub_chain( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | fn human_name() -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Alice`, `Bob`, and `Charlie` are never constructed [INFO] [stdout] --> src/c3_consensus/mod.rs:108:2 [INFO] [stdout] | [INFO] [stdout] 107 | pub enum ConsensusAuthority { [INFO] [stdout] | ------------------ variants in this enum [INFO] [stdout] 108 | Alice, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 109 | Bob, [INFO] [stdout] | ^^^ [INFO] [stdout] 110 | Charlie, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ConsensusAuthority` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `threshold` is never read [INFO] [stdout] --> src/c3_consensus/p1_pow.rs:13:2 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct PoW { [INFO] [stdout] | --- field in this struct [INFO] [stdout] 13 | threshold: u64, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `moderate_difficulty_pow` is never used [INFO] [stdout] --> src/c3_consensus/p1_pow.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn moderate_difficulty_pow() -> impl Consensus { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DictatorConsensus` is never constructed [INFO] [stdout] --> src/c3_consensus/p2_dictator.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | struct DictatorConsensus { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SimplePoa` is never constructed [INFO] [stdout] --> src/c3_consensus/p3_poa.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | struct SimplePoa { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PoaRoundRobinByHeight` is never constructed [INFO] [stdout] --> src/c3_consensus/p3_poa.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 39 | struct PoaRoundRobinByHeight { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PoaRoundRobinBySlot` is never constructed [INFO] [stdout] --> src/c3_consensus/p3_poa.rs:68:8 [INFO] [stdout] | [INFO] [stdout] 68 | struct PoaRoundRobinBySlot { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `EvenOnly` is never constructed [INFO] [stdout] --> src/c3_consensus/p4_even_only.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | struct EvenOnly(PhantomData); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `almost_valid_but_not_all_even` is never used [INFO] [stdout] --> src/c3_consensus/p4_even_only.rs:36:4 [INFO] [stdout] | [INFO] [stdout] 36 | fn almost_valid_but_not_all_even() -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AlternatingPowPoa` is never constructed [INFO] [stdout] --> src/c3_consensus/p5_interleave.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | struct AlternatingPowPoa; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Forked` is never constructed [INFO] [stdout] --> src/c3_consensus/p6_forking.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | struct Forked { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `change_authorities` is never used [INFO] [stdout] --> src/c3_consensus/p6_forking.rs:47:4 [INFO] [stdout] | [INFO] [stdout] 47 | fn change_authorities( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `change_difficulty` is never used [INFO] [stdout] --> src/c3_consensus/p6_forking.rs:56:4 [INFO] [stdout] | [INFO] [stdout] 56 | fn change_difficulty( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `even_after_given_height` is never used [INFO] [stdout] --> src/c3_consensus/p6_forking.rs:72:4 [INFO] [stdout] | [INFO] [stdout] 72 | fn even_after_given_height(fork_height: u64) -> impl Consensus { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `pow_to_poa` is never used [INFO] [stdout] --> src/c3_consensus/p6_forking.rs:104:4 [INFO] [stdout] | [INFO] [stdout] 104 | fn pow_to_poa( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Hash` is never used [INFO] [stdout] --> src/c4_framework/mod.rs:15:6 [INFO] [stdout] | [INFO] [stdout] 15 | type Hash = u64; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `genesis`, `child`, `verify_child`, and `verify_sub_chain` are never used [INFO] [stdout] --> src/c4_framework/mod.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 17 | impl Header { [INFO] [stdout] | --------------------------- associated items in this implementation [INFO] [stdout] 18 | /// Returns a new valid genesis header. [INFO] [stdout] 19 | fn genesis(genesis_state_root: Hash) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | fn child(&self, state_root: Hash, extrinsics_root: Hash) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | fn verify_child(&self, child: &Self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | fn verify_sub_chain(&self, chain: &[Self]) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Block` is never constructed [INFO] [stdout] --> src/c4_framework/mod.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 39 | struct Block { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `genesis`, `child`, and `verify_sub_chain` are never used [INFO] [stdout] --> src/c4_framework/mod.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 44 | impl Block { [INFO] [stdout] | ------------------------------------------------- associated items in this implementation [INFO] [stdout] 45 | /// Returns a new valid genesis block. By convention this block has no extrinsics. [INFO] [stdout] 46 | pub fn genesis(genesis_state: &SM::State) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | pub fn child(&self, pre_state: &SM::State, extrinsics: Vec) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | pub fn verify_sub_chain(&self, pre_state: &SM::State, chain: &[Self]) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_empty_chain` is never used [INFO] [stdout] --> src/c4_framework/mod.rs:63:4 [INFO] [stdout] | [INFO] [stdout] 63 | fn create_empty_chain( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 140 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Fixed src/c2_blockchain/p4_batched_extrinsics.rs (1 fix) [INFO] [stderr] Fixed src/c2_blockchain/p3_consensus.rs (1 fix) [INFO] [stderr] Fixed src/c2_blockchain/p2_extrinsic_state.rs (1 fix) [INFO] [stderr] Fixed src/c2_blockchain/p1_header_chain.rs (1 fix) [INFO] [stderr] Fixed src/c2_blockchain/p5_fork_choice.rs (1 fix) [INFO] [stderr] Fixed src/c2_blockchain/p6_rich_state.rs (1 fix) [INFO] [stdout] warning: this function depends on never type fallback being `()` [INFO] [stdout] --> src/c3_consensus/p1_pow.rs:35:1 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn moderate_difficulty_pow() -> impl Consensus { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #123748 [INFO] [stdout] = help: specify the types explicitly [INFO] [stdout] note: in edition 2024, the requirement `!: Consensus` will fail [INFO] [stdout] --> src/c3_consensus/p1_pow.rs:35:37 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn moderate_difficulty_pow() -> impl Consensus { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(dependency_on_unit_never_type_fallback)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function depends on never type fallback being `()` [INFO] [stdout] --> src/c3_consensus/p6_forking.rs:47:1 [INFO] [stdout] | [INFO] [stdout] 47 | / fn change_authorities( [INFO] [stdout] 48 | | fork_height: u64, [INFO] [stdout] 49 | | initial_authorities: Vec, [INFO] [stdout] 50 | | final_authorities: Vec, [INFO] [stdout] 51 | | ) -> impl Consensus { [INFO] [stdout] | |___________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #123748 [INFO] [stdout] = help: specify the types explicitly [INFO] [stdout] note: in edition 2024, the requirement `!: Consensus` will fail [INFO] [stdout] --> src/c3_consensus/p6_forking.rs:51:6 [INFO] [stdout] | [INFO] [stdout] 51 | ) -> impl Consensus { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fork_height` [INFO] [stdout] --> src/c3_consensus/p6_forking.rs:48:2 [INFO] [stdout] | [INFO] [stdout] 48 | fork_height: u64, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_fork_height` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `initial_authorities` [INFO] [stdout] --> src/c3_consensus/p6_forking.rs:49:2 [INFO] [stdout] | [INFO] [stdout] 49 | initial_authorities: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_initial_authorities` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `final_authorities` [INFO] [stdout] --> src/c3_consensus/p6_forking.rs:50:2 [INFO] [stdout] | [INFO] [stdout] 50 | final_authorities: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_final_authorities` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function depends on never type fallback being `()` [INFO] [stdout] --> src/c3_consensus/p6_forking.rs:56:1 [INFO] [stdout] | [INFO] [stdout] 56 | / fn change_difficulty( [INFO] [stdout] 57 | | fork_height: u64, [INFO] [stdout] 58 | | initial_difficulty: u64, [INFO] [stdout] 59 | | final_difficulty: u64, [INFO] [stdout] 60 | | ) -> impl Consensus { [INFO] [stdout] | |___________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #123748 [INFO] [stdout] = help: specify the types explicitly [INFO] [stdout] note: in edition 2024, the requirement `!: Consensus` will fail [INFO] [stdout] --> src/c3_consensus/p6_forking.rs:60:6 [INFO] [stdout] | [INFO] [stdout] 60 | ) -> impl Consensus { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fork_height` [INFO] [stdout] --> src/c3_consensus/p6_forking.rs:57:2 [INFO] [stdout] | [INFO] [stdout] 57 | fork_height: u64, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_fork_height` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `initial_difficulty` [INFO] [stdout] --> src/c3_consensus/p6_forking.rs:58:2 [INFO] [stdout] | [INFO] [stdout] 58 | initial_difficulty: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_initial_difficulty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `final_difficulty` [INFO] [stdout] --> src/c3_consensus/p6_forking.rs:59:2 [INFO] [stdout] | [INFO] [stdout] 59 | final_difficulty: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_final_difficulty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function depends on never type fallback being `()` [INFO] [stdout] --> src/c3_consensus/p6_forking.rs:72:1 [INFO] [stdout] | [INFO] [stdout] 72 | fn even_after_given_height(fork_height: u64) -> impl Consensus { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #123748 [INFO] [stdout] = help: specify the types explicitly [INFO] [stdout] note: in edition 2024, the requirement `!: Consensus` will fail [INFO] [stdout] --> src/c3_consensus/p6_forking.rs:72:70 [INFO] [stdout] | [INFO] [stdout] 72 | fn even_after_given_height(fork_height: u64) -> impl Consensus { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fork_height` [INFO] [stdout] --> src/c3_consensus/p6_forking.rs:72:49 [INFO] [stdout] | [INFO] [stdout] 72 | fn even_after_given_height(fork_height: u64) -> impl Consensus { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_fork_height` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function depends on never type fallback being `()` [INFO] [stdout] --> src/c3_consensus/p6_forking.rs:104:1 [INFO] [stdout] | [INFO] [stdout] 104 | / fn pow_to_poa( [INFO] [stdout] 105 | | fork_height: u64, [INFO] [stdout] 106 | | difficulty: u64, [INFO] [stdout] 107 | | authorities: Vec, [INFO] [stdout] 108 | | ) -> impl Consensus { [INFO] [stdout] | |___________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #123748 [INFO] [stdout] = help: specify the types explicitly [INFO] [stdout] note: in edition 2024, the requirement `!: Consensus` will fail [INFO] [stdout] --> src/c3_consensus/p6_forking.rs:108:6 [INFO] [stdout] | [INFO] [stdout] 108 | ) -> impl Consensus { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fork_height` [INFO] [stdout] --> src/c3_consensus/p6_forking.rs:105:2 [INFO] [stdout] | [INFO] [stdout] 105 | fork_height: u64, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_fork_height` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `difficulty` [INFO] [stdout] --> src/c3_consensus/p6_forking.rs:106:2 [INFO] [stdout] | [INFO] [stdout] 106 | difficulty: u64, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_difficulty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `authorities` [INFO] [stdout] --> src/c3_consensus/p6_forking.rs:107:2 [INFO] [stdout] | [INFO] [stdout] 107 | authorities: Vec, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_authorities` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `starting_state` [INFO] [stdout] --> src/c1_state_machine/p1_switches.rs:17:16 [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] [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] [INFO] [stdout] warning: unused variable: `starting_state` [INFO] [stdout] --> src/c1_state_machine/p1_switches.rs:44:16 [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:46 [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:16 [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:47 [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:61:16 [INFO] [stdout] | [INFO] [stdout] 61 | 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:61:46 [INFO] [stdout] | [INFO] [stdout] 61 | 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:43:16 [INFO] [stdout] | [INFO] [stdout] 43 | 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:43:43 [INFO] [stdout] | [INFO] [stdout] 43 | 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:90:16 [INFO] [stdout] | [INFO] [stdout] 90 | 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:90:46 [INFO] [stdout] | [INFO] [stdout] 90 | 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:38:29 [INFO] [stdout] | [INFO] [stdout] 38 | 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:40:18 [INFO] [stdout] | [INFO] [stdout] 40 | 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:29 [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:18 [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:29 [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:34 [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:33 [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:36:22 [INFO] [stdout] | [INFO] [stdout] 36 | 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:36:45 [INFO] [stdout] | [INFO] [stdout] 36 | 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:47:25 [INFO] [stdout] | [INFO] [stdout] 47 | 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:58:29 [INFO] [stdout] | [INFO] [stdout] 58 | 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:83:22 [INFO] [stdout] | [INFO] [stdout] 83 | 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:90:33 [INFO] [stdout] | [INFO] [stdout] 90 | 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:103:48 [INFO] [stdout] | [INFO] [stdout] 103 | 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:34:20 [INFO] [stdout] | [INFO] [stdout] 34 | 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:43:27 [INFO] [stdout] | [INFO] [stdout] 43 | 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:43:47 [INFO] [stdout] | [INFO] [stdout] 43 | 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:47:20 [INFO] [stdout] | [INFO] [stdout] 47 | 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:69:20 [INFO] [stdout] | [INFO] [stdout] 69 | 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:69:39 [INFO] [stdout] | [INFO] [stdout] 69 | 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:74:27 [INFO] [stdout] | [INFO] [stdout] 74 | 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:74:47 [INFO] [stdout] | [INFO] [stdout] 74 | 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:78:20 [INFO] [stdout] | [INFO] [stdout] 78 | 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:100:27 [INFO] [stdout] | [INFO] [stdout] 100 | 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:100:47 [INFO] [stdout] | [INFO] [stdout] 100 | 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:104:20 [INFO] [stdout] | [INFO] [stdout] 104 | 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:50:13 [INFO] [stdout] | [INFO] [stdout] 50 | 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:58:18 [INFO] [stdout] | [INFO] [stdout] 58 | 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:58:41 [INFO] [stdout] | [INFO] [stdout] 58 | 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:63:25 [INFO] [stdout] | [INFO] [stdout] 63 | 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:68:29 [INFO] [stdout] | [INFO] [stdout] 68 | 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:92:17 [INFO] [stdout] | [INFO] [stdout] 92 | 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:97:22 [INFO] [stdout] | [INFO] [stdout] 97 | 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:97:41 [INFO] [stdout] | [INFO] [stdout] 97 | 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:106:33 [INFO] [stdout] | [INFO] [stdout] 106 | 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:106:52 [INFO] [stdout] | [INFO] [stdout] 106 | 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:122:48 [INFO] [stdout] | [INFO] [stdout] 122 | 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:122:65 [INFO] [stdout] | [INFO] [stdout] 122 | 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:39 [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:35 [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:22:39 [INFO] [stdout] | [INFO] [stdout] 22 | 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:27:35 [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: `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) -> 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) -> 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) -> 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) -> 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) -> 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) -> 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) -> 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) -> 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) -> 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) -> 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], [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> { [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] [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) -> 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) -> 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] warning: function `hash` is never used [INFO] [stdout] --> src/lib.rs:14:4 [INFO] [stdout] | [INFO] [stdout] 14 | fn hash(t: &T) -> u64 { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `next_state` and `human_name` are never used [INFO] [stdout] --> src/c1_state_machine/mod.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 13 | pub trait StateMachine { [INFO] [stdout] | ------------ associated functions in this trait [INFO] [stdout] ... [INFO] [stdout] 21 | fn next_state(starting_state: &Self::State, t: &Self::Transition) -> Self::State; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | fn human_name() -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Alice`, `Bob`, and `Charlie` are never constructed [INFO] [stdout] --> src/c1_state_machine/mod.rs:34:2 [INFO] [stdout] | [INFO] [stdout] 33 | pub enum User { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 34 | Alice, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 35 | Bob, [INFO] [stdout] | ^^^ [INFO] [stdout] 36 | Charlie, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `User` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LightSwitch` is never constructed [INFO] [stdout] --> src/c1_state_machine/p1_switches.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct LightSwitch; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `WeirdSwitchMachine` is never constructed [INFO] [stdout] --> src/c1_state_machine/p1_switches.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct WeirdSwitchMachine; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `FirstSwitch` and `SecondSwitch` are never constructed [INFO] [stdout] --> src/c1_state_machine/p1_switches.rs:35:2 [INFO] [stdout] | [INFO] [stdout] 34 | pub enum Toggle { [INFO] [stdout] | ------ variants in this enum [INFO] [stdout] 35 | FirstSwitch, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 36 | SecondSwitch, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ClothesMachine` is never constructed [INFO] [stdout] --> src/c1_state_machine/p2_laundry_machine.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct ClothesMachine; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Clean`, `Dirty`, `Wet`, and `Tattered` are never constructed [INFO] [stdout] --> src/c1_state_machine/p2_laundry_machine.rs:15:2 [INFO] [stdout] | [INFO] [stdout] 13 | pub enum ClothesState { [INFO] [stdout] | ------------ variants in this enum [INFO] [stdout] 14 | /// Clean clothes ready to be worn. With some given life left. [INFO] [stdout] 15 | Clean(u64), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 16 | /// Dirty clothes. With some given life left. [INFO] [stdout] 17 | Dirty(u64), [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | Wet(u64), [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | Tattered, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ClothesState` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Wear`, `Wash`, and `Dry` are never constructed [INFO] [stdout] --> src/c1_state_machine/p2_laundry_machine.rs:29:2 [INFO] [stdout] | [INFO] [stdout] 27 | pub enum ClothesAction { [INFO] [stdout] | ------------- variants in this enum [INFO] [stdout] 28 | /// Wearing clothes decreases their life by 1 and makes them dirty. [INFO] [stdout] 29 | Wear, [INFO] [stdout] | ^^^^ [INFO] [stdout] 30 | /// Washing clothes decreases their life by 1, and makes them wet. [INFO] [stdout] 31 | Wash, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | Dry, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `One`, `Two`, `Three`, `Four`, and `Enter` are never constructed [INFO] [stdout] --> src/c1_state_machine/p3_atm.rs:10:2 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum Key { [INFO] [stdout] | --- variants in this enum [INFO] [stdout] 10 | One, [INFO] [stdout] | ^^^ [INFO] [stdout] 11 | Two, [INFO] [stdout] | ^^^ [INFO] [stdout] 12 | Three, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 13 | Four, [INFO] [stdout] | ^^^^ [INFO] [stdout] 14 | Enter, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Key` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `SwipeCard` and `PressKey` are never constructed [INFO] [stdout] --> src/c1_state_machine/p3_atm.rs:21:2 [INFO] [stdout] | [INFO] [stdout] 18 | pub enum Action { [INFO] [stdout] | ------ variants in this enum [INFO] [stdout] ... [INFO] [stdout] 21 | SwipeCard(u64), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 22 | /// Press a key on the keypad [INFO] [stdout] 23 | PressKey(Key), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Waiting`, `Authenticating`, and `Authenticated` are never constructed [INFO] [stdout] --> src/c1_state_machine/p3_atm.rs:30:2 [INFO] [stdout] | [INFO] [stdout] 28 | enum Auth { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 29 | /// No session has begun yet. Waiting for the user to swipe their card [INFO] [stdout] 30 | Waiting, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | Authenticating(u64), [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | Authenticated, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Auth` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AccountedCurrency` is never constructed [INFO] [stdout] --> src/c1_state_machine/p4_accounted_currency.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct AccountedCurrency; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Mint`, `Burn`, and `Transfer` are never constructed [INFO] [stdout] --> src/c1_state_machine/p4_accounted_currency.rs:29:2 [INFO] [stdout] | [INFO] [stdout] 27 | pub enum AccountingTransaction { [INFO] [stdout] | --------------------- variants in this enum [INFO] [stdout] 28 | /// Create some new money for the given minter in the given amount [INFO] [stdout] 29 | Mint { minter: User, amount: u64 }, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | Burn { burner: User, amount: u64 }, [INFO] [stdout] | ^^^^ [INFO] [stdout] 34 | /// Send some tokens from one account to another [INFO] [stdout] 35 | Transfer { sender: User, receiver: User, amount: u64 }, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_serial` and `next_serial` are never used [INFO] [stdout] --> src/c1_state_machine/p5_digital_cash.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 33 | impl State { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn set_serial(&mut self, serial: u64) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn next_serial(&self) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Mint` and `Transfer` are never constructed [INFO] [stdout] --> src/c1_state_machine/p5_digital_cash.rs:76:2 [INFO] [stdout] | [INFO] [stdout] 74 | pub enum CashTransaction { [INFO] [stdout] | --------------- variants in this enum [INFO] [stdout] 75 | /// Mint a single new bill owned by the minter [INFO] [stdout] 76 | Mint { minter: User, amount: u64 }, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | Transfer { spends: Vec, receives: Vec }, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `genesis`, `child`, and `verify_sub_chain` are never used [INFO] [stdout] --> src/c2_blockchain/p1_header_chain.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 23 | impl Header { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 24 | /// Returns a new valid genesis header. [INFO] [stdout] 25 | fn genesis() -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | fn child(&self) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | fn verify_sub_chain(&self, chain: &[Header]) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_valid_chain_length_5` is never used [INFO] [stdout] --> src/c2_blockchain/p1_header_chain.rs:46:4 [INFO] [stdout] | [INFO] [stdout] 46 | fn build_valid_chain_length_5() -> Vec
{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_an_invalid_chain` is never used [INFO] [stdout] --> src/c2_blockchain/p1_header_chain.rs:53:4 [INFO] [stdout] | [INFO] [stdout] 53 | fn build_an_invalid_chain() -> Vec
{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `genesis`, `child`, and `verify_sub_chain` are never used [INFO] [stdout] --> src/c2_blockchain/p2_extrinsic_state.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 30 | impl Header { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 31 | /// Returns a new valid genesis header. [INFO] [stdout] 32 | fn genesis() -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | fn child(&self, extrinsic: u64) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | fn verify_sub_chain(&self, chain: &[Header]) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_valid_chain` is never used [INFO] [stdout] --> src/c2_blockchain/p2_extrinsic_state.rs:58:4 [INFO] [stdout] | [INFO] [stdout] 58 | fn build_valid_chain(n: u64) -> Vec
{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_an_invalid_chain` is never used [INFO] [stdout] --> src/c2_blockchain/p2_extrinsic_state.rs:72:4 [INFO] [stdout] | [INFO] [stdout] 72 | fn build_an_invalid_chain() -> Vec
{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_forked_chain` is never used [INFO] [stdout] --> src/c2_blockchain/p2_extrinsic_state.rs:87:4 [INFO] [stdout] | [INFO] [stdout] 87 | fn build_forked_chain() -> (Vec
, Vec
) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `THRESHOLD` is never used [INFO] [stdout] --> src/c2_blockchain/p3_consensus.rs:16:7 [INFO] [stdout] | [INFO] [stdout] 16 | const THRESHOLD: u64 = u64::max_value() / 100; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FORK_HEIGHT` is never used [INFO] [stdout] --> src/c2_blockchain/p3_consensus.rs:20:7 [INFO] [stdout] | [INFO] [stdout] 20 | const FORK_HEIGHT: u64 = 2; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `genesis`, `child`, `verify_sub_chain`, `verify_sub_chain_even`, and `verify_sub_chain_odd` are never used [INFO] [stdout] --> src/c2_blockchain/p3_consensus.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 37 | impl Header { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 38 | /// Returns a new valid genesis header. [INFO] [stdout] 39 | fn genesis() -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | fn child(&self, extrinsic: u64) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | fn verify_sub_chain(&self, chain: &[Header]) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 64 | fn verify_sub_chain_even(&self, chain: &[Header]) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | fn verify_sub_chain_odd(&self, chain: &[Header]) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_contentious_forked_chain` is never used [INFO] [stdout] --> src/c2_blockchain/p3_consensus.rs:91:4 [INFO] [stdout] | [INFO] [stdout] 91 | fn build_contentious_forked_chain() -> (Vec
, Vec
, Vec
) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `genesis`, `child`, `verify_child`, and `verify_sub_chain` are never used [INFO] [stdout] --> src/c2_blockchain/p4_batched_extrinsics.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 27 | impl Header { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 28 | /// Returns a new valid genesis header. [INFO] [stdout] 29 | pub fn genesis() -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn child(&self, extrinsics_root: Hash, state: u64) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | fn verify_child(&self, child: &Header) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | fn verify_sub_chain(&self, chain: &[Header]) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `genesis`, `child`, and `verify_sub_chain` are never used [INFO] [stdout] --> src/c2_blockchain/p4_batched_extrinsics.rs:77:9 [INFO] [stdout] | [INFO] [stdout] 75 | impl Block { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 76 | /// Returns a new valid genesis block. By convention this block has no extrinsics. [INFO] [stdout] 77 | pub fn genesis() -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | pub fn child(&self, extrinsics: Vec) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 90 | pub fn verify_sub_chain(&self, chain: &[Block]) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_invalid_child_block_with_valid_header` is never used [INFO] [stdout] --> src/c2_blockchain/p4_batched_extrinsics.rs:103:4 [INFO] [stdout] | [INFO] [stdout] 103 | fn build_invalid_child_block_with_valid_header(parent: &Header) -> Block { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `THRESHOLD` is never used [INFO] [stdout] --> src/c2_blockchain/p5_fork_choice.rs:12:7 [INFO] [stdout] | [INFO] [stdout] 12 | const THRESHOLD: u64 = u64::max_value() / 100; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `ForkChoice` is never used [INFO] [stdout] --> src/c2_blockchain/p5_fork_choice.rs:17:11 [INFO] [stdout] | [INFO] [stdout] 17 | pub trait ForkChoice { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LongestChainRule` is never constructed [INFO] [stdout] --> src/c2_blockchain/p5_fork_choice.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 40 | pub struct LongestChainRule; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `HeaviestChainRule` is never constructed [INFO] [stdout] --> src/c2_blockchain/p5_fork_choice.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 63 | pub struct HeaviestChainRule; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mine_extra_hard` is never used [INFO] [stdout] --> src/c2_blockchain/p5_fork_choice.rs:69:4 [INFO] [stdout] | [INFO] [stdout] 69 | fn mine_extra_hard(block: &mut Block, threshold: u64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MostBlocksWithEvenHash` is never constructed [INFO] [stdout] --> src/c2_blockchain/p5_fork_choice.rs:97:12 [INFO] [stdout] | [INFO] [stdout] 97 | pub struct MostBlocksWithEvenHash; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_fork_one_side_longer_other_side_heavier` is never used [INFO] [stdout] --> src/c2_blockchain/p5_fork_choice.rs:132:4 [INFO] [stdout] | [INFO] [stdout] 132 | fn create_fork_one_side_longer_other_side_heavier() -> (Vec
, Vec
, Vec
) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `genesis`, `child`, `verify_child`, and `verify_sub_chain` are never used [INFO] [stdout] --> src/c2_blockchain/p6_rich_state.rs:50:5 [INFO] [stdout] | [INFO] [stdout] 48 | impl Header { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 49 | /// Returns a new valid genesis header. [INFO] [stdout] 50 | fn genesis(genesis_state_root: Hash) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | fn child(&self, extrinsics_root: Hash, state_root: Hash) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | fn verify_child(&self, child: &Header) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 68 | fn verify_sub_chain(&self, chain: &[Header]) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `genesis`, `child`, and `verify_sub_chain` are never used [INFO] [stdout] --> src/c2_blockchain/p6_rich_state.rs:92:9 [INFO] [stdout] | [INFO] [stdout] 90 | impl Block { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 91 | /// Returns a new valid genesis block. By convention this block has no extrinsics. [INFO] [stdout] 92 | pub fn genesis(genesis_state: &State) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 97 | pub fn child(&self, pre_state: &State, extrinsics: Vec) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 106 | pub fn verify_sub_chain(&self, pre_state: &State, chain: &[Block]) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_invalid_child_block_with_valid_header` is never used [INFO] [stdout] --> src/c2_blockchain/p6_rich_state.rs:122:4 [INFO] [stdout] | [INFO] [stdout] 122 | fn build_invalid_child_block_with_valid_header(parent: &Header, pre_state: &State) -> Block { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `validate`, `seal`, `verify_sub_chain`, and `human_name` are never used [INFO] [stdout] --> src/c3_consensus/mod.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 35 | pub trait Consensus { [INFO] [stdout] | --------- associated items in this trait [INFO] [stdout] ... [INFO] [stdout] 47 | fn validate(&self, parent_digest: &Self::Digest, header: &Header) -> bool; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | fn seal( [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 72 | fn verify_sub_chain( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | fn human_name() -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Alice`, `Bob`, and `Charlie` are never constructed [INFO] [stdout] --> src/c3_consensus/mod.rs:108:2 [INFO] [stdout] | [INFO] [stdout] 107 | pub enum ConsensusAuthority { [INFO] [stdout] | ------------------ variants in this enum [INFO] [stdout] 108 | Alice, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 109 | Bob, [INFO] [stdout] | ^^^ [INFO] [stdout] 110 | Charlie, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ConsensusAuthority` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `threshold` is never read [INFO] [stdout] --> src/c3_consensus/p1_pow.rs:13:2 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct PoW { [INFO] [stdout] | --- field in this struct [INFO] [stdout] 13 | threshold: u64, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `moderate_difficulty_pow` is never used [INFO] [stdout] --> src/c3_consensus/p1_pow.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn moderate_difficulty_pow() -> impl Consensus { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DictatorConsensus` is never constructed [INFO] [stdout] --> src/c3_consensus/p2_dictator.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | struct DictatorConsensus { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SimplePoa` is never constructed [INFO] [stdout] --> src/c3_consensus/p3_poa.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | struct SimplePoa { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PoaRoundRobinByHeight` is never constructed [INFO] [stdout] --> src/c3_consensus/p3_poa.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 39 | struct PoaRoundRobinByHeight { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PoaRoundRobinBySlot` is never constructed [INFO] [stdout] --> src/c3_consensus/p3_poa.rs:68:8 [INFO] [stdout] | [INFO] [stdout] 68 | struct PoaRoundRobinBySlot { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `EvenOnly` is never constructed [INFO] [stdout] --> src/c3_consensus/p4_even_only.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | struct EvenOnly(PhantomData); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `almost_valid_but_not_all_even` is never used [INFO] [stdout] --> src/c3_consensus/p4_even_only.rs:36:4 [INFO] [stdout] | [INFO] [stdout] 36 | fn almost_valid_but_not_all_even() -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AlternatingPowPoa` is never constructed [INFO] [stdout] --> src/c3_consensus/p5_interleave.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | struct AlternatingPowPoa; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Forked` is never constructed [INFO] [stdout] --> src/c3_consensus/p6_forking.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | struct Forked { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `change_authorities` is never used [INFO] [stdout] --> src/c3_consensus/p6_forking.rs:47:4 [INFO] [stdout] | [INFO] [stdout] 47 | fn change_authorities( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `change_difficulty` is never used [INFO] [stdout] --> src/c3_consensus/p6_forking.rs:56:4 [INFO] [stdout] | [INFO] [stdout] 56 | fn change_difficulty( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `even_after_given_height` is never used [INFO] [stdout] --> src/c3_consensus/p6_forking.rs:72:4 [INFO] [stdout] | [INFO] [stdout] 72 | fn even_after_given_height(fork_height: u64) -> impl Consensus { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `pow_to_poa` is never used [INFO] [stdout] --> src/c3_consensus/p6_forking.rs:104:4 [INFO] [stdout] | [INFO] [stdout] 104 | fn pow_to_poa( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Hash` is never used [INFO] [stdout] --> src/c4_framework/mod.rs:15:6 [INFO] [stdout] | [INFO] [stdout] 15 | type Hash = u64; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `genesis`, `child`, `verify_child`, and `verify_sub_chain` are never used [INFO] [stdout] --> src/c4_framework/mod.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 17 | impl Header { [INFO] [stdout] | --------------------------- associated items in this implementation [INFO] [stdout] 18 | /// Returns a new valid genesis header. [INFO] [stdout] 19 | fn genesis(genesis_state_root: Hash) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | fn child(&self, state_root: Hash, extrinsics_root: Hash) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | fn verify_child(&self, child: &Self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | fn verify_sub_chain(&self, chain: &[Self]) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Block` is never constructed [INFO] [stdout] --> src/c4_framework/mod.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 39 | struct Block { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `genesis`, `child`, and `verify_sub_chain` are never used [INFO] [stdout] --> src/c4_framework/mod.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 44 | impl Block { [INFO] [stdout] | ------------------------------------------------- associated items in this implementation [INFO] [stdout] 45 | /// Returns a new valid genesis block. By convention this block has no extrinsics. [INFO] [stdout] 46 | pub fn genesis(genesis_state: &SM::State) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | pub fn child(&self, pre_state: &SM::State, extrinsics: Vec) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | pub fn verify_sub_chain(&self, pre_state: &SM::State, chain: &[Self]) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_empty_chain` is never used [INFO] [stdout] --> src/c4_framework/mod.rs:63:4 [INFO] [stdout] | [INFO] [stdout] 63 | fn create_empty_chain( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 166 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.89s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking blockchain-from-scratch v0.1.0 (/tmp/fixit) [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] | [INFO] [stdout] = help: the following other types implement trait `Consensus`: [INFO] [stdout] () [INFO] [stdout] PoW [INFO] [stdout] = note: this error might have been caused by changes to Rust's type-inference algorithm (see issue #48950 for more information) [INFO] [stdout] = help: did you intend to use the type `()` here instead? [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] | [INFO] [stdout] = help: the following other types implement trait `Consensus`: [INFO] [stdout] () [INFO] [stdout] Forked [INFO] [stdout] PoW [INFO] [stdout] = note: this error might have been caused by changes to Rust's type-inference algorithm (see issue #48950 for more information) [INFO] [stdout] = help: did you intend to use the type `()` here instead? [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] | [INFO] [stdout] = help: the following other types implement trait `Consensus`: [INFO] [stdout] () [INFO] [stdout] Forked [INFO] [stdout] PoW [INFO] [stdout] = note: this error might have been caused by changes to Rust's type-inference algorithm (see issue #48950 for more information) [INFO] [stdout] = help: did you intend to use the type `()` here instead? [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(fork_height: u64) -> impl Consensus { [INFO] [stdout] | ^^^^^^^^^^^^^^ the trait `Consensus` is not implemented for `!` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `Consensus`: [INFO] [stdout] () [INFO] [stdout] Forked [INFO] [stdout] PoW [INFO] [stdout] = note: this error might have been caused by changes to Rust's type-inference algorithm (see issue #48950 for more information) [INFO] [stdout] = help: did you intend to use the type `()` here instead? [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] | [INFO] [stdout] = help: the following other types implement trait `Consensus`: [INFO] [stdout] () [INFO] [stdout] Forked [INFO] [stdout] PoW [INFO] [stdout] = note: this error might have been caused by changes to Rust's type-inference algorithm (see issue #48950 for more information) [INFO] [stdout] = help: did you intend to use the type `()` here instead? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `starting_state` [INFO] [stdout] --> src/c1_state_machine/p1_switches.rs:17:16 [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)]` on by default [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] [INFO] [stdout] error[E0425]: cannot find function `hash` in this scope [INFO] [stdout] --> src/c2_blockchain/p1_header_chain.rs:81:23 [INFO] [stdout] | [INFO] [stdout] 81 | assert!(b1.parent == hash(&g)); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 8 + use crate::hash; [INFO] [stdout] | [INFO] [stdout] 8 + use std::ptr::hash; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `starting_state` [INFO] [stdout] --> src/c1_state_machine/p1_switches.rs:44:16 [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:46 [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] error[E0425]: cannot find function `hash` in this scope [INFO] [stdout] --> src/c2_blockchain/p2_extrinsic_state.rs:132:23 [INFO] [stdout] | [INFO] [stdout] 132 | assert!(b1.parent == hash(&g)); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 13 + use crate::hash; [INFO] [stdout] | [INFO] [stdout] 13 + use std::ptr::hash; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `starting_state` [INFO] [stdout] --> src/c1_state_machine/p2_laundry_machine.rs:42:16 [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] error[E0425]: cannot find function `hash` in this scope [INFO] [stdout] --> src/c2_blockchain/p3_consensus.rs:141:23 [INFO] [stdout] | [INFO] [stdout] 141 | assert!(b1.parent == hash(&g)); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 11 + use crate::hash; [INFO] [stdout] | [INFO] [stdout] 11 + use std::ptr::hash; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/c1_state_machine/p2_laundry_machine.rs:42:47 [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] error[E0425]: cannot find function `hash` in this scope [INFO] [stdout] --> src/c2_blockchain/p3_consensus.rs:162:10 [INFO] [stdout] | [INFO] [stdout] 162 | assert!(hash(&b1) < THRESHOLD); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 11 + use crate::hash; [INFO] [stdout] | [INFO] [stdout] 11 + use std::ptr::hash; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `hash` in this scope [INFO] [stdout] --> src/c2_blockchain/p4_batched_extrinsics.rs:131:31 [INFO] [stdout] | [INFO] [stdout] 131 | assert_eq!(b1.header.parent, hash(&b0.header)); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 4 + use crate::hash; [INFO] [stdout] | [INFO] [stdout] 4 + use std::ptr::hash; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `hash` in this scope [INFO] [stdout] --> src/c2_blockchain/p4_batched_extrinsics.rs:141:31 [INFO] [stdout] | [INFO] [stdout] 141 | assert_eq!(b1.header.parent, hash(&b0.header)); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 4 + use crate::hash; [INFO] [stdout] | [INFO] [stdout] 4 + use std::ptr::hash; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `hash` in this scope [INFO] [stdout] --> src/c2_blockchain/p4_batched_extrinsics.rs:148:19 [INFO] [stdout] | [INFO] [stdout] 148 | let h1 = g.child(hash(&[1, 2, 3]), 6); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 4 + use crate::hash; [INFO] [stdout] | [INFO] [stdout] 4 + use std::ptr::hash; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `hash` in this scope [INFO] [stdout] --> src/c2_blockchain/p4_batched_extrinsics.rs:151:24 [INFO] [stdout] | [INFO] [stdout] 151 | assert_eq!(h1.parent, hash(&g)); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 4 + use crate::hash; [INFO] [stdout] | [INFO] [stdout] 4 + use std::ptr::hash; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `hash` in this scope [INFO] [stdout] --> src/c2_blockchain/p4_batched_extrinsics.rs:152:33 [INFO] [stdout] | [INFO] [stdout] 152 | assert_eq!(h1.extrinsics_root, hash(&[1, 2, 3])); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 4 + use crate::hash; [INFO] [stdout] | [INFO] [stdout] 4 + use std::ptr::hash; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `starting_state` [INFO] [stdout] --> src/c1_state_machine/p3_atm.rs:61:16 [INFO] [stdout] | [INFO] [stdout] 61 | 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:61:46 [INFO] [stdout] | [INFO] [stdout] 61 | 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] error[E0425]: cannot find function `hash` in this scope [INFO] [stdout] --> src/c2_blockchain/p4_batched_extrinsics.rs:155:20 [INFO] [stdout] | [INFO] [stdout] 155 | let h2 = h1.child(hash(&[10, 20]), 36); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 4 + use crate::hash; [INFO] [stdout] | [INFO] [stdout] 4 + use std::ptr::hash; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `starting_state` [INFO] [stdout] --> src/c1_state_machine/p4_accounted_currency.rs:43:16 [INFO] [stdout] | [INFO] [stdout] 43 | 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:43:43 [INFO] [stdout] | [INFO] [stdout] 43 | 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] error[E0425]: cannot find function `hash` in this scope [INFO] [stdout] --> src/c2_blockchain/p4_batched_extrinsics.rs:158:24 [INFO] [stdout] | [INFO] [stdout] 158 | assert_eq!(h2.parent, hash(&h1)); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 4 + use crate::hash; [INFO] [stdout] | [INFO] [stdout] 4 + use std::ptr::hash; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `hash` in this scope [INFO] [stdout] --> src/c2_blockchain/p4_batched_extrinsics.rs:159:33 [INFO] [stdout] | [INFO] [stdout] 159 | assert_eq!(h2.extrinsics_root, hash(&[10, 20])); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 4 + use crate::hash; [INFO] [stdout] | [INFO] [stdout] 4 + use std::ptr::hash; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `hash` in this scope [INFO] [stdout] --> src/c2_blockchain/p5_fork_choice.rs:140:21 [INFO] [stdout] | [INFO] [stdout] 140 | let h_a1 = g.child(hash(&[1]), 1); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 10 + use crate::hash; [INFO] [stdout] | [INFO] [stdout] 10 + use std::ptr::hash; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `hash` in this scope [INFO] [stdout] --> src/c2_blockchain/p5_fork_choice.rs:141:24 [INFO] [stdout] | [INFO] [stdout] 141 | let h_a2 = h_a1.child(hash(&[2]), 2); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 10 + use crate::hash; [INFO] [stdout] | [INFO] [stdout] 10 + use std::ptr::hash; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `hash` in this scope [INFO] [stdout] --> src/c2_blockchain/p5_fork_choice.rs:144:21 [INFO] [stdout] | [INFO] [stdout] 144 | let h_b1 = g.child(hash(&[3]), 3); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 10 + use crate::hash; [INFO] [stdout] | [INFO] [stdout] 10 + use std::ptr::hash; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `hash` in this scope [INFO] [stdout] --> src/c2_blockchain/p5_fork_choice.rs:163:10 [INFO] [stdout] | [INFO] [stdout] 163 | assert!(hash(&b1.header) < custom_threshold); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 10 + use crate::hash; [INFO] [stdout] | [INFO] [stdout] 10 + use std::ptr::hash; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `hash` in this scope [INFO] [stdout] --> src/c2_blockchain/p5_fork_choice.rs:172:24 [INFO] [stdout] | [INFO] [stdout] 172 | let header = g.child(hash(&[i]), i); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 10 + use crate::hash; [INFO] [stdout] | [INFO] [stdout] 10 + use std::ptr::hash; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `hash` in this scope [INFO] [stdout] --> src/c2_blockchain/p5_fork_choice.rs:174:6 [INFO] [stdout] | [INFO] [stdout] 174 | if hash(&header) > THRESHOLD { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 10 + use crate::hash; [INFO] [stdout] | [INFO] [stdout] 10 + use std::ptr::hash; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `hash` in this scope [INFO] [stdout] --> src/c2_blockchain/p5_fork_choice.rs:182:24 [INFO] [stdout] | [INFO] [stdout] 182 | let header = g.child(hash(&[i]), i); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 10 + use crate::hash; [INFO] [stdout] | [INFO] [stdout] 10 + use std::ptr::hash; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `starting_state` [INFO] [stdout] --> src/c1_state_machine/p5_digital_cash.rs:90:16 [INFO] [stdout] | [INFO] [stdout] 90 | 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:90:46 [INFO] [stdout] | [INFO] [stdout] 90 | 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] error[E0425]: cannot find function `hash` in this scope [INFO] [stdout] --> src/c2_blockchain/p5_fork_choice.rs:184:6 [INFO] [stdout] | [INFO] [stdout] 184 | if hash(&header) < THRESHOLD { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 10 + use crate::hash; [INFO] [stdout] | [INFO] [stdout] 10 + use std::ptr::hash; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `hash` in this scope [INFO] [stdout] --> src/c2_blockchain/p5_fork_choice.rs:203:6 [INFO] [stdout] | [INFO] [stdout] 203 | if hash(&h_a1) % 2 == 0 { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 10 + use crate::hash; [INFO] [stdout] | [INFO] [stdout] 10 + use std::ptr::hash; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `hash` in this scope [INFO] [stdout] --> src/c2_blockchain/p5_fork_choice.rs:210:6 [INFO] [stdout] | [INFO] [stdout] 210 | if hash(&h_a2) % 2 == 0 { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 10 + use crate::hash; [INFO] [stdout] | [INFO] [stdout] 10 + use std::ptr::hash; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `hash` in this scope [INFO] [stdout] --> src/c2_blockchain/p5_fork_choice.rs:219:6 [INFO] [stdout] | [INFO] [stdout] 219 | if hash(&h_b1) % 2 != 0 { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 10 + use crate::hash; [INFO] [stdout] | [INFO] [stdout] 10 + use std::ptr::hash; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `hash` in this scope [INFO] [stdout] --> src/c2_blockchain/p5_fork_choice.rs:226:6 [INFO] [stdout] | [INFO] [stdout] 226 | if hash(&h_b2) % 2 != 0 { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 10 + use crate::hash; [INFO] [stdout] | [INFO] [stdout] 10 + use std::ptr::hash; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `hash` in this scope [INFO] [stdout] --> src/c2_blockchain/p6_rich_state.rs:129:26 [INFO] [stdout] | [INFO] [stdout] 129 | let g = Header::genesis(hash(&state)); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 16 + use crate::hash; [INFO] [stdout] | [INFO] [stdout] 16 + use std::ptr::hash; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `hash` in this scope [INFO] [stdout] --> src/c2_blockchain/p6_rich_state.rs:133:27 [INFO] [stdout] | [INFO] [stdout] 133 | assert_eq!(g.state_root, hash(&state)); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 16 + use crate::hash; [INFO] [stdout] | [INFO] [stdout] 16 + use std::ptr::hash; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `chain` [INFO] [stdout] --> src/c2_blockchain/p1_header_chain.rs:38:29 [INFO] [stdout] | [INFO] [stdout] 38 | 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] error[E0425]: cannot find function `hash` in this scope [INFO] [stdout] --> src/c2_blockchain/p6_rich_state.rs:139:27 [INFO] [stdout] | [INFO] [stdout] 139 | let gh = Header::genesis(hash(&state)); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 16 + use crate::hash; [INFO] [stdout] | [INFO] [stdout] 16 + use std::ptr::hash; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `hash` in this scope [INFO] [stdout] --> src/c2_blockchain/p6_rich_state.rs:153:31 [INFO] [stdout] | [INFO] [stdout] 153 | assert_eq!(b1.header.parent, hash(&b0.header)); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 16 + use crate::hash; [INFO] [stdout] | [INFO] [stdout] 16 + use std::ptr::hash; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `hash` in this scope [INFO] [stdout] --> src/c2_blockchain/p6_rich_state.rs:164:31 [INFO] [stdout] | [INFO] [stdout] 164 | assert_eq!(b1.header.parent, hash(&b0.header)); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 16 + use crate::hash; [INFO] [stdout] | [INFO] [stdout] 16 + use std::ptr::hash; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `hash` in this scope [INFO] [stdout] --> src/c2_blockchain/p6_rich_state.rs:171:26 [INFO] [stdout] | [INFO] [stdout] 171 | let g = Header::genesis(hash(&state_0)); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 16 + use crate::hash; [INFO] [stdout] | [INFO] [stdout] 16 + use std::ptr::hash; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `hash` in this scope [INFO] [stdout] --> src/c2_blockchain/p6_rich_state.rs:178:19 [INFO] [stdout] | [INFO] [stdout] 178 | let h1 = g.child(hash(&extrinsics), hash(&state_1)); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 16 + use crate::hash; [INFO] [stdout] | [INFO] [stdout] 16 + use std::ptr::hash; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `extrinsic` [INFO] [stdout] --> src/c2_blockchain/p2_extrinsic_state.rs:40:18 [INFO] [stdout] | [INFO] [stdout] 40 | 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] error[E0425]: cannot find function `hash` in this scope [INFO] [stdout] --> src/c2_blockchain/p6_rich_state.rs:178:38 [INFO] [stdout] | [INFO] [stdout] 178 | let h1 = g.child(hash(&extrinsics), hash(&state_1)); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 16 + use crate::hash; [INFO] [stdout] | [INFO] [stdout] 16 + use std::ptr::hash; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `chain` [INFO] [stdout] --> src/c2_blockchain/p2_extrinsic_state.rs:50:29 [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] error[E0425]: cannot find function `hash` in this scope [INFO] [stdout] --> src/c2_blockchain/p6_rich_state.rs:181:24 [INFO] [stdout] | [INFO] [stdout] 181 | assert_eq!(h1.parent, hash(&g)); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 16 + use crate::hash; [INFO] [stdout] | [INFO] [stdout] 16 + use std::ptr::hash; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `hash` in this scope [INFO] [stdout] --> src/c2_blockchain/p6_rich_state.rs:182:33 [INFO] [stdout] | [INFO] [stdout] 182 | assert_eq!(h1.extrinsics_root, hash(&extrinsics)); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 16 + use crate::hash; [INFO] [stdout] | [INFO] [stdout] 16 + use std::ptr::hash; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `hash` in this scope [INFO] [stdout] --> src/c2_blockchain/p6_rich_state.rs:183:28 [INFO] [stdout] | [INFO] [stdout] 183 | assert_eq!(h1.state_root, hash(&state_1)); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 16 + use crate::hash; [INFO] [stdout] | [INFO] [stdout] 16 + use std::ptr::hash; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `hash` in this scope [INFO] [stdout] --> src/c2_blockchain/p6_rich_state.rs:192:20 [INFO] [stdout] | [INFO] [stdout] 192 | let h2 = h1.child(hash(&extrinsics), hash(&state_2)); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 16 + use crate::hash; [INFO] [stdout] | [INFO] [stdout] 16 + use std::ptr::hash; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `hash` in this scope [INFO] [stdout] --> src/c2_blockchain/p6_rich_state.rs:192:39 [INFO] [stdout] | [INFO] [stdout] 192 | let h2 = h1.child(hash(&extrinsics), hash(&state_2)); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 16 + use crate::hash; [INFO] [stdout] | [INFO] [stdout] 16 + use std::ptr::hash; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `extrinsic` [INFO] [stdout] --> src/c2_blockchain/p3_consensus.rs:44:18 [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] error[E0425]: cannot find function `hash` in this scope [INFO] [stdout] --> src/c2_blockchain/p6_rich_state.rs:195:24 [INFO] [stdout] | [INFO] [stdout] 195 | assert_eq!(h2.parent, hash(&h1)); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 16 + use crate::hash; [INFO] [stdout] | [INFO] [stdout] 16 + use std::ptr::hash; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `chain` [INFO] [stdout] --> src/c2_blockchain/p3_consensus.rs:52:29 [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] error[E0425]: cannot find function `hash` in this scope [INFO] [stdout] --> src/c2_blockchain/p6_rich_state.rs:196:33 [INFO] [stdout] | [INFO] [stdout] 196 | assert_eq!(h2.extrinsics_root, hash(&extrinsics)); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 16 + use crate::hash; [INFO] [stdout] | [INFO] [stdout] 16 + use std::ptr::hash; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `chain` [INFO] [stdout] --> src/c2_blockchain/p3_consensus.rs:64:34 [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] error[E0425]: cannot find function `hash` in this scope [INFO] [stdout] --> src/c2_blockchain/p6_rich_state.rs:197:28 [INFO] [stdout] | [INFO] [stdout] 197 | assert_eq!(h2.state_root, hash(&state_2)); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 16 + use crate::hash; [INFO] [stdout] | [INFO] [stdout] 16 + use std::ptr::hash; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `chain` [INFO] [stdout] --> src/c2_blockchain/p3_consensus.rs:70:33 [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] error[E0425]: cannot find function `hash` in this scope [INFO] [stdout] --> src/c2_blockchain/p6_rich_state.rs:214:26 [INFO] [stdout] | [INFO] [stdout] 214 | let g = Header::genesis(hash(&state)); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 16 + use crate::hash; [INFO] [stdout] | [INFO] [stdout] 16 + use std::ptr::hash; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `hash` in this scope [INFO] [stdout] --> src/c2_blockchain/p6_rich_state.rs:219:15 [INFO] [stdout] | [INFO] [stdout] 219 | state_root: hash(&(State { sum: 0, product: 0 })), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 16 + use crate::hash; [INFO] [stdout] | [INFO] [stdout] 16 + use std::ptr::hash; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `hash` in this scope [INFO] [stdout] --> src/c2_blockchain/p6_rich_state.rs:241:30 [INFO] [stdout] | [INFO] [stdout] 241 | b1.header = Header::genesis(hash(&state)); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 16 + use crate::hash; [INFO] [stdout] | [INFO] [stdout] 16 + use std::ptr::hash; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `extrinsics_root` [INFO] [stdout] --> src/c2_blockchain/p4_batched_extrinsics.rs:36:22 [INFO] [stdout] | [INFO] [stdout] 36 | 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:36:45 [INFO] [stdout] | [INFO] [stdout] 36 | 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:47:25 [INFO] [stdout] | [INFO] [stdout] 47 | 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:58:29 [INFO] [stdout] | [INFO] [stdout] 58 | 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:83:22 [INFO] [stdout] | [INFO] [stdout] 83 | 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:90:33 [INFO] [stdout] | [INFO] [stdout] 90 | 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:103:48 [INFO] [stdout] | [INFO] [stdout] 103 | 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:34:20 [INFO] [stdout] | [INFO] [stdout] 34 | 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:43:27 [INFO] [stdout] | [INFO] [stdout] 43 | 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:43:47 [INFO] [stdout] | [INFO] [stdout] 43 | 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:47:20 [INFO] [stdout] | [INFO] [stdout] 47 | 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:69:20 [INFO] [stdout] | [INFO] [stdout] 69 | 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:69:39 [INFO] [stdout] | [INFO] [stdout] 69 | 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:74:27 [INFO] [stdout] | [INFO] [stdout] 74 | 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:74:47 [INFO] [stdout] | [INFO] [stdout] 74 | 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:78:20 [INFO] [stdout] | [INFO] [stdout] 78 | 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:100:27 [INFO] [stdout] | [INFO] [stdout] 100 | 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:100:47 [INFO] [stdout] | [INFO] [stdout] 100 | 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:104:20 [INFO] [stdout] | [INFO] [stdout] 104 | 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:50:13 [INFO] [stdout] | [INFO] [stdout] 50 | 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:58:18 [INFO] [stdout] | [INFO] [stdout] 58 | 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:58:41 [INFO] [stdout] | [INFO] [stdout] 58 | 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:63:25 [INFO] [stdout] | [INFO] [stdout] 63 | 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:68:29 [INFO] [stdout] | [INFO] [stdout] 68 | 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:92:17 [INFO] [stdout] | [INFO] [stdout] 92 | 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:97:22 [INFO] [stdout] | [INFO] [stdout] 97 | 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:97:41 [INFO] [stdout] | [INFO] [stdout] 97 | 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:106:33 [INFO] [stdout] | [INFO] [stdout] 106 | 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:106:52 [INFO] [stdout] | [INFO] [stdout] 106 | 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:122:48 [INFO] [stdout] | [INFO] [stdout] 122 | 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:122:65 [INFO] [stdout] | [INFO] [stdout] 122 | 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:39 [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:35 [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:22:39 [INFO] [stdout] | [INFO] [stdout] 22 | 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:27:35 [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: `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) -> 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) -> 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) -> 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) -> 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) -> 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) -> 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) -> 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) -> 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) -> 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) -> 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], [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> { [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] [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) -> 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) -> 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] error: aborting due to 5 previous errors; 90 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `blockchain-from-scratch` (lib) due to 6 previous errors; 90 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [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] | [INFO] [stdout] = help: the following other types implement trait `Consensus`: [INFO] [stdout] () [INFO] [stdout] PoW [INFO] [stdout] = note: this error might have been caused by changes to Rust's type-inference algorithm (see issue #48950 for more information) [INFO] [stdout] = help: did you intend to use the type `()` here instead? [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] | [INFO] [stdout] = help: the following other types implement trait `Consensus`: [INFO] [stdout] () [INFO] [stdout] Forked [INFO] [stdout] PoW [INFO] [stdout] = note: this error might have been caused by changes to Rust's type-inference algorithm (see issue #48950 for more information) [INFO] [stdout] = help: did you intend to use the type `()` here instead? [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] | [INFO] [stdout] = help: the following other types implement trait `Consensus`: [INFO] [stdout] () [INFO] [stdout] Forked [INFO] [stdout] PoW [INFO] [stdout] = note: this error might have been caused by changes to Rust's type-inference algorithm (see issue #48950 for more information) [INFO] [stdout] = help: did you intend to use the type `()` here instead? [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(fork_height: u64) -> impl Consensus { [INFO] [stdout] | ^^^^^^^^^^^^^^ the trait `Consensus` is not implemented for `!` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `Consensus`: [INFO] [stdout] () [INFO] [stdout] Forked [INFO] [stdout] PoW [INFO] [stdout] = note: this error might have been caused by changes to Rust's type-inference algorithm (see issue #48950 for more information) [INFO] [stdout] = help: did you intend to use the type `()` here instead? [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] | [INFO] [stdout] = help: the following other types implement trait `Consensus`: [INFO] [stdout] () [INFO] [stdout] Forked [INFO] [stdout] PoW [INFO] [stdout] = note: this error might have been caused by changes to Rust's type-inference algorithm (see issue #48950 for more information) [INFO] [stdout] = help: did you intend to use the type `()` here instead? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `starting_state` [INFO] [stdout] --> src/c1_state_machine/p1_switches.rs:17:16 [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)]` on by default [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] [INFO] [stdout] warning: unused variable: `starting_state` [INFO] [stdout] --> src/c1_state_machine/p1_switches.rs:44:16 [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:46 [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:16 [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:47 [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:61:16 [INFO] [stdout] | [INFO] [stdout] 61 | 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:61:46 [INFO] [stdout] | [INFO] [stdout] 61 | 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:43:16 [INFO] [stdout] | [INFO] [stdout] 43 | 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:43:43 [INFO] [stdout] | [INFO] [stdout] 43 | 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:90:16 [INFO] [stdout] | [INFO] [stdout] 90 | 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:90:46 [INFO] [stdout] | [INFO] [stdout] 90 | 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:38:29 [INFO] [stdout] | [INFO] [stdout] 38 | 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:40:18 [INFO] [stdout] | [INFO] [stdout] 40 | 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:29 [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:18 [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:29 [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:34 [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:33 [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:36:22 [INFO] [stdout] | [INFO] [stdout] 36 | 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:36:45 [INFO] [stdout] | [INFO] [stdout] 36 | 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:47:25 [INFO] [stdout] | [INFO] [stdout] 47 | 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:58:29 [INFO] [stdout] | [INFO] [stdout] 58 | 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:83:22 [INFO] [stdout] | [INFO] [stdout] 83 | 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:90:33 [INFO] [stdout] | [INFO] [stdout] 90 | 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:103:48 [INFO] [stdout] | [INFO] [stdout] 103 | 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:34:20 [INFO] [stdout] | [INFO] [stdout] 34 | 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:43:27 [INFO] [stdout] | [INFO] [stdout] 43 | 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:43:47 [INFO] [stdout] | [INFO] [stdout] 43 | 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:47:20 [INFO] [stdout] | [INFO] [stdout] 47 | 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:69:20 [INFO] [stdout] | [INFO] [stdout] 69 | 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:69:39 [INFO] [stdout] | [INFO] [stdout] 69 | 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:74:27 [INFO] [stdout] | [INFO] [stdout] 74 | 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:74:47 [INFO] [stdout] | [INFO] [stdout] 74 | 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:78:20 [INFO] [stdout] | [INFO] [stdout] 78 | 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:100:27 [INFO] [stdout] | [INFO] [stdout] 100 | 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:100:47 [INFO] [stdout] | [INFO] [stdout] 100 | 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:104:20 [INFO] [stdout] | [INFO] [stdout] 104 | 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:50:13 [INFO] [stdout] | [INFO] [stdout] 50 | 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:58:18 [INFO] [stdout] | [INFO] [stdout] 58 | 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:58:41 [INFO] [stdout] | [INFO] [stdout] 58 | 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:63:25 [INFO] [stdout] | [INFO] [stdout] 63 | 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:68:29 [INFO] [stdout] | [INFO] [stdout] 68 | 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:92:17 [INFO] [stdout] | [INFO] [stdout] 92 | 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:97:22 [INFO] [stdout] | [INFO] [stdout] 97 | 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:97:41 [INFO] [stdout] | [INFO] [stdout] 97 | 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:106:33 [INFO] [stdout] | [INFO] [stdout] 106 | 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:106:52 [INFO] [stdout] | [INFO] [stdout] 106 | 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:122:48 [INFO] [stdout] | [INFO] [stdout] 122 | 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:122:65 [INFO] [stdout] | [INFO] [stdout] 122 | 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:39 [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:35 [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:22:39 [INFO] [stdout] | [INFO] [stdout] 22 | 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:27:35 [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: `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) -> 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) -> 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) -> 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) -> 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) -> 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) -> 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) -> 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) -> 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) -> 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) -> 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], [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> { [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] [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) -> 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) -> 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] error: aborting due to 48 previous errors; 90 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0425. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `blockchain-from-scratch` (lib test) due to 49 previous errors; 90 warnings emitted [INFO] [stderr] error: failed to check after updating to 2024 [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo check --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "69cab6cd6dc4821b34d502d32bdb354aeb7da5cc5c8b869047854692505febd3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "69cab6cd6dc4821b34d502d32bdb354aeb7da5cc5c8b869047854692505febd3", kill_on_drop: false }` [INFO] [stdout] 69cab6cd6dc4821b34d502d32bdb354aeb7da5cc5c8b869047854692505febd3