[INFO] cloning repository https://github.com/xiuxiua8/blockchainRUST [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/xiuxiua8/blockchainRUST" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fxiuxiua8%2FblockchainRUST", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fxiuxiua8%2FblockchainRUST'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ada565c4c752f934f36866c2f330f9b7b185f351 [INFO] testing xiuxiua8/blockchainRUST against try#bd7d74411512a3dd3b35d2f699c51dd2557c7e7e+cargoflags=-Zbuild-dir-new-layout for pr-149852-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fxiuxiua8%2FblockchainRUST" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/xiuxiua8/blockchainRUST [INFO] finished tweaking git repo https://github.com/xiuxiua8/blockchainRUST [INFO] tweaked toml for git repo https://github.com/xiuxiua8/blockchainRUST written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/xiuxiua8/blockchainRUST on toolchain bd7d74411512a3dd3b35d2f699c51dd2557c7e7e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+bd7d74411512a3dd3b35d2f699c51dd2557c7e7e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/xiuxiua8/blockchainRUST 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" "+bd7d74411512a3dd3b35d2f699c51dd2557c7e7e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Locking 8 packages to latest compatible versions [INFO] [stderr] Adding arrayvec v0.7.6 [INFO] [stderr] Adding base64 v0.21.7 [INFO] [stderr] Adding crunchy v0.2.4 [INFO] [stderr] Adding futures-ticker v0.0.3 [INFO] [stderr] Adding hex_fmt v0.3.0 [INFO] [stderr] Adding libp2p-gossipsub v0.45.2 [INFO] [stderr] Adding libp2p-kad v0.44.6 [INFO] [stderr] Adding uint v0.9.5 [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+bd7d74411512a3dd3b35d2f699c51dd2557c7e7e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 296591dbc5d388ed05ad245e3bad4c3c0ed1733efeaf649277d0cfdb52565eff [INFO] running `Command { std: "docker" "start" "-a" "296591dbc5d388ed05ad245e3bad4c3c0ed1733efeaf649277d0cfdb52565eff", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "296591dbc5d388ed05ad245e3bad4c3c0ed1733efeaf649277d0cfdb52565eff", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "296591dbc5d388ed05ad245e3bad4c3c0ed1733efeaf649277d0cfdb52565eff", kill_on_drop: false }` [INFO] [stdout] 296591dbc5d388ed05ad245e3bad4c3c0ed1733efeaf649277d0cfdb52565eff [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+bd7d74411512a3dd3b35d2f699c51dd2557c7e7e" "build" "--frozen" "--message-format=json" "-Zbuild-dir-new-layout", kill_on_drop: false }` [INFO] [stdout] 033c9199d17797627a6cd2354e59cfadad488d5477938be89d9c8895415c4690 [INFO] running `Command { std: "docker" "start" "-a" "033c9199d17797627a6cd2354e59cfadad488d5477938be89d9c8895415c4690", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.171 [INFO] [stderr] Compiling futures-core v0.3.31 [INFO] [stderr] Compiling futures-io v0.3.31 [INFO] [stderr] Compiling once_cell v1.21.1 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling smallvec v1.14.0 [INFO] [stderr] Compiling value-bag v1.11.1 [INFO] [stderr] Compiling parking v2.2.1 [INFO] [stderr] Compiling zerocopy v0.8.23 [INFO] [stderr] Compiling syn v2.0.100 [INFO] [stderr] Compiling concurrent-queue v2.5.0 [INFO] [stderr] Compiling subtle v2.6.1 [INFO] [stderr] Compiling semver v1.0.26 [INFO] [stderr] Compiling fastrand v2.3.0 [INFO] [stderr] Compiling rustix v0.38.44 [INFO] [stderr] Compiling linux-raw-sys v0.4.15 [INFO] [stderr] Compiling data-encoding v2.8.0 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Compiling signature v2.2.0 [INFO] [stderr] Compiling tracing-core v0.1.33 [INFO] [stderr] Compiling event-listener v5.4.0 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling futures-lite v2.6.0 [INFO] [stderr] Compiling async-task v4.7.1 [INFO] [stderr] Compiling rustc_version v0.4.1 [INFO] [stderr] Compiling ed25519 v2.2.3 [INFO] [stderr] Compiling quick-protobuf v0.8.1 [INFO] [stderr] Compiling core2 v0.4.0 [INFO] [stderr] Compiling log v0.4.26 [INFO] [stderr] Compiling event-listener-strategy v0.5.3 [INFO] [stderr] Compiling curve25519-dalek v4.1.3 [INFO] [stderr] Compiling unsigned-varint v0.8.0 [INFO] [stderr] Compiling async-lock v3.4.0 [INFO] [stderr] Compiling async-channel v2.3.1 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling piper v0.2.4 [INFO] [stderr] Compiling multihash v0.19.3 [INFO] [stderr] Compiling hkdf v0.12.4 [INFO] [stderr] Compiling bs58 v0.5.1 [INFO] [stderr] Compiling futures-timer v3.0.3 [INFO] [stderr] Compiling base-x v0.2.11 [INFO] [stderr] Compiling event-listener v2.5.3 [INFO] [stderr] Compiling blocking v1.6.1 [INFO] [stderr] Compiling async-executor v1.13.1 [INFO] [stderr] Compiling instant v0.1.13 [INFO] [stderr] Compiling void v1.0.2 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling async-channel v1.9.0 [INFO] [stderr] Compiling kv-log-macro v1.0.7 [INFO] [stderr] Compiling proc-macro-warning v0.4.2 [INFO] [stderr] Compiling anyhow v1.0.97 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling thiserror v2.0.12 [INFO] [stderr] Compiling io-lifetimes v1.0.11 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Compiling polling v2.8.0 [INFO] [stderr] Compiling rustix v0.37.28 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling idna v0.4.0 [INFO] [stderr] Compiling async-io v1.13.0 [INFO] [stderr] Compiling linux-raw-sys v0.3.8 [INFO] [stderr] Compiling crunchy v0.2.4 [INFO] [stderr] Compiling waker-fn v1.2.0 [INFO] [stderr] Compiling httparse v1.10.1 [INFO] [stderr] Compiling rustls v0.21.12 [INFO] [stderr] Compiling fastrand v1.9.0 [INFO] [stderr] Compiling async-lock v2.8.0 [INFO] [stderr] Compiling futures-lite v1.13.0 [INFO] [stderr] Compiling snow v0.9.3 [INFO] [stderr] Compiling foldhash v0.1.5 [INFO] [stderr] Compiling matches v0.1.10 [INFO] [stderr] Compiling allocator-api2 v0.2.21 [INFO] [stderr] Compiling prometheus-client v0.21.2 [INFO] [stderr] Compiling idna v0.2.3 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling hashbrown v0.15.2 [INFO] [stderr] Compiling secp256k1-sys v0.6.1 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling dtoa v1.0.10 [INFO] [stderr] Compiling base64 v0.22.1 [INFO] [stderr] Compiling nohash-hasher v0.2.0 [INFO] [stderr] Compiling uint v0.9.5 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling num_cpus v1.16.0 [INFO] [stderr] Compiling signal-hook-registry v1.4.2 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling mio v1.0.3 [INFO] [stderr] Compiling socket2 v0.5.8 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling hostname v0.4.0 [INFO] [stderr] Compiling socket2 v0.4.10 [INFO] [stderr] Compiling nix v0.26.4 [INFO] [stderr] Compiling resolv-conf v0.7.1 [INFO] [stderr] Compiling lru v0.12.5 [INFO] [stderr] Compiling hex_fmt v0.3.0 [INFO] [stderr] Compiling arrayvec v0.7.6 [INFO] [stderr] Compiling is-terminal v0.4.16 [INFO] [stderr] Compiling humantime v2.2.0 [INFO] [stderr] Compiling ripemd v0.1.3 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling env_logger v0.10.2 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling chrono v0.4.40 [INFO] [stderr] Compiling enum-as-inner v0.5.1 [INFO] [stderr] Compiling synstructure v0.13.1 [INFO] [stderr] Compiling rustls-webpki v0.101.7 [INFO] [stderr] Compiling sct v0.7.1 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.7.5 [INFO] [stderr] Compiling tracing-attributes v0.1.28 [INFO] [stderr] Compiling zerovec-derive v0.10.3 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling icu_provider_macros v1.5.0 [INFO] [stderr] Compiling zeroize_derive v1.4.2 [INFO] [stderr] Compiling curve25519-dalek-derive v0.1.1 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling pin-project-internal v1.1.10 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling data-encoding-macro-internal v0.1.15 [INFO] [stderr] Compiling libp2p-swarm-derive v0.33.0 [INFO] [stderr] Compiling zeroize v1.8.1 [INFO] [stderr] Compiling async-trait v0.1.88 [INFO] [stderr] Compiling data-encoding-macro v0.1.17 [INFO] [stderr] Compiling multibase v0.9.1 [INFO] [stderr] Compiling tokio v1.44.1 [INFO] [stderr] Compiling thiserror-impl v2.0.12 [INFO] [stderr] Compiling enum-as-inner v0.6.1 [INFO] [stderr] Compiling pin-project v1.1.10 [INFO] [stderr] Compiling prometheus-client-derive-encode v0.4.2 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling yoke v0.7.5 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling netlink-packet-utils v0.5.2 [INFO] [stderr] Compiling zerovec v0.10.4 [INFO] [stderr] Compiling polling v3.7.4 [INFO] [stderr] Compiling ed25519-dalek v2.1.1 [INFO] [stderr] Compiling netlink-packet-core v0.7.0 [INFO] [stderr] Compiling x25519-dalek v2.0.1 [INFO] [stderr] Compiling async-io v2.4.0 [INFO] [stderr] Compiling netlink-packet-route v0.17.1 [INFO] [stderr] Compiling libp2p-identity v0.2.10 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling async-global-executor v2.4.1 [INFO] [stderr] Compiling async-signal v0.2.10 [INFO] [stderr] Compiling async-process v2.3.0 [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 async-std v1.13.1 [INFO] [stderr] Compiling futures-rustls v0.24.0 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling asynchronous-codec v0.6.2 [INFO] [stderr] Compiling futures-bounded v0.1.0 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling rw-stream-sink v0.4.0 [INFO] [stderr] Compiling futures-ticker v0.0.3 [INFO] [stderr] Compiling soketto v0.8.1 [INFO] [stderr] Compiling yamux v0.12.1 [INFO] [stderr] Compiling unsigned-varint v0.7.2 [INFO] [stderr] Compiling icu_provider v1.5.0 [INFO] [stderr] Compiling multistream-select v0.13.0 [INFO] [stderr] Compiling quick-protobuf-codec v0.2.0 [INFO] [stderr] Compiling icu_locid_transform v1.5.0 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling secp256k1 v0.24.3 [INFO] [stderr] Compiling icu_properties v1.5.1 [INFO] [stderr] Compiling netlink-sys v0.8.7 [INFO] [stderr] Compiling netlink-proto v0.11.5 [INFO] [stderr] Compiling rtnetlink v0.13.1 [INFO] [stderr] Compiling icu_normalizer v1.5.0 [INFO] [stderr] Compiling if-watch v3.2.1 [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 multiaddr v0.18.2 [INFO] [stderr] Compiling trust-dns-proto v0.23.2 [INFO] [stderr] Compiling trust-dns-proto v0.22.0 [INFO] [stderr] Compiling libp2p-core v0.40.1 [INFO] [stderr] Compiling libp2p-swarm v0.43.7 [INFO] [stderr] Compiling libp2p-websocket v0.42.2 [INFO] [stderr] Compiling libp2p-noise v0.43.2 [INFO] [stderr] Compiling libp2p-yamux v0.44.1 [INFO] [stderr] Compiling libp2p-tcp v0.40.1 [INFO] [stderr] Compiling libp2p-mdns v0.44.0 [INFO] [stderr] Compiling libp2p-gossipsub v0.45.2 [INFO] [stderr] Compiling libp2p-kad v0.44.6 [INFO] [stderr] Compiling libp2p-identify v0.43.1 [INFO] [stderr] Compiling libp2p-ping v0.43.1 [INFO] [stderr] Compiling libp2p-connection-limits v0.2.1 [INFO] [stderr] Compiling libp2p-allow-block-list v0.2.0 [INFO] [stderr] Compiling trust-dns-resolver v0.23.2 [INFO] [stderr] Compiling async-std-resolver v0.23.2 [INFO] [stderr] Compiling libp2p-dns v0.40.1 [INFO] [stderr] Compiling libp2p v0.52.4 [INFO] [stderr] Compiling blockchain_demo v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: use of deprecated type alias `libp2p::libp2p_swarm::THandlerErr`: Will be removed together with `ConnectionHandlerEvent::Close`. See for details. [INFO] [stdout] --> src/network.rs:417:60 [INFO] [stdout] | [INFO] [stdout] 417 | event: SwarmEvent>, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `amount` [INFO] [stdout] --> src/blockchain.rs:370:35 [INFO] [stdout] | [INFO] [stdout] 370 | for &(output_idx, amount) in outputs { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_amount` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs` [INFO] [stdout] --> src/main.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use std::fs; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json` [INFO] [stdout] --> src/main.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use serde_json; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `libp2p::libp2p_swarm::THandlerErr`: Will be removed together with `ConnectionHandlerEvent::Close`. See for details. [INFO] [stdout] --> src/network.rs:417:60 [INFO] [stdout] | [INFO] [stdout] 417 | event: SwarmEvent>, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `amount` [INFO] [stdout] --> src/blockchain.rs:370:35 [INFO] [stdout] | [INFO] [stdout] 370 | for &(output_idx, amount) in outputs { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_amount` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:82:9 [INFO] [stdout] | [INFO] [stdout] 82 | let mut network = network::Network::new_with_channel(app_tx.clone()).await; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `blockchain_file` [INFO] [stdout] --> src/main.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 71 | let blockchain_file = "blockchain.json"; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_blockchain_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pending_tx_for_network` [INFO] [stdout] --> src/main.rs:87:9 [INFO] [stdout] | [INFO] [stdout] 87 | let pending_tx_for_network = pending_transactions.clone(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pending_tx_for_network` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tx` [INFO] [stdout] --> src/main.rs:655:25 [INFO] [stdout] | [INFO] [stdout] 655 | for (i, tx) in pending_tx_for_main.lock().await.iter().enumerate() { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_tx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `load_from_file` is never used [INFO] [stdout] --> src/blockchain.rs:179:12 [INFO] [stdout] | [INFO] [stdout] 25 | impl Blockchain { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 179 | pub fn load_from_file(filename: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `PeerDiscovered` is never constructed [INFO] [stdout] --> src/network.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 28 | pub enum NetworkEvent { [INFO] [stdout] | ------------ variant in this enum [INFO] [stdout] ... [INFO] [stdout] 40 | PeerDiscovered(PeerId, Multiaddr), [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `NetworkEvent` 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: multiple associated items are never used [INFO] [stdout] --> src/network.rs:150:18 [INFO] [stdout] | [INFO] [stdout] 144 | impl Network { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 150 | pub async fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 175 | pub fn set_auto_connect(&mut self, enabled: bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 181 | pub fn set_max_connections(&mut self, max: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 610 | pub fn connected_peer_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 615 | pub fn discovered_peer_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 640 | pub async fn discover_peers(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 649 | pub fn show_network_status(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 675 | pub async fn broadcast_block(&self, block: Block) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 681 | pub async fn broadcast_transaction(&self, transaction: Transaction) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 687 | pub async fn sync_chain(&self, _blockchain: &Blockchain) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 717 | pub async fn dial(&self, addr: libp2p::Multiaddr) -> Result<(), Box> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 17s [INFO] running `Command { std: "docker" "inspect" "033c9199d17797627a6cd2354e59cfadad488d5477938be89d9c8895415c4690", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "033c9199d17797627a6cd2354e59cfadad488d5477938be89d9c8895415c4690", kill_on_drop: false }` [INFO] [stdout] 033c9199d17797627a6cd2354e59cfadad488d5477938be89d9c8895415c4690 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+bd7d74411512a3dd3b35d2f699c51dd2557c7e7e" "test" "--frozen" "--no-run" "--message-format=json" "-Zbuild-dir-new-layout", kill_on_drop: false }` [INFO] [stdout] 879b3405fdf031e43df127128a8ae34f21168532518774ad1fe6879e72b29bb3 [INFO] running `Command { std: "docker" "start" "-a" "879b3405fdf031e43df127128a8ae34f21168532518774ad1fe6879e72b29bb3", kill_on_drop: false }` [INFO] [stdout] warning: use of deprecated type alias `libp2p::libp2p_swarm::THandlerErr`: Will be removed together with `ConnectionHandlerEvent::Close`. See for details. [INFO] [stdout] --> src/network.rs:417:60 [INFO] [stdout] | [INFO] [stdout] 417 | event: SwarmEvent>, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `amount` [INFO] [stdout] --> src/blockchain.rs:370:35 [INFO] [stdout] | [INFO] [stdout] 370 | for &(output_idx, amount) in outputs { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_amount` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling blockchain_demo v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::fs` [INFO] [stdout] --> src/main.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use std::fs; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json` [INFO] [stdout] --> src/main.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use serde_json; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `libp2p::libp2p_swarm::THandlerErr`: Will be removed together with `ConnectionHandlerEvent::Close`. See for details. [INFO] [stdout] --> src/network.rs:417:60 [INFO] [stdout] | [INFO] [stdout] 417 | event: SwarmEvent>, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `amount` [INFO] [stdout] --> src/blockchain.rs:370:35 [INFO] [stdout] | [INFO] [stdout] 370 | for &(output_idx, amount) in outputs { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_amount` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:82:9 [INFO] [stdout] | [INFO] [stdout] 82 | let mut network = network::Network::new_with_channel(app_tx.clone()).await; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `blockchain_file` [INFO] [stdout] --> src/main.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 71 | let blockchain_file = "blockchain.json"; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_blockchain_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pending_tx_for_network` [INFO] [stdout] --> src/main.rs:87:9 [INFO] [stdout] | [INFO] [stdout] 87 | let pending_tx_for_network = pending_transactions.clone(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pending_tx_for_network` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tx` [INFO] [stdout] --> src/main.rs:655:25 [INFO] [stdout] | [INFO] [stdout] 655 | for (i, tx) in pending_tx_for_main.lock().await.iter().enumerate() { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_tx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `load_from_file` is never used [INFO] [stdout] --> src/blockchain.rs:179:12 [INFO] [stdout] | [INFO] [stdout] 25 | impl Blockchain { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 179 | pub fn load_from_file(filename: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `PeerDiscovered` is never constructed [INFO] [stdout] --> src/network.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 28 | pub enum NetworkEvent { [INFO] [stdout] | ------------ variant in this enum [INFO] [stdout] ... [INFO] [stdout] 40 | PeerDiscovered(PeerId, Multiaddr), [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `NetworkEvent` 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: multiple associated items are never used [INFO] [stdout] --> src/network.rs:150:18 [INFO] [stdout] | [INFO] [stdout] 144 | impl Network { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 150 | pub async fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 175 | pub fn set_auto_connect(&mut self, enabled: bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 181 | pub fn set_max_connections(&mut self, max: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 610 | pub fn connected_peer_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 615 | pub fn discovered_peer_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 640 | pub async fn discover_peers(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 649 | pub fn show_network_status(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 675 | pub async fn broadcast_block(&self, block: Block) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 681 | pub async fn broadcast_transaction(&self, transaction: Transaction) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 687 | pub async fn sync_chain(&self, _blockchain: &Blockchain) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 717 | pub async fn dial(&self, addr: libp2p::Multiaddr) -> Result<(), Box> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Block` [INFO] [stdout] --> tests/integration_tests.rs:1:30 [INFO] [stdout] | [INFO] [stdout] 1 | use blockchain_demo::block::{Block, Transaction, TxInput, TxOutput}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> tests/integration_tests.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs` [INFO] [stdout] --> src/main.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use std::fs; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json` [INFO] [stdout] --> src/main.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use serde_json; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Sha256` [INFO] [stdout] --> tests/wallet_tests.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | use sha2::{Sha256, Digest}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `hex` [INFO] [stdout] --> tests/wallet_tests.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use hex; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `network` [INFO] [stdout] --> tests/network_tests.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 50 | let network = Network::new().await; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_network` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `libp2p::libp2p_swarm::THandlerErr`: Will be removed together with `ConnectionHandlerEvent::Close`. See for details. [INFO] [stdout] --> src/network.rs:417:60 [INFO] [stdout] | [INFO] [stdout] 417 | event: SwarmEvent>, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `broadcast_result` [INFO] [stdout] --> tests/network_tests.rs:201:9 [INFO] [stdout] | [INFO] [stdout] 201 | let broadcast_result = network.broadcast_block(test_block).await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_broadcast_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `transaction_result` [INFO] [stdout] --> tests/network_tests.rs:205:9 [INFO] [stdout] | [INFO] [stdout] 205 | let transaction_result = network.broadcast_transaction(test_transaction).await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_transaction_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sync_result` [INFO] [stdout] --> tests/network_tests.rs:208:9 [INFO] [stdout] | [INFO] [stdout] 208 | let sync_result = network.sync_chain(&blockchain).await; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sync_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Digest` [INFO] [stdout] --> tests/wallet_tests.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | use sha2::{Sha256, Digest}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tests/network_tests.rs:263:15 [INFO] [stdout] | [INFO] [stdout] 263 | let (tx1, mut rx1) = mpsc::channel(100); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tests/network_tests.rs:264:15 [INFO] [stdout] | [INFO] [stdout] 264 | let (tx2, mut rx2) = mpsc::channel(100); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rx1` [INFO] [stdout] --> tests/network_tests.rs:263:15 [INFO] [stdout] | [INFO] [stdout] 263 | let (tx1, mut rx1) = mpsc::channel(100); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rx1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rx2` [INFO] [stdout] --> tests/network_tests.rs:264:15 [INFO] [stdout] | [INFO] [stdout] 264 | let (tx2, mut rx2) = mpsc::channel(100); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rx2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node1_handle` [INFO] [stdout] --> tests/network_tests.rs:277:9 [INFO] [stdout] | [INFO] [stdout] 277 | let node1_handle = tokio::spawn(async move { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_node1_handle` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node2_handle` [INFO] [stdout] --> tests/network_tests.rs:295:9 [INFO] [stdout] | [INFO] [stdout] 295 | let node2_handle = tokio::spawn(async move { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_node2_handle` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `libp2p::libp2p_swarm::THandlerErr`: Will be removed together with `ConnectionHandlerEvent::Close`. See for details. [INFO] [stdout] --> src/network.rs:417:60 [INFO] [stdout] | [INFO] [stdout] 417 | event: SwarmEvent>, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `amount` [INFO] [stdout] --> src/blockchain.rs:370:35 [INFO] [stdout] | [INFO] [stdout] 370 | for &(output_idx, amount) in outputs { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_amount` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `amount` [INFO] [stdout] --> src/blockchain.rs:370:35 [INFO] [stdout] | [INFO] [stdout] 370 | for &(output_idx, amount) in outputs { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_amount` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:82:9 [INFO] [stdout] | [INFO] [stdout] 82 | let mut network = network::Network::new_with_channel(app_tx.clone()).await; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `blockchain_file` [INFO] [stdout] --> src/main.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 71 | let blockchain_file = "blockchain.json"; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_blockchain_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pending_tx_for_network` [INFO] [stdout] --> src/main.rs:87:9 [INFO] [stdout] | [INFO] [stdout] 87 | let pending_tx_for_network = pending_transactions.clone(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pending_tx_for_network` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tx` [INFO] [stdout] --> src/main.rs:655:25 [INFO] [stdout] | [INFO] [stdout] 655 | for (i, tx) in pending_tx_for_main.lock().await.iter().enumerate() { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_tx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `load_from_file` is never used [INFO] [stdout] --> src/blockchain.rs:179:12 [INFO] [stdout] | [INFO] [stdout] 25 | impl Blockchain { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 179 | pub fn load_from_file(filename: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `PeerDiscovered` is never constructed [INFO] [stdout] --> src/network.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 28 | pub enum NetworkEvent { [INFO] [stdout] | ------------ variant in this enum [INFO] [stdout] ... [INFO] [stdout] 40 | PeerDiscovered(PeerId, Multiaddr), [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `NetworkEvent` 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: multiple associated items are never used [INFO] [stdout] --> src/network.rs:150:18 [INFO] [stdout] | [INFO] [stdout] 144 | impl Network { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 150 | pub async fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 175 | pub fn set_auto_connect(&mut self, enabled: bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 181 | pub fn set_max_connections(&mut self, max: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 610 | pub fn connected_peer_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 615 | pub fn discovered_peer_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 640 | pub async fn discover_peers(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 649 | pub fn show_network_status(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 675 | pub async fn broadcast_block(&self, block: Block) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 681 | pub async fn broadcast_transaction(&self, transaction: Transaction) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 687 | pub async fn sync_chain(&self, _blockchain: &Blockchain) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 717 | pub async fn dial(&self, addr: libp2p::Multiaddr) -> Result<(), Box> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 11.01s [INFO] running `Command { std: "docker" "inspect" "879b3405fdf031e43df127128a8ae34f21168532518774ad1fe6879e72b29bb3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "879b3405fdf031e43df127128a8ae34f21168532518774ad1fe6879e72b29bb3", kill_on_drop: false }` [INFO] [stdout] 879b3405fdf031e43df127128a8ae34f21168532518774ad1fe6879e72b29bb3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+bd7d74411512a3dd3b35d2f699c51dd2557c7e7e" "test" "--frozen" "-Zbuild-dir-new-layout", kill_on_drop: false }` [INFO] [stdout] 40992a6fbb96111a6f7022b14623bca13c051af0e1816574af574b47bf4bb2c7 [INFO] running `Command { std: "docker" "start" "-a" "40992a6fbb96111a6f7022b14623bca13c051af0e1816574af574b47bf4bb2c7", kill_on_drop: false }` [INFO] [stderr] warning: use of deprecated type alias `libp2p::libp2p_swarm::THandlerErr`: Will be removed together with `ConnectionHandlerEvent::Close`. See for details. [INFO] [stderr] --> src/network.rs:417:60 [INFO] [stderr] | [INFO] [stderr] 417 | event: SwarmEvent>, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `amount` [INFO] [stderr] --> src/blockchain.rs:370:35 [INFO] [stderr] | [INFO] [stderr] 370 | for &(output_idx, amount) in outputs { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_amount` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: `blockchain_demo` (lib) generated 2 warnings (run `cargo fix --lib -p blockchain_demo` to apply 1 suggestion) [INFO] [stderr] warning: `blockchain_demo` (lib test) generated 2 warnings (2 duplicates) [INFO] [stderr] warning: unused import: `Sha256` [INFO] [stderr] --> tests/wallet_tests.rs:4:12 [INFO] [stderr] | [INFO] [stderr] 4 | use sha2::{Sha256, Digest}; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `hex` [INFO] [stderr] --> tests/wallet_tests.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | use hex; [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Digest` [INFO] [stderr] --> tests/wallet_tests.rs:4:20 [INFO] [stderr] | [INFO] [stderr] 4 | use sha2::{Sha256, Digest}; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Block` [INFO] [stderr] --> tests/integration_tests.rs:1:30 [INFO] [stderr] | [INFO] [stderr] 1 | use blockchain_demo::block::{Block, Transaction, TxInput, TxOutput}; [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::collections::HashMap` [INFO] [stderr] --> tests/integration_tests.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | use std::collections::HashMap; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::fs` [INFO] [stderr] --> src/main.rs:17:5 [INFO] [stderr] | [INFO] [stderr] 17 | use std::fs; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `serde_json` [INFO] [stderr] --> src/main.rs:18:5 [INFO] [stderr] | [INFO] [stderr] 18 | use serde_json; [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/main.rs:82:9 [INFO] [stderr] | [INFO] [stderr] 82 | let mut network = network::Network::new_with_channel(app_tx.clone()).await; [INFO] [stderr] | ----^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `blockchain_file` [INFO] [stderr] --> src/main.rs:71:9 [INFO] [stderr] | [INFO] [stderr] 71 | let blockchain_file = "blockchain.json"; [INFO] [stderr] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_blockchain_file` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `pending_tx_for_network` [INFO] [stderr] --> src/main.rs:87:9 [INFO] [stderr] | [INFO] [stderr] 87 | let pending_tx_for_network = pending_transactions.clone(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pending_tx_for_network` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `tx` [INFO] [stderr] --> src/main.rs:655:25 [INFO] [stderr] | [INFO] [stderr] 655 | for (i, tx) in pending_tx_for_main.lock().await.iter().enumerate() { [INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_tx` [INFO] [stderr] [INFO] [stderr] warning: associated function `load_from_file` is never used [INFO] [stderr] --> src/blockchain.rs:179:12 [INFO] [stderr] | [INFO] [stderr] 25 | impl Blockchain { [INFO] [stderr] | --------------- associated function in this implementation [INFO] [stderr] ... [INFO] [stderr] 179 | pub fn load_from_file(filename: &str) -> Option { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: variant `PeerDiscovered` is never constructed [INFO] [stderr] --> src/network.rs:40:5 [INFO] [stderr] | [INFO] [stderr] 28 | pub enum NetworkEvent { [INFO] [stderr] | ------------ variant in this enum [INFO] [stderr] ... [INFO] [stderr] 40 | PeerDiscovered(PeerId, Multiaddr), [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `NetworkEvent` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: multiple associated items are never used [INFO] [stderr] --> src/network.rs:150:18 [INFO] [stderr] | [INFO] [stderr] 144 | impl Network { [INFO] [stderr] | ------------ associated items in this implementation [INFO] [stderr] ... [INFO] [stderr] 150 | pub async fn new() -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 175 | pub fn set_auto_connect(&mut self, enabled: bool) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 181 | pub fn set_max_connections(&mut self, max: usize) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 610 | pub fn connected_peer_count(&self) -> usize { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 615 | pub fn discovered_peer_count(&self) -> usize { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 640 | pub async fn discover_peers(&mut self) { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 649 | pub fn show_network_status(&self) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 675 | pub async fn broadcast_block(&self, block: Block) { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 681 | pub async fn broadcast_transaction(&self, transaction: Transaction) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 687 | pub async fn sync_chain(&self, _blockchain: &Blockchain) { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 717 | pub async fn dial(&self, addr: libp2p::Multiaddr) -> Result<(), Box> { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `network` [INFO] [stderr] --> tests/network_tests.rs:50:9 [INFO] [stderr] | [INFO] [stderr] 50 | let network = Network::new().await; [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_network` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `broadcast_result` [INFO] [stderr] --> tests/network_tests.rs:201:9 [INFO] [stderr] | [INFO] [stderr] 201 | let broadcast_result = network.broadcast_block(test_block).await; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_broadcast_result` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `transaction_result` [INFO] [stderr] --> tests/network_tests.rs:205:9 [INFO] [stderr] | [INFO] [stderr] 205 | let transaction_result = network.broadcast_transaction(test_transaction).await; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_transaction_result` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `sync_result` [INFO] [stderr] --> tests/network_tests.rs:208:9 [INFO] [stderr] | [INFO] [stderr] 208 | let sync_result = network.sync_chain(&blockchain).await; [INFO] [stderr] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sync_result` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> tests/network_tests.rs:263:15 [INFO] [stderr] | [INFO] [stderr] 263 | let (tx1, mut rx1) = mpsc::channel(100); [INFO] [stderr] | ----^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> tests/network_tests.rs:264:15 [INFO] [stderr] | [INFO] [stderr] 264 | let (tx2, mut rx2) = mpsc::channel(100); [INFO] [stderr] | ----^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `rx1` [INFO] [stderr] --> tests/network_tests.rs:263:15 [INFO] [stderr] | [INFO] [stderr] 263 | let (tx1, mut rx1) = mpsc::channel(100); [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rx1` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `rx2` [INFO] [stderr] --> tests/network_tests.rs:264:15 [INFO] [stderr] | [INFO] [stderr] 264 | let (tx2, mut rx2) = mpsc::channel(100); [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rx2` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `node1_handle` [INFO] [stderr] --> tests/network_tests.rs:277:9 [INFO] [stderr] | [INFO] [stderr] 277 | let node1_handle = tokio::spawn(async move { [INFO] [stderr] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_node1_handle` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `node2_handle` [INFO] [stderr] --> tests/network_tests.rs:295:9 [INFO] [stderr] | [INFO] [stderr] 295 | let node2_handle = tokio::spawn(async move { [INFO] [stderr] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_node2_handle` [INFO] [stderr] [INFO] [stderr] warning: `blockchain_demo` (test "wallet_tests") generated 3 warnings (run `cargo fix --test "wallet_tests" -p blockchain_demo` to apply 2 suggestions) [INFO] [stderr] warning: `blockchain_demo` (test "integration_tests") generated 2 warnings (run `cargo fix --test "integration_tests" -p blockchain_demo` to apply 2 suggestions) [INFO] [stderr] warning: `blockchain_demo` (bin "blockchain_demo" test) generated 11 warnings (2 duplicates) (run `cargo fix --bin "blockchain_demo" -p blockchain_demo --tests` to apply 6 suggestions) [INFO] [stderr] warning: `blockchain_demo` (bin "blockchain_demo") generated 11 warnings (11 duplicates) [INFO] [stderr] warning: `blockchain_demo` (test "network_tests") generated 10 warnings (run `cargo fix --test "network_tests" -p blockchain_demo` to apply 10 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.59s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/build/blockchain_demo/2f232ed7b6caf2b4/deps/blockchain_demo-2f232ed7b6caf2b4) [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] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/build/blockchain_demo/8516dfaef871b3d4/deps/blockchain_demo-8516dfaef871b3d4) [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] [stderr] Running tests/block_tests.rs (/opt/rustwide/target/debug/build/blockchain_demo/a88d10434f3ad782/deps/block_tests-a88d10434f3ad782) [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stdout] test test_block_mining_and_validation ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.26s [INFO] [stdout] [INFO] [stderr] Running tests/blockchain_tests.rs (/opt/rustwide/target/debug/build/blockchain_demo/50af3df089e8832e/deps/blockchain_tests-50af3df089e8832e) [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stdout] test test_blockchain_add_block_and_utxo ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- test_blockchain_add_block_and_utxo stdout ---- [INFO] [stdout] 成功挖到区块,迭代次数: 557, nonce: 557 [INFO] [stdout] [INFO] [stdout] thread 'test_blockchain_add_block_and_utxo' (29) panicked at src/blockchain.rs:167:41: [INFO] [stdout] Unable to write blockchain to file: Os { code: 30, kind: ReadOnlyFilesystem, message: "Read-only file system" } [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x5d095b83e942 - std[840933623431fd06]::backtrace_rs::backtrace::libunwind::trace [INFO] [stdout] at /rustc/bd7d74411512a3dd3b35d2f699c51dd2557c7e7e/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x5d095b83e942 - std[840933623431fd06]::backtrace_rs::backtrace::trace_unsynchronized:: [INFO] [stdout] at /rustc/bd7d74411512a3dd3b35d2f699c51dd2557c7e7e/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x5d095b83e942 - std[840933623431fd06]::sys::backtrace::_print_fmt [INFO] [stdout] at /rustc/bd7d74411512a3dd3b35d2f699c51dd2557c7e7e/library/std/src/sys/backtrace.rs:74:9 [INFO] [stdout] 3: 0x5d095b83e942 - <::print::DisplayBacktrace as core[8f93d80df273fe75]::fmt::Display>::fmt [INFO] [stdout] at /rustc/bd7d74411512a3dd3b35d2f699c51dd2557c7e7e/library/std/src/sys/backtrace.rs:44:26 [INFO] [stdout] 4: 0x5d095b85326a - ::fmt [INFO] [stdout] at /rustc/bd7d74411512a3dd3b35d2f699c51dd2557c7e7e/library/core/src/fmt/rt.rs:152:76 [INFO] [stdout] 5: 0x5d095b85326a - core[8f93d80df273fe75]::fmt::write [INFO] [stdout] 6: 0x5d095b843776 - std[840933623431fd06]::io::default_write_fmt::> [INFO] [stdout] at /rustc/bd7d74411512a3dd3b35d2f699c51dd2557c7e7e/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x5d095b843776 - as std[840933623431fd06]::io::Write>::write_fmt [INFO] [stdout] at /rustc/bd7d74411512a3dd3b35d2f699c51dd2557c7e7e/library/std/src/io/mod.rs:1994:13 [INFO] [stdout] 8: 0x5d095b81cbbf - ::print [INFO] [stdout] at /rustc/bd7d74411512a3dd3b35d2f699c51dd2557c7e7e/library/std/src/sys/backtrace.rs:47:9 [INFO] [stdout] 9: 0x5d095b81cbbf - std[840933623431fd06]::panicking::default_hook::{closure#0} [INFO] [stdout] at /rustc/bd7d74411512a3dd3b35d2f699c51dd2557c7e7e/library/std/src/panicking.rs:292:27 [INFO] [stdout] 10: 0x5d095b836a29 - std[840933623431fd06]::panicking::default_hook [INFO] [stdout] at /rustc/bd7d74411512a3dd3b35d2f699c51dd2557c7e7e/library/std/src/panicking.rs:316:9 [INFO] [stdout] 11: 0x5d095b7a5eae - core[8f93d80df273fe75]::ops::function::Fn<(&'a std[840933623431fd06]::panic::PanicHookInfo<'b>,), Output = ()> + core[8f93d80df273fe75]::marker::Sync + core[8f93d80df273fe75]::marker::Send> as core[8f93d80df273fe75]::ops::function::Fn<(&std[840933623431fd06]::panic::PanicHookInfo,)>>::call [INFO] [stdout] at /rustc/bd7d74411512a3dd3b35d2f699c51dd2557c7e7e/library/alloc/src/boxed.rs:2220:9 [INFO] [stdout] 12: 0x5d095b7a5eae - test[2f1252070343a163]::test_main_with_exit_callback::::{closure#0} [INFO] [stdout] at /rustc/bd7d74411512a3dd3b35d2f699c51dd2557c7e7e/library/test/src/lib.rs:145:21 [INFO] [stdout] 13: 0x5d095b836be2 - core[8f93d80df273fe75]::ops::function::Fn<(&'a std[840933623431fd06]::panic::PanicHookInfo<'b>,), Output = ()> + core[8f93d80df273fe75]::marker::Sync + core[8f93d80df273fe75]::marker::Send> as core[8f93d80df273fe75]::ops::function::Fn<(&std[840933623431fd06]::panic::PanicHookInfo,)>>::call [INFO] [stdout] at /rustc/bd7d74411512a3dd3b35d2f699c51dd2557c7e7e/library/alloc/src/boxed.rs:2220:9 [INFO] [stdout] 14: 0x5d095b836be2 - std[840933623431fd06]::panicking::panic_with_hook [INFO] [stdout] at /rustc/bd7d74411512a3dd3b35d2f699c51dd2557c7e7e/library/std/src/panicking.rs:833:13 [INFO] [stdout] 15: 0x5d095b81cc78 - std[840933623431fd06]::panicking::panic_handler::{closure#0} [INFO] [stdout] at /rustc/bd7d74411512a3dd3b35d2f699c51dd2557c7e7e/library/std/src/panicking.rs:698:13 [INFO] [stdout] 16: 0x5d095b814599 - std[840933623431fd06]::sys::backtrace::__rust_end_short_backtrace:: [INFO] [stdout] at /rustc/bd7d74411512a3dd3b35d2f699c51dd2557c7e7e/library/std/src/sys/backtrace.rs:182:18 [INFO] [stdout] 17: 0x5d095b81dacd - __rustc[5b4a0c6d8cc4a177]::rust_begin_unwind [INFO] [stdout] at /rustc/bd7d74411512a3dd3b35d2f699c51dd2557c7e7e/library/std/src/panicking.rs:689:5 [INFO] [stdout] 18: 0x5d095b85393c - core[8f93d80df273fe75]::panicking::panic_fmt [INFO] [stdout] at /rustc/bd7d74411512a3dd3b35d2f699c51dd2557c7e7e/library/core/src/panicking.rs:80:14 [INFO] [stdout] 19: 0x5d095b8536b2 - core[8f93d80df273fe75]::result::unwrap_failed [INFO] [stdout] at /rustc/bd7d74411512a3dd3b35d2f699c51dd2557c7e7e/library/core/src/result.rs:1867:5 [INFO] [stdout] 20: 0x5d095b7f3b3c - >::expect [INFO] [stdout] at /rustc/bd7d74411512a3dd3b35d2f699c51dd2557c7e7e/library/core/src/result.rs:1185:23 [INFO] [stdout] 21: 0x5d095b7e38f5 - ::save_to_file [INFO] [stdout] at /opt/rustwide/workdir/src/blockchain.rs:167:41 [INFO] [stdout] 22: 0x5d095b7e4b4b - ::add_block [INFO] [stdout] at /opt/rustwide/workdir/src/blockchain.rs:95:14 [INFO] [stdout] 23: 0x5d095b798da3 - blockchain_tests[937d972e0429a246]::test_blockchain_add_block_and_utxo [INFO] [stdout] at /opt/rustwide/workdir/tests/blockchain_tests.rs:32:16 [INFO] [stdout] 24: 0x5d095b798747 - blockchain_tests[937d972e0429a246]::test_blockchain_add_block_and_utxo::{closure#0} [INFO] [stdout] at /opt/rustwide/workdir/tests/blockchain_tests.rs:6:40 [INFO] [stdout] 25: 0x5d095b79a1b6 - >::call_once [INFO] [stdout] at /rustc/bd7d74411512a3dd3b35d2f699c51dd2557c7e7e/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 26: 0x5d095b79a25b - core[8f93d80df273fe75]::result::Result<(), alloc[40b2bae28975ac47]::string::String> as core[8f93d80df273fe75]::ops::function::FnOnce<()>>::call_once [INFO] [stdout] at /rustc/bd7d74411512a3dd3b35d2f699c51dd2557c7e7e/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 27: 0x5d095b79a25b - test[2f1252070343a163]::__rust_begin_short_backtrace::, fn() -> core[8f93d80df273fe75]::result::Result<(), alloc[40b2bae28975ac47]::string::String>> [INFO] [stdout] at /rustc/bd7d74411512a3dd3b35d2f699c51dd2557c7e7e/library/test/src/lib.rs:663:18 [INFO] [stdout] 28: 0x5d095b7a6aba - test[2f1252070343a163]::run_test_in_process::{closure#0} [INFO] [stdout] at /rustc/bd7d74411512a3dd3b35d2f699c51dd2557c7e7e/library/test/src/lib.rs:686:74 [INFO] [stdout] 29: 0x5d095b7a6aba - as core[8f93d80df273fe75]::ops::function::FnOnce<()>>::call_once [INFO] [stdout] at /rustc/bd7d74411512a3dd3b35d2f699c51dd2557c7e7e/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 30: 0x5d095b7a6aba - std[840933623431fd06]::panicking::catch_unwind::do_call::, core[8f93d80df273fe75]::result::Result<(), alloc[40b2bae28975ac47]::string::String>> [INFO] [stdout] at /rustc/bd7d74411512a3dd3b35d2f699c51dd2557c7e7e/library/std/src/panicking.rs:581:40 [INFO] [stdout] 31: 0x5d095b7a6aba - std[840933623431fd06]::panicking::catch_unwind::, core[8f93d80df273fe75]::panic::unwind_safe::AssertUnwindSafe> [INFO] [stdout] at /rustc/bd7d74411512a3dd3b35d2f699c51dd2557c7e7e/library/std/src/panicking.rs:544:19 [INFO] [stdout] 32: 0x5d095b7a6aba - std[840933623431fd06]::panic::catch_unwind::, core[8f93d80df273fe75]::result::Result<(), alloc[40b2bae28975ac47]::string::String>> [INFO] [stdout] at /rustc/bd7d74411512a3dd3b35d2f699c51dd2557c7e7e/library/std/src/panic.rs:359:14 [INFO] [stdout] 33: 0x5d095b7a6aba - test[2f1252070343a163]::run_test_in_process [INFO] [stdout] at /rustc/bd7d74411512a3dd3b35d2f699c51dd2557c7e7e/library/test/src/lib.rs:686:27 [INFO] [stdout] 34: 0x5d095b7a6aba - test[2f1252070343a163]::run_test::{closure#0} [INFO] [stdout] at /rustc/bd7d74411512a3dd3b35d2f699c51dd2557c7e7e/library/test/src/lib.rs:607:43 [INFO] [stdout] 35: 0x5d095b7a0f84 - test[2f1252070343a163]::run_test::{closure#1} [INFO] [stdout] at /rustc/bd7d74411512a3dd3b35d2f699c51dd2557c7e7e/library/test/src/lib.rs:637:41 [INFO] [stdout] 36: 0x5d095b7a0f84 - std[840933623431fd06]::sys::backtrace::__rust_begin_short_backtrace:: [INFO] [stdout] at /rustc/bd7d74411512a3dd3b35d2f699c51dd2557c7e7e/library/std/src/sys/backtrace.rs:166:18 [INFO] [stdout] 37: 0x5d095b7a95b2 - std[840933623431fd06]::thread::lifecycle::spawn_unchecked::::{closure#1}::{closure#0} [INFO] [stdout] at /rustc/bd7d74411512a3dd3b35d2f699c51dd2557c7e7e/library/std/src/thread/lifecycle.rs:91:13 [INFO] [stdout] 38: 0x5d095b7a95b2 - ::{closure#1}::{closure#0}> as core[8f93d80df273fe75]::ops::function::FnOnce<()>>::call_once [INFO] [stdout] at /rustc/bd7d74411512a3dd3b35d2f699c51dd2557c7e7e/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 39: 0x5d095b7a95b2 - std[840933623431fd06]::panicking::catch_unwind::do_call::::{closure#1}::{closure#0}>, ()> [INFO] [stdout] at /rustc/bd7d74411512a3dd3b35d2f699c51dd2557c7e7e/library/std/src/panicking.rs:581:40 [INFO] [stdout] 40: 0x5d095b7a95b2 - std[840933623431fd06]::panicking::catch_unwind::<(), core[8f93d80df273fe75]::panic::unwind_safe::AssertUnwindSafe::{closure#1}::{closure#0}>> [INFO] [stdout] at /rustc/bd7d74411512a3dd3b35d2f699c51dd2557c7e7e/library/std/src/panicking.rs:544:19 [INFO] [stdout] 41: 0x5d095b7a95b2 - std[840933623431fd06]::panic::catch_unwind::::{closure#1}::{closure#0}>, ()> [INFO] [stdout] at /rustc/bd7d74411512a3dd3b35d2f699c51dd2557c7e7e/library/std/src/panic.rs:359:14 [INFO] [stdout] 42: 0x5d095b7a95b2 - std[840933623431fd06]::thread::lifecycle::spawn_unchecked::::{closure#1} [INFO] [stdout] at /rustc/bd7d74411512a3dd3b35d2f699c51dd2557c7e7e/library/std/src/thread/lifecycle.rs:89:26 [INFO] [stdout] 43: 0x5d095b7a95b2 - ::{closure#1} as core[8f93d80df273fe75]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} [INFO] [stdout] at /rustc/bd7d74411512a3dd3b35d2f699c51dd2557c7e7e/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 44: 0x5d095b83e04f - + core[8f93d80df273fe75]::marker::Send> as core[8f93d80df273fe75]::ops::function::FnOnce<()>>::call_once [INFO] [stdout] at /rustc/bd7d74411512a3dd3b35d2f699c51dd2557c7e7e/library/alloc/src/boxed.rs:2206:9 [INFO] [stdout] 45: 0x5d095b83e04f - ::new::thread_start [INFO] [stdout] at /rustc/bd7d74411512a3dd3b35d2f699c51dd2557c7e7e/library/std/src/sys/thread/unix.rs:119:17 [INFO] [stdout] 46: 0x785f1ddfcaa4 - [INFO] [stdout] 47: 0x785f1de89a64 - clone [INFO] [stdout] 48: 0x0 - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] test_blockchain_add_block_and_utxo [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.27s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass `--test blockchain_tests` [INFO] running `Command { std: "docker" "inspect" "40992a6fbb96111a6f7022b14623bca13c051af0e1816574af574b47bf4bb2c7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "40992a6fbb96111a6f7022b14623bca13c051af0e1816574af574b47bf4bb2c7", kill_on_drop: false }` [INFO] [stdout] 40992a6fbb96111a6f7022b14623bca13c051af0e1816574af574b47bf4bb2c7