[INFO] cloning repository https://github.com/anatolii10k/custom-substrate-node [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/anatolii10k/custom-substrate-node" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fanatolii10k%2Fcustom-substrate-node", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fanatolii10k%2Fcustom-substrate-node'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 331bd02f3c00402c08a8e6374859cb6284895a25 [INFO] checking anatolii10k/custom-substrate-node against try#9543f8ea2aae74b8f13ac2a6e6c0ecdca9810869 for pr-129249 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fanatolii10k%2Fcustom-substrate-node" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/anatolii10k/custom-substrate-node on toolchain 9543f8ea2aae74b8f13ac2a6e6c0ecdca9810869 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9543f8ea2aae74b8f13ac2a6e6c0ecdca9810869" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/anatolii10k/custom-substrate-node [INFO] finished tweaking git repo https://github.com/anatolii10k/custom-substrate-node [INFO] tweaked toml for git repo https://github.com/anatolii10k/custom-substrate-node written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/anatolii10k/custom-substrate-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" "+9543f8ea2aae74b8f13ac2a6e6c0ecdca9810869" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+9543f8ea2aae74b8f13ac2a6e6c0ecdca9810869" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c63a560bbed4c2f30b54c79851e57d9f58255a1701b389047f869cd4896759e6 [INFO] running `Command { std: "docker" "start" "-a" "c63a560bbed4c2f30b54c79851e57d9f58255a1701b389047f869cd4896759e6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c63a560bbed4c2f30b54c79851e57d9f58255a1701b389047f869cd4896759e6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c63a560bbed4c2f30b54c79851e57d9f58255a1701b389047f869cd4896759e6", kill_on_drop: false }` [INFO] [stdout] c63a560bbed4c2f30b54c79851e57d9f58255a1701b389047f869cd4896759e6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+9543f8ea2aae74b8f13ac2a6e6c0ecdca9810869" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3217d90b6500c92d598b697fbe19b42284c015bf3558d93391ae7d6f4dd0b081 [INFO] running `Command { std: "docker" "start" "-a" "3217d90b6500c92d598b697fbe19b42284c015bf3558d93391ae7d6f4dd0b081", kill_on_drop: false }` [INFO] [stderr] Compiling version_check v0.9.3 [INFO] [stderr] Compiling typenum v1.13.0 [INFO] [stderr] Checking subtle v2.4.1 [INFO] [stderr] Checking opaque-debug v0.3.0 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Checking crypto-mac v0.8.0 [INFO] [stderr] Checking digest v0.9.0 [INFO] [stderr] Checking blake2 v0.9.2 [INFO] [stderr] Checking Rust_Sandbox v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: field `pending_transactions` is never read [INFO] [stdout] --> src/rchain/mod.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct Blockchain { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 24 | pending_transactions: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Blockchain` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ChangeStoreValue` is never constructed [INFO] [stdout] --> src/rchain/mod.rs:94:5 [INFO] [stdout] | [INFO] [stdout] 89 | pub enum TransactionData { [INFO] [stdout] | --------------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 94 | ChangeStoreValue { key: String, value: String }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TransactionData` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `store` and `acc_type` are never read [INFO] [stdout] --> src/rchain/mod.rs:111:5 [INFO] [stdout] | [INFO] [stdout] 109 | pub struct Account { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 110 | /// We want the account to be able to store any information we want (Dictionary) [INFO] [stdout] 111 | store: HashMap, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 114 | acc_type: AccountType, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Account` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Contract` and `Validator` are never constructed [INFO] [stdout] --> src/rchain/mod.rs:132:5 [INFO] [stdout] | [INFO] [stdout] 124 | pub enum AccountType { [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 132 | Contract, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 136 | Validator { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AccountType` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `set_nonce` is never used [INFO] [stdout] --> src/rchain/mod.rs:309:12 [INFO] [stdout] | [INFO] [stdout] 298 | impl Block { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 309 | pub fn set_nonce(&mut self, nonce: u128) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this conversion is useless `String` to `String` [INFO] [stdout] --> src/rchain/mod.rs:230:28 [INFO] [stdout] | [INFO] [stdout] 230 | return Err(format!("Stored hash for Block #{} \ [INFO] [stdout] | ____________________________^ [INFO] [stdout] 231 | | does not match calculated hash (Code: 665234234)", block_num + 1).into()); [INFO] [stdout] | |____________________________________________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: `#[deny(self_type_conversion)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this conversion is useless `String` to `String` [INFO] [stdout] --> src/rchain/mod.rs:244:32 [INFO] [stdout] | [INFO] [stdout] 244 | return Err(format!("Block #{} has no previous hash set", block_num + 1).into()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this conversion is useless `String` to `String` [INFO] [stdout] --> src/rchain/mod.rs:252:32 [INFO] [stdout] | [INFO] [stdout] 252 | return Err(format!("Block #{} is not connected to previous block (Hashes do \ [INFO] [stdout] | ________________________________^ [INFO] [stdout] 253 | | not match. Should be `{}` but is `{}`)", block_num, prev_hash_proposed, [INFO] [stdout] 254 | | prev_hash_actual).into()); [INFO] [stdout] | |_______________________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `Rust_Sandbox` (bin "Rust_Sandbox") due to 3 previous errors; 5 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: field `pending_transactions` is never read [INFO] [stdout] --> src/rchain/mod.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct Blockchain { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 24 | pending_transactions: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Blockchain` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ChangeStoreValue` is never constructed [INFO] [stdout] --> src/rchain/mod.rs:94:5 [INFO] [stdout] | [INFO] [stdout] 89 | pub enum TransactionData { [INFO] [stdout] | --------------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 94 | ChangeStoreValue { key: String, value: String }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TransactionData` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `store` and `acc_type` are never read [INFO] [stdout] --> src/rchain/mod.rs:111:5 [INFO] [stdout] | [INFO] [stdout] 109 | pub struct Account { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 110 | /// We want the account to be able to store any information we want (Dictionary) [INFO] [stdout] 111 | store: HashMap, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 114 | acc_type: AccountType, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Account` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Contract` and `Validator` are never constructed [INFO] [stdout] --> src/rchain/mod.rs:132:5 [INFO] [stdout] | [INFO] [stdout] 124 | pub enum AccountType { [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 132 | Contract, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 136 | Validator { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AccountType` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `set_nonce` is never used [INFO] [stdout] --> src/rchain/mod.rs:309:12 [INFO] [stdout] | [INFO] [stdout] 298 | impl Block { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 309 | pub fn set_nonce(&mut self, nonce: u128) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this conversion is useless `String` to `String` [INFO] [stdout] --> src/rchain/mod.rs:230:28 [INFO] [stdout] | [INFO] [stdout] 230 | return Err(format!("Stored hash for Block #{} \ [INFO] [stdout] | ____________________________^ [INFO] [stdout] 231 | | does not match calculated hash (Code: 665234234)", block_num + 1).into()); [INFO] [stdout] | |____________________________________________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: `#[deny(self_type_conversion)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this conversion is useless `String` to `String` [INFO] [stdout] --> src/rchain/mod.rs:244:32 [INFO] [stdout] | [INFO] [stdout] 244 | return Err(format!("Block #{} has no previous hash set", block_num + 1).into()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this conversion is useless `String` to `String` [INFO] [stdout] --> src/rchain/mod.rs:252:32 [INFO] [stdout] | [INFO] [stdout] 252 | return Err(format!("Block #{} is not connected to previous block (Hashes do \ [INFO] [stdout] | ________________________________^ [INFO] [stdout] 253 | | not match. Should be `{}` but is `{}`)", block_num, prev_hash_proposed, [INFO] [stdout] 254 | | prev_hash_actual).into()); [INFO] [stdout] | |_______________________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `Rust_Sandbox` (bin "Rust_Sandbox" test) due to 3 previous errors; 5 warnings emitted [INFO] running `Command { std: "docker" "inspect" "3217d90b6500c92d598b697fbe19b42284c015bf3558d93391ae7d6f4dd0b081", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3217d90b6500c92d598b697fbe19b42284c015bf3558d93391ae7d6f4dd0b081", kill_on_drop: false }` [INFO] [stdout] 3217d90b6500c92d598b697fbe19b42284c015bf3558d93391ae7d6f4dd0b081