[INFO] cloning repository https://github.com/remylch/ola-chain [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/remylch/ola-chain" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fremylch%2Fola-chain", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fremylch%2Fola-chain'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 48bfd4d1c857334ead252ace4d3501a51006b862 [INFO] checking remylch/ola-chain against try#2b43d8e161cfe46fae25518efb124c3c1d0fa392 for pr-145604 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fremylch%2Fola-chain" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/remylch/ola-chain [INFO] finished tweaking git repo https://github.com/remylch/ola-chain [INFO] tweaked toml for git repo https://github.com/remylch/ola-chain written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/remylch/ola-chain on toolchain 2b43d8e161cfe46fae25518efb124c3c1d0fa392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2b43d8e161cfe46fae25518efb124c3c1d0fa392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/remylch/ola-chain 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" "+2b43d8e161cfe46fae25518efb124c3c1d0fa392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded keccak v0.2.0-pre.0 [INFO] [stderr] Downloaded block-buffer v0.11.0-rc.4 [INFO] [stderr] Downloaded crypto-common v0.2.0-rc.3 [INFO] [stderr] Downloaded digest v0.11.0-rc.0 [INFO] [stderr] Downloaded secp256k1 v0.31.1 [INFO] [stderr] Downloaded const-oid v0.10.1 [INFO] [stderr] Downloaded hybrid-array v0.3.1 [INFO] [stderr] Downloaded sha3 v0.11.0-rc.0 [INFO] [stderr] Downloaded secp256k1-sys v0.11.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+2b43d8e161cfe46fae25518efb124c3c1d0fa392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3435d73675db49839e383a2253d52e735f7c76bd011eca703f0e8f6ab458d675 [INFO] running `Command { std: "docker" "start" "-a" "3435d73675db49839e383a2253d52e735f7c76bd011eca703f0e8f6ab458d675", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3435d73675db49839e383a2253d52e735f7c76bd011eca703f0e8f6ab458d675", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3435d73675db49839e383a2253d52e735f7c76bd011eca703f0e8f6ab458d675", kill_on_drop: false }` [INFO] [stdout] 3435d73675db49839e383a2253d52e735f7c76bd011eca703f0e8f6ab458d675 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+2b43d8e161cfe46fae25518efb124c3c1d0fa392" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d8851c65c3368c5027bd992fab90a483c0657745954d75fa014a6694cf17a034 [INFO] running `Command { std: "docker" "start" "-a" "d8851c65c3368c5027bd992fab90a483c0657745954d75fa014a6694cf17a034", kill_on_drop: false }` [INFO] [stderr] Compiling typenum v1.18.0 [INFO] [stderr] Compiling proc-macro2 v1.0.95 [INFO] [stderr] Compiling libc v0.2.174 [INFO] [stderr] Checking cfg-if v1.0.1 [INFO] [stderr] Compiling zerocopy v0.8.26 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling autocfg v1.5.0 [INFO] [stderr] Checking const-oid v0.10.1 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Checking iana-time-zone v0.1.63 [INFO] [stderr] Checking ryu v1.0.20 [INFO] [stderr] Checking cpufeatures v0.2.17 [INFO] [stderr] Checking itoa v1.0.15 [INFO] [stderr] Checking keccak v0.2.0-pre.0 [INFO] [stderr] Checking memchr v2.7.5 [INFO] [stderr] Checking dotenv v0.15.0 [INFO] [stderr] Checking hex v0.4.3 [INFO] [stderr] Compiling cc v1.2.29 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Checking generic-array v0.14.7 [INFO] [stderr] Checking hybrid-array v0.3.1 [INFO] [stderr] Compiling secp256k1-sys v0.11.0 [INFO] [stderr] Checking rand_core v0.9.3 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking crypto-common v0.2.0-rc.3 [INFO] [stderr] Checking block-buffer v0.11.0-rc.4 [INFO] [stderr] Checking ppv-lite86 v0.2.21 [INFO] [stderr] Checking sha2 v0.10.9 [INFO] [stderr] Checking rand_chacha v0.9.0 [INFO] [stderr] Checking rand v0.9.1 [INFO] [stderr] Checking digest v0.11.0-rc.0 [INFO] [stderr] Checking sha3 v0.11.0-rc.0 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Checking secp256k1 v0.31.1 [INFO] [stderr] Checking chrono v0.4.41 [INFO] [stderr] Checking OlaChain v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around `match` scrutinee expression [INFO] [stdout] --> src/node.rs:128:19 [INFO] [stdout] | [INFO] [stdout] 128 | match (self.connect_to_peer(peer)) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 128 - match (self.connect_to_peer(peer)) { [INFO] [stdout] 128 + match self.connect_to_peer(peer) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `match` scrutinee expression [INFO] [stdout] --> src/node.rs:128:19 [INFO] [stdout] | [INFO] [stdout] 128 | match (self.connect_to_peer(peer)) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 128 - match (self.connect_to_peer(peer)) { [INFO] [stdout] 128 + match self.connect_to_peer(peer) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hash` [INFO] [stdout] --> src/hash.rs:27:17 [INFO] [stdout] | [INFO] [stdout] 27 | fn validate(hash: String) -> bool { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_hash` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hash` [INFO] [stdout] --> src/hash.rs:27:17 [INFO] [stdout] | [INFO] [stdout] 27 | fn validate(hash: String) -> bool { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_hash` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `validate` is never used [INFO] [stdout] --> src/hash.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 10 | impl Hash { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 27 | fn validate(hash: String) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `IoError`, `SerializationError`, `ValidationError`, and `DuplicateBlockError` are never constructed [INFO] [stdout] --> src/store.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub enum StoreError { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] 13 | IoError(std::io::Error), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 14 | SerializationError(serde_json::Error), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 15 | ValidationError(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 16 | NoBlockToCreate(), [INFO] [stdout] 17 | DuplicateBlockError(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `StoreError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Signer` is never used [INFO] [stdout] --> src/transaction.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | pub trait Signer { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `sign`, `verify_signature`, `is_valid`, and `calculate_hash` are never used [INFO] [stdout] --> src/transaction.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl Transaction { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 23 | pub fn new(from: Address, to: Address, amount: u64) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn sign(&mut self, private_key: &SecretKey) -> Result<(), String> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | pub fn verify_signature(&self, public_key: PublicKey) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 72 | pub fn is_valid(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 76 | fn calculate_hash(&self) -> [u8; 32] { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `generate`, `from_public_key`, `is_valid`, `as_bytes`, and `keccak256` are never used [INFO] [stdout] --> src/address.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl Address { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 12 | pub fn generate() -> (Self, SecretKey, PublicKey) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn from_public_key(pub_key: &[u8]) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | pub fn is_valid(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | pub fn as_bytes(&self) -> Option> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | fn keccak256(data: &[u8]) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `current_block` is never read [INFO] [stdout] --> src/block_builder.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct BlockBuilder { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 10 | transaction_pool: TransactionPool, [INFO] [stdout] 11 | current_block: Option, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BlockBuilder` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `add_transaction` and `get_pending_transaction_count` are never used [INFO] [stdout] --> src/block_builder.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl BlockBuilder { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn add_transaction(&mut self, transaction: Transaction) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 72 | pub fn get_pending_transaction_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `add_transaction` is never used [INFO] [stdout] --> src/transaction_pool.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl TransactionPool { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn add_transaction(&mut self, transaction: Transaction) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `IoError`, `SerializationError`, `ValidationError`, and `DuplicateBlockError` are never constructed [INFO] [stdout] --> src/store.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub enum StoreError { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] 13 | IoError(std::io::Error), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 14 | SerializationError(serde_json::Error), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 15 | ValidationError(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 16 | NoBlockToCreate(), [INFO] [stdout] 17 | DuplicateBlockError(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `StoreError` 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: trait `Signer` is never used [INFO] [stdout] --> src/transaction.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | pub trait Signer { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `sign`, `verify_signature`, and `is_valid` are never used [INFO] [stdout] --> src/transaction.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl Transaction { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn sign(&mut self, private_key: &SecretKey) -> Result<(), String> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | pub fn verify_signature(&self, public_key: PublicKey) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 72 | pub fn is_valid(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `current_block` is never read [INFO] [stdout] --> src/block_builder.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct BlockBuilder { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 10 | transaction_pool: TransactionPool, [INFO] [stdout] 11 | current_block: Option, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BlockBuilder` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `add_transaction` and `get_pending_transaction_count` are never used [INFO] [stdout] --> src/block_builder.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl BlockBuilder { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn add_transaction(&mut self, transaction: Transaction) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 72 | pub fn get_pending_transaction_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `add_transaction` is never used [INFO] [stdout] --> src/transaction_pool.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl TransactionPool { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn add_transaction(&mut self, transaction: Transaction) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 17.00s [INFO] running `Command { std: "docker" "inspect" "d8851c65c3368c5027bd992fab90a483c0657745954d75fa014a6694cf17a034", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d8851c65c3368c5027bd992fab90a483c0657745954d75fa014a6694cf17a034", kill_on_drop: false }` [INFO] [stdout] d8851c65c3368c5027bd992fab90a483c0657745954d75fa014a6694cf17a034