[INFO] cloning repository https://github.com/simsekgokhan/my-blockchain [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/simsekgokhan/my-blockchain" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsimsekgokhan%2Fmy-blockchain", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsimsekgokhan%2Fmy-blockchain'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 89c719897acde2eb64b82951646d7e992be7d63b [INFO] testing simsekgokhan/my-blockchain against try#8de4c7234dd9b97c9d76b58671343fdbbc9a433e+target=x86_64-unknown-linux-musl for musl_upgrade_1_2_5_with_libc_patch_0 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsimsekgokhan%2Fmy-blockchain" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] removed /workspace/builds/worker-3-tc1/source/rust-toolchain [INFO] started tweaking git repo https://github.com/simsekgokhan/my-blockchain [INFO] finished tweaking git repo https://github.com/simsekgokhan/my-blockchain [INFO] tweaked toml for git repo https://github.com/simsekgokhan/my-blockchain written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/simsekgokhan/my-blockchain on toolchain 8de4c7234dd9b97c9d76b58671343fdbbc9a433e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/simsekgokhan/my-blockchain already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "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] Downloading crates ... [INFO] [stderr] Downloaded polling v3.4.0 [INFO] [stderr] Downloaded pretty_env_logger v0.5.0 [INFO] [stderr] Downloaded async-trait v0.1.76 [INFO] [stderr] Downloaded tokio v1.34.0 [INFO] [stderr] Downloaded serde_json v1.0.109 [INFO] [stderr] Downloaded libc v0.2.150 [INFO] [stderr] Downloaded generic-array v0.8.4 [INFO] [stderr] Downloaded sha2 v0.6.0 [INFO] [stderr] Downloaded block-buffer v0.2.0 [INFO] [stderr] Downloaded digest v0.6.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 651ef327d244eb0f137b95c49f20576b1a4f0d6efb1f567adc0713055d579c65 [INFO] running `Command { std: "docker" "start" "-a" "651ef327d244eb0f137b95c49f20576b1a4f0d6efb1f567adc0713055d579c65", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "651ef327d244eb0f137b95c49f20576b1a4f0d6efb1f567adc0713055d579c65", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "651ef327d244eb0f137b95c49f20576b1a4f0d6efb1f567adc0713055d579c65", kill_on_drop: false }` [INFO] [stdout] 651ef327d244eb0f137b95c49f20576b1a4f0d6efb1f567adc0713055d579c65 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "build" "--frozen" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 215179d7f63161608e8275b68f8624fe03b24424b2607937634c99617d43e722 [INFO] running `Command { std: "docker" "start" "-a" "215179d7f63161608e8275b68f8624fe03b24424b2607937634c99617d43e722", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.69 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling libc v0.2.150 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Compiling pin-project-lite v0.2.13 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling futures-core v0.3.30 [INFO] [stderr] Compiling futures-io v0.3.30 [INFO] [stderr] Compiling either v1.10.0 [INFO] [stderr] Compiling memchr v2.6.4 [INFO] [stderr] Compiling rustix v0.38.28 [INFO] [stderr] Compiling log v0.4.21 [INFO] [stderr] Compiling anyhow v1.0.81 [INFO] [stderr] Compiling linux-raw-sys v0.4.13 [INFO] [stderr] Compiling bitflags v2.4.2 [INFO] [stderr] Compiling home v0.5.9 [INFO] [stderr] Compiling bytes v1.5.0 [INFO] [stderr] Compiling hashbrown v0.12.3 [INFO] [stderr] Compiling unicode-segmentation v1.11.0 [INFO] [stderr] Compiling fixedbitset v0.2.0 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling fastrand v2.0.1 [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Compiling futures-sink v0.3.30 [INFO] [stderr] Compiling multimap v0.8.3 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling value-bag v1.8.0 [INFO] [stderr] Compiling futures-channel v0.3.30 [INFO] [stderr] Compiling futures-task v0.3.30 [INFO] [stderr] Compiling thiserror v1.0.55 [INFO] [stderr] Compiling ppv-lite86 v0.2.17 [INFO] [stderr] Compiling once_cell v1.19.0 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Compiling block-padding v0.2.1 [INFO] [stderr] Compiling opaque-debug v0.3.1 [INFO] [stderr] Compiling tinyvec_macros v0.1.1 [INFO] [stderr] Compiling subtle v2.5.0 [INFO] [stderr] Compiling tinyvec v1.6.0 [INFO] [stderr] Compiling cc v1.0.83 [INFO] [stderr] Compiling syn v2.0.39 [INFO] [stderr] Compiling petgraph v0.5.1 [INFO] [stderr] Compiling crunchy v0.2.2 [INFO] [stderr] Compiling smallvec v1.13.1 [INFO] [stderr] Compiling lock_api v0.4.11 [INFO] [stderr] Compiling cpufeatures v0.2.12 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling spin v0.5.2 [INFO] [stderr] Compiling unicode-bidi v0.3.15 [INFO] [stderr] Compiling untrusted v0.7.1 [INFO] [stderr] Compiling serde v1.0.193 [INFO] [stderr] Compiling num_cpus v1.16.0 [INFO] [stderr] Compiling parking_lot_core v0.8.6 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling instant v0.1.12 [INFO] [stderr] Compiling hashbrown v0.14.3 [INFO] [stderr] Compiling scopeguard v1.2.0 [INFO] [stderr] Compiling equivalent v1.0.1 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling block-buffer v0.9.0 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling unicode-normalization v0.1.23 [INFO] [stderr] Compiling percent-encoding v2.3.1 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling toml_datetime v0.6.5 [INFO] [stderr] Compiling winnow v0.5.40 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling parking_lot v0.11.2 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling sha2 v0.9.9 [INFO] [stderr] Compiling unicode-xid v0.2.4 [INFO] [stderr] Compiling libsecp256k1-core v0.2.2 [INFO] [stderr] Compiling which v4.4.2 [INFO] [stderr] Compiling tempfile v3.9.0 [INFO] [stderr] Compiling indexmap v2.2.5 [INFO] [stderr] Compiling static_assertions v1.1.0 [INFO] [stderr] Compiling idna v0.5.0 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Compiling data-encoding v2.5.0 [INFO] [stderr] Compiling pin-project-internal v0.4.30 [INFO] [stderr] Compiling crypto-mac v0.8.0 [INFO] [stderr] Compiling crossbeam-utils v0.8.19 [INFO] [stderr] Compiling libsecp256k1-gen-ecmult v0.2.1 [INFO] [stderr] Compiling libsecp256k1-gen-genmult v0.2.1 [INFO] [stderr] Compiling hmac v0.8.1 [INFO] [stderr] Compiling signature v1.6.4 [INFO] [stderr] Compiling arrayref v0.3.7 [INFO] [stderr] Compiling base64 v0.12.3 [INFO] [stderr] Compiling hmac-drbg v0.3.0 [INFO] [stderr] Compiling ed25519 v1.5.3 [INFO] [stderr] Compiling bs58 v0.4.0 [INFO] [stderr] Compiling prost-build v0.8.0 [INFO] [stderr] Compiling url v2.5.0 [INFO] [stderr] Compiling futures-timer v3.0.3 [INFO] [stderr] Compiling asn1_der v0.7.6 [INFO] [stderr] Compiling libsecp256k1 v0.5.0 [INFO] [stderr] Compiling void v1.0.2 [INFO] [stderr] Compiling parking v2.2.0 [INFO] [stderr] Compiling getrandom v0.2.12 [INFO] [stderr] Compiling io-lifetimes v1.0.11 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling concurrent-queue v2.4.0 [INFO] [stderr] Compiling polling v2.8.0 [INFO] [stderr] Compiling toml_edit v0.19.15 [INFO] [stderr] Compiling event-listener v2.5.3 [INFO] [stderr] Compiling event-listener v4.0.3 [INFO] [stderr] Compiling rustix v0.37.27 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling synstructure v0.12.6 [INFO] [stderr] Compiling async-io v1.13.0 [INFO] [stderr] Compiling tracing-core v0.1.32 [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.92 [INFO] [stderr] Compiling event-listener-strategy v0.4.0 [INFO] [stderr] Compiling waker-fn v1.1.1 [INFO] [stderr] Compiling linux-raw-sys v0.3.8 [INFO] [stderr] Compiling fastrand v1.9.0 [INFO] [stderr] Compiling async-lock v3.3.0 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling futures-lite v2.2.0 [INFO] [stderr] Compiling futures-lite v1.13.0 [INFO] [stderr] Compiling async-lock v2.8.0 [INFO] [stderr] Compiling event-listener v5.2.0 [INFO] [stderr] Compiling socket2 v0.4.10 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling ucd-trie v0.1.6 [INFO] [stderr] Compiling event-listener-strategy v0.5.0 [INFO] [stderr] Compiling atomic-waker v1.1.2 [INFO] [stderr] Compiling async-trait v0.1.76 [INFO] [stderr] Compiling ipnet v2.9.0 [INFO] [stderr] Compiling pkg-config v0.3.30 [INFO] [stderr] Compiling async-task v4.7.0 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Compiling bumpalo v3.15.4 [INFO] [stderr] Compiling piper v0.2.1 [INFO] [stderr] Compiling async-channel v2.2.0 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.92 [INFO] [stderr] Compiling quick-error v1.2.3 [INFO] [stderr] Compiling crc32fast v1.4.0 [INFO] [stderr] Compiling proc-macro-crate v1.3.1 [INFO] [stderr] Compiling async-executor v1.8.0 [INFO] [stderr] Compiling aho-corasick v1.1.2 [INFO] [stderr] Compiling blocking v1.5.1 [INFO] [stderr] Compiling ahash v0.7.8 [INFO] [stderr] Compiling wasm-bindgen v0.2.92 [INFO] [stderr] Compiling regex-syntax v0.8.2 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Compiling adler v1.0.2 [INFO] [stderr] Compiling match_cfg v0.1.0 [INFO] [stderr] Compiling matches v0.1.10 [INFO] [stderr] Compiling miniz_oxide v0.7.1 [INFO] [stderr] Compiling idna v0.2.3 [INFO] [stderr] Compiling hostname v0.3.1 [INFO] [stderr] Compiling async-channel v1.9.0 [INFO] [stderr] Compiling kv-log-macro v1.0.7 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling linked-hash-map v0.5.6 [INFO] [stderr] Compiling httparse v1.8.0 [INFO] [stderr] Compiling base64 v0.13.1 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.92 [INFO] [stderr] Compiling lru-cache v0.1.2 [INFO] [stderr] Compiling libz-sys v1.1.15 [INFO] [stderr] Compiling resolv-conf v0.7.0 [INFO] [stderr] Compiling nohash-hasher v0.2.0 [INFO] [stderr] Compiling nodrop v0.1.14 [INFO] [stderr] Compiling if-watch v0.2.2 [INFO] [stderr] Compiling generic-array v0.8.4 [INFO] [stderr] Compiling hashbrown v0.11.2 [INFO] [stderr] Compiling webpki v0.21.4 [INFO] [stderr] Compiling sct v0.6.1 [INFO] [stderr] Compiling rustls v0.19.1 [INFO] [stderr] Compiling futures-macro v0.3.30 [INFO] [stderr] Compiling thiserror-impl v1.0.55 [INFO] [stderr] Compiling serde_derive v1.0.193 [INFO] [stderr] Compiling zeroize_derive v1.4.2 [INFO] [stderr] Compiling pin-project-internal v1.1.5 [INFO] [stderr] Compiling regex-automata v0.4.6 [INFO] [stderr] Compiling prost-derive v0.8.0 [INFO] [stderr] Compiling multihash-derive v0.7.2 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.92 [INFO] [stderr] Compiling enum-as-inner v0.3.4 [INFO] [stderr] Compiling zeroize v1.3.0 [INFO] [stderr] Compiling futures-util v0.3.30 [INFO] [stderr] Compiling curve25519-dalek v3.2.1 [INFO] [stderr] Compiling polling v3.4.0 [INFO] [stderr] Compiling flate2 v1.0.28 [INFO] [stderr] Compiling async-io v2.3.2 [INFO] [stderr] Compiling minicbor-derive v0.6.4 [INFO] [stderr] Compiling tokio-macros v2.2.0 [INFO] [stderr] Compiling pin-project v1.1.5 [INFO] [stderr] Compiling sha-1 v0.9.8 [INFO] [stderr] Compiling cipher v0.3.0 [INFO] [stderr] Compiling mio v0.8.11 [INFO] [stderr] Compiling socket2 v0.5.6 [INFO] [stderr] Compiling pest v2.7.8 [INFO] [stderr] Compiling bytes v0.5.6 [INFO] [stderr] Compiling async-global-executor v2.4.1 [INFO] [stderr] Compiling js-sys v0.3.69 [INFO] [stderr] Compiling regex v1.10.3 [INFO] [stderr] Compiling keccak v0.1.5 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling pin-project-lite v0.1.12 [INFO] [stderr] Compiling async-std v1.12.0 [INFO] [stderr] Compiling quicksink v0.1.2 [INFO] [stderr] Compiling pin-project v0.4.30 [INFO] [stderr] Compiling tokio v1.34.0 [INFO] [stderr] Compiling prost v0.8.0 [INFO] [stderr] Compiling sha3 v0.9.1 [INFO] [stderr] Compiling uint v0.9.5 [INFO] [stderr] Compiling x25519-dalek v1.2.0 [INFO] [stderr] Compiling prost-types v0.8.0 [INFO] [stderr] Compiling salsa20 v0.8.1 [INFO] [stderr] Compiling semver-parser v0.10.2 [INFO] [stderr] Compiling futures-rustls v0.21.1 [INFO] [stderr] Compiling lru v0.6.6 [INFO] [stderr] Compiling webpki-roots v0.21.1 [INFO] [stderr] Compiling dns-parser v0.8.0 [INFO] [stderr] Compiling cuckoofilter v0.5.0 [INFO] [stderr] Compiling if-addrs v0.6.7 [INFO] [stderr] Compiling is-terminal v0.4.12 [INFO] [stderr] Compiling humantime v2.1.0 [INFO] [stderr] Compiling termcolor v1.4.1 [INFO] [stderr] Compiling serde_json v1.0.109 [INFO] [stderr] Compiling semver v0.11.0 [INFO] [stderr] Compiling futures-executor v0.3.30 [INFO] [stderr] Compiling asynchronous-codec v0.6.2 [INFO] [stderr] Compiling trust-dns-proto v0.20.4 [INFO] [stderr] Compiling rustc_version v0.3.3 [INFO] [stderr] Compiling parity-send-wrapper v0.1.0 [INFO] [stderr] Compiling futures v0.3.30 [INFO] [stderr] Compiling unsigned-varint v0.7.2 [INFO] [stderr] Compiling rw-stream-sink v0.2.1 [INFO] [stderr] Compiling wasm-timer v0.2.5 [INFO] [stderr] Compiling yamux v0.9.0 [INFO] [stderr] Compiling soketto v0.4.2 [INFO] [stderr] Compiling byte-tools v0.2.0 [INFO] [stderr] Compiling multihash v0.14.0 [INFO] [stderr] Compiling multistream-select v0.10.4 [INFO] [stderr] Compiling minicbor v0.8.1 [INFO] [stderr] Compiling snow v0.8.0 [INFO] [stderr] Compiling arrayvec v0.5.2 [INFO] [stderr] Compiling hex_fmt v0.3.0 [INFO] [stderr] Compiling block-buffer v0.2.0 [INFO] [stderr] Compiling libp2p-pnet v0.21.0 [INFO] [stderr] Compiling env_logger v0.10.2 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling libp2p-swarm-derive v0.24.0 [INFO] [stderr] Compiling digest v0.6.1 [INFO] [stderr] Compiling itoa v1.0.11 [INFO] [stderr] Compiling atomic v0.5.3 [INFO] [stderr] Compiling iana-time-zone v0.1.60 [INFO] [stderr] Compiling ryu v1.0.18 [INFO] [stderr] Compiling fake-simd v0.1.2 [INFO] [stderr] Compiling sha2 v0.6.0 [INFO] [stderr] Compiling chrono v0.4.38 [INFO] [stderr] Compiling pretty_env_logger v0.5.0 [INFO] [stderr] Compiling num-bigint v0.4.5 [INFO] [stderr] Compiling trust-dns-resolver v0.20.4 [INFO] [stderr] Compiling libp2p-core v0.29.0 [INFO] [stderr] Compiling libp2p-noise v0.32.0 [INFO] [stderr] Compiling libp2p-relay v0.3.0 [INFO] [stderr] Compiling libp2p-plaintext v0.29.0 [INFO] [stderr] Compiling libp2p-gossipsub v0.32.0 [INFO] [stderr] Compiling libp2p-identify v0.30.0 [INFO] [stderr] Compiling libp2p-kad v0.31.0 [INFO] [stderr] Compiling libp2p-floodsub v0.30.0 [INFO] [stderr] Compiling async-std-resolver v0.20.4 [INFO] [stderr] Compiling wasm-bindgen-futures v0.4.42 [INFO] [stderr] Compiling multiaddr v0.13.0 [INFO] [stderr] Compiling ed25519-dalek v1.0.1 [INFO] [stderr] Compiling uuid v0.8.2 [INFO] [stderr] Compiling libp2p-swarm v0.30.0 [INFO] [stderr] Compiling libp2p-uds v0.29.0 [INFO] [stderr] Compiling libp2p-websocket v0.30.0 [INFO] [stderr] Compiling libp2p-yamux v0.33.0 [INFO] [stderr] Compiling libp2p-dns v0.29.0 [INFO] [stderr] Compiling libp2p-mplex v0.29.0 [INFO] [stderr] Compiling libp2p-deflate v0.29.0 [INFO] [stderr] Compiling libp2p-wasm-ext v0.29.0 [INFO] [stderr] Compiling libp2p-tcp v0.29.0 [INFO] [stderr] Compiling libp2p-mdns v0.31.0 [INFO] [stderr] Compiling libp2p-ping v0.30.0 [INFO] [stderr] Compiling libp2p-request-response v0.12.0 [INFO] [stderr] Compiling libp2p v0.39.1 [INFO] [stderr] Compiling my-blockchain v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `error` and `warn` [INFO] [stdout] --> src/main.rs:10:11 [INFO] [stdout] | [INFO] [stdout] 10 | use log::{error, info, warn}; [INFO] [stdout] | ^^^^^ ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `process::exit` [INFO] [stdout] --> src/main.rs:11:11 [INFO] [stdout] | [INFO] [stdout] 11 | use std::{process::exit, time::Duration}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log::warn` [INFO] [stdout] --> src/mempool.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use log::warn; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ed25519::Error` [INFO] [stdout] --> src/util.rs:1:21 [INFO] [stdout] | [INFO] [stdout] 1 | use ed25519_dalek::{ed25519::Error, PublicKey, Signature, Verifier}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log::warn` [INFO] [stdout] --> src/util.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use log::warn; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/blockchain.rs:137:13 [INFO] [stdout] | [INFO] [stdout] 136 | todo!(), // self.mempool.transactions.clone(), [INFO] [stdout] | ------- any code following this expression is unreachable [INFO] [stdout] 137 | self.get_difficulty(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/blockchain.rs:178:13 [INFO] [stdout] | [INFO] [stdout] 177 | todo!(), // self.stakes.get_balance(&block.validator).clone(), [INFO] [stdout] | ------- any code following this expression is unreachable [INFO] [stdout] 178 | block.difficulty, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ unreachable expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/blockchain.rs:187:9 [INFO] [stdout] | [INFO] [stdout] 151 | return false; [INFO] [stdout] | ------------ any code following this expression is unreachable [INFO] [stdout] ... [INFO] [stdout] 187 | self.add_new_block(block); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::prelude` [INFO] [stdout] --> src/blockchain.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use chrono::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `txn` [INFO] [stdout] --> src/blockchain.rs:50:33 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn txn_exist(&mut self, txn: &Transaction) -> bool { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_txn` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `txn` [INFO] [stdout] --> src/blockchain.rs:54:31 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn add_txn(&mut self, txn: Transaction) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_txn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `public_key` [INFO] [stdout] --> src/blockchain.rs:297:35 [INFO] [stdout] | [INFO] [stdout] 297 | pub fn get_balance(&mut self, public_key: &String) -> &f64 { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_public_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `response_rcv` [INFO] [stdout] --> src/main.rs:48:31 [INFO] [stdout] | [INFO] [stdout] 48 | let (response_sender, mut response_rcv) = mpsc::unbounded_channel(); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_response_rcv` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pos_mining_sender` [INFO] [stdout] --> src/main.rs:50:10 [INFO] [stdout] | [INFO] [stdout] 50 | let (pos_mining_sender, mut pos_mining_rcv) = mpsc::unbounded_channel::(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pos_mining_sender` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stdin` [INFO] [stdout] --> src/main.rs:78:13 [INFO] [stdout] | [INFO] [stdout] 78 | let mut stdin = BufReader::new(stdin()).lines(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stdin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:48:27 [INFO] [stdout] | [INFO] [stdout] 48 | let (response_sender, mut response_rcv) = mpsc::unbounded_channel(); [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] --> src/main.rs:78:9 [INFO] [stdout] | [INFO] [stdout] 78 | let mut stdin = BufReader::new(stdin()).lines(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/block.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 25 | impl Block { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 26 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BLOCK_GENERATION_INTERVAL_SECONDS` is never used [INFO] [stdout] --> src/blockchain.rs:16:7 [INFO] [stdout] | [INFO] [stdout] 16 | const BLOCK_GENERATION_INTERVAL_SECONDS: usize = 30; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DIFFICULTY_ADJUSTMENT_INTERVAL_BLOCKS` is never used [INFO] [stdout] --> src/blockchain.rs:17:7 [INFO] [stdout] | [INFO] [stdout] 17 | const DIFFICULTY_ADJUSTMENT_INTERVAL_BLOCKS: usize = 2; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `wallet` is never read [INFO] [stdout] --> src/blockchain.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct Blockchain { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 22 | pub wallet: Wallet, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `create_txn`, `get_difficulty`, `create_block`, and `get_balance` are never used [INFO] [stdout] --> src/blockchain.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 28 | impl Blockchain { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 41 | pub fn create_txn( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | pub fn get_difficulty(&mut self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 129 | pub fn create_block(&mut self, timestamp: i64) -> Block { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 297 | pub fn get_balance(&mut self, public_key: &String) -> &f64 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `add_transaction`, `transaction_exists`, and `clear` are never used [INFO] [stdout] --> src/mempool.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl Mempool { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 16 | pub fn add_transaction(&mut self, txn: Transaction) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | pub fn transaction_exists(&mut self, txn: &Transaction) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | pub fn clear(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Input` is never constructed [INFO] [stdout] --> src/p2p.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 37 | pub enum EventType { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] 38 | Input(String), [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `response_sender` and `init_sender` are never read [INFO] [stdout] --> src/p2p.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 44 | pub struct AppBehaviour { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 48 | pub response_sender: mpsc::UnboundedSender, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 49 | #[behaviour(ignore)] [INFO] [stdout] 50 | pub init_sender: mpsc::UnboundedSender, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_print_peers` is never used [INFO] [stdout] --> src/p2p.rs:164:8 [INFO] [stdout] | [INFO] [stdout] 164 | pub fn handle_print_peers(swarm: &Swarm) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_print_chain` is never used [INFO] [stdout] --> src/p2p.rs:169:8 [INFO] [stdout] | [INFO] [stdout] 169 | pub fn handle_print_chain(swarm: &Swarm) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_set_wallet` is never used [INFO] [stdout] --> src/p2p.rs:198:8 [INFO] [stdout] | [INFO] [stdout] 198 | pub fn handle_set_wallet(cmd: &str, swarm: &mut Swarm) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_print_wallet` is never used [INFO] [stdout] --> src/p2p.rs:207:8 [INFO] [stdout] | [INFO] [stdout] 207 | pub fn handle_print_wallet(swarm: &mut Swarm) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_create_txn` is never used [INFO] [stdout] --> src/p2p.rs:219:8 [INFO] [stdout] | [INFO] [stdout] 219 | pub fn handle_create_txn(cmd: &str, swarm: &mut Swarm) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TRANSACTION_FEE` is never used [INFO] [stdout] --> src/transaction.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | pub const TRANSACTION_FEE: f64 = 1.0; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/transaction.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl TransactionInput { [INFO] [stdout] | --------------------- associated function in this implementation [INFO] [stdout] 23 | pub fn new(sender_wallet: &mut Wallet, txn_output: &String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/transaction.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 39 | impl TransactionOutput { [INFO] [stdout] | ---------------------- associated function in this implementation [INFO] [stdout] 40 | pub fn new(to: String, amount: f64, fee: f64) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/transaction.rs:64:19 [INFO] [stdout] | [INFO] [stdout] 64 | DecodeJsonErr(serde_json::Error), [INFO] [stdout] | ------------- ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 64 - DecodeJsonErr(serde_json::Error), [INFO] [stdout] 64 + DecodeJsonErr(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `VerifySigErr` is never constructed [INFO] [stdout] --> src/transaction.rs:65:5 [INFO] [stdout] | [INFO] [stdout] 63 | pub enum VerifyTxnError { [INFO] [stdout] | -------------- variant in this enum [INFO] [stdout] 64 | DecodeJsonErr(serde_json::Error), [INFO] [stdout] 65 | VerifySigErr(VerifySigErr), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/transaction.rs:69:12 [INFO] [stdout] | [INFO] [stdout] 68 | impl Transaction { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 69 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/util.rs:10:20 [INFO] [stdout] | [INFO] [stdout] 10 | DecodeStrError(FromHexError), [INFO] [stdout] | -------------- ^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 10 - DecodeStrError(FromHexError), [INFO] [stdout] 10 + DecodeStrError(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/util.rs:11:20 [INFO] [stdout] | [INFO] [stdout] 11 | DecodeHexError(ed25519_dalek::ed25519::Error), [INFO] [stdout] | -------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 11 - DecodeHexError(ed25519_dalek::ed25519::Error), [INFO] [stdout] 11 + DecodeHexError(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `id` is never used [INFO] [stdout] --> src/util.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 26 | impl Util { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 27 | pub fn id() -> Uuid { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `generate_wallet`, `get_keypair`, `get_wallet`, `sign`, `get_public_key`, and `get_balance` are never used [INFO] [stdout] --> src/wallet.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl Wallet { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn generate_wallet() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | fn get_keypair(keypair_str: &String) -> Keypair { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn get_wallet(keypair: String) -> Wallet { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn sign(&mut self, data_hash: &String) -> String { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | pub fn get_public_key(&mut self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn get_balance<'a>(&mut self, blockchain: &'a mut Blockchain) -> &'a f64 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 08s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: snow v0.8.0 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "215179d7f63161608e8275b68f8624fe03b24424b2607937634c99617d43e722", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "215179d7f63161608e8275b68f8624fe03b24424b2607937634c99617d43e722", kill_on_drop: false }` [INFO] [stdout] 215179d7f63161608e8275b68f8624fe03b24424b2607937634c99617d43e722 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--no-run" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] e72cb3311dafb1567c8fd554ca8a2d147dbeeb8b3b968f2db6814c0a84dd98a6 [INFO] running `Command { std: "docker" "start" "-a" "e72cb3311dafb1567c8fd554ca8a2d147dbeeb8b3b968f2db6814c0a84dd98a6", kill_on_drop: false }` [INFO] [stderr] Compiling my-blockchain v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `error` and `warn` [INFO] [stdout] --> src/main.rs:10:11 [INFO] [stdout] | [INFO] [stdout] 10 | use log::{error, info, warn}; [INFO] [stdout] | ^^^^^ ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `process::exit` [INFO] [stdout] --> src/main.rs:11:11 [INFO] [stdout] | [INFO] [stdout] 11 | use std::{process::exit, time::Duration}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log::warn` [INFO] [stdout] --> src/mempool.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use log::warn; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ed25519::Error` [INFO] [stdout] --> src/util.rs:1:21 [INFO] [stdout] | [INFO] [stdout] 1 | use ed25519_dalek::{ed25519::Error, PublicKey, Signature, Verifier}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log::warn` [INFO] [stdout] --> src/util.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use log::warn; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/blockchain.rs:137:13 [INFO] [stdout] | [INFO] [stdout] 136 | todo!(), // self.mempool.transactions.clone(), [INFO] [stdout] | ------- any code following this expression is unreachable [INFO] [stdout] 137 | self.get_difficulty(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/blockchain.rs:178:13 [INFO] [stdout] | [INFO] [stdout] 177 | todo!(), // self.stakes.get_balance(&block.validator).clone(), [INFO] [stdout] | ------- any code following this expression is unreachable [INFO] [stdout] 178 | block.difficulty, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ unreachable expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/blockchain.rs:187:9 [INFO] [stdout] | [INFO] [stdout] 151 | return false; [INFO] [stdout] | ------------ any code following this expression is unreachable [INFO] [stdout] ... [INFO] [stdout] 187 | self.add_new_block(block); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::prelude` [INFO] [stdout] --> src/blockchain.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use chrono::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `txn` [INFO] [stdout] --> src/blockchain.rs:50:33 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn txn_exist(&mut self, txn: &Transaction) -> bool { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_txn` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `txn` [INFO] [stdout] --> src/blockchain.rs:54:31 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn add_txn(&mut self, txn: Transaction) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_txn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `public_key` [INFO] [stdout] --> src/blockchain.rs:297:35 [INFO] [stdout] | [INFO] [stdout] 297 | pub fn get_balance(&mut self, public_key: &String) -> &f64 { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_public_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `response_rcv` [INFO] [stdout] --> src/main.rs:48:31 [INFO] [stdout] | [INFO] [stdout] 48 | let (response_sender, mut response_rcv) = mpsc::unbounded_channel(); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_response_rcv` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pos_mining_sender` [INFO] [stdout] --> src/main.rs:50:10 [INFO] [stdout] | [INFO] [stdout] 50 | let (pos_mining_sender, mut pos_mining_rcv) = mpsc::unbounded_channel::(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pos_mining_sender` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stdin` [INFO] [stdout] --> src/main.rs:78:13 [INFO] [stdout] | [INFO] [stdout] 78 | let mut stdin = BufReader::new(stdin()).lines(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stdin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:48:27 [INFO] [stdout] | [INFO] [stdout] 48 | let (response_sender, mut response_rcv) = mpsc::unbounded_channel(); [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] --> src/main.rs:78:9 [INFO] [stdout] | [INFO] [stdout] 78 | let mut stdin = BufReader::new(stdin()).lines(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/block.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 25 | impl Block { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 26 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BLOCK_GENERATION_INTERVAL_SECONDS` is never used [INFO] [stdout] --> src/blockchain.rs:16:7 [INFO] [stdout] | [INFO] [stdout] 16 | const BLOCK_GENERATION_INTERVAL_SECONDS: usize = 30; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DIFFICULTY_ADJUSTMENT_INTERVAL_BLOCKS` is never used [INFO] [stdout] --> src/blockchain.rs:17:7 [INFO] [stdout] | [INFO] [stdout] 17 | const DIFFICULTY_ADJUSTMENT_INTERVAL_BLOCKS: usize = 2; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `wallet` is never read [INFO] [stdout] --> src/blockchain.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct Blockchain { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 22 | pub wallet: Wallet, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `create_txn`, `get_difficulty`, `create_block`, and `get_balance` are never used [INFO] [stdout] --> src/blockchain.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 28 | impl Blockchain { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 41 | pub fn create_txn( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | pub fn get_difficulty(&mut self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 129 | pub fn create_block(&mut self, timestamp: i64) -> Block { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 297 | pub fn get_balance(&mut self, public_key: &String) -> &f64 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `add_transaction`, `transaction_exists`, and `clear` are never used [INFO] [stdout] --> src/mempool.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl Mempool { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 16 | pub fn add_transaction(&mut self, txn: Transaction) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | pub fn transaction_exists(&mut self, txn: &Transaction) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | pub fn clear(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Input` is never constructed [INFO] [stdout] --> src/p2p.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 37 | pub enum EventType { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] 38 | Input(String), [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `response_sender` and `init_sender` are never read [INFO] [stdout] --> src/p2p.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 44 | pub struct AppBehaviour { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 48 | pub response_sender: mpsc::UnboundedSender, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 49 | #[behaviour(ignore)] [INFO] [stdout] 50 | pub init_sender: mpsc::UnboundedSender, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_print_peers` is never used [INFO] [stdout] --> src/p2p.rs:164:8 [INFO] [stdout] | [INFO] [stdout] 164 | pub fn handle_print_peers(swarm: &Swarm) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_print_chain` is never used [INFO] [stdout] --> src/p2p.rs:169:8 [INFO] [stdout] | [INFO] [stdout] 169 | pub fn handle_print_chain(swarm: &Swarm) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_set_wallet` is never used [INFO] [stdout] --> src/p2p.rs:198:8 [INFO] [stdout] | [INFO] [stdout] 198 | pub fn handle_set_wallet(cmd: &str, swarm: &mut Swarm) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_print_wallet` is never used [INFO] [stdout] --> src/p2p.rs:207:8 [INFO] [stdout] | [INFO] [stdout] 207 | pub fn handle_print_wallet(swarm: &mut Swarm) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_create_txn` is never used [INFO] [stdout] --> src/p2p.rs:219:8 [INFO] [stdout] | [INFO] [stdout] 219 | pub fn handle_create_txn(cmd: &str, swarm: &mut Swarm) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TRANSACTION_FEE` is never used [INFO] [stdout] --> src/transaction.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | pub const TRANSACTION_FEE: f64 = 1.0; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/transaction.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl TransactionInput { [INFO] [stdout] | --------------------- associated function in this implementation [INFO] [stdout] 23 | pub fn new(sender_wallet: &mut Wallet, txn_output: &String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/transaction.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 39 | impl TransactionOutput { [INFO] [stdout] | ---------------------- associated function in this implementation [INFO] [stdout] 40 | pub fn new(to: String, amount: f64, fee: f64) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/transaction.rs:64:19 [INFO] [stdout] | [INFO] [stdout] 64 | DecodeJsonErr(serde_json::Error), [INFO] [stdout] | ------------- ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 64 - DecodeJsonErr(serde_json::Error), [INFO] [stdout] 64 + DecodeJsonErr(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `VerifySigErr` is never constructed [INFO] [stdout] --> src/transaction.rs:65:5 [INFO] [stdout] | [INFO] [stdout] 63 | pub enum VerifyTxnError { [INFO] [stdout] | -------------- variant in this enum [INFO] [stdout] 64 | DecodeJsonErr(serde_json::Error), [INFO] [stdout] 65 | VerifySigErr(VerifySigErr), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/transaction.rs:69:12 [INFO] [stdout] | [INFO] [stdout] 68 | impl Transaction { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 69 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/util.rs:10:20 [INFO] [stdout] | [INFO] [stdout] 10 | DecodeStrError(FromHexError), [INFO] [stdout] | -------------- ^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 10 - DecodeStrError(FromHexError), [INFO] [stdout] 10 + DecodeStrError(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/util.rs:11:20 [INFO] [stdout] | [INFO] [stdout] 11 | DecodeHexError(ed25519_dalek::ed25519::Error), [INFO] [stdout] | -------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 11 - DecodeHexError(ed25519_dalek::ed25519::Error), [INFO] [stdout] 11 + DecodeHexError(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `id` is never used [INFO] [stdout] --> src/util.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 26 | impl Util { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 27 | pub fn id() -> Uuid { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `generate_wallet`, `get_keypair`, `get_wallet`, `sign`, `get_public_key`, and `get_balance` are never used [INFO] [stdout] --> src/wallet.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl Wallet { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn generate_wallet() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | fn get_keypair(keypair_str: &String) -> Keypair { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn get_wallet(keypair: String) -> Wallet { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn sign(&mut self, data_hash: &String) -> String { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | pub fn get_public_key(&mut self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn get_balance<'a>(&mut self, blockchain: &'a mut Blockchain) -> &'a f64 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 3.61s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: snow v0.8.0 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "e72cb3311dafb1567c8fd554ca8a2d147dbeeb8b3b968f2db6814c0a84dd98a6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e72cb3311dafb1567c8fd554ca8a2d147dbeeb8b3b968f2db6814c0a84dd98a6", kill_on_drop: false }` [INFO] [stdout] e72cb3311dafb1567c8fd554ca8a2d147dbeeb8b3b968f2db6814c0a84dd98a6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 9abee0220b1a923d7911c829973ff4fde86be5769ee10c5e680f8f3c415dce2e [INFO] running `Command { std: "docker" "start" "-a" "9abee0220b1a923d7911c829973ff4fde86be5769ee10c5e680f8f3c415dce2e", kill_on_drop: false }` [INFO] [stderr] warning: unused imports: `error` and `warn` [INFO] [stderr] --> src/main.rs:10:11 [INFO] [stderr] | [INFO] [stderr] 10 | use log::{error, info, warn}; [INFO] [stderr] | ^^^^^ ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `process::exit` [INFO] [stderr] --> src/main.rs:11:11 [INFO] [stderr] | [INFO] [stderr] 11 | use std::{process::exit, time::Duration}; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `log::warn` [INFO] [stderr] --> src/mempool.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use log::warn; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `ed25519::Error` [INFO] [stderr] --> src/util.rs:1:21 [INFO] [stderr] | [INFO] [stderr] 1 | use ed25519_dalek::{ed25519::Error, PublicKey, Signature, Verifier}; [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `log::warn` [INFO] [stderr] --> src/util.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use log::warn; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unreachable expression [INFO] [stderr] --> src/blockchain.rs:137:13 [INFO] [stderr] | [INFO] [stderr] 136 | todo!(), // self.mempool.transactions.clone(), [INFO] [stderr] | ------- any code following this expression is unreachable [INFO] [stderr] 137 | self.get_difficulty(), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ unreachable expression [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unreachable_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unreachable expression [INFO] [stderr] --> src/blockchain.rs:178:13 [INFO] [stderr] | [INFO] [stderr] 177 | todo!(), // self.stakes.get_balance(&block.validator).clone(), [INFO] [stderr] | ------- any code following this expression is unreachable [INFO] [stderr] 178 | block.difficulty, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ unreachable expression [INFO] [stderr] [INFO] [stderr] warning: unreachable statement [INFO] [stderr] --> src/blockchain.rs:187:9 [INFO] [stderr] | [INFO] [stderr] 151 | return false; [INFO] [stderr] | ------------ any code following this expression is unreachable [INFO] [stderr] ... [INFO] [stderr] 187 | self.add_new_block(block); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stderr] [INFO] [stderr] warning: unused import: `chrono::prelude` [INFO] [stderr] --> src/blockchain.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use chrono::prelude::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `txn` [INFO] [stderr] --> src/blockchain.rs:50:33 [INFO] [stderr] | [INFO] [stderr] 50 | pub fn txn_exist(&mut self, txn: &Transaction) -> bool { [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_txn` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `txn` [INFO] [stderr] --> src/blockchain.rs:54:31 [INFO] [stderr] | [INFO] [stderr] 54 | pub fn add_txn(&mut self, txn: Transaction) { [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_txn` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `public_key` [INFO] [stderr] --> src/blockchain.rs:297:35 [INFO] [stderr] | [INFO] [stderr] 297 | pub fn get_balance(&mut self, public_key: &String) -> &f64 { [INFO] [stderr] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_public_key` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `response_rcv` [INFO] [stderr] --> src/main.rs:48:31 [INFO] [stderr] | [INFO] [stderr] 48 | let (response_sender, mut response_rcv) = mpsc::unbounded_channel(); [INFO] [stderr] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_response_rcv` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `pos_mining_sender` [INFO] [stderr] --> src/main.rs:50:10 [INFO] [stderr] | [INFO] [stderr] 50 | let (pos_mining_sender, mut pos_mining_rcv) = mpsc::unbounded_channel::(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pos_mining_sender` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `stdin` [INFO] [stderr] --> src/main.rs:78:13 [INFO] [stderr] | [INFO] [stderr] 78 | let mut stdin = BufReader::new(stdin()).lines(); [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stdin` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/main.rs:48:27 [INFO] [stderr] | [INFO] [stderr] 48 | let (response_sender, mut response_rcv) = mpsc::unbounded_channel(); [INFO] [stderr] | ----^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/main.rs:78:9 [INFO] [stderr] | [INFO] [stderr] 78 | let mut stdin = BufReader::new(stdin()).lines(); [INFO] [stderr] | ----^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: associated function `new` is never used [INFO] [stderr] --> src/block.rs:26:12 [INFO] [stderr] | [INFO] [stderr] 25 | impl Block { [INFO] [stderr] | ---------- associated function in this implementation [INFO] [stderr] 26 | pub fn new( [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: constant `BLOCK_GENERATION_INTERVAL_SECONDS` is never used [INFO] [stderr] --> src/blockchain.rs:16:7 [INFO] [stderr] | [INFO] [stderr] 16 | const BLOCK_GENERATION_INTERVAL_SECONDS: usize = 30; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `DIFFICULTY_ADJUSTMENT_INTERVAL_BLOCKS` is never used [INFO] [stderr] --> src/blockchain.rs:17:7 [INFO] [stderr] | [INFO] [stderr] 17 | const DIFFICULTY_ADJUSTMENT_INTERVAL_BLOCKS: usize = 2; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `wallet` is never read [INFO] [stderr] --> src/blockchain.rs:22:9 [INFO] [stderr] | [INFO] [stderr] 19 | pub struct Blockchain { [INFO] [stderr] | ---------- field in this struct [INFO] [stderr] ... [INFO] [stderr] 22 | pub wallet: Wallet, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated items `create_txn`, `get_difficulty`, `create_block`, and `get_balance` are never used [INFO] [stderr] --> src/blockchain.rs:41:12 [INFO] [stderr] | [INFO] [stderr] 28 | impl Blockchain { [INFO] [stderr] | --------------- associated items in this implementation [INFO] [stderr] ... [INFO] [stderr] 41 | pub fn create_txn( [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 58 | pub fn get_difficulty(&mut self) -> u32 { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 129 | pub fn create_block(&mut self, timestamp: i64) -> Block { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 297 | pub fn get_balance(&mut self, public_key: &String) -> &f64 { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `add_transaction`, `transaction_exists`, and `clear` are never used [INFO] [stderr] --> src/mempool.rs:16:12 [INFO] [stderr] | [INFO] [stderr] 9 | impl Mempool { [INFO] [stderr] | ------------ methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 16 | pub fn add_transaction(&mut self, txn: Transaction) { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 20 | pub fn transaction_exists(&mut self, txn: &Transaction) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 24 | pub fn clear(&mut self) { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variant `Input` is never constructed [INFO] [stderr] --> src/p2p.rs:38:5 [INFO] [stderr] | [INFO] [stderr] 37 | pub enum EventType { [INFO] [stderr] | --------- variant in this enum [INFO] [stderr] 38 | Input(String), [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `response_sender` and `init_sender` are never read [INFO] [stderr] --> src/p2p.rs:48:9 [INFO] [stderr] | [INFO] [stderr] 44 | pub struct AppBehaviour { [INFO] [stderr] | ------------ fields in this struct [INFO] [stderr] ... [INFO] [stderr] 48 | pub response_sender: mpsc::UnboundedSender, [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] 49 | #[behaviour(ignore)] [INFO] [stderr] 50 | pub init_sender: mpsc::UnboundedSender, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `handle_print_peers` is never used [INFO] [stderr] --> src/p2p.rs:164:8 [INFO] [stderr] | [INFO] [stderr] 164 | pub fn handle_print_peers(swarm: &Swarm) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `handle_print_chain` is never used [INFO] [stderr] --> src/p2p.rs:169:8 [INFO] [stderr] | [INFO] [stderr] 169 | pub fn handle_print_chain(swarm: &Swarm) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `handle_set_wallet` is never used [INFO] [stderr] --> src/p2p.rs:198:8 [INFO] [stderr] | [INFO] [stderr] 198 | pub fn handle_set_wallet(cmd: &str, swarm: &mut Swarm) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `handle_print_wallet` is never used [INFO] [stderr] --> src/p2p.rs:207:8 [INFO] [stderr] | [INFO] [stderr] 207 | pub fn handle_print_wallet(swarm: &mut Swarm) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `handle_create_txn` is never used [INFO] [stderr] --> src/p2p.rs:219:8 [INFO] [stderr] | [INFO] [stderr] 219 | pub fn handle_create_txn(cmd: &str, swarm: &mut Swarm) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `TRANSACTION_FEE` is never used [INFO] [stderr] --> src/transaction.rs:7:11 [INFO] [stderr] | [INFO] [stderr] 7 | pub const TRANSACTION_FEE: f64 = 1.0; [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `new` is never used [INFO] [stderr] --> src/transaction.rs:23:12 [INFO] [stderr] | [INFO] [stderr] 22 | impl TransactionInput { [INFO] [stderr] | --------------------- associated function in this implementation [INFO] [stderr] 23 | pub fn new(sender_wallet: &mut Wallet, txn_output: &String) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `new` is never used [INFO] [stderr] --> src/transaction.rs:40:12 [INFO] [stderr] | [INFO] [stderr] 39 | impl TransactionOutput { [INFO] [stderr] | ---------------------- associated function in this implementation [INFO] [stderr] 40 | pub fn new(to: String, amount: f64, fee: f64) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: field `0` is never read [INFO] [stderr] --> src/transaction.rs:64:19 [INFO] [stderr] | [INFO] [stderr] 64 | DecodeJsonErr(serde_json::Error), [INFO] [stderr] | ------------- ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | field in this variant [INFO] [stderr] | [INFO] [stderr] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stderr] | [INFO] [stderr] 64 - DecodeJsonErr(serde_json::Error), [INFO] [stderr] 64 + DecodeJsonErr(()), [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: variant `VerifySigErr` is never constructed [INFO] [stderr] --> src/transaction.rs:65:5 [INFO] [stderr] | [INFO] [stderr] 63 | pub enum VerifyTxnError { [INFO] [stderr] | -------------- variant in this enum [INFO] [stderr] 64 | DecodeJsonErr(serde_json::Error), [INFO] [stderr] 65 | VerifySigErr(VerifySigErr), [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `new` is never used [INFO] [stderr] --> src/transaction.rs:69:12 [INFO] [stderr] | [INFO] [stderr] 68 | impl Transaction { [INFO] [stderr] | ---------------- associated function in this implementation [INFO] [stderr] 69 | pub fn new( [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: field `0` is never read [INFO] [stderr] --> src/util.rs:10:20 [INFO] [stderr] | [INFO] [stderr] 10 | DecodeStrError(FromHexError), [INFO] [stderr] | -------------- ^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | field in this variant [INFO] [stderr] | [INFO] [stderr] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stderr] | [INFO] [stderr] 10 - DecodeStrError(FromHexError), [INFO] [stderr] 10 + DecodeStrError(()), [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: field `0` is never read [INFO] [stderr] --> src/util.rs:11:20 [INFO] [stderr] | [INFO] [stderr] 11 | DecodeHexError(ed25519_dalek::ed25519::Error), [INFO] [stderr] | -------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | field in this variant [INFO] [stderr] | [INFO] [stderr] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stderr] | [INFO] [stderr] 11 - DecodeHexError(ed25519_dalek::ed25519::Error), [INFO] [stderr] 11 + DecodeHexError(()), [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: associated function `id` is never used [INFO] [stderr] --> src/util.rs:27:12 [INFO] [stderr] | [INFO] [stderr] 26 | impl Util { [INFO] [stderr] | --------- associated function in this implementation [INFO] [stderr] 27 | pub fn id() -> Uuid { [INFO] [stderr] | ^^ [INFO] [stderr] [INFO] [stderr] warning: associated items `generate_wallet`, `get_keypair`, `get_wallet`, `sign`, `get_public_key`, and `get_balance` are never used [INFO] [stderr] --> src/wallet.rs:23:12 [INFO] [stderr] | [INFO] [stderr] 12 | impl Wallet { [INFO] [stderr] | ----------- associated items in this implementation [INFO] [stderr] ... [INFO] [stderr] 23 | pub fn generate_wallet() { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 31 | fn get_keypair(keypair_str: &String) -> Keypair { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 36 | pub fn get_wallet(keypair: String) -> Wallet { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 40 | pub fn sign(&mut self, data_hash: &String) -> String { [INFO] [stderr] | ^^^^ [INFO] [stderr] ... [INFO] [stderr] 44 | pub fn get_public_key(&mut self) -> String { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 48 | pub fn get_balance<'a>(&mut self, blockchain: &'a mut Blockchain) -> &'a f64 { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `my-blockchain` (bin "my-blockchain" test) generated 40 warnings (run `cargo fix --bin "my-blockchain" --tests` to apply 7 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.35s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: snow v0.8.0 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/my_blockchain-1d71be0845debc58) [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/x86_64-unknown-linux-musl/debug/deps/my_blockchain-4a06ec90cb5e3f9e) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "9abee0220b1a923d7911c829973ff4fde86be5769ee10c5e680f8f3c415dce2e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9abee0220b1a923d7911c829973ff4fde86be5769ee10c5e680f8f3c415dce2e", kill_on_drop: false }` [INFO] [stdout] 9abee0220b1a923d7911c829973ff4fde86be5769ee10c5e680f8f3c415dce2e