[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#65132f36b923285d5da381c2fbafee6ce899e841 for pr-132712-1 [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 65132f36b923285d5da381c2fbafee6ce899e841 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+65132f36b923285d5da381c2fbafee6ce899e841" "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" "+65132f36b923285d5da381c2fbafee6ce899e841" "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:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+65132f36b923285d5da381c2fbafee6ce899e841" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 112d62a3ce468af0e0f25dce27a0e84e2eadba68f000ba6bd591c40d8c27aca6 [INFO] running `Command { std: "docker" "start" "-a" "112d62a3ce468af0e0f25dce27a0e84e2eadba68f000ba6bd591c40d8c27aca6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "112d62a3ce468af0e0f25dce27a0e84e2eadba68f000ba6bd591c40d8c27aca6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "112d62a3ce468af0e0f25dce27a0e84e2eadba68f000ba6bd591c40d8c27aca6", kill_on_drop: false }` [INFO] [stdout] 112d62a3ce468af0e0f25dce27a0e84e2eadba68f000ba6bd591c40d8c27aca6 [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=allow" "-e" "RUSTDOCFLAGS=--cap-lints=allow" "-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:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+65132f36b923285d5da381c2fbafee6ce899e841" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a020bf488f3d7dfd1aac8b3b86434ffe55df26ef85a76f05b9d57d6eb931d812 [INFO] running `Command { std: "docker" "start" "-a" "a020bf488f3d7dfd1aac8b3b86434ffe55df26ef85a76f05b9d57d6eb931d812", 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] [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 Rust 2024 and in a future release in all editions! [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: `--force-warn dependency-on-unit-never-type-fallback` implied by `--force-warn rust-2024-compatibility` [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 Rust 2024 and in a future release in all editions! [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: 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 Rust 2024 and in a future release in all editions! [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: 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 Rust 2024 and in a future release in all editions! [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: 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 Rust 2024 and in a future release in all editions! [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: 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 Rust 2024 and in a future release in all editions! [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: `--force-warn dependency-on-unit-never-type-fallback` implied by `--force-warn rust-2024-compatibility` [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 Rust 2024 and in a future release in all editions! [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: 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 Rust 2024 and in a future release in all editions! [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: 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 Rust 2024 and in a future release in all editions! [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: 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 Rust 2024 and in a future release in all editions! [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] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.40s [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] 36 | todo!("Exercise 3") [INFO] [stdout] | ------------------- return type was inferred to be `!` here [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `Consensus`: [INFO] [stdout] () [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] 52 | todo!("Exercise 3") [INFO] [stdout] | ------------------- return type was inferred to be `!` here [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `Consensus`: [INFO] [stdout] () [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] 61 | todo!("Exercise 4") [INFO] [stdout] | ------------------- return type was inferred to be `!` here [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `Consensus`: [INFO] [stdout] () [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] 73 | todo!("Exercise 5") [INFO] [stdout] | ------------------- return type was inferred to be `!` here [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `Consensus`: [INFO] [stdout] () [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] 109 | todo!("Exercise 6") [INFO] [stdout] | ------------------- return type was inferred to be `!` here [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `Consensus`: [INFO] [stdout] () [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/p1_pow.rs:35:37 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn moderate_difficulty_pow() -> impl Consensus { [INFO] [stdout] | ^^^^^^^^^^^^^^ the trait `Consensus` is not implemented for `!` [INFO] [stdout] 36 | todo!("Exercise 3") [INFO] [stdout] | ------------------- return type was inferred to be `!` here [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `Consensus`: [INFO] [stdout] () [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] 52 | todo!("Exercise 3") [INFO] [stdout] | ------------------- return type was inferred to be `!` here [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `Consensus`: [INFO] [stdout] () [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] 61 | todo!("Exercise 4") [INFO] [stdout] | ------------------- return type was inferred to be `!` here [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `Consensus`: [INFO] [stdout] () [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] 73 | todo!("Exercise 5") [INFO] [stdout] | ------------------- return type was inferred to be `!` here [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `Consensus`: [INFO] [stdout] () [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] 109 | todo!("Exercise 6") [INFO] [stdout] | ------------------- return type was inferred to be `!` here [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `Consensus`: [INFO] [stdout] () [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] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `blockchain-from-scratch` (lib) due to 5 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `blockchain-from-scratch` (lib test) due to 5 previous errors [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" "a020bf488f3d7dfd1aac8b3b86434ffe55df26ef85a76f05b9d57d6eb931d812", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a020bf488f3d7dfd1aac8b3b86434ffe55df26ef85a76f05b9d57d6eb931d812", kill_on_drop: false }` [INFO] [stdout] a020bf488f3d7dfd1aac8b3b86434ffe55df26ef85a76f05b9d57d6eb931d812