[INFO] cloning repository https://github.com/LIPUU/runchain [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/LIPUU/runchain" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLIPUU%2Frunchain", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLIPUU%2Frunchain'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 6cd863c84d2af674cebc242762ba6fc92e9b8c0f [INFO] testing LIPUU/runchain against 1.85.0 for beta-1.86-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLIPUU%2Frunchain" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/LIPUU/runchain on toolchain 1.85.0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.85.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/LIPUU/runchain [INFO] finished tweaking git repo https://github.com/LIPUU/runchain [INFO] tweaked toml for git repo https://github.com/LIPUU/runchain written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/LIPUU/runchain 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" "+1.85.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded ed25519 v1.4.1 [INFO] [stderr] Downloaded rs_merkle v1.2.0 [INFO] [stderr] Downloaded chacha20poly1305 v0.8.2 [INFO] [stderr] Downloaded chacha20 v0.7.3 [INFO] [stderr] Downloaded micromath v2.0.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+1.85.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 94b43b55f31676d9d3af8dd0d738e09d3707e3f026cb012fda51530d80183572 [INFO] running `Command { std: "docker" "start" "-a" "94b43b55f31676d9d3af8dd0d738e09d3707e3f026cb012fda51530d80183572", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "94b43b55f31676d9d3af8dd0d738e09d3707e3f026cb012fda51530d80183572", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "94b43b55f31676d9d3af8dd0d738e09d3707e3f026cb012fda51530d80183572", kill_on_drop: false }` [INFO] [stdout] 94b43b55f31676d9d3af8dd0d738e09d3707e3f026cb012fda51530d80183572 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+1.85.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0f3fa1b87a6a7b15dd64828612fe95dc7c6d856212655519b9f827273d08e34a [INFO] running `Command { std: "docker" "start" "-a" "0f3fa1b87a6a7b15dd64828612fe95dc7c6d856212655519b9f827273d08e34a", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.37 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling syn v1.0.91 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling libc v0.2.123 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling typenum v1.15.0 [INFO] [stderr] Compiling fastrand v1.7.0 [INFO] [stderr] Compiling futures-core v0.3.21 [INFO] [stderr] Compiling either v1.6.1 [INFO] [stderr] Compiling log v0.4.16 [INFO] [stderr] Compiling anyhow v1.0.56 [INFO] [stderr] Compiling futures-io v0.3.21 [INFO] [stderr] Compiling pin-project-lite v0.2.8 [INFO] [stderr] Compiling slab v0.4.6 [INFO] [stderr] Compiling bytes v1.1.0 [INFO] [stderr] Compiling itertools v0.10.3 [INFO] [stderr] Compiling hashbrown v0.11.2 [INFO] [stderr] Compiling unicode-segmentation v1.9.0 [INFO] [stderr] Compiling remove_dir_all v0.5.3 [INFO] [stderr] Compiling regex-syntax v0.6.25 [INFO] [stderr] Compiling fixedbitset v0.4.1 [INFO] [stderr] Compiling generic-array v0.14.5 [INFO] [stderr] Compiling value-bag v1.0.0-alpha.8 [INFO] [stderr] Compiling once_cell v1.10.0 [INFO] [stderr] Compiling multimap v0.8.3 [INFO] [stderr] Compiling indexmap v1.8.1 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Compiling cc v1.0.73 [INFO] [stderr] Compiling futures-task v0.3.21 [INFO] [stderr] Compiling futures-channel v0.3.21 [INFO] [stderr] Compiling futures-sink v0.3.21 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling futures-util v0.3.21 [INFO] [stderr] Compiling ppv-lite86 v0.2.16 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling aho-corasick v0.7.18 [INFO] [stderr] Compiling smallvec v1.8.0 [INFO] [stderr] Compiling which v4.2.5 [INFO] [stderr] Compiling tempfile v3.3.0 [INFO] [stderr] Compiling num_cpus v1.13.1 [INFO] [stderr] Compiling getrandom v0.2.6 [INFO] [stderr] Compiling block-padding v0.2.1 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling prost-build v0.9.0 [INFO] [stderr] Compiling quote v1.0.18 [INFO] [stderr] Compiling subtle v2.4.1 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling lock_api v0.4.7 [INFO] [stderr] Compiling opaque-debug v0.3.0 [INFO] [stderr] Compiling cpufeatures v0.2.2 [INFO] [stderr] Compiling petgraph v0.6.0 [INFO] [stderr] Compiling crunchy v0.2.2 [INFO] [stderr] Compiling tinyvec_macros v0.1.0 [INFO] [stderr] Compiling tinyvec v1.5.1 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling serde_derive v1.0.136 [INFO] [stderr] Compiling serde v1.0.136 [INFO] [stderr] Compiling untrusted v0.7.1 [INFO] [stderr] Compiling spin v0.5.2 [INFO] [stderr] Compiling parking_lot_core v0.8.5 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling matches v0.1.9 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Compiling unicode-normalization v0.1.19 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling instant v0.1.12 [INFO] [stderr] Compiling unicode-bidi v0.3.7 [INFO] [stderr] Compiling regex v1.5.5 [INFO] [stderr] Compiling percent-encoding v2.1.0 [INFO] [stderr] Compiling block-buffer v0.9.0 [INFO] [stderr] Compiling libsecp256k1-core v0.3.0 [INFO] [stderr] Compiling form_urlencoded v1.0.1 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling sha2 v0.9.9 [INFO] [stderr] Compiling parking_lot v0.11.2 [INFO] [stderr] Compiling crypto-mac v0.8.0 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling pin-project-internal v0.4.29 [INFO] [stderr] Compiling base64 v0.13.0 [INFO] [stderr] Compiling data-encoding v2.3.2 [INFO] [stderr] Compiling static_assertions v1.1.0 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling arrayref v0.3.6 [INFO] [stderr] Compiling idna v0.2.3 [INFO] [stderr] Compiling hmac v0.8.1 [INFO] [stderr] Compiling signature v1.5.0 [INFO] [stderr] Compiling hmac-drbg v0.3.0 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling bs58 v0.4.0 [INFO] [stderr] Compiling asn1_der v0.7.5 [INFO] [stderr] Compiling ed25519 v1.4.1 [INFO] [stderr] Compiling futures-timer v3.0.2 [INFO] [stderr] Compiling void v1.0.2 [INFO] [stderr] Compiling cache-padded v1.2.0 [INFO] [stderr] Compiling parking v2.0.0 [INFO] [stderr] Compiling waker-fn v1.1.0 [INFO] [stderr] Compiling concurrent-queue v1.2.2 [INFO] [stderr] Compiling url v2.2.2 [INFO] [stderr] Compiling futures-lite v1.12.0 [INFO] [stderr] Compiling crossbeam-utils v0.8.8 [INFO] [stderr] Compiling libsecp256k1-gen-genmult v0.3.0 [INFO] [stderr] Compiling libsecp256k1-gen-ecmult v0.3.0 [INFO] [stderr] Compiling socket2 v0.4.4 [INFO] [stderr] Compiling event-listener v2.5.2 [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.80 [INFO] [stderr] Compiling libsecp256k1 v0.7.0 [INFO] [stderr] Compiling ahash v0.7.6 [INFO] [stderr] Compiling ucd-trie v0.1.3 [INFO] [stderr] Compiling pkg-config v0.3.25 [INFO] [stderr] Compiling async-task v4.2.0 [INFO] [stderr] Compiling pest v2.1.3 [INFO] [stderr] Compiling ipnet v2.4.0 [INFO] [stderr] Compiling async-trait v0.1.53 [INFO] [stderr] Compiling bumpalo v3.9.1 [INFO] [stderr] Compiling async-channel v1.6.1 [INFO] [stderr] Compiling atomic-waker v1.0.0 [INFO] [stderr] Compiling quick-error v1.2.3 [INFO] [stderr] Compiling crc32fast v1.3.2 [INFO] [stderr] Compiling blocking v1.2.0 [INFO] [stderr] Compiling async-executor v1.4.1 [INFO] [stderr] Compiling async-mutex v1.4.0 [INFO] [stderr] Compiling libz-sys v1.1.5 [INFO] [stderr] Compiling memoffset v0.6.5 [INFO] [stderr] Compiling wasm-bindgen v0.2.80 [INFO] [stderr] Compiling match_cfg v0.1.0 [INFO] [stderr] Compiling parking_lot_core v0.9.2 [INFO] [stderr] Compiling adler v1.0.2 [INFO] [stderr] Compiling toml v0.5.9 [INFO] [stderr] Compiling semver-parser v0.10.2 [INFO] [stderr] Compiling heck v0.4.0 [INFO] [stderr] Compiling miniz_oxide v0.5.1 [INFO] [stderr] Compiling hostname v0.3.1 [INFO] [stderr] Compiling async-lock v2.5.0 [INFO] [stderr] Compiling crossbeam-epoch v0.9.8 [INFO] [stderr] Compiling linked-hash-map v0.5.4 [INFO] [stderr] Compiling httparse v1.7.0 [INFO] [stderr] Compiling resolv-conf v0.7.0 [INFO] [stderr] Compiling lru-cache v0.1.2 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling nohash-hasher v0.2.0 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling stable_deref_trait v1.2.0 [INFO] [stderr] Compiling arrayvec v0.5.2 [INFO] [stderr] Compiling rayon-core v1.9.2 [INFO] [stderr] Compiling semver v0.11.0 [INFO] [stderr] Compiling lru v0.6.6 [INFO] [stderr] Compiling flate2 v1.0.23 [INFO] [stderr] Compiling owning_ref v0.4.1 [INFO] [stderr] Compiling synstructure v0.12.6 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.80 [INFO] [stderr] Compiling rustc_version v0.3.3 [INFO] [stderr] Compiling uint v0.9.3 [INFO] [stderr] Compiling parking_lot v0.12.0 [INFO] [stderr] Compiling sha-1 v0.9.8 [INFO] [stderr] Compiling block-buffer v0.10.2 [INFO] [stderr] Compiling crypto-common v0.1.3 [INFO] [stderr] Compiling cipher v0.3.0 [INFO] [stderr] Compiling signal-hook-registry v1.4.0 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling webpki v0.21.4 [INFO] [stderr] Compiling sct v0.6.1 [INFO] [stderr] Compiling atomic v0.5.1 [INFO] [stderr] Compiling itoa v0.4.8 [INFO] [stderr] Compiling snow v0.8.0 [INFO] [stderr] Compiling pin-project-lite v0.1.12 [INFO] [stderr] Compiling keccak v0.1.0 [INFO] [stderr] Compiling dtoa v0.4.8 [INFO] [stderr] Compiling webpki-roots v0.21.1 [INFO] [stderr] Compiling salsa20 v0.9.0 [INFO] [stderr] Compiling quicksink v0.1.2 [INFO] [stderr] Compiling digest v0.10.3 [INFO] [stderr] Compiling crossbeam-deque v0.8.1 [INFO] [stderr] Compiling sha3 v0.9.1 [INFO] [stderr] Compiling lru v0.7.5 [INFO] [stderr] Compiling dns-parser v0.8.0 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.80 [INFO] [stderr] Compiling crossbeam-channel v0.5.4 [INFO] [stderr] Compiling cuckoofilter v0.5.0 [INFO] [stderr] Compiling blake3 v0.3.8 [INFO] [stderr] Compiling if-addrs v0.6.7 [INFO] [stderr] Compiling rayon v1.5.2 [INFO] [stderr] Compiling bimap v0.6.2 [INFO] [stderr] Compiling serde_json v1.0.79 [INFO] [stderr] Compiling hex_fmt v0.3.0 [INFO] [stderr] Compiling parity-send-wrapper v0.1.0 [INFO] [stderr] Compiling sha2 v0.10.2 [INFO] [stderr] Compiling time v0.1.44 [INFO] [stderr] Compiling constant_time_eq v0.1.5 [INFO] [stderr] Compiling micromath v2.0.0 [INFO] [stderr] Compiling itoa v1.0.1 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling ryu v1.0.9 [INFO] [stderr] Compiling chrono v0.4.19 [INFO] [stderr] Compiling rs_merkle v1.2.0 [INFO] [stderr] Compiling prost-derive v0.9.0 [INFO] [stderr] Compiling ctor v0.1.22 [INFO] [stderr] Compiling futures-macro v0.3.21 [INFO] [stderr] Compiling thiserror-impl v1.0.30 [INFO] [stderr] Compiling zeroize_derive v1.3.2 [INFO] [stderr] Compiling pin-project-internal v1.0.10 [INFO] [stderr] Compiling enum-as-inner v0.3.4 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.80 [INFO] [stderr] Compiling tokio-macros v1.7.0 [INFO] [stderr] Compiling open-metrics-client-derive-text-encode v0.1.1 [INFO] [stderr] Compiling libp2p-swarm-derive v0.25.0 [INFO] [stderr] Compiling open-metrics-client v0.12.0 [INFO] [stderr] Compiling zeroize v1.3.0 [INFO] [stderr] Compiling curve25519-dalek v3.2.1 [INFO] [stderr] Compiling js-sys v0.3.57 [INFO] [stderr] Compiling polling v2.2.0 [INFO] [stderr] Compiling kv-log-macro v1.0.7 [INFO] [stderr] Compiling rustls v0.19.1 [INFO] [stderr] Compiling mio v0.8.2 [INFO] [stderr] Compiling thiserror v1.0.30 [INFO] [stderr] Compiling async-io v1.6.0 [INFO] [stderr] Compiling proc-macro-crate v1.1.3 [INFO] [stderr] Compiling pin-project v1.0.10 [INFO] [stderr] Compiling multihash-derive v0.7.2 [INFO] [stderr] Compiling pin-project v0.4.29 [INFO] [stderr] Compiling tokio v1.17.0 [INFO] [stderr] Compiling prost v0.9.0 [INFO] [stderr] Compiling x25519-dalek v1.2.0 [INFO] [stderr] Compiling async-global-executor v2.0.4 [INFO] [stderr] Compiling if-watch v0.2.2 [INFO] [stderr] Compiling prost-types v0.9.0 [INFO] [stderr] Compiling async-std v1.11.0 [INFO] [stderr] Compiling futures-rustls v0.21.1 [INFO] [stderr] Compiling libp2p-core v0.30.2 [INFO] [stderr] Compiling libp2p-kad v0.32.0 [INFO] [stderr] Compiling libp2p-identify v0.31.0 [INFO] [stderr] Compiling libp2p-rendezvous v0.1.0 [INFO] [stderr] Compiling libp2p-floodsub v0.31.0 [INFO] [stderr] Compiling libp2p-gossipsub v0.33.0 [INFO] [stderr] Compiling libp2p-noise v0.33.0 [INFO] [stderr] Compiling libp2p-relay v0.4.0 [INFO] [stderr] Compiling libp2p-plaintext v0.30.0 [INFO] [stderr] Compiling futures-executor v0.3.21 [INFO] [stderr] Compiling futures v0.3.21 [INFO] [stderr] Compiling asynchronous-codec v0.6.0 [INFO] [stderr] Compiling rw-stream-sink v0.2.1 [INFO] [stderr] Compiling unsigned-varint v0.7.1 [INFO] [stderr] Compiling wasm-timer v0.2.5 [INFO] [stderr] Compiling trust-dns-proto v0.20.4 [INFO] [stderr] Compiling multihash v0.14.0 [INFO] [stderr] Compiling multistream-select v0.10.4 [INFO] [stderr] Compiling soketto v0.7.1 [INFO] [stderr] Compiling yamux v0.9.0 [INFO] [stderr] Compiling wasm-bindgen-futures v0.4.30 [INFO] [stderr] Compiling libp2p-pnet v0.22.0 [INFO] [stderr] Compiling multiaddr v0.13.0 [INFO] [stderr] Compiling ed25519-dalek v1.0.1 [INFO] [stderr] Compiling trust-dns-resolver v0.20.4 [INFO] [stderr] Compiling async-std-resolver v0.20.4 [INFO] [stderr] Compiling libp2p-swarm v0.31.0 [INFO] [stderr] Compiling libp2p-dns v0.30.0 [INFO] [stderr] Compiling libp2p-tcp v0.30.0 [INFO] [stderr] Compiling libp2p-websocket v0.31.0 [INFO] [stderr] Compiling libp2p-wasm-ext v0.30.0 [INFO] [stderr] Compiling libp2p-uds v0.30.0 [INFO] [stderr] Compiling libp2p-mplex v0.30.0 [INFO] [stderr] Compiling libp2p-deflate v0.30.0 [INFO] [stderr] Compiling libp2p-yamux v0.34.0 [INFO] [stderr] Compiling libp2p-ping v0.31.0 [INFO] [stderr] Compiling libp2p-request-response v0.13.0 [INFO] [stderr] Compiling libp2p-mdns v0.32.0 [INFO] [stderr] Compiling libp2p-metrics v0.1.0 [INFO] [stderr] Compiling libp2p v0.40.0 [INFO] [stderr] Compiling runchain v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::pow` [INFO] [stdout] --> src/block.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::pow; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Keypair`, `NoiseConfig`, `SwarmBuilder`, `Swarm`, `Topic`, `Transport`, `X25519Spec`, `core::upgrade`, `futures::StreamExt`, `mplex`, and `tcp::TokioTcpConfig` [INFO] [stdout] --> src/p2p.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | core::upgrade, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 10 | floodsub::{Floodsub, FloodsubEvent, Topic}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 11 | futures::StreamExt, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 14 | mplex, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 15 | noise::{Keypair, NoiseConfig, X25519Spec}, [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] 16 | swarm::{NetworkBehaviourEventProcess, SwarmBuilder}, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 17 | tcp::TokioTcpConfig, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 18 | NetworkBehaviour, PeerId, Swarm, Transport, [INFO] [stdout] | ^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> src/p2p.rs:21:17 [INFO] [stdout] | [INFO] [stdout] 21 | pub use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashSet` [INFO] [stdout] --> src/p2p.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | pub use std::collections::HashSet; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `fs` and `io::AsyncBufReadExt` [INFO] [stdout] --> src/p2p.rs:23:17 [INFO] [stdout] | [INFO] [stdout] 23 | pub use tokio::{fs, io::AsyncBufReadExt, sync::mpsc}; [INFO] [stdout] | ^^ ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ChainInfo` and `ResponseBlock` [INFO] [stdout] --> src/p2p.rs:27:23 [INFO] [stdout] | [INFO] [stdout] 27 | use crate::protocol::{ChainInfo, MessageEvent, ResponseBlock}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::pow` [INFO] [stdout] --> src/block.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::pow; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Topic` [INFO] [stdout] --> src/p2p.rs:10:41 [INFO] [stdout] | [INFO] [stdout] 10 | floodsub::{Floodsub, FloodsubEvent, Topic}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> src/p2p.rs:21:17 [INFO] [stdout] | [INFO] [stdout] 21 | pub use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashSet` [INFO] [stdout] --> src/p2p.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | pub use std::collections::HashSet; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `fs` and `io::AsyncBufReadExt` [INFO] [stdout] --> src/p2p.rs:23:17 [INFO] [stdout] | [INFO] [stdout] 23 | pub use tokio::{fs, io::AsyncBufReadExt, sync::mpsc}; [INFO] [stdout] | ^^ ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ChainInfo` and `ResponseBlock` [INFO] [stdout] --> src/p2p.rs:27:23 [INFO] [stdout] | [INFO] [stdout] 27 | use crate::protocol::{ChainInfo, MessageEvent, ResponseBlock}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Hash` is never used [INFO] [stdout] --> src/block.rs:7:6 [INFO] [stdout] | [INFO] [stdout] 7 | type Hash = String; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Chain` is never constructed [INFO] [stdout] --> src/block.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct Chain { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Chain` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/block.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl Chain { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 20 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | pub fn show_chain(&self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 61 | pub fn genesis_hash(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | pub fn block_height(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | pub fn try_add_a_block(&mut self, block: Block) -> Result<(), &str> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | pub fn last_block(&self) -> &Block { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 81 | pub fn last_n_blocks(&self, n: usize) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 90 | pub fn is_block_vaild(&self, block: &Block) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 111 | pub fn calculate_hash(&self, block: &Block) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `KEYS` is never used [INFO] [stdout] --> src/p2p.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | pub static KEYS: Lazy = Lazy::new(|| identity::Keypair::generate_ed25519()); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `PEER_ID` is never used [INFO] [stdout] --> src/p2p.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 26 | pub static PEER_ID: Lazy = Lazy::new(|| PeerId::from(KEYS.public())); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `pow_v2` is never used [INFO] [stdout] --> src/pow.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn pow_v2(block: Block, atomicbool: &AtomicBool) -> (u128, bool) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hash_add_n` is never used [INFO] [stdout] --> src/pow.rs:37:4 [INFO] [stdout] | [INFO] [stdout] 37 | fn hash_add_n(s: &String, nonce: u128) -> Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DIFFICULTY_PREFIX` is never used [INFO] [stdout] --> src/protocol/proto.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | pub const DIFFICULTY_PREFIX: &[u8; 3] = &[0, 0, 0]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `TOPICSTRING` is never used [INFO] [stdout] --> src/protocol/proto.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub static TOPICSTRING: Lazy = Lazy::new(|| String::from("RUNCHAINNET")); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `TOPIC` is never used [INFO] [stdout] --> src/protocol/proto.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub static TOPIC: Lazy = Lazy::new(|| Topic::new("RUNCHAINNET")); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `sended` is never read [INFO] [stdout] --> src/miner_node.rs:295:25 [INFO] [stdout] | [INFO] [stdout] 295 | sended = true; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Hash` is never used [INFO] [stdout] --> src/block.rs:7:6 [INFO] [stdout] | [INFO] [stdout] 7 | type Hash = String; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sign` is never used [INFO] [stdout] --> src/cryptography.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn sign<'a, T>(original: &[u8], signing_key: &T) -> Vec [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing [INFO] [stdout] --> src/miner_node.rs:239:9 [INFO] [stdout] | [INFO] [stdout] 239 | drop(last_block); [INFO] [stdout] | ^^^^^----------^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `&block::Block` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dropping_references)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the expression or result [INFO] [stdout] | [INFO] [stdout] 239 - drop(last_block); [INFO] [stdout] 239 + let _ = last_block; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 06s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: snow v0.8.0, wasm-bindgen v0.2.80 [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" "0f3fa1b87a6a7b15dd64828612fe95dc7c6d856212655519b9f827273d08e34a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0f3fa1b87a6a7b15dd64828612fe95dc7c6d856212655519b9f827273d08e34a", kill_on_drop: false }` [INFO] [stdout] 0f3fa1b87a6a7b15dd64828612fe95dc7c6d856212655519b9f827273d08e34a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+1.85.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 702b39ffb4af76626322f0ad2640c7ba1d7f636a2c4614b568b24bd3623977c7 [INFO] running `Command { std: "docker" "start" "-a" "702b39ffb4af76626322f0ad2640c7ba1d7f636a2c4614b568b24bd3623977c7", kill_on_drop: false }` [INFO] [stderr] Compiling runchain v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::pow` [INFO] [stdout] --> src/block.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::pow; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Keypair`, `NoiseConfig`, `SwarmBuilder`, `Swarm`, `Topic`, `Transport`, `X25519Spec`, `core::upgrade`, `futures::StreamExt`, `mplex`, and `tcp::TokioTcpConfig` [INFO] [stdout] --> src/p2p.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | core::upgrade, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 10 | floodsub::{Floodsub, FloodsubEvent, Topic}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 11 | futures::StreamExt, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 14 | mplex, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 15 | noise::{Keypair, NoiseConfig, X25519Spec}, [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] 16 | swarm::{NetworkBehaviourEventProcess, SwarmBuilder}, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 17 | tcp::TokioTcpConfig, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 18 | NetworkBehaviour, PeerId, Swarm, Transport, [INFO] [stdout] | ^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> src/p2p.rs:21:17 [INFO] [stdout] | [INFO] [stdout] 21 | pub use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashSet` [INFO] [stdout] --> src/p2p.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | pub use std::collections::HashSet; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `fs` and `io::AsyncBufReadExt` [INFO] [stdout] --> src/p2p.rs:23:17 [INFO] [stdout] | [INFO] [stdout] 23 | pub use tokio::{fs, io::AsyncBufReadExt, sync::mpsc}; [INFO] [stdout] | ^^ ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ChainInfo` and `ResponseBlock` [INFO] [stdout] --> src/p2p.rs:27:23 [INFO] [stdout] | [INFO] [stdout] 27 | use crate::protocol::{ChainInfo, MessageEvent, ResponseBlock}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::pow` [INFO] [stdout] --> src/block.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::pow; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Topic` [INFO] [stdout] --> src/p2p.rs:10:41 [INFO] [stdout] | [INFO] [stdout] 10 | floodsub::{Floodsub, FloodsubEvent, Topic}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> src/p2p.rs:21:17 [INFO] [stdout] | [INFO] [stdout] 21 | pub use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashSet` [INFO] [stdout] --> src/p2p.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | pub use std::collections::HashSet; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `fs` and `io::AsyncBufReadExt` [INFO] [stdout] --> src/p2p.rs:23:17 [INFO] [stdout] | [INFO] [stdout] 23 | pub use tokio::{fs, io::AsyncBufReadExt, sync::mpsc}; [INFO] [stdout] | ^^ ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ChainInfo` and `ResponseBlock` [INFO] [stdout] --> src/p2p.rs:27:23 [INFO] [stdout] | [INFO] [stdout] 27 | use crate::protocol::{ChainInfo, MessageEvent, ResponseBlock}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Hash` is never used [INFO] [stdout] --> src/block.rs:7:6 [INFO] [stdout] | [INFO] [stdout] 7 | type Hash = String; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Chain` is never constructed [INFO] [stdout] --> src/block.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct Chain { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Chain` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/block.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl Chain { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 20 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | pub fn show_chain(&self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 61 | pub fn genesis_hash(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | pub fn block_height(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | pub fn try_add_a_block(&mut self, block: Block) -> Result<(), &str> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | pub fn last_block(&self) -> &Block { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 81 | pub fn last_n_blocks(&self, n: usize) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 90 | pub fn is_block_vaild(&self, block: &Block) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 111 | pub fn calculate_hash(&self, block: &Block) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `KEYS` is never used [INFO] [stdout] --> src/p2p.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | pub static KEYS: Lazy = Lazy::new(|| identity::Keypair::generate_ed25519()); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `PEER_ID` is never used [INFO] [stdout] --> src/p2p.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 26 | pub static PEER_ID: Lazy = Lazy::new(|| PeerId::from(KEYS.public())); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `pow_v2` is never used [INFO] [stdout] --> src/pow.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn pow_v2(block: Block, atomicbool: &AtomicBool) -> (u128, bool) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hash_add_n` is never used [INFO] [stdout] --> src/pow.rs:37:4 [INFO] [stdout] | [INFO] [stdout] 37 | fn hash_add_n(s: &String, nonce: u128) -> Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DIFFICULTY_PREFIX` is never used [INFO] [stdout] --> src/protocol/proto.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | pub const DIFFICULTY_PREFIX: &[u8; 3] = &[0, 0, 0]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `TOPICSTRING` is never used [INFO] [stdout] --> src/protocol/proto.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub static TOPICSTRING: Lazy = Lazy::new(|| String::from("RUNCHAINNET")); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `TOPIC` is never used [INFO] [stdout] --> src/protocol/proto.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub static TOPIC: Lazy = Lazy::new(|| Topic::new("RUNCHAINNET")); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `sended` is never read [INFO] [stdout] --> src/miner_node.rs:295:25 [INFO] [stdout] | [INFO] [stdout] 295 | sended = true; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Hash` is never used [INFO] [stdout] --> src/block.rs:7:6 [INFO] [stdout] | [INFO] [stdout] 7 | type Hash = String; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sign` is never used [INFO] [stdout] --> src/cryptography.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn sign<'a, T>(original: &[u8], signing_key: &T) -> Vec [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing [INFO] [stdout] --> src/miner_node.rs:239:9 [INFO] [stdout] | [INFO] [stdout] 239 | drop(last_block); [INFO] [stdout] | ^^^^^----------^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `&block::Block` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dropping_references)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the expression or result [INFO] [stdout] | [INFO] [stdout] 239 - drop(last_block); [INFO] [stdout] 239 + let _ = last_block; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 3.66s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: snow v0.8.0, wasm-bindgen v0.2.80 [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" "702b39ffb4af76626322f0ad2640c7ba1d7f636a2c4614b568b24bd3623977c7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "702b39ffb4af76626322f0ad2640c7ba1d7f636a2c4614b568b24bd3623977c7", kill_on_drop: false }` [INFO] [stdout] 702b39ffb4af76626322f0ad2640c7ba1d7f636a2c4614b568b24bd3623977c7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+1.85.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 1dc2974d27c43df0f22f52be62b3f165846ba83a18d15571ea0c3e97c2e09a23 [INFO] running `Command { std: "docker" "start" "-a" "1dc2974d27c43df0f22f52be62b3f165846ba83a18d15571ea0c3e97c2e09a23", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `crate::pow` [INFO] [stderr] --> src/block.rs:11:5 [INFO] [stderr] | [INFO] [stderr] 11 | use crate::pow; [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `Topic` [INFO] [stderr] --> src/p2p.rs:10:41 [INFO] [stderr] | [INFO] [stderr] 10 | floodsub::{Floodsub, FloodsubEvent, Topic}, [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stderr] --> src/p2p.rs:21:17 [INFO] [stderr] | [INFO] [stderr] 21 | pub use serde::{Deserialize, Serialize}; [INFO] [stderr] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::collections::HashSet` [INFO] [stderr] --> src/p2p.rs:22:9 [INFO] [stderr] | [INFO] [stderr] 22 | pub use std::collections::HashSet; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `fs` and `io::AsyncBufReadExt` [INFO] [stderr] --> src/p2p.rs:23:17 [INFO] [stderr] | [INFO] [stderr] 23 | pub use tokio::{fs, io::AsyncBufReadExt, sync::mpsc}; [INFO] [stderr] | ^^ ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `ChainInfo` and `ResponseBlock` [INFO] [stderr] --> src/p2p.rs:27:23 [INFO] [stderr] | [INFO] [stderr] 27 | use crate::protocol::{ChainInfo, MessageEvent, ResponseBlock}; [INFO] [stderr] | ^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: value assigned to `sended` is never read [INFO] [stderr] --> src/miner_node.rs:295:25 [INFO] [stderr] | [INFO] [stderr] 295 | sended = true; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] = note: `#[warn(unused_assignments)]` on by default [INFO] [stderr] [INFO] [stderr] warning: type alias `Hash` is never used [INFO] [stderr] --> src/block.rs:7:6 [INFO] [stderr] | [INFO] [stderr] 7 | type Hash = String; [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: function `sign` is never used [INFO] [stderr] --> src/cryptography.rs:3:8 [INFO] [stderr] | [INFO] [stderr] 3 | pub fn sign<'a, T>(original: &[u8], signing_key: &T) -> Vec [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing [INFO] [stderr] --> src/miner_node.rs:239:9 [INFO] [stderr] | [INFO] [stderr] 239 | drop(last_block); [INFO] [stderr] | ^^^^^----------^ [INFO] [stderr] | | [INFO] [stderr] | argument has type `&block::Block` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dropping_references)]` on by default [INFO] [stderr] help: use `let _ = ...` to ignore the expression or result [INFO] [stderr] | [INFO] [stderr] 239 - drop(last_block); [INFO] [stderr] 239 + let _ = last_block; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Keypair`, `NoiseConfig`, `SwarmBuilder`, `Swarm`, `Topic`, `Transport`, `X25519Spec`, `core::upgrade`, `futures::StreamExt`, `mplex`, and `tcp::TokioTcpConfig` [INFO] [stderr] --> src/p2p.rs:9:5 [INFO] [stderr] | [INFO] [stderr] 9 | core::upgrade, [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] 10 | floodsub::{Floodsub, FloodsubEvent, Topic}, [INFO] [stderr] | ^^^^^ [INFO] [stderr] 11 | futures::StreamExt, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 14 | mplex, [INFO] [stderr] | ^^^^^ [INFO] [stderr] 15 | noise::{Keypair, NoiseConfig, X25519Spec}, [INFO] [stderr] | ^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stderr] 16 | swarm::{NetworkBehaviourEventProcess, SwarmBuilder}, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] 17 | tcp::TokioTcpConfig, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 18 | NetworkBehaviour, PeerId, Swarm, Transport, [INFO] [stderr] | ^^^^^ ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `Chain` is never constructed [INFO] [stderr] --> src/block.rs:14:12 [INFO] [stderr] | [INFO] [stderr] 14 | pub struct Chain { [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Chain` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: multiple associated items are never used [INFO] [stderr] --> src/block.rs:20:12 [INFO] [stderr] | [INFO] [stderr] 19 | impl Chain { [INFO] [stderr] | ---------- associated items in this implementation [INFO] [stderr] 20 | pub fn new() -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 55 | pub fn show_chain(&self) { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 61 | pub fn genesis_hash(&self) -> Vec { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 65 | pub fn block_height(&self) -> usize { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 69 | pub fn try_add_a_block(&mut self, block: Block) -> Result<(), &str> { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 77 | pub fn last_block(&self) -> &Block { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 81 | pub fn last_n_blocks(&self, n: usize) -> Vec { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 90 | pub fn is_block_vaild(&self, block: &Block) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 111 | pub fn calculate_hash(&self, block: &Block) -> Result, Error> { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: static `KEYS` is never used [INFO] [stderr] --> src/p2p.rs:25:12 [INFO] [stderr] | [INFO] [stderr] 25 | pub static KEYS: Lazy = Lazy::new(|| identity::Keypair::generate_ed25519()); [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: static `PEER_ID` is never used [INFO] [stderr] --> src/p2p.rs:26:12 [INFO] [stderr] | [INFO] [stderr] 26 | pub static PEER_ID: Lazy = Lazy::new(|| PeerId::from(KEYS.public())); [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `pow_v2` is never used [INFO] [stderr] --> src/pow.rs:10:8 [INFO] [stderr] | [INFO] [stderr] 10 | pub fn pow_v2(block: Block, atomicbool: &AtomicBool) -> (u128, bool) { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `hash_add_n` is never used [INFO] [stderr] --> src/pow.rs:37:4 [INFO] [stderr] | [INFO] [stderr] 37 | fn hash_add_n(s: &String, nonce: u128) -> Vec { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `DIFFICULTY_PREFIX` is never used [INFO] [stderr] --> src/protocol/proto.rs:2:11 [INFO] [stderr] | [INFO] [stderr] 2 | pub const DIFFICULTY_PREFIX: &[u8; 3] = &[0, 0, 0]; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: static `TOPICSTRING` is never used [INFO] [stderr] --> src/protocol/proto.rs:7:12 [INFO] [stderr] | [INFO] [stderr] 7 | pub static TOPICSTRING: Lazy = Lazy::new(|| String::from("RUNCHAINNET")); [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: static `TOPIC` is never used [INFO] [stderr] --> src/protocol/proto.rs:8:12 [INFO] [stderr] | [INFO] [stderr] 8 | pub static TOPIC: Lazy = Lazy::new(|| Topic::new("RUNCHAINNET")); [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `runchain` (bin "miner_node" test) generated 10 warnings (run `cargo fix --bin "miner_node" --tests` to apply 6 suggestions) [INFO] [stderr] warning: `runchain` (bin "light_node" test) generated 16 warnings (6 duplicates) (run `cargo fix --bin "light_node" --tests` to apply 1 suggestion) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.39s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: snow v0.8.0, wasm-bindgen v0.2.80 [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/light_node.rs (/opt/rustwide/target/debug/deps/light_node-42ccee5f7f1dfc96) [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/miner_node.rs (/opt/rustwide/target/debug/deps/miner_node-e6fecb88698077fb) [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" "1dc2974d27c43df0f22f52be62b3f165846ba83a18d15571ea0c3e97c2e09a23", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1dc2974d27c43df0f22f52be62b3f165846ba83a18d15571ea0c3e97c2e09a23", kill_on_drop: false }` [INFO] [stdout] 1dc2974d27c43df0f22f52be62b3f165846ba83a18d15571ea0c3e97c2e09a23