[INFO] cloning repository https://github.com/ddjerqq/crypton_node [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ddjerqq/crypton_node" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fddjerqq%2Fcrypton_node", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fddjerqq%2Fcrypton_node'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] cb051b411f0ff5891bcc2d1fe04d665eef883ec1 [INFO] checking ddjerqq/crypton_node/cb051b411f0ff5891bcc2d1fe04d665eef883ec1 against master#ab869e094a907cc5d19b4080f22eccaf347f1f95 for pr-129604 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fddjerqq%2Fcrypton_node" "/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/ddjerqq/crypton_node on toolchain ab869e094a907cc5d19b4080f22eccaf347f1f95 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ddjerqq/crypton_node [INFO] finished tweaking git repo https://github.com/ddjerqq/crypton_node [INFO] tweaked toml for git repo https://github.com/ddjerqq/crypton_node written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/ddjerqq/crypton_node 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" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded secp256k1 v0.28.0 [INFO] [stderr] Downloaded derive_builder v0.10.2 [INFO] [stderr] Downloaded derive_builder_macro v0.10.2 [INFO] [stderr] Downloaded derive_builder_core v0.10.2 [INFO] [stderr] Downloaded chbs v0.1.1 [INFO] [stderr] Downloaded secp256k1-sys v0.9.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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c1015725f8aefa1002512d7a54a68cadf1ea71cde18c2f4023078351b043c02d [INFO] running `Command { std: "docker" "start" "-a" "c1015725f8aefa1002512d7a54a68cadf1ea71cde18c2f4023078351b043c02d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c1015725f8aefa1002512d7a54a68cadf1ea71cde18c2f4023078351b043c02d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c1015725f8aefa1002512d7a54a68cadf1ea71cde18c2f4023078351b043c02d", kill_on_drop: false }` [INFO] [stdout] c1015725f8aefa1002512d7a54a68cadf1ea71cde18c2f4023078351b043c02d [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=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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c2adea7fe73cbd2170c17a50921fe4cc1ccbd8f534a3c8edf520e04483d70deb [INFO] running `Command { std: "docker" "start" "-a" "c2adea7fe73cbd2170c17a50921fe4cc1ccbd8f534a3c8edf520e04483d70deb", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.150 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking zeroize v1.7.0 [INFO] [stderr] Compiling paste v1.0.14 [INFO] [stderr] Checking subtle v2.5.0 [INFO] [stderr] Compiling serde v1.0.193 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling num-traits v0.2.17 [INFO] [stderr] Compiling thiserror v1.0.50 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Checking cpufeatures v0.2.11 [INFO] [stderr] Checking base16ct v0.2.0 [INFO] [stderr] Checking hex v0.4.3 [INFO] [stderr] Compiling syn v2.0.39 [INFO] [stderr] Compiling cc v1.0.83 [INFO] [stderr] Checking getrandom v0.2.11 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking uuid v1.6.1 [INFO] [stderr] Checking rmp v0.8.12 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking ff v0.13.0 [INFO] [stderr] Checking group v0.13.0 [INFO] [stderr] Compiling secp256k1-sys v0.9.0 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking crypto-bigint v0.5.5 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking sha2 v0.10.8 [INFO] [stderr] Compiling serde_derive v1.0.193 [INFO] [stderr] Compiling thiserror-impl v1.0.50 [INFO] [stderr] Checking elliptic-curve v0.13.8 [INFO] [stderr] Compiling darling_core v0.12.4 [INFO] [stderr] Checking secp256k1 v0.28.0 [INFO] [stderr] Compiling darling_macro v0.12.4 [INFO] [stderr] Compiling darling v0.12.4 [INFO] [stderr] Compiling derive_builder_core v0.10.2 [INFO] [stderr] Compiling derive_builder_macro v0.10.2 [INFO] [stderr] Checking derive_builder v0.10.2 [INFO] [stderr] Checking chbs v0.1.1 [INFO] [stderr] Checking rmp-serde v1.1.2 [INFO] [stderr] Checking crypton_node v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Read` [INFO] [stdout] --> src/main.rs:4:15 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::{Read, Write}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Read` [INFO] [stdout] --> src/main.rs:4:15 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::{Read, Write}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PAYLOAD_SIZE` is never used [INFO] [stdout] --> src/transaction.rs:8:7 [INFO] [stdout] | [INFO] [stdout] 8 | const PAYLOAD_SIZE: usize = 112; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EMPTY_HASH` is never used [INFO] [stdout] --> src/transaction.rs:9:7 [INFO] [stdout] | [INFO] [stdout] 9 | const EMPTY_HASH: [u8; 32] = [0u8; 32]; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EMPTY_SIGN` is never used [INFO] [stdout] --> src/transaction.rs:10:7 [INFO] [stdout] | [INFO] [stdout] 10 | const EMPTY_SIGN: [u8; 64] = [0u8; 64]; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `get_payload` are never used [INFO] [stdout] --> src/transaction.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 24 | impl<'a> Transaction<'a> { [INFO] [stdout] | ------------------------ associated items in this implementation [INFO] [stdout] 25 | pub fn new(sender: &'a Wallet, recipient: &'a Wallet, amount: u64, fee: u64) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn get_payload(&self) -> [u8; PAYLOAD_SIZE] { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `ecdsa` and `balance` are never read [INFO] [stdout] --> src/wallet.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Wallet { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 8 | pub ecdsa: Ecdsa, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 9 | pub balance: u64, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Wallet` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `from_passphrase`, `sign`, and `verify` are never used [INFO] [stdout] --> src/wallet.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl Wallet { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 14 | pub fn new(ecdsa: Ecdsa) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn from_passphrase(passphrase: &str) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn sign(&self, data: &[u8]) -> Signature { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | pub fn verify(&self, data: &[u8], sig: &Signature) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `passphrase` is never used [INFO] [stdout] --> src/crypto/passphrase.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn passphrase(count: usize) -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `from_passphrase`, `sign`, and `verify` are never used [INFO] [stdout] --> src/crypto/ecdsa.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl Ecdsa { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 23 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn from_passphrase(passphrase: &str) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | pub fn sign(&self, msg: &Message) -> Signature { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn verify(&self, msg: &Message, sig: &Signature) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `genesis`, `next`, `add_transaction`, `get_total_fee`, and `get_digest` are never used [INFO] [stdout] --> src/block.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl<'a> Block<'a> { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 20 | pub fn genesis() -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn next(&self) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | pub fn add_transaction(&mut self, transaction: &Transaction<'a>) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn get_total_fee(&self) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | pub fn get_digest(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DEGREES` is never used [INFO] [stdout] --> src/util/hash_ring.rs:1:7 [INFO] [stdout] | [INFO] [stdout] 1 | const DEGREES: usize = 360; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `HashRing` is never constructed [INFO] [stdout] --> src/util/hash_ring.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct HashRing { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `HashRing` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `get` are never used [INFO] [stdout] --> src/util/hash_ring.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl HashRing { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 9 | pub fn new(nodes: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | pub fn get(&self, item: usize) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mine_single_core` is never used [INFO] [stdout] --> src/miner.rs:8:4 [INFO] [stdout] | [INFO] [stdout] 8 | fn mine_single_core(block: &mut Block) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `miner_thread` is never used [INFO] [stdout] --> src/miner.rs:29:4 [INFO] [stdout] | [INFO] [stdout] 29 | fn miner_thread(idx: usize, difficulty: &u64, mut payload: [u8; 96], hash_ring: &HashRing, valid_nonce: Arc) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mine_multi_core` is never used [INFO] [stdout] --> src/miner.rs:59:4 [INFO] [stdout] | [INFO] [stdout] 59 | fn mine_multi_core(block: &mut Block, parallelism_available: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mine` is never used [INFO] [stdout] --> src/miner.rs:89:8 [INFO] [stdout] | [INFO] [stdout] 89 | pub fn mine(block: &mut Block) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `id` is never read [INFO] [stdout] --> src/protocol/peer.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct Peer { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 12 | pub id: Uuid, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 18 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `balance` is never read [INFO] [stdout] --> src/wallet.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Wallet { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 8 | pub ecdsa: Ecdsa, [INFO] [stdout] 9 | pub balance: u64, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Wallet` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_total_fee` and `get_digest` are never used [INFO] [stdout] --> src/block.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl<'a> Block<'a> { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn get_total_fee(&self) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | pub fn get_digest(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `id` is never read [INFO] [stdout] --> src/protocol/peer.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct Peer { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 12 | pub id: Uuid, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 13.27s [INFO] running `Command { std: "docker" "inspect" "c2adea7fe73cbd2170c17a50921fe4cc1ccbd8f534a3c8edf520e04483d70deb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c2adea7fe73cbd2170c17a50921fe4cc1ccbd8f534a3c8edf520e04483d70deb", kill_on_drop: false }` [INFO] [stdout] c2adea7fe73cbd2170c17a50921fe4cc1ccbd8f534a3c8edf520e04483d70deb