[INFO] cloning repository https://github.com/jaeyoung0909/Jupiterium [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/jaeyoung0909/Jupiterium" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjaeyoung0909%2FJupiterium", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjaeyoung0909%2FJupiterium'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a48f2b021e9f92f852da00a0ebb29a5ad9c3aaca [INFO] testing jaeyoung0909/Jupiterium against beta-2022-04-10 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjaeyoung0909%2FJupiterium" "/workspace/builds/worker-8/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-8/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/jaeyoung0909/Jupiterium on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/jaeyoung0909/Jupiterium [INFO] finished tweaking git repo https://github.com/jaeyoung0909/Jupiterium [INFO] tweaked toml for git repo https://github.com/jaeyoung0909/Jupiterium written to /workspace/builds/worker-8/source/Cargo.toml [INFO] crate git repo https://github.com/jaeyoung0909/Jupiterium already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 124f8ca3bfe60a8e76ec64e817c96c86caafb3f9a2b497e37b48163b96aebefa [INFO] running `Command { std: "docker" "start" "-a" "124f8ca3bfe60a8e76ec64e817c96c86caafb3f9a2b497e37b48163b96aebefa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "124f8ca3bfe60a8e76ec64e817c96c86caafb3f9a2b497e37b48163b96aebefa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "124f8ca3bfe60a8e76ec64e817c96c86caafb3f9a2b497e37b48163b96aebefa", kill_on_drop: false }` [INFO] [stdout] 124f8ca3bfe60a8e76ec64e817c96c86caafb3f9a2b497e37b48163b96aebefa [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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" "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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 61e1c2b216c0f48508d5323945bcef7d21dd03f3443bab9192646781302471e5 [INFO] running `Command { std: "docker" "start" "-a" "61e1c2b216c0f48508d5323945bcef7d21dd03f3443bab9192646781302471e5", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling typenum v1.13.0 [INFO] [stderr] Compiling version_check v0.9.3 [INFO] [stderr] Compiling subtle v2.4.0 [INFO] [stderr] Compiling opaque-debug v0.3.0 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling crypto-mac v0.8.0 [INFO] [stderr] Compiling blake2 v0.9.1 [INFO] [stderr] Compiling Jupiterium v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `Block`, `TransactionData`, `Transaction` [INFO] [stdout] --> src/main.rs:2:25 [INFO] [stdout] | [INFO] [stdout] 2 | use chain::{BlockChain, Block, Transaction, TransactionData}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::BorrowMut` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::borrow::BorrowMut; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bc` [INFO] [stdout] --> src/main.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | let mut bc = BlockChain::new(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_bc` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block` [INFO] [stdout] --> src/chain/mod.rs:233:31 [INFO] [stdout] | [INFO] [stdout] 233 | fn check_validity(& self, block: Block) -> Result<(), String> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_block` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | let mut bc = BlockChain::new(); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `nonce` [INFO] [stdout] --> src/chain/mod.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | nonce: u128, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `from` [INFO] [stdout] --> src/chain/mod.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | from: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `created_at` [INFO] [stdout] --> src/chain/mod.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | created_at: SystemTime, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `record` [INFO] [stdout] --> src/chain/mod.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub(crate) record: TransactionData, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `signature` [INFO] [stdout] --> src/chain/mod.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | signature: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/chain/mod.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn new(from: String, transaction_data: TransactionData, nonce: u128) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `execute` [INFO] [stdout] --> src/chain/mod.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn execute (&self, world_state: &mut T, is_initial: &bool) -> Result<(), &'static str> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `calculate_hash` [INFO] [stdout] --> src/chain/mod.rs:89:12 [INFO] [stdout] | [INFO] [stdout] 89 | pub fn calculate_hash(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `check_signature` [INFO] [stdout] --> src/chain/mod.rs:96:12 [INFO] [stdout] | [INFO] [stdout] 96 | pub fn check_signature(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_signed` [INFO] [stdout] --> src/chain/mod.rs:104:12 [INFO] [stdout] | [INFO] [stdout] 104 | pub fn is_signed(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `CreateUserAccount` [INFO] [stdout] --> src/chain/mod.rs:111:5 [INFO] [stdout] | [INFO] [stdout] 111 | CreateUserAccount (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] --> src/chain/mod.rs:109:10 [INFO] [stdout] | [INFO] [stdout] 109 | #[derive(Clone, Debug, PartialEq)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `ChangeStoreValue` [INFO] [stdout] --> src/chain/mod.rs:112:5 [INFO] [stdout] | [INFO] [stdout] 112 | 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] --> src/chain/mod.rs:109:10 [INFO] [stdout] | [INFO] [stdout] 109 | #[derive(Clone, Debug, PartialEq)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `TransferTokens` [INFO] [stdout] --> src/chain/mod.rs:113:5 [INFO] [stdout] | [INFO] [stdout] 113 | TransferTokens {to: String, amount: u128}, [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] --> src/chain/mod.rs:109:10 [INFO] [stdout] | [INFO] [stdout] 109 | #[derive(Clone, Debug, PartialEq)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `CreateTokens` [INFO] [stdout] --> src/chain/mod.rs:114:5 [INFO] [stdout] | [INFO] [stdout] 114 | CreateTokens {receiver: String, amount: u128}, [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] --> src/chain/mod.rs:109:10 [INFO] [stdout] | [INFO] [stdout] 109 | #[derive(Clone, Debug, PartialEq)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `transactions` [INFO] [stdout] --> src/chain/mod.rs:118:5 [INFO] [stdout] | [INFO] [stdout] 118 | pub(crate) transactions: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `hash` [INFO] [stdout] --> src/chain/mod.rs:119:5 [INFO] [stdout] | [INFO] [stdout] 119 | hash: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `prev_hash` [INFO] [stdout] --> src/chain/mod.rs:120:5 [INFO] [stdout] | [INFO] [stdout] 120 | prev_hash: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `nonce` [INFO] [stdout] --> src/chain/mod.rs:121:5 [INFO] [stdout] | [INFO] [stdout] 121 | nonce: u128, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/chain/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub fn new(prev_hash: Option) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `calculate_hash` [INFO] [stdout] --> src/chain/mod.rs:134:12 [INFO] [stdout] | [INFO] [stdout] 134 | pub fn calculate_hash(& self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_transaction` [INFO] [stdout] --> src/chain/mod.rs:147:8 [INFO] [stdout] | [INFO] [stdout] 147 | fn add_transaction(&mut self, transaction: Transaction) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_transaction_count` [INFO] [stdout] --> src/chain/mod.rs:152:12 [INFO] [stdout] | [INFO] [stdout] 152 | pub fn get_transaction_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `update_hash` [INFO] [stdout] --> src/chain/mod.rs:156:19 [INFO] [stdout] | [INFO] [stdout] 156 | pub(crate) fn update_hash(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_nonce` [INFO] [stdout] --> src/chain/mod.rs:160:8 [INFO] [stdout] | [INFO] [stdout] 160 | fn set_nonce(&mut self, nonce: u128){ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `verify_own_hash` [INFO] [stdout] --> src/chain/mod.rs:165:8 [INFO] [stdout] | [INFO] [stdout] 165 | fn verify_own_hash(& self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `pending_transactions` [INFO] [stdout] --> src/chain/mod.rs:178:5 [INFO] [stdout] | [INFO] [stdout] 178 | pending_transactions: Vec [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `append_block` [INFO] [stdout] --> src/chain/mod.rs:190:12 [INFO] [stdout] | [INFO] [stdout] 190 | pub fn append_block(&mut self, block: Block) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `len` [INFO] [stdout] --> src/chain/mod.rs:221:12 [INFO] [stdout] | [INFO] [stdout] 221 | pub fn len(&self) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_last_block_hash` [INFO] [stdout] --> src/chain/mod.rs:225:12 [INFO] [stdout] | [INFO] [stdout] 225 | pub fn get_last_block_hash(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `check_validity` [INFO] [stdout] --> src/chain/mod.rs:233:8 [INFO] [stdout] | [INFO] [stdout] 233 | fn check_validity(& self, block: Block) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `store` [INFO] [stdout] --> src/chain/mod.rs:304:5 [INFO] [stdout] | [INFO] [stdout] 304 | store: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Account` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/chain/mod.rs:302:10 [INFO] [stdout] | [INFO] [stdout] 302 | #[derive(Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `acc_type` [INFO] [stdout] --> src/chain/mod.rs:305:5 [INFO] [stdout] | [INFO] [stdout] 305 | acc_type: AccountType, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Account` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/chain/mod.rs:302:10 [INFO] [stdout] | [INFO] [stdout] 302 | #[derive(Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `tokens` [INFO] [stdout] --> src/chain/mod.rs:306:5 [INFO] [stdout] | [INFO] [stdout] 306 | tokens: u128 [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Account` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/chain/mod.rs:302:10 [INFO] [stdout] | [INFO] [stdout] 302 | #[derive(Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `User` [INFO] [stdout] --> src/chain/mod.rs:321:5 [INFO] [stdout] | [INFO] [stdout] 321 | User, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] note: `AccountType` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/chain/mod.rs:319:10 [INFO] [stdout] | [INFO] [stdout] 319 | #[derive(Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Contract` [INFO] [stdout] --> src/chain/mod.rs:322:5 [INFO] [stdout] | [INFO] [stdout] 322 | Contract, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `AccountType` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/chain/mod.rs:319:10 [INFO] [stdout] | [INFO] [stdout] 319 | #[derive(Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Validator` [INFO] [stdout] --> src/chain/mod.rs:323:5 [INFO] [stdout] | [INFO] [stdout] 323 | / Validator { [INFO] [stdout] 324 | | correctly_validated_blocks: u128, [INFO] [stdout] 325 | | incorrectly_validated_blocks: u128, [INFO] [stdout] 326 | | you_get_the_idea: bool, [INFO] [stdout] 327 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] note: `AccountType` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/chain/mod.rs:319:10 [INFO] [stdout] | [INFO] [stdout] 319 | #[derive(Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `byte_vector_to_string` [INFO] [stdout] --> src/chain/mod.rs:330:4 [INFO] [stdout] | [INFO] [stdout] 330 | fn byte_vector_to_string(arr: &Vec) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `Jupiterium` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] = help: convert the identifier to snake case: `jupiterium` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 43 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 6.46s [INFO] running `Command { std: "docker" "inspect" "61e1c2b216c0f48508d5323945bcef7d21dd03f3443bab9192646781302471e5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "61e1c2b216c0f48508d5323945bcef7d21dd03f3443bab9192646781302471e5", kill_on_drop: false }` [INFO] [stdout] 61e1c2b216c0f48508d5323945bcef7d21dd03f3443bab9192646781302471e5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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" "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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d8d271dfa8e65728e081ac9e80ec8c1a9d433b43173698afe46c4bfc7bdd7b26 [INFO] running `Command { std: "docker" "start" "-a" "d8d271dfa8e65728e081ac9e80ec8c1a9d433b43173698afe46c4bfc7bdd7b26", kill_on_drop: false }` [INFO] [stderr] Compiling Jupiterium v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `Block`, `TransactionData`, `Transaction` [INFO] [stdout] --> src/main.rs:2:25 [INFO] [stdout] | [INFO] [stdout] 2 | use chain::{BlockChain, Block, Transaction, TransactionData}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::BorrowMut` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::borrow::BorrowMut; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bc` [INFO] [stdout] --> src/main.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | let mut bc = BlockChain::new(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_bc` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block` [INFO] [stdout] --> src/chain/mod.rs:233:31 [INFO] [stdout] | [INFO] [stdout] 233 | fn check_validity(& self, block: Block) -> Result<(), String> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_block` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | let mut bc = BlockChain::new(); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `nonce` [INFO] [stdout] --> src/chain/mod.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | nonce: u128, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `from` [INFO] [stdout] --> src/chain/mod.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | from: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `created_at` [INFO] [stdout] --> src/chain/mod.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | created_at: SystemTime, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `record` [INFO] [stdout] --> src/chain/mod.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub(crate) record: TransactionData, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `signature` [INFO] [stdout] --> src/chain/mod.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | signature: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/chain/mod.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn new(from: String, transaction_data: TransactionData, nonce: u128) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `execute` [INFO] [stdout] --> src/chain/mod.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn execute (&self, world_state: &mut T, is_initial: &bool) -> Result<(), &'static str> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `calculate_hash` [INFO] [stdout] --> src/chain/mod.rs:89:12 [INFO] [stdout] | [INFO] [stdout] 89 | pub fn calculate_hash(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `check_signature` [INFO] [stdout] --> src/chain/mod.rs:96:12 [INFO] [stdout] | [INFO] [stdout] 96 | pub fn check_signature(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_signed` [INFO] [stdout] --> src/chain/mod.rs:104:12 [INFO] [stdout] | [INFO] [stdout] 104 | pub fn is_signed(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `CreateUserAccount` [INFO] [stdout] --> src/chain/mod.rs:111:5 [INFO] [stdout] | [INFO] [stdout] 111 | CreateUserAccount (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] --> src/chain/mod.rs:109:10 [INFO] [stdout] | [INFO] [stdout] 109 | #[derive(Clone, Debug, PartialEq)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `ChangeStoreValue` [INFO] [stdout] --> src/chain/mod.rs:112:5 [INFO] [stdout] | [INFO] [stdout] 112 | 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] --> src/chain/mod.rs:109:10 [INFO] [stdout] | [INFO] [stdout] 109 | #[derive(Clone, Debug, PartialEq)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `TransferTokens` [INFO] [stdout] --> src/chain/mod.rs:113:5 [INFO] [stdout] | [INFO] [stdout] 113 | TransferTokens {to: String, amount: u128}, [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] --> src/chain/mod.rs:109:10 [INFO] [stdout] | [INFO] [stdout] 109 | #[derive(Clone, Debug, PartialEq)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `CreateTokens` [INFO] [stdout] --> src/chain/mod.rs:114:5 [INFO] [stdout] | [INFO] [stdout] 114 | CreateTokens {receiver: String, amount: u128}, [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] --> src/chain/mod.rs:109:10 [INFO] [stdout] | [INFO] [stdout] 109 | #[derive(Clone, Debug, PartialEq)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `transactions` [INFO] [stdout] --> src/chain/mod.rs:118:5 [INFO] [stdout] | [INFO] [stdout] 118 | pub(crate) transactions: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `hash` [INFO] [stdout] --> src/chain/mod.rs:119:5 [INFO] [stdout] | [INFO] [stdout] 119 | hash: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `prev_hash` [INFO] [stdout] --> src/chain/mod.rs:120:5 [INFO] [stdout] | [INFO] [stdout] 120 | prev_hash: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `nonce` [INFO] [stdout] --> src/chain/mod.rs:121:5 [INFO] [stdout] | [INFO] [stdout] 121 | nonce: u128, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/chain/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub fn new(prev_hash: Option) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `calculate_hash` [INFO] [stdout] --> src/chain/mod.rs:134:12 [INFO] [stdout] | [INFO] [stdout] 134 | pub fn calculate_hash(& self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_transaction` [INFO] [stdout] --> src/chain/mod.rs:147:8 [INFO] [stdout] | [INFO] [stdout] 147 | fn add_transaction(&mut self, transaction: Transaction) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_transaction_count` [INFO] [stdout] --> src/chain/mod.rs:152:12 [INFO] [stdout] | [INFO] [stdout] 152 | pub fn get_transaction_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `update_hash` [INFO] [stdout] --> src/chain/mod.rs:156:19 [INFO] [stdout] | [INFO] [stdout] 156 | pub(crate) fn update_hash(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_nonce` [INFO] [stdout] --> src/chain/mod.rs:160:8 [INFO] [stdout] | [INFO] [stdout] 160 | fn set_nonce(&mut self, nonce: u128){ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `verify_own_hash` [INFO] [stdout] --> src/chain/mod.rs:165:8 [INFO] [stdout] | [INFO] [stdout] 165 | fn verify_own_hash(& self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `pending_transactions` [INFO] [stdout] --> src/chain/mod.rs:178:5 [INFO] [stdout] | [INFO] [stdout] 178 | pending_transactions: Vec [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `append_block` [INFO] [stdout] --> src/chain/mod.rs:190:12 [INFO] [stdout] | [INFO] [stdout] 190 | pub fn append_block(&mut self, block: Block) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `len` [INFO] [stdout] --> src/chain/mod.rs:221:12 [INFO] [stdout] | [INFO] [stdout] 221 | pub fn len(&self) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_last_block_hash` [INFO] [stdout] --> src/chain/mod.rs:225:12 [INFO] [stdout] | [INFO] [stdout] 225 | pub fn get_last_block_hash(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `check_validity` [INFO] [stdout] --> src/chain/mod.rs:233:8 [INFO] [stdout] | [INFO] [stdout] 233 | fn check_validity(& self, block: Block) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `store` [INFO] [stdout] --> src/chain/mod.rs:304:5 [INFO] [stdout] | [INFO] [stdout] 304 | store: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Account` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/chain/mod.rs:302:10 [INFO] [stdout] | [INFO] [stdout] 302 | #[derive(Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `acc_type` [INFO] [stdout] --> src/chain/mod.rs:305:5 [INFO] [stdout] | [INFO] [stdout] 305 | acc_type: AccountType, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Account` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/chain/mod.rs:302:10 [INFO] [stdout] | [INFO] [stdout] 302 | #[derive(Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `tokens` [INFO] [stdout] --> src/chain/mod.rs:306:5 [INFO] [stdout] | [INFO] [stdout] 306 | tokens: u128 [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Account` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/chain/mod.rs:302:10 [INFO] [stdout] | [INFO] [stdout] 302 | #[derive(Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `User` [INFO] [stdout] --> src/chain/mod.rs:321:5 [INFO] [stdout] | [INFO] [stdout] 321 | User, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] note: `AccountType` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/chain/mod.rs:319:10 [INFO] [stdout] | [INFO] [stdout] 319 | #[derive(Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Contract` [INFO] [stdout] --> src/chain/mod.rs:322:5 [INFO] [stdout] | [INFO] [stdout] 322 | Contract, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `AccountType` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/chain/mod.rs:319:10 [INFO] [stdout] | [INFO] [stdout] 319 | #[derive(Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Validator` [INFO] [stdout] --> src/chain/mod.rs:323:5 [INFO] [stdout] | [INFO] [stdout] 323 | / Validator { [INFO] [stdout] 324 | | correctly_validated_blocks: u128, [INFO] [stdout] 325 | | incorrectly_validated_blocks: u128, [INFO] [stdout] 326 | | you_get_the_idea: bool, [INFO] [stdout] 327 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] note: `AccountType` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/chain/mod.rs:319:10 [INFO] [stdout] | [INFO] [stdout] 319 | #[derive(Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `byte_vector_to_string` [INFO] [stdout] --> src/chain/mod.rs:330:4 [INFO] [stdout] | [INFO] [stdout] 330 | fn byte_vector_to_string(arr: &Vec) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `Jupiterium` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] = help: convert the identifier to snake case: `jupiterium` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 43 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.57s [INFO] [stderr] Executable unittests src/main.rs (/opt/rustwide/target/debug/deps/Jupiterium-753f06e1cb96f3c5) [INFO] running `Command { std: "docker" "inspect" "d8d271dfa8e65728e081ac9e80ec8c1a9d433b43173698afe46c4bfc7bdd7b26", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d8d271dfa8e65728e081ac9e80ec8c1a9d433b43173698afe46c4bfc7bdd7b26", kill_on_drop: false }` [INFO] [stdout] d8d271dfa8e65728e081ac9e80ec8c1a9d433b43173698afe46c4bfc7bdd7b26 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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" "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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] e24af02bf49e7ee3f227854e46f5ecd09ff2bd546a74162ac64c445c5aa4c380 [INFO] running `Command { std: "docker" "start" "-a" "e24af02bf49e7ee3f227854e46f5ecd09ff2bd546a74162ac64c445c5aa4c380", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] warning: unused imports: `Block`, `TransactionData`, `Transaction` [INFO] [stderr] --> src/main.rs:2:25 [INFO] [stderr] | [INFO] [stderr] 2 | use chain::{BlockChain, Block, Transaction, TransactionData}; [INFO] [stderr] | ^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::borrow::BorrowMut` [INFO] [stderr] --> src/main.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use std::borrow::BorrowMut; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `bc` [INFO] [stderr] --> src/main.rs:8:13 [INFO] [stderr] | [INFO] [stderr] 8 | let mut bc = BlockChain::new(); [INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_bc` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `block` [INFO] [stderr] --> src/chain/mod.rs:233:31 [INFO] [stderr] | [INFO] [stderr] 233 | fn check_validity(& self, block: Block) -> Result<(), String> { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_block` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/main.rs:8:9 [INFO] [stderr] | [INFO] [stderr] 8 | let mut bc = BlockChain::new(); [INFO] [stderr] | ----^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: field is never read: `nonce` [INFO] [stderr] --> src/chain/mod.rs:9:5 [INFO] [stderr] | [INFO] [stderr] 9 | nonce: u128, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: field is never read: `from` [INFO] [stderr] --> src/chain/mod.rs:10:5 [INFO] [stderr] | [INFO] [stderr] 10 | from: String, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `created_at` [INFO] [stderr] --> src/chain/mod.rs:11:5 [INFO] [stderr] | [INFO] [stderr] 11 | created_at: SystemTime, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `record` [INFO] [stderr] --> src/chain/mod.rs:12:5 [INFO] [stderr] | [INFO] [stderr] 12 | pub(crate) record: TransactionData, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `signature` [INFO] [stderr] --> src/chain/mod.rs:13:5 [INFO] [stderr] | [INFO] [stderr] 13 | signature: Option, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/chain/mod.rs:17:12 [INFO] [stderr] | [INFO] [stderr] 17 | pub fn new(from: String, transaction_data: TransactionData, nonce: u128) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `execute` [INFO] [stderr] --> src/chain/mod.rs:27:12 [INFO] [stderr] | [INFO] [stderr] 27 | pub fn execute (&self, world_state: &mut T, is_initial: &bool) -> Result<(), &'static str> { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `calculate_hash` [INFO] [stderr] --> src/chain/mod.rs:89:12 [INFO] [stderr] | [INFO] [stderr] 89 | pub fn calculate_hash(&self) -> Vec { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `check_signature` [INFO] [stderr] --> src/chain/mod.rs:96:12 [INFO] [stderr] | [INFO] [stderr] 96 | pub fn check_signature(&self) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `is_signed` [INFO] [stderr] --> src/chain/mod.rs:104:12 [INFO] [stderr] | [INFO] [stderr] 104 | pub fn is_signed(&self) -> bool { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `CreateUserAccount` [INFO] [stderr] --> src/chain/mod.rs:111:5 [INFO] [stderr] | [INFO] [stderr] 111 | CreateUserAccount (String), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `TransactionData` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] --> src/chain/mod.rs:109:10 [INFO] [stderr] | [INFO] [stderr] 109 | #[derive(Clone, Debug, PartialEq)] [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `ChangeStoreValue` [INFO] [stderr] --> src/chain/mod.rs:112:5 [INFO] [stderr] | [INFO] [stderr] 112 | ChangeStoreValue {key: String, value: String}, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `TransactionData` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] --> src/chain/mod.rs:109:10 [INFO] [stderr] | [INFO] [stderr] 109 | #[derive(Clone, Debug, PartialEq)] [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `TransferTokens` [INFO] [stderr] --> src/chain/mod.rs:113:5 [INFO] [stderr] | [INFO] [stderr] 113 | TransferTokens {to: String, amount: u128}, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `TransactionData` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] --> src/chain/mod.rs:109:10 [INFO] [stderr] | [INFO] [stderr] 109 | #[derive(Clone, Debug, PartialEq)] [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `CreateTokens` [INFO] [stderr] --> src/chain/mod.rs:114:5 [INFO] [stderr] | [INFO] [stderr] 114 | CreateTokens {receiver: String, amount: u128}, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `TransactionData` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] --> src/chain/mod.rs:109:10 [INFO] [stderr] | [INFO] [stderr] 109 | #[derive(Clone, Debug, PartialEq)] [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `transactions` [INFO] [stderr] --> src/chain/mod.rs:118:5 [INFO] [stderr] | [INFO] [stderr] 118 | pub(crate) transactions: Vec, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `hash` [INFO] [stderr] --> src/chain/mod.rs:119:5 [INFO] [stderr] | [INFO] [stderr] 119 | hash: Option, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `prev_hash` [INFO] [stderr] --> src/chain/mod.rs:120:5 [INFO] [stderr] | [INFO] [stderr] 120 | prev_hash: Option, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `nonce` [INFO] [stderr] --> src/chain/mod.rs:121:5 [INFO] [stderr] | [INFO] [stderr] 121 | nonce: u128, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/chain/mod.rs:125:12 [INFO] [stderr] | [INFO] [stderr] 125 | pub fn new(prev_hash: Option) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `calculate_hash` [INFO] [stderr] --> src/chain/mod.rs:134:12 [INFO] [stderr] | [INFO] [stderr] 134 | pub fn calculate_hash(& self) -> Vec { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `add_transaction` [INFO] [stderr] --> src/chain/mod.rs:147:8 [INFO] [stderr] | [INFO] [stderr] 147 | fn add_transaction(&mut self, transaction: Transaction) { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_transaction_count` [INFO] [stderr] --> src/chain/mod.rs:152:12 [INFO] [stderr] | [INFO] [stderr] 152 | pub fn get_transaction_count(&self) -> usize { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `update_hash` [INFO] [stderr] --> src/chain/mod.rs:156:19 [INFO] [stderr] | [INFO] [stderr] 156 | pub(crate) fn update_hash(&mut self) { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `set_nonce` [INFO] [stderr] --> src/chain/mod.rs:160:8 [INFO] [stderr] | [INFO] [stderr] 160 | fn set_nonce(&mut self, nonce: u128){ [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `verify_own_hash` [INFO] [stderr] --> src/chain/mod.rs:165:8 [INFO] [stderr] | [INFO] [stderr] 165 | fn verify_own_hash(& self) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `pending_transactions` [INFO] [stderr] --> src/chain/mod.rs:178:5 [INFO] [stderr] | [INFO] [stderr] 178 | pending_transactions: Vec [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `append_block` [INFO] [stderr] --> src/chain/mod.rs:190:12 [INFO] [stderr] | [INFO] [stderr] 190 | pub fn append_block(&mut self, block: Block) -> Result<(), String> { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `len` [INFO] [stderr] --> src/chain/mod.rs:221:12 [INFO] [stderr] | [INFO] [stderr] 221 | pub fn len(&self) -> usize { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_last_block_hash` [INFO] [stderr] --> src/chain/mod.rs:225:12 [INFO] [stderr] | [INFO] [stderr] 225 | pub fn get_last_block_hash(&self) -> Option { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `check_validity` [INFO] [stderr] --> src/chain/mod.rs:233:8 [INFO] [stderr] | [INFO] [stderr] 233 | fn check_validity(& self, block: Block) -> Result<(), String> { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `store` [INFO] [stderr] --> src/chain/mod.rs:304:5 [INFO] [stderr] | [INFO] [stderr] 304 | store: HashMap, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Account` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/chain/mod.rs:302:10 [INFO] [stderr] | [INFO] [stderr] 302 | #[derive(Clone)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `acc_type` [INFO] [stderr] --> src/chain/mod.rs:305:5 [INFO] [stderr] | [INFO] [stderr] 305 | acc_type: AccountType, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Account` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/chain/mod.rs:302:10 [INFO] [stderr] | [INFO] [stderr] 302 | #[derive(Clone)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `tokens` [INFO] [stderr] --> src/chain/mod.rs:306:5 [INFO] [stderr] | [INFO] [stderr] 306 | tokens: u128 [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Account` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/chain/mod.rs:302:10 [INFO] [stderr] | [INFO] [stderr] 302 | #[derive(Clone)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `User` [INFO] [stderr] --> src/chain/mod.rs:321:5 [INFO] [stderr] | [INFO] [stderr] 321 | User, [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] note: `AccountType` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/chain/mod.rs:319:10 [INFO] [stderr] | [INFO] [stderr] 319 | #[derive(Clone)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Contract` [INFO] [stderr] --> src/chain/mod.rs:322:5 [INFO] [stderr] | [INFO] [stderr] 322 | Contract, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `AccountType` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/chain/mod.rs:319:10 [INFO] [stderr] | [INFO] [stderr] 319 | #[derive(Clone)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Validator` [INFO] [stderr] --> src/chain/mod.rs:323:5 [INFO] [stderr] | [INFO] [stderr] 323 | / Validator { [INFO] [stderr] 324 | | correctly_validated_blocks: u128, [INFO] [stderr] 325 | | incorrectly_validated_blocks: u128, [INFO] [stderr] 326 | | you_get_the_idea: bool, [INFO] [stderr] 327 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] note: `AccountType` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/chain/mod.rs:319:10 [INFO] [stderr] | [INFO] [stderr] 319 | #[derive(Clone)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: function is never used: `byte_vector_to_string` [INFO] [stderr] --> src/chain/mod.rs:330:4 [INFO] [stderr] | [INFO] [stderr] 330 | fn byte_vector_to_string(arr: &Vec) -> String { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: crate `Jupiterium` should have a snake case name [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_snake_case)]` on by default [INFO] [stderr] = help: convert the identifier to snake case: `jupiterium` [INFO] [stderr] [INFO] [stderr] warning: `Jupiterium` (bin "Jupiterium" test) generated 43 warnings [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.03s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/Jupiterium-753f06e1cb96f3c5) [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" "e24af02bf49e7ee3f227854e46f5ecd09ff2bd546a74162ac64c445c5aa4c380", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e24af02bf49e7ee3f227854e46f5ecd09ff2bd546a74162ac64c445c5aa4c380", kill_on_drop: false }` [INFO] [stdout] e24af02bf49e7ee3f227854e46f5ecd09ff2bd546a74162ac64c445c5aa4c380