[INFO] cloning repository https://github.com/memoriesadrift/mini-blockchain [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/memoriesadrift/mini-blockchain" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmemoriesadrift%2Fmini-blockchain", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmemoriesadrift%2Fmini-blockchain'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] e29a6bcbec816340ff3602e0d862700b6962cf76 [INFO] testing memoriesadrift/mini-blockchain against master#b03b3a7ec92682be2917540b679478d41c95a30c for pr-137122-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmemoriesadrift%2Fmini-blockchain" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/memoriesadrift/mini-blockchain [INFO] finished tweaking git repo https://github.com/memoriesadrift/mini-blockchain [INFO] tweaked toml for git repo https://github.com/memoriesadrift/mini-blockchain written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/memoriesadrift/mini-blockchain on toolchain b03b3a7ec92682be2917540b679478d41c95a30c [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b03b3a7ec92682be2917540b679478d41c95a30c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/memoriesadrift/mini-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" "+b03b3a7ec92682be2917540b679478d41c95a30c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded serde_canonical_json v1.0.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+b03b3a7ec92682be2917540b679478d41c95a30c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] fce079f5790661dfb2ce5aa96c1ae58bdde46b6dee952cdafccd069aa8070f45 [INFO] running `Command { std: "docker" "start" "-a" "fce079f5790661dfb2ce5aa96c1ae58bdde46b6dee952cdafccd069aa8070f45", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fce079f5790661dfb2ce5aa96c1ae58bdde46b6dee952cdafccd069aa8070f45", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fce079f5790661dfb2ce5aa96c1ae58bdde46b6dee952cdafccd069aa8070f45", kill_on_drop: false }` [INFO] [stdout] fce079f5790661dfb2ce5aa96c1ae58bdde46b6dee952cdafccd069aa8070f45 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+b03b3a7ec92682be2917540b679478d41c95a30c" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 63bc62b51ceee3ef4b9e9f9fcc43c23c0fe84ae5196a0416bae293845617ff3a [INFO] running `Command { std: "docker" "start" "-a" "63bc62b51ceee3ef4b9e9f9fcc43c23c0fe84ae5196a0416bae293845617ff3a", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.94 [INFO] [stderr] Compiling unicode-ident v1.0.18 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling libc v0.2.171 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Compiling zeroize v1.8.1 [INFO] [stderr] Compiling typenum v1.18.0 [INFO] [stderr] Compiling subtle v2.6.1 [INFO] [stderr] Compiling const-oid v0.9.6 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Compiling smallvec v1.14.0 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling itoa v1.0.15 [INFO] [stderr] Compiling bytes v1.10.1 [INFO] [stderr] Compiling stable_deref_trait v1.2.0 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling zerocopy v0.8.24 [INFO] [stderr] Compiling log v0.4.27 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling scopeguard v1.2.0 [INFO] [stderr] Compiling pin-project-lite v0.2.16 [INFO] [stderr] Compiling litemap v0.7.5 [INFO] [stderr] Compiling writeable v0.5.5 [INFO] [stderr] Compiling icu_locid_transform_data v1.5.1 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling icu_properties_data v1.5.1 [INFO] [stderr] Compiling syn v2.0.100 [INFO] [stderr] Compiling futures-core v0.3.31 [INFO] [stderr] Compiling futures-sink v0.3.31 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling icu_normalizer_data v1.5.1 [INFO] [stderr] Compiling httparse v1.10.1 [INFO] [stderr] Compiling cpufeatures v0.2.17 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling signal-hook-registry v1.4.2 [INFO] [stderr] Compiling socket2 v0.5.8 [INFO] [stderr] Compiling mio v1.0.3 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling http v0.2.12 [INFO] [stderr] Compiling utf16_iter v1.0.5 [INFO] [stderr] Compiling utf8_iter v1.0.4 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling getrandom v0.3.2 [INFO] [stderr] Compiling write16 v1.0.0 [INFO] [stderr] Compiling der v0.7.9 [INFO] [stderr] Compiling percent-encoding v2.3.1 [INFO] [stderr] Compiling once_cell v1.21.1 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling http v1.3.1 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Compiling utf-8 v0.7.6 [INFO] [stderr] Compiling base16ct v0.2.0 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling data-encoding v2.8.0 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand_core v0.9.3 [INFO] [stderr] Compiling spki v0.7.3 [INFO] [stderr] Compiling tracing-core v0.1.33 [INFO] [stderr] Compiling ff v0.13.1 [INFO] [stderr] Compiling ryu v1.0.20 [INFO] [stderr] Compiling thiserror v2.0.12 [INFO] [stderr] Compiling unicase v2.8.1 [INFO] [stderr] Compiling parking_lot_core v0.8.6 [INFO] [stderr] Compiling mime v0.3.17 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Compiling equivalent v1.0.2 [INFO] [stderr] Compiling hashbrown v0.15.2 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling mime_guess v2.0.5 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling group v0.13.0 [INFO] [stderr] Compiling pkcs8 v0.10.2 [INFO] [stderr] Compiling rand_chacha v0.9.0 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling indexmap v2.8.0 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling crypto-bigint v0.5.5 [INFO] [stderr] Compiling multer v2.1.0 [INFO] [stderr] Compiling instant v0.1.13 [INFO] [stderr] Compiling try-lock v0.2.5 [INFO] [stderr] Compiling utf8parse v0.2.2 [INFO] [stderr] Compiling httpdate v1.0.3 [INFO] [stderr] Compiling anstyle-parse v0.2.6 [INFO] [stderr] Compiling synstructure v0.13.1 [INFO] [stderr] Compiling want v0.3.1 [INFO] [stderr] Compiling rfc6979 v0.4.0 [INFO] [stderr] Compiling rand v0.9.0 [INFO] [stderr] Compiling headers-core v0.2.0 [INFO] [stderr] Compiling http-body v0.4.6 [INFO] [stderr] Compiling signature v2.2.0 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling encoding_rs v0.8.35 [INFO] [stderr] Compiling anstyle v1.0.10 [INFO] [stderr] Compiling base64 v0.21.7 [INFO] [stderr] Compiling colorchoice v1.0.3 [INFO] [stderr] Compiling anyhow v1.0.97 [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Compiling tower-service v0.3.3 [INFO] [stderr] Compiling is_terminal_polyfill v1.70.1 [INFO] [stderr] Compiling anstyle-query v1.1.2 [INFO] [stderr] Compiling headers v0.3.9 [INFO] [stderr] Compiling anstream v0.6.18 [INFO] [stderr] Compiling crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling parking_lot v0.11.2 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling fxhash v0.2.1 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling fs2 v0.4.3 [INFO] [stderr] Compiling crc32fast v1.4.2 [INFO] [stderr] Compiling scoped-tls v1.0.1 [INFO] [stderr] Compiling ruint-macro v1.2.1 [INFO] [stderr] Compiling lazy_static v1.5.0 [INFO] [stderr] Compiling jiff v0.2.5 [INFO] [stderr] Compiling env_filter v0.1.3 [INFO] [stderr] Compiling sled v0.34.7 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.7.5 [INFO] [stderr] Compiling zerovec-derive v0.10.3 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling icu_provider_macros v1.5.0 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling yoke v0.7.5 [INFO] [stderr] Compiling zerovec v0.10.4 [INFO] [stderr] Compiling thiserror-impl v2.0.12 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling tokio v1.44.1 [INFO] [stderr] Compiling tinystr v0.7.6 [INFO] [stderr] Compiling icu_collections v1.5.0 [INFO] [stderr] Compiling icu_locid v1.5.0 [INFO] [stderr] Compiling pin-project-internal v1.1.10 [INFO] [stderr] Compiling tungstenite v0.26.2 [INFO] [stderr] Compiling icu_provider v1.5.0 [INFO] [stderr] Compiling pin-project v1.1.10 [INFO] [stderr] Compiling env_logger v0.11.7 [INFO] [stderr] Compiling icu_locid_transform v1.5.0 [INFO] [stderr] Compiling dotenv v0.15.0 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling icu_properties v1.5.1 [INFO] [stderr] Compiling serdect v0.2.0 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling ruint v1.14.0 [INFO] [stderr] Compiling sec1 v0.7.3 [INFO] [stderr] Compiling serde_canonical_json v1.0.0 [INFO] [stderr] Compiling elliptic-curve v0.13.8 [INFO] [stderr] Compiling tokio-util v0.7.14 [INFO] [stderr] Compiling tokio-tungstenite v0.26.2 [INFO] [stderr] Compiling ecdsa v0.16.9 [INFO] [stderr] Compiling h2 v0.3.26 [INFO] [stderr] Compiling k256 v0.13.4 [INFO] [stderr] Compiling icu_normalizer v1.5.0 [INFO] [stderr] Compiling idna_adapter v1.2.0 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling tungstenite v0.21.0 [INFO] [stderr] Compiling tokio-tungstenite v0.21.0 [INFO] [stderr] Compiling hyper v0.14.32 [INFO] [stderr] Compiling warp v0.3.7 [INFO] [stderr] Compiling mini_blockchain v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `db` [INFO] [stdout] --> src/api/mod.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | db: Arc, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_db` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `db` [INFO] [stdout] --> src/p2p/listener.rs:10:45 [INFO] [stdout] | [INFO] [stdout] 10 | pub async fn handle_peer(stream: TcpStream, db: Arc, mut shutdown: broadcast::Receiver<()>) { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_db` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `handshake_completed` is assigned to, but never used [INFO] [stdout] --> src/p2p/listener.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | let mut handshake_completed = false; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_handshake_completed` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `handshake_completed` is never read [INFO] [stdout] --> src/p2p/listener.rs:44:33 [INFO] [stdout] | [INFO] [stdout] 44 | ... handshake_completed = true; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `hash` and `genesis` are never used [INFO] [stdout] --> src/models/block.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl Block { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 18 | pub fn hash(&self) -> Hash { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn genesis() -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `hash` is never used [INFO] [stdout] --> src/models/transaction.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 43 | impl Transaction { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] 44 | pub fn hash(&self) -> Hash { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `SyntacticValidation` is never used [INFO] [stdout] --> src/models/syntactic_validation.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | pub trait SyntacticValidation { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BLOCK_DIFFICULTY` is never used [INFO] [stdout] --> src/config.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | pub const BLOCK_DIFFICULTY: usize = 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `COIN_DECIMALS` is never used [INFO] [stdout] --> src/config.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | pub const COIN_DECIMALS: usize = 6; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `COINBASE_REWARD` is never used [INFO] [stdout] --> src/config.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | pub const COINBASE_REWARD: U256 = uint!(1000000_U256); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mine_block` is never used [INFO] [stdout] --> src/miner/mod.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn mine_block(block: &mut Block) -> &mut Block { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_valid_blockhash` is never used [INFO] [stdout] --> src/miner/mod.rs:11:4 [INFO] [stdout] | [INFO] [stdout] 11 | fn is_valid_blockhash(hash: &Hash) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `db` is never read [INFO] [stdout] --> src/storage/mod.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct BlockchainDB { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 6 | db: Db, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `save_block`, `save_tx`, `get_block`, and `get_tx` are never used [INFO] [stdout] --> src/storage/mod.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl BlockchainDB { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 15 | pub fn save_block(&self, block: &Block) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | pub fn save_tx(&self, tx: &Transaction) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn get_block(&self, hash: &Hash) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn get_tx(&self, hash: &Hash) -> Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2m 10s [INFO] running `Command { std: "docker" "inspect" "63bc62b51ceee3ef4b9e9f9fcc43c23c0fe84ae5196a0416bae293845617ff3a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "63bc62b51ceee3ef4b9e9f9fcc43c23c0fe84ae5196a0416bae293845617ff3a", kill_on_drop: false }` [INFO] [stdout] 63bc62b51ceee3ef4b9e9f9fcc43c23c0fe84ae5196a0416bae293845617ff3a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+b03b3a7ec92682be2917540b679478d41c95a30c" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 497e68b0b1af521e719e96f667cfe2dab62b46046aff7054659622851cb573ef [INFO] running `Command { std: "docker" "start" "-a" "497e68b0b1af521e719e96f667cfe2dab62b46046aff7054659622851cb573ef", kill_on_drop: false }` [INFO] [stderr] Compiling mini_blockchain v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `db` [INFO] [stdout] --> src/api/mod.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | db: Arc, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_db` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `db` [INFO] [stdout] --> src/p2p/listener.rs:10:45 [INFO] [stdout] | [INFO] [stdout] 10 | pub async fn handle_peer(stream: TcpStream, db: Arc, mut shutdown: broadcast::Receiver<()>) { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_db` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `handshake_completed` is assigned to, but never used [INFO] [stdout] --> src/p2p/listener.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | let mut handshake_completed = false; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_handshake_completed` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `handshake_completed` is never read [INFO] [stdout] --> src/p2p/listener.rs:44:33 [INFO] [stdout] | [INFO] [stdout] 44 | ... handshake_completed = true; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `hash` and `genesis` are never used [INFO] [stdout] --> src/models/block.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl Block { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 18 | pub fn hash(&self) -> Hash { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn genesis() -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `hash` is never used [INFO] [stdout] --> src/models/transaction.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 43 | impl Transaction { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] 44 | pub fn hash(&self) -> Hash { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `SyntacticValidation` is never used [INFO] [stdout] --> src/models/syntactic_validation.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | pub trait SyntacticValidation { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BLOCK_DIFFICULTY` is never used [INFO] [stdout] --> src/config.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | pub const BLOCK_DIFFICULTY: usize = 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `COIN_DECIMALS` is never used [INFO] [stdout] --> src/config.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | pub const COIN_DECIMALS: usize = 6; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `COINBASE_REWARD` is never used [INFO] [stdout] --> src/config.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | pub const COINBASE_REWARD: U256 = uint!(1000000_U256); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mine_block` is never used [INFO] [stdout] --> src/miner/mod.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn mine_block(block: &mut Block) -> &mut Block { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_valid_blockhash` is never used [INFO] [stdout] --> src/miner/mod.rs:11:4 [INFO] [stdout] | [INFO] [stdout] 11 | fn is_valid_blockhash(hash: &Hash) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `db` is never read [INFO] [stdout] --> src/storage/mod.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct BlockchainDB { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 6 | db: Db, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `save_block`, `save_tx`, `get_block`, and `get_tx` are never used [INFO] [stdout] --> src/storage/mod.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl BlockchainDB { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 15 | pub fn save_block(&self, block: &Block) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | pub fn save_tx(&self, tx: &Transaction) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn get_block(&self, hash: &Hash) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn get_tx(&self, hash: &Hash) -> Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.54s [INFO] running `Command { std: "docker" "inspect" "497e68b0b1af521e719e96f667cfe2dab62b46046aff7054659622851cb573ef", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "497e68b0b1af521e719e96f667cfe2dab62b46046aff7054659622851cb573ef", kill_on_drop: false }` [INFO] [stdout] 497e68b0b1af521e719e96f667cfe2dab62b46046aff7054659622851cb573ef [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+b03b3a7ec92682be2917540b679478d41c95a30c" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 0e73ee6af374d6bdcadb16ef2731b42d63b59934956898b3103cc551849cd69b [INFO] running `Command { std: "docker" "start" "-a" "0e73ee6af374d6bdcadb16ef2731b42d63b59934956898b3103cc551849cd69b", kill_on_drop: false }` [INFO] [stderr] warning: unused variable: `db` [INFO] [stderr] --> src/api/mod.rs:11:5 [INFO] [stderr] | [INFO] [stderr] 11 | db: Arc, [INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_db` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `db` [INFO] [stderr] --> src/p2p/listener.rs:10:45 [INFO] [stderr] | [INFO] [stderr] 10 | pub async fn handle_peer(stream: TcpStream, db: Arc, mut shutdown: broadcast::Receiver<()>) { [INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_db` [INFO] [stderr] [INFO] [stderr] warning: variable `handshake_completed` is assigned to, but never used [INFO] [stderr] --> src/p2p/listener.rs:12:13 [INFO] [stderr] | [INFO] [stderr] 12 | let mut handshake_completed = false; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: consider using `_handshake_completed` instead [INFO] [stderr] [INFO] [stderr] warning: value assigned to `handshake_completed` is never read [INFO] [stderr] --> src/p2p/listener.rs:44:33 [INFO] [stderr] | [INFO] [stderr] 44 | ... handshake_completed = true; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] = note: `#[warn(unused_assignments)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated items `hash` and `genesis` are never used [INFO] [stderr] --> src/models/block.rs:18:12 [INFO] [stderr] | [INFO] [stderr] 17 | impl Block { [INFO] [stderr] | ---------- associated items in this implementation [INFO] [stderr] 18 | pub fn hash(&self) -> Hash { [INFO] [stderr] | ^^^^ [INFO] [stderr] ... [INFO] [stderr] 30 | pub fn genesis() -> Self { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: method `hash` is never used [INFO] [stderr] --> src/models/transaction.rs:44:12 [INFO] [stderr] | [INFO] [stderr] 43 | impl Transaction { [INFO] [stderr] | ---------------- method in this implementation [INFO] [stderr] 44 | pub fn hash(&self) -> Hash { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: trait `SyntacticValidation` is never used [INFO] [stderr] --> src/models/syntactic_validation.rs:1:11 [INFO] [stderr] | [INFO] [stderr] 1 | pub trait SyntacticValidation { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `BLOCK_DIFFICULTY` is never used [INFO] [stderr] --> src/config.rs:5:11 [INFO] [stderr] | [INFO] [stderr] 5 | pub const BLOCK_DIFFICULTY: usize = 1; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `COIN_DECIMALS` is never used [INFO] [stderr] --> src/config.rs:6:11 [INFO] [stderr] | [INFO] [stderr] 6 | pub const COIN_DECIMALS: usize = 6; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `COINBASE_REWARD` is never used [INFO] [stderr] --> src/config.rs:7:11 [INFO] [stderr] | [INFO] [stderr] 7 | pub const COINBASE_REWARD: U256 = uint!(1000000_U256); [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `mine_block` is never used [INFO] [stderr] --> src/miner/mod.rs:3:8 [INFO] [stderr] | [INFO] [stderr] 3 | pub fn mine_block(block: &mut Block) -> &mut Block { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `is_valid_blockhash` is never used [INFO] [stderr] --> src/miner/mod.rs:11:4 [INFO] [stderr] | [INFO] [stderr] 11 | fn is_valid_blockhash(hash: &Hash) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `db` is never read [INFO] [stderr] --> src/storage/mod.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 5 | pub struct BlockchainDB { [INFO] [stderr] | ------------ field in this struct [INFO] [stderr] 6 | db: Db, [INFO] [stderr] | ^^ [INFO] [stderr] [INFO] [stderr] warning: methods `save_block`, `save_tx`, `get_block`, and `get_tx` are never used [INFO] [stderr] --> src/storage/mod.rs:15:12 [INFO] [stderr] | [INFO] [stderr] 9 | impl BlockchainDB { [INFO] [stderr] | ----------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 15 | pub fn save_block(&self, block: &Block) { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 19 | pub fn save_tx(&self, tx: &Transaction) { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 23 | pub fn get_block(&self, hash: &Hash) -> Option { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 34 | pub fn get_tx(&self, hash: &Hash) -> Option { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `mini_blockchain` (bin "mini_blockchain" test) generated 14 warnings [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.35s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/mini_blockchain-b68d22602303cd05) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "0e73ee6af374d6bdcadb16ef2731b42d63b59934956898b3103cc551849cd69b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0e73ee6af374d6bdcadb16ef2731b42d63b59934956898b3103cc551849cd69b", kill_on_drop: false }` [INFO] [stdout] 0e73ee6af374d6bdcadb16ef2731b42d63b59934956898b3103cc551849cd69b