[INFO] cloning repository https://github.com/chen4903/blockchain-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/chen4903/blockchain-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fchen4903%2Fblockchain-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fchen4903%2Fblockchain-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] f0d97bb1eb382896b8d363c63ab6956716f3b3ec [INFO] building chen4903/blockchain-rust against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fchen4903%2Fblockchain-rust" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/chen4903/blockchain-rust on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/chen4903/blockchain-rust [INFO] finished tweaking git repo https://github.com/chen4903/blockchain-rust [INFO] tweaked toml for git repo https://github.com/chen4903/blockchain-rust written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/chen4903/blockchain-rust 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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 78f4dffb1b62cd01ac98a2cf3531109d717a560ae74177663abdfe059b9f6c3e [INFO] running `Command { std: "docker" "start" "-a" "78f4dffb1b62cd01ac98a2cf3531109d717a560ae74177663abdfe059b9f6c3e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "78f4dffb1b62cd01ac98a2cf3531109d717a560ae74177663abdfe059b9f6c3e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "78f4dffb1b62cd01ac98a2cf3531109d717a560ae74177663abdfe059b9f6c3e", kill_on_drop: false }` [INFO] [stdout] 78f4dffb1b62cd01ac98a2cf3531109d717a560ae74177663abdfe059b9f6c3e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b764262153fb7ff8db640548e6508814602b9bda4ec01d094e344edf437b9c53 [INFO] running `Command { std: "docker" "start" "-a" "b764262153fb7ff8db640548e6508814602b9bda4ec01d094e344edf437b9c53", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.153 [INFO] [stderr] Compiling cc v1.0.90 [INFO] [stderr] Compiling once_cell v1.19.0 [INFO] [stderr] Compiling spin v0.5.2 [INFO] [stderr] Compiling untrusted v0.7.1 [INFO] [stderr] Compiling data-encoding v2.5.0 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Compiling blockchain_rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `core::time` [INFO] [stdout] --> src/block.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use core::time; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `thread::current` [INFO] [stdout] --> src/block.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | use std::{thread::current, time::{SystemTime, UNIX_EPOCH}}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Block` is never constructed [INFO] [stdout] --> src/block.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Block { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new_block`, `new_genesis_block`, `get_pre_block_hash`, `get_data`, `get_hash`, and `get_timestamp` are never used [INFO] [stdout] --> src/block.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl Block { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 14 | [INFO] [stdout] 15 | pub fn new_block(pre_block_hash: String, data: String) -> Block{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn new_genesis_block() -> Block { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn get_pre_block_hash(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn get_data(&self) -> String { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn get_hash(&self) -> String { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | pub fn get_timestamp(&self) -> i64 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `current_timestamp` is never used [INFO] [stdout] --> src/block.rs:48:4 [INFO] [stdout] | [INFO] [stdout] 48 | fn current_timestamp() -> i64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `caculate_hash` is never used [INFO] [stdout] --> src/block.rs:57:4 [INFO] [stdout] | [INFO] [stdout] 57 | fn caculate_hash(timestamp: i64, pre_block_hash: String, data: String) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sha256_digest` is never used [INFO] [stdout] --> src/block.rs:63:4 [INFO] [stdout] | [INFO] [stdout] 63 | fn sha256_digest(block_data: String) -> String { // SHA2-256 [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BlockChain` is never constructed [INFO] [stdout] --> src/blockchain.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct BlockChain { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new_block_chain` and `add_block` are never used [INFO] [stdout] --> src/blockchain.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl BlockChain { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 9 | pub fn new_block_chain() -> BlockChain { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn add_block(&mut self, data: String) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::time` [INFO] [stdout] --> src/block.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use core::time; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `thread::current` [INFO] [stdout] --> src/block.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | use std::{thread::current, time::{SystemTime, UNIX_EPOCH}}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 6.24s [INFO] running `Command { std: "docker" "inspect" "b764262153fb7ff8db640548e6508814602b9bda4ec01d094e344edf437b9c53", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b764262153fb7ff8db640548e6508814602b9bda4ec01d094e344edf437b9c53", kill_on_drop: false }` [INFO] [stdout] b764262153fb7ff8db640548e6508814602b9bda4ec01d094e344edf437b9c53 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9485b5ff166b027ada3af6bc50315ee692b74655dc3f7f11885022a8fcb62d5d [INFO] running `Command { std: "docker" "start" "-a" "9485b5ff166b027ada3af6bc50315ee692b74655dc3f7f11885022a8fcb62d5d", kill_on_drop: false }` [INFO] [stderr] Compiling blockchain_rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `core::time` [INFO] [stdout] --> src/block.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use core::time; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `thread::current` [INFO] [stdout] --> src/block.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | use std::{thread::current, time::{SystemTime, UNIX_EPOCH}}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Block` is never constructed [INFO] [stdout] --> src/block.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Block { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new_block`, `new_genesis_block`, `get_pre_block_hash`, `get_data`, `get_hash`, and `get_timestamp` are never used [INFO] [stdout] --> src/block.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl Block { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 14 | [INFO] [stdout] 15 | pub fn new_block(pre_block_hash: String, data: String) -> Block{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn new_genesis_block() -> Block { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn get_pre_block_hash(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn get_data(&self) -> String { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn get_hash(&self) -> String { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | pub fn get_timestamp(&self) -> i64 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `current_timestamp` is never used [INFO] [stdout] --> src/block.rs:48:4 [INFO] [stdout] | [INFO] [stdout] 48 | fn current_timestamp() -> i64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `caculate_hash` is never used [INFO] [stdout] --> src/block.rs:57:4 [INFO] [stdout] | [INFO] [stdout] 57 | fn caculate_hash(timestamp: i64, pre_block_hash: String, data: String) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sha256_digest` is never used [INFO] [stdout] --> src/block.rs:63:4 [INFO] [stdout] | [INFO] [stdout] 63 | fn sha256_digest(block_data: String) -> String { // SHA2-256 [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BlockChain` is never constructed [INFO] [stdout] --> src/blockchain.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct BlockChain { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new_block_chain` and `add_block` are never used [INFO] [stdout] --> src/blockchain.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl BlockChain { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 9 | pub fn new_block_chain() -> BlockChain { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn add_block(&mut self, data: String) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::time` [INFO] [stdout] --> src/block.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use core::time; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `thread::current` [INFO] [stdout] --> src/block.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | use std::{thread::current, time::{SystemTime, UNIX_EPOCH}}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::time` [INFO] [stdout] --> src/block.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use core::time; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `thread::current` [INFO] [stdout] --> src/block.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | use std::{thread::current, time::{SystemTime, UNIX_EPOCH}}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.37s [INFO] running `Command { std: "docker" "inspect" "9485b5ff166b027ada3af6bc50315ee692b74655dc3f7f11885022a8fcb62d5d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9485b5ff166b027ada3af6bc50315ee692b74655dc3f7f11885022a8fcb62d5d", kill_on_drop: false }` [INFO] [stdout] 9485b5ff166b027ada3af6bc50315ee692b74655dc3f7f11885022a8fcb62d5d