[INFO] cloning repository https://github.com/0xShay/rust_blockchain [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/0xShay/rust_blockchain" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F0xShay%2Frust_blockchain", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F0xShay%2Frust_blockchain'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] db35e14f889d77ec0fb2883e7827a8ac91ce1ede [INFO] building 0xShay/rust_blockchain against master#ad85bc524b1ad696e42061ad8338d382dffbdbe5 for pr-146237-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F0xShay%2Frust_blockchain" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/0xShay/rust_blockchain [INFO] finished tweaking git repo https://github.com/0xShay/rust_blockchain [INFO] tweaked toml for git repo https://github.com/0xShay/rust_blockchain written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/0xShay/rust_blockchain on toolchain ad85bc524b1ad696e42061ad8338d382dffbdbe5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/0xShay/rust_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" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded windows-targets v0.53.2 [INFO] [stderr] Downloaded ubyte v0.10.4 [INFO] [stderr] Downloaded state v0.6.0 [INFO] [stderr] Downloaded sqlite3-sys v0.15.2 [INFO] [stderr] Downloaded sha256 v1.6.0 [INFO] [stderr] Downloaded sqlite v0.32.0 [INFO] [stderr] Downloaded cc v1.2.27 [INFO] [stderr] Downloaded curve25519-dalek-derive v0.1.1 [INFO] [stderr] Downloaded ed25519 v2.2.3 [INFO] [stderr] Downloaded toml v0.8.23 [INFO] [stderr] Downloaded devise v0.4.2 [INFO] [stderr] Downloaded multer v3.1.0 [INFO] [stderr] Downloaded rocket v0.5.1 [INFO] [stderr] Downloaded glob v0.3.2 [INFO] [stderr] Downloaded figment v0.10.19 [INFO] [stderr] Downloaded pear v0.2.9 [INFO] [stderr] Downloaded bumpalo v3.18.1 [INFO] [stderr] Downloaded loom v0.5.6 [INFO] [stderr] Downloaded rocket_codegen v0.5.1 [INFO] [stderr] Downloaded ref-cast-impl v1.0.24 [INFO] [stderr] Downloaded generator v0.7.5 [INFO] [stderr] Downloaded curve25519-dalek v4.1.3 [INFO] [stderr] Downloaded devise_core v0.4.2 [INFO] [stderr] Downloaded ref-cast v1.0.24 [INFO] [stderr] Downloaded uncased v0.9.10 [INFO] [stderr] Downloaded atomic v0.5.3 [INFO] [stderr] Downloaded bytemuck v1.23.1 [INFO] [stderr] Downloaded ed25519-dalek v2.1.1 [INFO] [stderr] Downloaded atomic v0.6.1 [INFO] [stderr] Downloaded serde_spanned v0.6.9 [INFO] [stderr] Downloaded toml_write v0.1.2 [INFO] [stderr] Downloaded num_cpus v1.17.0 [INFO] [stderr] Downloaded pear_codegen v0.2.9 [INFO] [stderr] Downloaded devise_codegen v0.4.2 [INFO] [stderr] Downloaded rocket_http v0.5.1 [INFO] [stderr] Downloaded fiat-crypto v0.2.9 [INFO] [stderr] Downloaded sqlite3-src v0.5.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 91d7cce9c4af1220e93d3284b1652dc3bea16a3d3f7dd5af548d5d799f332fb9 [INFO] running `Command { std: "docker" "start" "-a" "91d7cce9c4af1220e93d3284b1652dc3bea16a3d3f7dd5af548d5d799f332fb9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "91d7cce9c4af1220e93d3284b1652dc3bea16a3d3f7dd5af548d5d799f332fb9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "91d7cce9c4af1220e93d3284b1652dc3bea16a3d3f7dd5af548d5d799f332fb9", kill_on_drop: false }` [INFO] [stdout] 91d7cce9c4af1220e93d3284b1652dc3bea16a3d3f7dd5af548d5d799f332fb9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 23a82f1622ac6ce91242c5c160935c140ac7308b4e30456df351470d8784922f [INFO] running `Command { std: "docker" "start" "-a" "23a82f1622ac6ce91242c5c160935c140ac7308b4e30456df351470d8784922f", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.95 [INFO] [stderr] Compiling unicode-ident v1.0.18 [INFO] [stderr] Compiling libc v0.2.174 [INFO] [stderr] Compiling cfg-if v1.0.1 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling pkg-config v0.3.32 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling lock_api v0.4.13 [INFO] [stderr] Compiling cc v1.2.27 [INFO] [stderr] Compiling proc-macro2-diagnostics v0.10.1 [INFO] [stderr] Compiling memchr v2.7.5 [INFO] [stderr] Compiling hashbrown v0.15.4 [INFO] [stderr] Compiling const-oid v0.9.6 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Compiling slab v0.4.10 [INFO] [stderr] Compiling libm v0.2.15 [INFO] [stderr] Compiling zeroize v1.8.1 [INFO] [stderr] Compiling zerocopy v0.8.26 [INFO] [stderr] Compiling bitflags v2.9.1 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling num-conv v0.1.0 [INFO] [stderr] Compiling futures-sink v0.3.31 [INFO] [stderr] Compiling semver v1.0.26 [INFO] [stderr] Compiling time-core v0.1.4 [INFO] [stderr] Compiling futures-core v0.3.31 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling powerfmt v0.2.0 [INFO] [stderr] Compiling time-macros v0.2.22 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling cookie v0.18.1 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling log v0.4.27 [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Compiling ref-cast v1.0.24 [INFO] [stderr] Compiling base64ct v1.8.0 [INFO] [stderr] Compiling deranged v0.4.0 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling uncased v0.9.10 [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling pem-rfc7468 v0.7.0 [INFO] [stderr] Compiling rustc_version v0.4.1 [INFO] [stderr] Compiling stable-pattern v0.1.0 [INFO] [stderr] Compiling state v0.6.0 [INFO] [stderr] Compiling futures-io v0.3.31 [INFO] [stderr] Compiling der v0.7.10 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling winnow v0.7.11 [INFO] [stderr] Compiling toml_write v0.1.2 [INFO] [stderr] Compiling openssl-probe v0.1.6 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling rustix v1.0.7 [INFO] [stderr] Compiling mio v1.0.4 [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Compiling socket2 v0.5.10 [INFO] [stderr] Compiling signal-hook-registry v1.4.5 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling is-terminal v0.4.16 [INFO] [stderr] Compiling yansi v1.0.1 [INFO] [stderr] Compiling openssl-sys v0.9.109 [INFO] [stderr] Compiling sqlite3-src v0.5.1 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling parking_lot v0.12.4 [INFO] [stderr] Compiling time v0.3.41 [INFO] [stderr] Compiling curve25519-dalek v4.1.3 [INFO] [stderr] Compiling signature v2.2.0 [INFO] [stderr] Compiling indexmap v2.9.0 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling encoding_rs v0.8.35 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Compiling tokio v1.45.1 [INFO] [stderr] Compiling multer v3.1.0 [INFO] [stderr] Compiling figment v0.10.19 [INFO] [stderr] Compiling subtle v2.6.1 [INFO] [stderr] Compiling linux-raw-sys v0.9.4 [INFO] [stderr] Compiling num-bigint-dig v0.8.4 [INFO] [stderr] Compiling spki v0.7.3 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling pkcs8 v0.10.2 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling lazy_static v1.5.0 [INFO] [stderr] Compiling http v1.3.1 [INFO] [stderr] Compiling rocket v0.5.1 [INFO] [stderr] Compiling num-iter v0.1.45 [INFO] [stderr] Compiling glob v0.3.2 [INFO] [stderr] Compiling fastrand v2.3.0 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling pkcs1 v0.7.5 [INFO] [stderr] Compiling sqlite3-sys v0.15.2 [INFO] [stderr] Compiling ed25519 v2.2.3 [INFO] [stderr] Compiling num_cpus v1.17.0 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling atomic v0.5.3 [INFO] [stderr] Compiling sqlite v0.32.0 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling arrayref v0.3.9 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling tempfile v3.20.0 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling devise_core v0.4.2 [INFO] [stderr] Compiling hyper v0.14.32 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling pear_codegen v0.2.9 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling ref-cast-impl v1.0.24 [INFO] [stderr] Compiling async-trait v0.1.88 [INFO] [stderr] Compiling async-stream-impl v0.3.6 [INFO] [stderr] Compiling curve25519-dalek-derive v0.1.1 [INFO] [stderr] Compiling async-stream v0.3.6 [INFO] [stderr] Compiling devise_codegen v0.4.2 [INFO] [stderr] Compiling pear v0.2.9 [INFO] [stderr] Compiling devise v0.4.2 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Compiling zerovec v0.11.2 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Compiling rocket_http v0.5.1 [INFO] [stderr] Compiling ed25519-dalek v2.1.1 [INFO] [stderr] Compiling tinystr v0.8.1 [INFO] [stderr] Compiling potential_utf v0.1.2 [INFO] [stderr] Compiling icu_collections v2.0.0 [INFO] [stderr] Compiling icu_locale_core v2.0.0 [INFO] [stderr] Compiling icu_provider v2.0.0 [INFO] [stderr] Compiling icu_properties v2.0.1 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling rocket_codegen v0.5.1 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling tokio-util v0.7.15 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling tokio-stream v0.1.17 [INFO] [stderr] Compiling sha256 v1.6.0 [INFO] [stderr] Compiling serde_spanned v0.6.9 [INFO] [stderr] Compiling toml_datetime v0.6.11 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling ubyte v0.10.4 [INFO] [stderr] Compiling h2 v0.3.26 [INFO] [stderr] Compiling toml_edit v0.22.27 [INFO] [stderr] Compiling rsa v0.9.8 [INFO] [stderr] Compiling toml v0.8.23 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling reqwest v0.11.27 [INFO] [stderr] Compiling rust_blockchain v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `IpAddr`, `Ipv4Addr`, `Ipv6Addr`, and `SocketAddrV4` [INFO] [stdout] --> src/main.rs:3:16 [INFO] [stdout] | [INFO] [stdout] 3 | use std::net::{IpAddr, Ipv4Addr, Ipv6Addr, SocketAddr, SocketAddrV4}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^ ^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::str::FromStr` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::str::FromStr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Signature`, `Signer`, `SigningKey`, `Verifier`, and `VerifyingKey` [INFO] [stdout] --> src/main.rs:5:21 [INFO] [stdout] | [INFO] [stdout] 5 | use ed25519_dalek::{Signature, Signer, SigningKey, Verifier, VerifyingKey}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^ ^^^^^^^^^^ ^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> src/main.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::Result` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use serde_json::Result; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Signer` [INFO] [stdout] --> src/account_utils.rs:2:32 [INFO] [stdout] | [INFO] [stdout] 2 | use ed25519_dalek::{Signature, Signer, SigningKey, VerifyingKey}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `IpAddr` [INFO] [stdout] --> src/peers.rs:5:16 [INFO] [stdout] | [INFO] [stdout] 5 | use std::net::{IpAddr, SocketAddr}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::str::FromStr` [INFO] [stdout] --> src/peers.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::str::FromStr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::sync::OnceCell` [INFO] [stdout] --> src/db_utils.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use tokio::sync::OnceCell; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/peers.rs:39:13 [INFO] [stdout] | [INFO] [stdout] 39 | let mut new_known_peers: Vec = Vec::new(); [INFO] [stdout] | ----^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/peers.rs:46:20 [INFO] [stdout] | [INFO] [stdout] 46 | Ok(mut response) => { [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_genesis` [INFO] [stdout] --> src/block_utils.rs:113:13 [INFO] [stdout] | [INFO] [stdout] 113 | let is_genesis = block.index == 0; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_genesis` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `remote_addr` [INFO] [stdout] --> src/main.rs:50:14 [INFO] [stdout] | [INFO] [stdout] 50 | fn get_peers(remote_addr: SocketAddr) -> status::Custom> { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_remote_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | let mut peers = peers::Peers::new(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DIFFICULTY` is never used [INFO] [stdout] --> src/block_utils.rs:8:7 [INFO] [stdout] | [INFO] [stdout] 8 | const DIFFICULTY: usize = 8; // number of zeros needed to prefix hash (bits) [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_priv_key` is never used [INFO] [stdout] --> src/account_utils.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn generate_priv_key() -> SigningKey { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_pub_key` is never used [INFO] [stdout] --> src/account_utils.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn generate_pub_key(private_key: &SigningKey) -> VerifyingKey { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `priv_key_to_hex` is never used [INFO] [stdout] --> src/account_utils.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn priv_key_to_hex(private_key: &SigningKey) -> String { hex::encode(private_key.to_bytes()) } [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `pub_key_to_hex` is never used [INFO] [stdout] --> src/account_utils.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn pub_key_to_hex(pub_key: &VerifyingKey) -> String { hex::encode(pub_key.to_bytes()) } [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `signature_to_hex` is never used [INFO] [stdout] --> src/account_utils.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn signature_to_hex(signature: &Signature) -> String { hex::encode(signature.to_bytes()) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `priv_key_from_hex` is never used [INFO] [stdout] --> src/account_utils.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn priv_key_from_hex(hex_str: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `pub_key_from_hex` is never used [INFO] [stdout] --> src/account_utils.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn pub_key_from_hex(hex_str: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `signature_from_hex` is never used [INFO] [stdout] --> src/account_utils.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn signature_from_hex(hex_str: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `from_json`, `get_known_peers`, and `remove_ip` are never used [INFO] [stdout] --> src/peers.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl Peers { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn from_json(json: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn get_known_peers(&mut self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 91 | pub fn remove_ip(&mut self, ip_addr: SocketAddr) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:61:21 [INFO] [stdout] | [INFO] [stdout] 61 | db_utils::add_block(Block::add_acc_diff_to_block(block)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 61 | let _ = db_utils::add_block(Block::add_acc_diff_to_block(block)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:86:5 [INFO] [stdout] | [INFO] [stdout] 86 | db_utils::create_tables(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 86 | let _ = db_utils::create_tables(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:111:5 [INFO] [stdout] | [INFO] [stdout] 111 | db_utils::add_block(genesis); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 111 | let _ = db_utils::add_block(genesis); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/db_utils.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 49 | statement.next(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 49 | let _ = statement.next(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 42s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: num-bigint-dig v0.8.4 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 2` [INFO] running `Command { std: "docker" "inspect" "23a82f1622ac6ce91242c5c160935c140ac7308b4e30456df351470d8784922f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "23a82f1622ac6ce91242c5c160935c140ac7308b4e30456df351470d8784922f", kill_on_drop: false }` [INFO] [stdout] 23a82f1622ac6ce91242c5c160935c140ac7308b4e30456df351470d8784922f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] bd3fec82b56841258c75ed7847694bb46b997e5d4d18fa87a2d3e8bcb02c1a54 [INFO] running `Command { std: "docker" "start" "-a" "bd3fec82b56841258c75ed7847694bb46b997e5d4d18fa87a2d3e8bcb02c1a54", kill_on_drop: false }` [INFO] [stderr] Compiling rust_blockchain v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `IpAddr`, `Ipv4Addr`, `Ipv6Addr`, and `SocketAddrV4` [INFO] [stdout] --> src/main.rs:3:16 [INFO] [stdout] | [INFO] [stdout] 3 | use std::net::{IpAddr, Ipv4Addr, Ipv6Addr, SocketAddr, SocketAddrV4}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^ ^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::str::FromStr` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::str::FromStr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Signature`, `Signer`, `SigningKey`, `Verifier`, and `VerifyingKey` [INFO] [stdout] --> src/main.rs:5:21 [INFO] [stdout] | [INFO] [stdout] 5 | use ed25519_dalek::{Signature, Signer, SigningKey, Verifier, VerifyingKey}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^ ^^^^^^^^^^ ^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> src/main.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::Result` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use serde_json::Result; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Signer` [INFO] [stdout] --> src/account_utils.rs:2:32 [INFO] [stdout] | [INFO] [stdout] 2 | use ed25519_dalek::{Signature, Signer, SigningKey, VerifyingKey}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `IpAddr` [INFO] [stdout] --> src/peers.rs:5:16 [INFO] [stdout] | [INFO] [stdout] 5 | use std::net::{IpAddr, SocketAddr}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::str::FromStr` [INFO] [stdout] --> src/peers.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::str::FromStr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::sync::OnceCell` [INFO] [stdout] --> src/db_utils.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use tokio::sync::OnceCell; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/peers.rs:39:13 [INFO] [stdout] | [INFO] [stdout] 39 | let mut new_known_peers: Vec = Vec::new(); [INFO] [stdout] | ----^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/peers.rs:46:20 [INFO] [stdout] | [INFO] [stdout] 46 | Ok(mut response) => { [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_genesis` [INFO] [stdout] --> src/block_utils.rs:113:13 [INFO] [stdout] | [INFO] [stdout] 113 | let is_genesis = block.index == 0; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_genesis` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `remote_addr` [INFO] [stdout] --> src/main.rs:50:14 [INFO] [stdout] | [INFO] [stdout] 50 | fn get_peers(remote_addr: SocketAddr) -> status::Custom> { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_remote_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | let mut peers = peers::Peers::new(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DIFFICULTY` is never used [INFO] [stdout] --> src/block_utils.rs:8:7 [INFO] [stdout] | [INFO] [stdout] 8 | const DIFFICULTY: usize = 8; // number of zeros needed to prefix hash (bits) [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_priv_key` is never used [INFO] [stdout] --> src/account_utils.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn generate_priv_key() -> SigningKey { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_pub_key` is never used [INFO] [stdout] --> src/account_utils.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn generate_pub_key(private_key: &SigningKey) -> VerifyingKey { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `priv_key_to_hex` is never used [INFO] [stdout] --> src/account_utils.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn priv_key_to_hex(private_key: &SigningKey) -> String { hex::encode(private_key.to_bytes()) } [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `pub_key_to_hex` is never used [INFO] [stdout] --> src/account_utils.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn pub_key_to_hex(pub_key: &VerifyingKey) -> String { hex::encode(pub_key.to_bytes()) } [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `signature_to_hex` is never used [INFO] [stdout] --> src/account_utils.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn signature_to_hex(signature: &Signature) -> String { hex::encode(signature.to_bytes()) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `priv_key_from_hex` is never used [INFO] [stdout] --> src/account_utils.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn priv_key_from_hex(hex_str: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `pub_key_from_hex` is never used [INFO] [stdout] --> src/account_utils.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn pub_key_from_hex(hex_str: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `signature_from_hex` is never used [INFO] [stdout] --> src/account_utils.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn signature_from_hex(hex_str: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `from_json`, `get_known_peers`, and `remove_ip` are never used [INFO] [stdout] --> src/peers.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl Peers { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn from_json(json: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn get_known_peers(&mut self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 91 | pub fn remove_ip(&mut self, ip_addr: SocketAddr) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:61:21 [INFO] [stdout] | [INFO] [stdout] 61 | db_utils::add_block(Block::add_acc_diff_to_block(block)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 61 | let _ = db_utils::add_block(Block::add_acc_diff_to_block(block)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:86:5 [INFO] [stdout] | [INFO] [stdout] 86 | db_utils::create_tables(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 86 | let _ = db_utils::create_tables(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:111:5 [INFO] [stdout] | [INFO] [stdout] 111 | db_utils::add_block(genesis); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 111 | let _ = db_utils::add_block(genesis); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/db_utils.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 49 | statement.next(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 49 | let _ = statement.next(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.22s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: num-bigint-dig v0.8.4 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 2` [INFO] running `Command { std: "docker" "inspect" "bd3fec82b56841258c75ed7847694bb46b997e5d4d18fa87a2d3e8bcb02c1a54", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bd3fec82b56841258c75ed7847694bb46b997e5d4d18fa87a2d3e8bcb02c1a54", kill_on_drop: false }` [INFO] [stdout] bd3fec82b56841258c75ed7847694bb46b997e5d4d18fa87a2d3e8bcb02c1a54