[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#0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6 for pr-137122-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fxiuxiua8%2FblockchainRUST" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-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-5-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/xiuxiua8/blockchainRUST on toolchain 0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6" "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" "+0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ed88ac3ea63f7712707084a384c1d3f064520e37b2765db11b2e99628352c328 [INFO] running `Command { std: "docker" "start" "-a" "ed88ac3ea63f7712707084a384c1d3f064520e37b2765db11b2e99628352c328", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ed88ac3ea63f7712707084a384c1d3f064520e37b2765db11b2e99628352c328", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ed88ac3ea63f7712707084a384c1d3f064520e37b2765db11b2e99628352c328", kill_on_drop: false }` [INFO] [stdout] ed88ac3ea63f7712707084a384c1d3f064520e37b2765db11b2e99628352c328 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2f103f143051802ad5b21b06cbbbbec2ed5ea41d5e9d4ca36bb53623e437909d [INFO] running `Command { std: "docker" "start" "-a" "2f103f143051802ad5b21b06cbbbbec2ed5ea41d5e9d4ca36bb53623e437909d", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.94 [INFO] [stderr] Compiling unicode-ident v1.0.18 [INFO] [stderr] Compiling libc v0.2.171 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling pin-project-lite v0.2.16 [INFO] [stderr] Compiling futures-core v0.3.31 [INFO] [stderr] Compiling futures-io v0.3.31 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling futures-sink v0.3.31 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling once_cell v1.21.1 [INFO] [stderr] Compiling smallvec v1.14.0 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Compiling typenum v1.18.0 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Compiling stable_deref_trait v1.2.0 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling value-bag v1.11.1 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling parking v2.2.1 [INFO] [stderr] Compiling bytes v1.10.1 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling zerocopy v0.8.23 [INFO] [stderr] Compiling semver v1.0.26 [INFO] [stderr] Compiling tracing-core v0.1.33 [INFO] [stderr] Compiling subtle v2.6.1 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling scopeguard v1.2.0 [INFO] [stderr] Compiling litemap v0.7.5 [INFO] [stderr] Compiling writeable v0.5.5 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling log v0.4.26 [INFO] [stderr] Compiling icu_locid_transform_data v1.5.0 [INFO] [stderr] Compiling icu_properties_data v1.5.0 [INFO] [stderr] Compiling fastrand v2.3.0 [INFO] [stderr] Compiling rustix v0.38.44 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling utf16_iter v1.0.5 [INFO] [stderr] Compiling icu_normalizer_data v1.5.0 [INFO] [stderr] Compiling write16 v1.0.0 [INFO] [stderr] Compiling utf8_iter v1.0.4 [INFO] [stderr] Compiling futures-lite v2.6.0 [INFO] [stderr] Compiling cpufeatures v0.2.17 [INFO] [stderr] Compiling concurrent-queue v2.5.0 [INFO] [stderr] Compiling linux-raw-sys v0.4.15 [INFO] [stderr] Compiling bitflags v2.9.0 [INFO] [stderr] Compiling rustc_version v0.4.1 [INFO] [stderr] Compiling event-listener v5.4.0 [INFO] [stderr] Compiling percent-encoding v2.3.1 [INFO] [stderr] Compiling data-encoding v2.8.0 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling signature v2.2.0 [INFO] [stderr] Compiling curve25519-dalek v4.1.3 [INFO] [stderr] Compiling async-task v4.7.1 [INFO] [stderr] Compiling event-listener-strategy v0.5.3 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Compiling async-lock v3.4.0 [INFO] [stderr] Compiling cc v1.2.16 [INFO] [stderr] Compiling static_assertions v1.1.0 [INFO] [stderr] Compiling async-channel v2.3.1 [INFO] [stderr] Compiling ed25519 v2.2.3 [INFO] [stderr] Compiling core2 v0.4.0 [INFO] [stderr] Compiling quick-protobuf v0.8.1 [INFO] [stderr] Compiling unsigned-varint v0.8.0 [INFO] [stderr] Compiling atomic-waker v1.1.2 [INFO] [stderr] Compiling piper v0.2.4 [INFO] [stderr] Compiling bs58 v0.5.1 [INFO] [stderr] Compiling base-x v0.2.11 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling multihash v0.19.3 [INFO] [stderr] Compiling futures-timer v3.0.3 [INFO] [stderr] Compiling blocking v1.6.1 [INFO] [stderr] Compiling async-executor v1.13.1 [INFO] [stderr] Compiling arrayref v0.3.9 [INFO] [stderr] Compiling event-listener v2.5.3 [INFO] [stderr] Compiling fnv v1.0.7 [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 heck v0.4.1 [INFO] [stderr] Compiling syn v2.0.100 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling proc-macro-warning v0.4.2 [INFO] [stderr] Compiling anyhow v1.0.97 [INFO] [stderr] Compiling paste v1.0.15 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling tinyvec_macros v0.1.1 [INFO] [stderr] Compiling ipnet v2.11.0 [INFO] [stderr] Compiling unicode-bidi v0.3.18 [INFO] [stderr] Compiling tinyvec v1.9.0 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling thiserror v2.0.12 [INFO] [stderr] Compiling io-lifetimes v1.0.11 [INFO] [stderr] Compiling untrusted v0.9.0 [INFO] [stderr] Compiling polling v2.8.0 [INFO] [stderr] Compiling rustix v0.37.28 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling hkdf v0.12.4 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling num_cpus v1.16.0 [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 unicode-normalization v0.1.24 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling heck v0.5.0 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling nix v0.26.4 [INFO] [stderr] Compiling socket2 v0.4.10 [INFO] [stderr] Compiling hostname v0.4.0 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling async-io v1.13.0 [INFO] [stderr] Compiling fastrand v1.9.0 [INFO] [stderr] Compiling waker-fn v1.2.0 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling rustls v0.21.12 [INFO] [stderr] Compiling linux-raw-sys v0.3.8 [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Compiling httparse v1.10.1 [INFO] [stderr] Compiling crunchy v0.2.4 [INFO] [stderr] Compiling linked-hash-map v0.5.6 [INFO] [stderr] Compiling futures-lite v1.13.0 [INFO] [stderr] Compiling idna v0.4.0 [INFO] [stderr] Compiling lru-cache v0.1.2 [INFO] [stderr] Compiling resolv-conf v0.7.1 [INFO] [stderr] Compiling async-lock v2.8.0 [INFO] [stderr] Compiling snow v0.9.3 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Compiling foldhash v0.1.5 [INFO] [stderr] Compiling untrusted v0.7.1 [INFO] [stderr] Compiling itoa v1.0.15 [INFO] [stderr] Compiling equivalent v1.0.2 [INFO] [stderr] Compiling prometheus-client v0.21.2 [INFO] [stderr] Compiling spin v0.5.2 [INFO] [stderr] Compiling matches v0.1.10 [INFO] [stderr] Compiling allocator-api2 v0.2.21 [INFO] [stderr] Compiling idna v0.2.3 [INFO] [stderr] Compiling secp256k1-sys v0.6.1 [INFO] [stderr] Compiling hashbrown v0.15.2 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling base64 v0.22.1 [INFO] [stderr] Compiling nohash-hasher v0.2.0 [INFO] [stderr] Compiling dtoa v1.0.10 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling lazy_static v1.5.0 [INFO] [stderr] Compiling lru v0.12.5 [INFO] [stderr] Compiling base64 v0.21.7 [INFO] [stderr] Compiling uint v0.9.5 [INFO] [stderr] Compiling arrayvec v0.7.6 [INFO] [stderr] Compiling webpki-roots v0.25.4 [INFO] [stderr] Compiling hex_fmt v0.3.0 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling is-terminal v0.4.16 [INFO] [stderr] Compiling humantime v2.2.0 [INFO] [stderr] Compiling iana-time-zone v0.1.61 [INFO] [stderr] Compiling termcolor v1.4.1 [INFO] [stderr] Compiling ryu v1.0.20 [INFO] [stderr] Compiling ripemd v0.1.3 [INFO] [stderr] Compiling chrono v0.4.40 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling enum-as-inner v0.5.1 [INFO] [stderr] Compiling synstructure v0.13.1 [INFO] [stderr] Compiling sct v0.7.1 [INFO] [stderr] Compiling rustls-webpki v0.101.7 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling tracing-attributes v0.1.28 [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 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 zeroize v1.8.1 [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 async-trait v0.1.88 [INFO] [stderr] Compiling tokio v1.44.1 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling data-encoding-macro v0.1.17 [INFO] [stderr] Compiling multibase v0.9.1 [INFO] [stderr] Compiling thiserror-impl v2.0.12 [INFO] [stderr] Compiling enum-as-inner v0.6.1 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling polling v3.7.4 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling prometheus-client-derive-encode v0.4.2 [INFO] [stderr] Compiling yoke v0.7.5 [INFO] [stderr] Compiling netlink-packet-utils v0.5.2 [INFO] [stderr] Compiling zerovec v0.10.4 [INFO] [stderr] Compiling async-io v2.4.0 [INFO] [stderr] Compiling pin-project v1.1.10 [INFO] [stderr] Compiling env_logger v0.10.2 [INFO] [stderr] Compiling netlink-packet-core v0.7.0 [INFO] [stderr] Compiling netlink-packet-route v0.17.1 [INFO] [stderr] Compiling tinystr v0.7.6 [INFO] [stderr] Compiling icu_collections v1.5.0 [INFO] [stderr] Compiling ed25519-dalek v2.1.1 [INFO] [stderr] Compiling x25519-dalek v2.0.1 [INFO] [stderr] Compiling icu_locid v1.5.0 [INFO] [stderr] Compiling async-global-executor v2.4.1 [INFO] [stderr] Compiling async-signal v0.2.10 [INFO] [stderr] Compiling libp2p-identity v0.2.10 [INFO] [stderr] Compiling async-process v2.3.0 [INFO] [stderr] Compiling futures-rustls v0.24.0 [INFO] [stderr] Compiling async-std v1.13.1 [INFO] [stderr] Compiling icu_provider v1.5.0 [INFO] [stderr] Compiling icu_locid_transform v1.5.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 unsigned-varint v0.7.2 [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 multistream-select v0.13.0 [INFO] [stderr] Compiling quick-protobuf-codec v0.2.0 [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 icu_normalizer v1.5.0 [INFO] [stderr] Compiling rtnetlink v0.13.1 [INFO] [stderr] Compiling idna_adapter v1.2.0 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling secp256k1 v0.24.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 if-watch v3.2.1 [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-yamux v0.44.1 [INFO] [stderr] Compiling libp2p-noise v0.43.2 [INFO] [stderr] Compiling trust-dns-resolver v0.23.2 [INFO] [stderr] Compiling libp2p-gossipsub v0.45.2 [INFO] [stderr] Compiling libp2p-identify v0.43.1 [INFO] [stderr] Compiling libp2p-allow-block-list v0.2.0 [INFO] [stderr] Compiling libp2p-ping v0.43.1 [INFO] [stderr] Compiling libp2p-kad v0.44.6 [INFO] [stderr] Compiling libp2p-connection-limits v0.2.1 [INFO] [stderr] Compiling libp2p-mdns v0.44.0 [INFO] [stderr] Compiling libp2p-tcp v0.40.1 [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)]` 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)]` 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)]` 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: 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)]` on by default [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)]` 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 2m 39s [INFO] running `Command { std: "docker" "inspect" "2f103f143051802ad5b21b06cbbbbec2ed5ea41d5e9d4ca36bb53623e437909d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2f103f143051802ad5b21b06cbbbbec2ed5ea41d5e9d4ca36bb53623e437909d", kill_on_drop: false }` [INFO] [stdout] 2f103f143051802ad5b21b06cbbbbec2ed5ea41d5e9d4ca36bb53623e437909d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 065fe0af512db92d5bc2f25fae449108c786b8852404995ae9c02bc8ba1e86a0 [INFO] running `Command { std: "docker" "start" "-a" "065fe0af512db92d5bc2f25fae449108c786b8852404995ae9c02bc8ba1e86a0", 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)]` 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)]` 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)]` 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: 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)]` on by default [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)]` 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: `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)]` on by default [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)]` 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 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)]` 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: `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: 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: 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: `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)]` 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 variable: `rx1` [INFO] [stdout] --> tests/network_tests.rs:263:19 [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:19 [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: 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)]` 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: `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)]` 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)]` 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: 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)]` on by default [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)]` 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] error: could not compile `blockchain_demo` (test "network_tests"); 10 warnings emitted [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `/opt/rustwide/rustup-home/toolchains/0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6/bin/rustc --crate-name network_tests --edition=2021 tests/network_tests.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 --test --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values())' -C metadata=f427f4927b9cd9a6 -C extra-filename=-b8a7ef2bbcdfdf38 --out-dir /opt/rustwide/target/debug/deps -L dependency=/opt/rustwide/target/debug/deps --extern anyhow=/opt/rustwide/target/debug/deps/libanyhow-75a9af91c5a25be8.rlib --extern async_trait=/opt/rustwide/target/debug/deps/libasync_trait-5241c666f979a8b2.so --extern blockchain_demo=/opt/rustwide/target/debug/deps/libblockchain_demo-3e16a528816462d2.rlib --extern chrono=/opt/rustwide/target/debug/deps/libchrono-553f2bae94a47d86.rlib --extern env_logger=/opt/rustwide/target/debug/deps/libenv_logger-1097c2ea161eb81e.rlib --extern futures=/opt/rustwide/target/debug/deps/libfutures-84f370e3380d2875.rlib --extern hex=/opt/rustwide/target/debug/deps/libhex-28742b4ca144387c.rlib --extern libp2p=/opt/rustwide/target/debug/deps/liblibp2p-4129ee06049d0dac.rlib --extern log=/opt/rustwide/target/debug/deps/liblog-c853099735e2e2ff.rlib --extern rand=/opt/rustwide/target/debug/deps/librand-a06ec84aaa88e2da.rlib --extern ripemd=/opt/rustwide/target/debug/deps/libripemd-b0df4b69bc7641bd.rlib --extern secp256k1=/opt/rustwide/target/debug/deps/libsecp256k1-b8ed66ef87c37a82.rlib --extern serde=/opt/rustwide/target/debug/deps/libserde-96ad93c13334c64a.rlib --extern serde_json=/opt/rustwide/target/debug/deps/libserde_json-3efed128dbc9219e.rlib --extern sha2=/opt/rustwide/target/debug/deps/libsha2-cef537a868de9bec.rlib --extern thiserror=/opt/rustwide/target/debug/deps/libthiserror-c1e609e9f862ee89.rlib --extern tokio=/opt/rustwide/target/debug/deps/libtokio-fffbd133ca5c3391.rlib --cap-lints=forbid -L native=/opt/rustwide/target/debug/build/ring-39cb9b7275252575/out -L native=/opt/rustwide/target/debug/build/ring-75d5316ee35534df/out -L native=/opt/rustwide/target/debug/build/secp256k1-sys-0e4dde4ba0a3f939/out` (signal: 9, SIGKILL: kill) [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] running `Command { std: "docker" "inspect" "065fe0af512db92d5bc2f25fae449108c786b8852404995ae9c02bc8ba1e86a0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "065fe0af512db92d5bc2f25fae449108c786b8852404995ae9c02bc8ba1e86a0", kill_on_drop: false }` [INFO] [stdout] 065fe0af512db92d5bc2f25fae449108c786b8852404995ae9c02bc8ba1e86a0