[INFO] cloning repository https://github.com/birpet4/Rust-blockchain [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/birpet4/Rust-blockchain" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbirpet4%2FRust-blockchain", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbirpet4%2FRust-blockchain'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d6cf43accd20c15aea8fc276f40290c9406c8fd5 [INFO] checking birpet4/Rust-blockchain against master#385fa9d845dd326c6bbfd58c22244215e431948a for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbirpet4%2FRust-blockchain" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/birpet4/Rust-blockchain on toolchain 385fa9d845dd326c6bbfd58c22244215e431948a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/birpet4/Rust-blockchain [INFO] finished tweaking git repo https://github.com/birpet4/Rust-blockchain [INFO] tweaked toml for git repo https://github.com/birpet4/Rust-blockchain written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/birpet4/Rust-blockchain 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" "+385fa9d845dd326c6bbfd58c22244215e431948a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] af18ef780cc19b12809b03884d0ade594fabc70e7649835c475fff7f8be16f49 [INFO] running `Command { std: "docker" "start" "-a" "af18ef780cc19b12809b03884d0ade594fabc70e7649835c475fff7f8be16f49", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "af18ef780cc19b12809b03884d0ade594fabc70e7649835c475fff7f8be16f49", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "af18ef780cc19b12809b03884d0ade594fabc70e7649835c475fff7f8be16f49", kill_on_drop: false }` [INFO] [stdout] af18ef780cc19b12809b03884d0ade594fabc70e7649835c475fff7f8be16f49 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2a99c02c9dfa50bd17c0dcf9142bc26d803dc821c2459c3ba6d055cda1072fda [INFO] running `Command { std: "docker" "start" "-a" "2a99c02c9dfa50bd17c0dcf9142bc26d803dc821c2459c3ba6d055cda1072fda", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.66 [INFO] [stderr] Compiling unicode-ident v1.0.11 [INFO] [stderr] Compiling libc v0.2.147 [INFO] [stderr] Compiling num-traits v0.2.16 [INFO] [stderr] Compiling serde v1.0.183 [INFO] [stderr] Checking lock_api v0.4.10 [INFO] [stderr] Compiling serde_json v1.0.104 [INFO] [stderr] Compiling serde_derive v1.0.183 [INFO] [stderr] Checking digest v0.9.0 [INFO] [stderr] Checking time v0.1.45 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Checking socket2 v0.5.3 [INFO] [stderr] Checking pin-project-lite v0.2.12 [INFO] [stderr] Checking iana-time-zone v0.1.57 [INFO] [stderr] Checking sha2 v0.9.9 [INFO] [stderr] Checking hex v0.4.3 [INFO] [stderr] Compiling cc v1.0.82 [INFO] [stderr] Compiling quote v1.0.32 [INFO] [stderr] Compiling syn v2.0.28 [INFO] [stderr] Checking chrono v0.4.26 [INFO] [stderr] Compiling secp256k1-sys v0.8.1 [INFO] [stderr] Compiling tokio-macros v2.1.0 [INFO] [stderr] Checking secp256k1 v0.27.0 [INFO] [stderr] Checking tokio v1.31.0 [INFO] [stderr] Checking blockchain v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: the item `serde_json` is imported redundantly [INFO] [stdout] --> src/custom_error.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use serde_json; [INFO] [stdout] | ^^^^^^^^^^ the item `serde_json` is already defined by prelude [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `serde_json` is imported redundantly [INFO] [stdout] --> src/custom_error.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use serde_json; [INFO] [stdout] | ^^^^^^^^^^ the item `serde_json` is already defined by prelude [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `broadcast_transaction` is never used [INFO] [stdout] --> src/main.rs:53:10 [INFO] [stdout] | [INFO] [stdout] 53 | async fn broadcast_transaction(transaction: &Transaction, blockchain: Arc>) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `broadcast_mined_block` is never used [INFO] [stdout] --> src/main.rs:67:10 [INFO] [stdout] | [INFO] [stdout] 67 | async fn broadcast_mined_block(block: &block::Block, blockchain: Arc>) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SEED_NODES` is never used [INFO] [stdout] --> src/main.rs:81:7 [INFO] [stdout] | [INFO] [stdout] 81 | const SEED_NODES: [&str; 2] = ["127.0.0.1:8000", "127.0.0.1:8001"]; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `start_node` is never used [INFO] [stdout] --> src/main.rs:84:10 [INFO] [stdout] | [INFO] [stdout] 84 | async fn start_node(port: &str, blockchain: Arc>) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `add_transaction` and `get_balance` are never used [INFO] [stdout] --> src/blockchain.rs:65:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl Blockchain { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 65 | pub fn add_transaction(&mut self, transaction: Transaction) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 116 | pub fn get_balance(&self, address: &str) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add_peer` is never used [INFO] [stdout] --> src/networking.rs:23:14 [INFO] [stdout] | [INFO] [stdout] 23 | pub async fn add_peer(address: String) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/blockchain.rs:143:9 [INFO] [stdout] | [INFO] [stdout] 143 | blockchain.add_block(transactions); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 143 | let _ = blockchain.add_block(transactions); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/blockchain.rs:153:9 [INFO] [stdout] | [INFO] [stdout] 153 | blockchain.add_block(transactions); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 153 | let _ = blockchain.add_block(transactions); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/networking.rs:130:13 [INFO] [stdout] | [INFO] [stdout] 130 | blockchain_data.add_block(vec![transaction.clone()]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 130 | let _ = blockchain_data.add_block(vec![transaction.clone()]); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `broadcast_transaction` is never used [INFO] [stdout] --> src/main.rs:53:10 [INFO] [stdout] | [INFO] [stdout] 53 | async fn broadcast_transaction(transaction: &Transaction, blockchain: Arc>) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `broadcast_mined_block` is never used [INFO] [stdout] --> src/main.rs:67:10 [INFO] [stdout] | [INFO] [stdout] 67 | async fn broadcast_mined_block(block: &block::Block, blockchain: Arc>) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SEED_NODES` is never used [INFO] [stdout] --> src/main.rs:81:7 [INFO] [stdout] | [INFO] [stdout] 81 | const SEED_NODES: [&str; 2] = ["127.0.0.1:8000", "127.0.0.1:8001"]; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `start_node` is never used [INFO] [stdout] --> src/main.rs:84:10 [INFO] [stdout] | [INFO] [stdout] 84 | async fn start_node(port: &str, blockchain: Arc>) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `add_transaction` and `get_balance` are never used [INFO] [stdout] --> src/blockchain.rs:65:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl Blockchain { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 65 | pub fn add_transaction(&mut self, transaction: Transaction) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 116 | pub fn get_balance(&self, address: &str) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add_peer` is never used [INFO] [stdout] --> src/networking.rs:23:14 [INFO] [stdout] | [INFO] [stdout] 23 | pub async fn add_peer(address: String) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/networking.rs:130:13 [INFO] [stdout] | [INFO] [stdout] 130 | blockchain_data.add_block(vec![transaction.clone()]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 130 | let _ = blockchain_data.add_block(vec![transaction.clone()]); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 25.56s [INFO] running `Command { std: "docker" "inspect" "2a99c02c9dfa50bd17c0dcf9142bc26d803dc821c2459c3ba6d055cda1072fda", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2a99c02c9dfa50bd17c0dcf9142bc26d803dc821c2459c3ba6d055cda1072fda", kill_on_drop: false }` [INFO] [stdout] 2a99c02c9dfa50bd17c0dcf9142bc26d803dc821c2459c3ba6d055cda1072fda