[INFO] cloning repository https://github.com/abbychau/abbyEVM [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/abbychau/abbyEVM" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fabbychau%2FabbyEVM", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fabbychau%2FabbyEVM'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] dd3bf98702a20c1a3d17fad4ddc0bd3371ca4e9f [INFO] building abbychau/abbyEVM against master#c7f6aa2869acdbf014d094c6e427e554e160b6db for pr-146237-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fabbychau%2FabbyEVM" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/abbychau/abbyEVM [INFO] finished tweaking git repo https://github.com/abbychau/abbyEVM [INFO] tweaked toml for git repo https://github.com/abbychau/abbyEVM written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/abbychau/abbyEVM on toolchain c7f6aa2869acdbf014d094c6e427e554e160b6db [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/abbychau/abbyEVM 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" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "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] Downloading crates ... [INFO] [stderr] Downloaded libp2p v0.53.2 [INFO] [stderr] Downloaded multiaddr v0.18.2 [INFO] [stderr] Downloaded multihash v0.19.3 [INFO] [stderr] Downloaded data-encoding-macro v0.1.18 [INFO] [stderr] Downloaded multibase v0.9.1 [INFO] [stderr] Downloaded libp2p-identity v0.2.12 [INFO] [stderr] Downloaded data-encoding-macro-internal v0.1.16 [INFO] [stderr] Downloaded core2 v0.4.0 [INFO] [stderr] Downloaded yamux v0.13.6 [INFO] [stderr] Downloaded unsigned-varint v0.8.0 [INFO] [stderr] Downloaded rw-stream-sink v0.4.0 [INFO] [stderr] Downloaded sled v0.34.7 [INFO] [stderr] Downloaded if-watch v3.2.1 [INFO] [stderr] Downloaded windows-core v0.53.0 [INFO] [stderr] Downloaded libp2p-allow-block-list v0.3.0 [INFO] [stderr] Downloaded netlink-packet-utils v0.5.2 [INFO] [stderr] Downloaded netlink-packet-core v0.7.0 [INFO] [stderr] Downloaded netlink-proto v0.11.5 [INFO] [stderr] Downloaded netlink-sys v0.8.7 [INFO] [stderr] Downloaded rtnetlink v0.13.1 [INFO] [stderr] Downloaded quick-protobuf v0.8.1 [INFO] [stderr] Downloaded libp2p-core v0.41.3 [INFO] [stderr] Downloaded libp2p-yamux v0.45.2 [INFO] [stderr] Downloaded secp256k1 v0.28.2 [INFO] [stderr] Downloaded libp2p-connection-limits v0.3.1 [INFO] [stderr] Downloaded futures-ticker v0.0.3 [INFO] [stderr] Downloaded hex_fmt v0.3.0 [INFO] [stderr] Downloaded futures-bounded v0.2.4 [INFO] [stderr] Downloaded quick-protobuf-codec v0.3.1 [INFO] [stderr] Downloaded libp2p-identify v0.44.2 [INFO] [stderr] Downloaded dtoa v1.0.10 [INFO] [stderr] Downloaded prometheus-client-derive-encode v0.4.2 [INFO] [stderr] Downloaded prometheus-client v0.22.3 [INFO] [stderr] Downloaded libp2p-metrics v0.14.1 [INFO] [stderr] Downloaded asynchronous-codec v0.7.0 [INFO] [stderr] Downloaded libp2p-noise v0.44.0 [INFO] [stderr] Downloaded libp2p-ping v0.44.1 [INFO] [stderr] Downloaded libp2p-swarm-derive v0.34.2 [INFO] [stderr] Downloaded libp2p-swarm v0.44.2 [INFO] [stderr] Downloaded netlink-packet-route v0.17.1 [INFO] [stderr] Downloaded secp256k1-sys v0.9.2 [INFO] [stderr] Downloaded polling v3.10.0 [INFO] [stderr] Downloaded async-io v2.5.0 [INFO] [stderr] Downloaded if-addrs v0.10.2 [INFO] [stderr] Downloaded libp2p-tcp v0.41.0 [INFO] [stderr] Downloaded unsigned-varint v0.7.2 [INFO] [stderr] Downloaded multistream-select v0.13.0 [INFO] [stderr] Downloaded yamux v0.12.1 [INFO] [stderr] Downloaded snow v0.9.6 [INFO] [stderr] Downloaded libp2p-gossipsub v0.46.1 [INFO] [stderr] Downloaded windows v0.53.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c5a408b7bf806bc3082ab8b653287a9ca275548f12be0469301bfcd428421451 [INFO] running `Command { std: "docker" "start" "-a" "c5a408b7bf806bc3082ab8b653287a9ca275548f12be0469301bfcd428421451", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c5a408b7bf806bc3082ab8b653287a9ca275548f12be0469301bfcd428421451", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c5a408b7bf806bc3082ab8b653287a9ca275548f12be0469301bfcd428421451", kill_on_drop: false }` [INFO] [stdout] c5a408b7bf806bc3082ab8b653287a9ca275548f12be0469301bfcd428421451 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ec3e7e230017b5d4f522df0c51c214ff7c051adda1922c4fff56464e68177c89 [INFO] running `Command { std: "docker" "start" "-a" "ec3e7e230017b5d4f522df0c51c214ff7c051adda1922c4fff56464e68177c89", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.97 [INFO] [stderr] Compiling libc v0.2.175 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling thiserror v2.0.14 [INFO] [stderr] Compiling signature v2.2.0 [INFO] [stderr] Compiling data-encoding v2.9.0 [INFO] [stderr] Compiling unsigned-varint v0.8.0 [INFO] [stderr] Compiling core2 v0.4.0 [INFO] [stderr] Compiling quick-protobuf v0.8.1 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling curve25519-dalek v4.1.3 [INFO] [stderr] Compiling futures-timer v3.0.3 [INFO] [stderr] Compiling bs58 v0.5.1 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Compiling base-x v0.2.11 [INFO] [stderr] Compiling ed25519 v2.2.3 [INFO] [stderr] Compiling unsigned-varint v0.7.2 [INFO] [stderr] Compiling cc v1.2.32 [INFO] [stderr] Compiling multihash v0.19.3 [INFO] [stderr] Compiling void v1.0.2 [INFO] [stderr] Compiling instant v0.1.13 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling hashbrown v0.15.5 [INFO] [stderr] Compiling crunchy v0.2.4 [INFO] [stderr] Compiling rustc-hex v2.1.0 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling snow v0.9.6 [INFO] [stderr] Compiling tiny-keccak v2.0.2 [INFO] [stderr] Compiling rlp v0.5.2 [INFO] [stderr] Compiling prometheus-client v0.22.3 [INFO] [stderr] Compiling hkdf v0.12.4 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling dtoa v1.0.10 [INFO] [stderr] Compiling crc32fast v1.5.0 [INFO] [stderr] Compiling anstyle-query v1.1.4 [INFO] [stderr] Compiling uint v0.9.5 [INFO] [stderr] Compiling impl-rlp v0.3.0 [INFO] [stderr] Compiling anstream v0.6.20 [INFO] [stderr] Compiling hex_fmt v0.3.0 [INFO] [stderr] Compiling crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling number_prefix v0.4.0 [INFO] [stderr] Compiling colored v2.2.0 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling sha3 v0.10.8 [INFO] [stderr] Compiling syn v2.0.105 [INFO] [stderr] Compiling clap_builder v4.5.44 [INFO] [stderr] Compiling lru v0.12.5 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling secp256k1-sys v0.9.2 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling num_cpus v1.17.0 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling netlink-sys v0.8.7 [INFO] [stderr] Compiling nix v0.26.4 [INFO] [stderr] Compiling signal-hook-registry v1.4.6 [INFO] [stderr] Compiling mio v1.0.4 [INFO] [stderr] Compiling parking_lot_core v0.8.6 [INFO] [stderr] Compiling socket2 v0.5.10 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling parking_lot v0.12.4 [INFO] [stderr] Compiling socket2 v0.6.0 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand_core v0.9.3 [INFO] [stderr] Compiling parking_lot v0.11.2 [INFO] [stderr] Compiling console v0.15.11 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling rand_chacha v0.9.0 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling is-terminal v0.4.16 [INFO] [stderr] Compiling fs2 v0.4.3 [INFO] [stderr] Compiling sled v0.34.7 [INFO] [stderr] Compiling indicatif v0.17.11 [INFO] [stderr] Compiling rand v0.9.2 [INFO] [stderr] Compiling fixed-hash v0.8.0 [INFO] [stderr] Compiling env_logger v0.10.2 [INFO] [stderr] Compiling secp256k1 v0.28.2 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling zeroize_derive v1.4.2 [INFO] [stderr] Compiling thiserror-impl v2.0.14 [INFO] [stderr] Compiling pin-project-internal v1.1.10 [INFO] [stderr] Compiling curve25519-dalek-derive v0.1.1 [INFO] [stderr] Compiling data-encoding-macro-internal v0.1.16 [INFO] [stderr] Compiling tracing-attributes v0.1.30 [INFO] [stderr] Compiling libp2p-swarm-derive v0.34.2 [INFO] [stderr] Compiling prometheus-client-derive-encode v0.4.2 [INFO] [stderr] Compiling data-encoding-macro v0.1.18 [INFO] [stderr] Compiling multibase v0.9.1 [INFO] [stderr] Compiling zeroize v1.8.1 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling clap_derive v4.5.45 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling netlink-packet-utils v0.5.2 [INFO] [stderr] Compiling tokio v1.47.1 [INFO] [stderr] Compiling pin-project v1.1.10 [INFO] [stderr] Compiling netlink-packet-core v0.7.0 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling netlink-packet-route v0.17.1 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Compiling zerovec v0.11.4 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling ed25519-dalek v2.2.0 [INFO] [stderr] Compiling x25519-dalek v2.0.1 [INFO] [stderr] Compiling clap v4.5.45 [INFO] [stderr] Compiling libp2p-identity v0.2.12 [INFO] [stderr] Compiling tinystr v0.8.1 [INFO] [stderr] Compiling potential_utf v0.1.2 [INFO] [stderr] Compiling icu_collections v2.0.0 [INFO] [stderr] Compiling icu_locale_core v2.0.0 [INFO] [stderr] Compiling icu_provider v2.0.0 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling icu_properties v2.0.1 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling asynchronous-codec v0.7.0 [INFO] [stderr] Compiling futures-bounded v0.2.4 [INFO] [stderr] Compiling quick-protobuf-codec v0.3.1 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling rw-stream-sink v0.4.0 [INFO] [stderr] Compiling multistream-select v0.13.0 [INFO] [stderr] Compiling netlink-proto v0.11.5 [INFO] [stderr] Compiling yamux v0.12.1 [INFO] [stderr] Compiling futures-ticker v0.0.3 [INFO] [stderr] Compiling yamux v0.13.6 [INFO] [stderr] Compiling rtnetlink v0.13.1 [INFO] [stderr] Compiling impl-serde v0.4.0 [INFO] [stderr] Compiling chrono v0.4.41 [INFO] [stderr] Compiling serde_json v1.0.142 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling if-watch v3.2.1 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling primitive-types v0.12.2 [INFO] [stderr] Compiling ethbloom v0.13.0 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling multiaddr v0.18.2 [INFO] [stderr] Compiling ethereum-types v0.14.1 [INFO] [stderr] Compiling libp2p-core v0.41.3 [INFO] [stderr] Compiling tokio-util v0.7.16 [INFO] [stderr] Compiling libp2p-swarm v0.44.2 [INFO] [stderr] Compiling libp2p-tcp v0.41.0 [INFO] [stderr] Compiling libp2p-yamux v0.45.2 [INFO] [stderr] Compiling libp2p-noise v0.44.0 [INFO] [stderr] Compiling libp2p-connection-limits v0.3.1 [INFO] [stderr] Compiling libp2p-identify v0.44.2 [INFO] [stderr] Compiling libp2p-allow-block-list v0.3.0 [INFO] [stderr] Compiling libp2p-gossipsub v0.46.1 [INFO] [stderr] Compiling libp2p-ping v0.44.1 [INFO] [stderr] Compiling libp2p v0.53.2 [INFO] [stderr] Compiling abby_evm v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `expanded_path` [INFO] [stdout] --> src/main.rs:432:15 [INFO] [stdout] | [INFO] [stdout] 432 | if let Ok(expanded_path) = std::fs::canonicalize(&db_path_str) { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_expanded_path` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block_count` [INFO] [stdout] --> src/main.rs:467:35 [INFO] [stdout] | [INFO] [stdout] 467 | let (chain_length, head_hash, block_count, abby_supply) = node.get_blockchain_info().await; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_block_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/blockchain/chain.rs:283:22 [INFO] [stdout] | [INFO] [stdout] 283 | let (key, value) = result.map_err(|e| format!("Database scan error: {}", e))?; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `member` [INFO] [stdout] --> src/compiler/codegen.rs:627:44 [INFO] [stdout] | [INFO] [stdout] 627 | fn visit_member_access_expr(&mut self, member: &MemberAccessExpr) -> CompileResult<()> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_member` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `initial_gas` [INFO] [stdout] --> src/evm/mod.rs:257:13 [INFO] [stdout] | [INFO] [stdout] 257 | let initial_gas = state.gas; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_initial_gas` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_receipt`, `get_account`, `get_abby_balance`, `transfer_abby`, `validate_chain`, and `get_abby_rich_list` are never used [INFO] [stdout] --> src/blockchain/chain.rs:213:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl Blockchain { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 213 | pub fn get_receipt(&self, tx_hash: &H256) -> Option<&TransactionReceipt> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 217 | pub fn get_account(&self, address: &Address) -> Option<&Account> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 221 | pub fn get_abby_balance(&self, address: &Address) -> U256 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 228 | pub fn transfer_abby( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 301 | pub fn validate_chain(&self) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 346 | pub fn get_abby_rich_list(&self, limit: usize) -> Vec<(Address, U256)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `remove_stake` and `slash` are never used [INFO] [stdout] --> src/blockchain/consensus.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl Validator { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn remove_stake(&mut self, amount: U256) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn slash(&mut self, percentage: u32) -> U256 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `block_time` is never read [INFO] [stdout] --> src/blockchain/consensus.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 62 | pub struct ConsensusState { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 67 | pub block_time: u64, // seconds [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ConsensusState` 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: methods `remove_validator`, `get_validator`, `get_validator_mut`, `total_active_validators`, and `get_top_validators` are never used [INFO] [stdout] --> src/blockchain/consensus.rs:93:12 [INFO] [stdout] | [INFO] [stdout] 71 | impl ConsensusState { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 93 | pub fn remove_validator(&mut self, address: &Address) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 225 | pub fn get_validator(&self, address: &Address) -> Option<&Validator> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 229 | pub fn get_validator_mut(&mut self, address: &Address) -> Option<&mut Validator> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 233 | pub fn total_active_validators(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 240 | pub fn get_top_validators(&self, limit: usize) -> Vec<&Validator> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Attestation` is never constructed [INFO] [stdout] --> src/blockchain/consensus.rs:255:12 [INFO] [stdout] | [INFO] [stdout] 255 | pub struct Attestation { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `verify` are never used [INFO] [stdout] --> src/blockchain/consensus.rs:263:12 [INFO] [stdout] | [INFO] [stdout] 262 | impl Attestation { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 263 | pub fn new(validator: Address, block_hash: ethereum_types::H256, slot: u64) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 272 | pub fn verify(&self, consensus: &ConsensusState) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `message_sender` is never read [INFO] [stdout] --> src/blockchain/network.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct NetworkManager { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 22 | pub message_sender: mpsc::UnboundedSender, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `broadcast_transaction`, `request_block`, and `get_connected_peers` are never used [INFO] [stdout] --> src/blockchain/network.rs:64:12 [INFO] [stdout] | [INFO] [stdout] 28 | impl NetworkManager { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 64 | pub fn broadcast_transaction( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 76 | pub fn request_block(&mut self, hash: H256) -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 107 | pub fn get_connected_peers(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `peer_id` and `chain_head` are never read [INFO] [stdout] --> src/blockchain/network.rs:117:9 [INFO] [stdout] | [INFO] [stdout] 116 | pub struct PeerInfo { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 117 | pub peer_id: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 118 | pub chain_head: H256, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `update` are never used [INFO] [stdout] --> src/blockchain/network.rs:124:12 [INFO] [stdout] | [INFO] [stdout] 123 | impl PeerInfo { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 124 | pub fn new(peer_id: String, chain_head: H256, chain_length: u64) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 133 | pub fn update(&mut self, chain_head: H256, chain_length: u64) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `update_peer` and `finish_sync` are never used [INFO] [stdout] --> src/blockchain/network.rs:159:12 [INFO] [stdout] | [INFO] [stdout] 150 | impl SyncManager { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 159 | pub fn update_peer(&mut self, peer_id: String, chain_head: H256, chain_length: u64) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 191 | pub fn finish_sync(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `submit_transaction`, `get_balance`, `transfer_abby`, `stake_tokens`, and `get_validator_info` are never used [INFO] [stdout] --> src/blockchain/node.rs:417:18 [INFO] [stdout] | [INFO] [stdout] 22 | impl AbbyNode { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 417 | pub async fn submit_transaction(&self, transaction: Transaction) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 432 | pub async fn get_balance(&self, address: &Address) -> U256 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 437 | pub async fn transfer_abby( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 461 | pub async fn stake_tokens( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 473 | pub async fn get_validator_info( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `calculate_rewards` is never used [INFO] [stdout] --> src/blockchain/staking.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl StakeInfo { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn calculate_rewards(&self, annual_rate: u32, time_staked: u64) -> U256 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `abby_token_supply`, `annual_reward_rate`, and `withdrawal_delay` are never read [INFO] [stdout] --> src/blockchain/staking.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 39 | pub struct StakingManager { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 43 | pub abby_token_supply: U256, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 44 | pub annual_reward_rate: u32, // basis points (e.g., 800 = 8%) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 45 | pub withdrawal_delay: u64, // seconds before withdrawal is available [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `StakingManager` 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: multiple methods are never used [INFO] [stdout] --> src/blockchain/staking.rs:107:12 [INFO] [stdout] | [INFO] [stdout] 48 | impl StakingManager { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 107 | pub fn unstake( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 161 | pub fn withdraw(&mut self, staker: Address, validator: Address) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 201 | pub fn claim_rewards(&mut self, staker: Address, validator: Address) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 235 | pub fn get_staker_info(&self, staker: &Address) -> Vec<&StakeInfo> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 242 | pub fn get_validator_delegations(&self, validator: &Address) -> Vec<&StakeInfo> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 249 | pub fn get_total_staked_to_validator(&self, validator: &Address) -> U256 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 294 | fn mint_abby_tokens(&mut self, amount: U256) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 309 | pub fn get_staking_apy(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 313 | pub fn get_total_rewards_distributed(&self) -> U256 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `calculate_hash`, `is_contract_creation`, and `estimate_gas` are never used [INFO] [stdout] --> src/blockchain/transaction.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl Transaction { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 23 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | fn calculate_hash(&self) -> H256 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | pub fn is_contract_creation(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 107 | pub fn estimate_gas(&self) -> U256 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_transaction`, `get_pending_transactions`, `clear`, `len`, and `is_empty` are never used [INFO] [stdout] --> src/blockchain/transaction.rs:155:12 [INFO] [stdout] | [INFO] [stdout] 140 | impl TransactionPool { [INFO] [stdout] | -------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 155 | pub fn get_transaction(&self, hash: &H256) -> Option<&Transaction> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 163 | pub fn get_pending_transactions(&self) -> Vec<&Transaction> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 185 | pub fn clear(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 190 | pub fn len(&self) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 194 | pub fn is_empty(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `block` is never used [INFO] [stdout] --> src/compiler/ast.rs:340:12 [INFO] [stdout] | [INFO] [stdout] 304 | impl Statement { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 340 | pub fn block(statements: Vec) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `print` is never used [INFO] [stdout] --> src/compiler/ast.rs:366:12 [INFO] [stdout] | [INFO] [stdout] 358 | impl AstPrinter { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 366 | pub fn print(&mut self, program: &Program) -> String { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `error` is never used [INFO] [stdout] --> src/compiler/lexer.rs:127:8 [INFO] [stdout] | [INFO] [stdout] 117 | impl Lexer { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 127 | fn error(&self, message: &str) -> LexError { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `handle_builtin_method` is never used [INFO] [stdout] --> src/compiler/parser.rs:416:8 [INFO] [stdout] | [INFO] [stdout] 30 | impl Parser { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 416 | fn handle_builtin_method(&mut self, object: String) -> ParseResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `accounts` is never read [INFO] [stdout] --> src/evm/mod.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct EvmState { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 14 | pub accounts: HashMap, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `EvmState` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `storage` is never read [INFO] [stdout] --> src/types.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Account { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 13 | pub storage: HashMap, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Account` 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: field `gas_price` is never read [INFO] [stdout] --> src/types.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 28 | pub struct Transaction { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 33 | pub gas_price: U256, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Transaction` 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: field `state_changes` is never read [INFO] [stdout] --> src/types.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 69 | pub struct ExecutionResult { [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 75 | pub state_changes: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ExecutionResult` 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: function `bytes_to_u256` is never used [INFO] [stdout] --> src/utils.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn bytes_to_u256(bytes: &[u8]) -> U256 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `u256_to_bytes` is never used [INFO] [stdout] --> src/utils.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn u256_to_bytes(value: U256) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `u256_to_bytes32` is never used [INFO] [stdout] --> src/utils.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn u256_to_bytes32(value: U256) -> [u8; 32] { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `safe_resize` is never used [INFO] [stdout] --> src/utils.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn safe_resize(vec: &mut Vec, new_size: usize, max_size: usize) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `format_hex_u256` is never used [INFO] [stdout] --> src/utils.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn format_hex_u256(value: U256) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `format_hex_bytes` is never used [INFO] [stdout] --> src/utils.rs:45:8 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn format_hex_bytes(bytes: &[u8]) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 39s [INFO] running `Command { std: "docker" "inspect" "ec3e7e230017b5d4f522df0c51c214ff7c051adda1922c4fff56464e68177c89", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ec3e7e230017b5d4f522df0c51c214ff7c051adda1922c4fff56464e68177c89", kill_on_drop: false }` [INFO] [stdout] ec3e7e230017b5d4f522df0c51c214ff7c051adda1922c4fff56464e68177c89 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 34089d1ad08e6888a7d522df1e66288fcb848d6588fd687e92611a7657501161 [INFO] running `Command { std: "docker" "start" "-a" "34089d1ad08e6888a7d522df1e66288fcb848d6588fd687e92611a7657501161", kill_on_drop: false }` [INFO] [stderr] Compiling tokio v1.47.1 [INFO] [stderr] Compiling async-stream-impl v0.3.6 [INFO] [stderr] Compiling async-stream v0.3.6 [INFO] [stderr] Compiling tokio-stream v0.1.17 [INFO] [stderr] Compiling tokio-util v0.7.16 [INFO] [stderr] Compiling tokio-test v0.4.4 [INFO] [stderr] Compiling abby_evm v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/evm/tests.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expanded_path` [INFO] [stdout] --> src/main.rs:432:15 [INFO] [stdout] | [INFO] [stdout] 432 | if let Ok(expanded_path) = std::fs::canonicalize(&db_path_str) { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_expanded_path` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block_count` [INFO] [stdout] --> src/main.rs:467:35 [INFO] [stdout] | [INFO] [stdout] 467 | let (chain_length, head_hash, block_count, abby_supply) = node.get_blockchain_info().await; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_block_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/blockchain/chain.rs:283:22 [INFO] [stdout] | [INFO] [stdout] 283 | let (key, value) = result.map_err(|e| format!("Database scan error: {}", e))?; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `member` [INFO] [stdout] --> src/compiler/codegen.rs:627:44 [INFO] [stdout] | [INFO] [stdout] 627 | fn visit_member_access_expr(&mut self, member: &MemberAccessExpr) -> CompileResult<()> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_member` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `initial_gas` [INFO] [stdout] --> src/evm/mod.rs:257:13 [INFO] [stdout] | [INFO] [stdout] 257 | let initial_gas = state.gas; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_initial_gas` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_receipt`, `get_account`, `get_abby_balance`, `transfer_abby`, `validate_chain`, and `get_abby_rich_list` are never used [INFO] [stdout] --> src/blockchain/chain.rs:213:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl Blockchain { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 213 | pub fn get_receipt(&self, tx_hash: &H256) -> Option<&TransactionReceipt> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 217 | pub fn get_account(&self, address: &Address) -> Option<&Account> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 221 | pub fn get_abby_balance(&self, address: &Address) -> U256 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 228 | pub fn transfer_abby( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 301 | pub fn validate_chain(&self) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 346 | pub fn get_abby_rich_list(&self, limit: usize) -> Vec<(Address, U256)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `remove_stake` and `slash` are never used [INFO] [stdout] --> src/blockchain/consensus.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl Validator { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn remove_stake(&mut self, amount: U256) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn slash(&mut self, percentage: u32) -> U256 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `block_time` is never read [INFO] [stdout] --> src/blockchain/consensus.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 62 | pub struct ConsensusState { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 67 | pub block_time: u64, // seconds [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ConsensusState` 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: methods `remove_validator`, `get_validator`, `get_validator_mut`, `total_active_validators`, and `get_top_validators` are never used [INFO] [stdout] --> src/blockchain/consensus.rs:93:12 [INFO] [stdout] | [INFO] [stdout] 71 | impl ConsensusState { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 93 | pub fn remove_validator(&mut self, address: &Address) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 225 | pub fn get_validator(&self, address: &Address) -> Option<&Validator> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 229 | pub fn get_validator_mut(&mut self, address: &Address) -> Option<&mut Validator> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 233 | pub fn total_active_validators(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 240 | pub fn get_top_validators(&self, limit: usize) -> Vec<&Validator> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Attestation` is never constructed [INFO] [stdout] --> src/blockchain/consensus.rs:255:12 [INFO] [stdout] | [INFO] [stdout] 255 | pub struct Attestation { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `verify` are never used [INFO] [stdout] --> src/blockchain/consensus.rs:263:12 [INFO] [stdout] | [INFO] [stdout] 262 | impl Attestation { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 263 | pub fn new(validator: Address, block_hash: ethereum_types::H256, slot: u64) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 272 | pub fn verify(&self, consensus: &ConsensusState) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `message_sender` is never read [INFO] [stdout] --> src/blockchain/network.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct NetworkManager { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 22 | pub message_sender: mpsc::UnboundedSender, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `broadcast_transaction`, `request_block`, and `get_connected_peers` are never used [INFO] [stdout] --> src/blockchain/network.rs:64:12 [INFO] [stdout] | [INFO] [stdout] 28 | impl NetworkManager { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 64 | pub fn broadcast_transaction( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 76 | pub fn request_block(&mut self, hash: H256) -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 107 | pub fn get_connected_peers(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `peer_id` and `chain_head` are never read [INFO] [stdout] --> src/blockchain/network.rs:117:9 [INFO] [stdout] | [INFO] [stdout] 116 | pub struct PeerInfo { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 117 | pub peer_id: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 118 | pub chain_head: H256, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `update` are never used [INFO] [stdout] --> src/blockchain/network.rs:124:12 [INFO] [stdout] | [INFO] [stdout] 123 | impl PeerInfo { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 124 | pub fn new(peer_id: String, chain_head: H256, chain_length: u64) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 133 | pub fn update(&mut self, chain_head: H256, chain_length: u64) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `update_peer` and `finish_sync` are never used [INFO] [stdout] --> src/blockchain/network.rs:159:12 [INFO] [stdout] | [INFO] [stdout] 150 | impl SyncManager { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 159 | pub fn update_peer(&mut self, peer_id: String, chain_head: H256, chain_length: u64) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 191 | pub fn finish_sync(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `submit_transaction`, `get_balance`, `transfer_abby`, `stake_tokens`, and `get_validator_info` are never used [INFO] [stdout] --> src/blockchain/node.rs:417:18 [INFO] [stdout] | [INFO] [stdout] 22 | impl AbbyNode { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 417 | pub async fn submit_transaction(&self, transaction: Transaction) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 432 | pub async fn get_balance(&self, address: &Address) -> U256 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 437 | pub async fn transfer_abby( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 461 | pub async fn stake_tokens( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 473 | pub async fn get_validator_info( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `calculate_rewards` is never used [INFO] [stdout] --> src/blockchain/staking.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl StakeInfo { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn calculate_rewards(&self, annual_rate: u32, time_staked: u64) -> U256 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `abby_token_supply`, `annual_reward_rate`, and `withdrawal_delay` are never read [INFO] [stdout] --> src/blockchain/staking.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 39 | pub struct StakingManager { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 43 | pub abby_token_supply: U256, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 44 | pub annual_reward_rate: u32, // basis points (e.g., 800 = 8%) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 45 | pub withdrawal_delay: u64, // seconds before withdrawal is available [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `StakingManager` 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: multiple methods are never used [INFO] [stdout] --> src/blockchain/staking.rs:107:12 [INFO] [stdout] | [INFO] [stdout] 48 | impl StakingManager { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 107 | pub fn unstake( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 161 | pub fn withdraw(&mut self, staker: Address, validator: Address) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 201 | pub fn claim_rewards(&mut self, staker: Address, validator: Address) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 235 | pub fn get_staker_info(&self, staker: &Address) -> Vec<&StakeInfo> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 242 | pub fn get_validator_delegations(&self, validator: &Address) -> Vec<&StakeInfo> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 249 | pub fn get_total_staked_to_validator(&self, validator: &Address) -> U256 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 294 | fn mint_abby_tokens(&mut self, amount: U256) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 309 | pub fn get_staking_apy(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 313 | pub fn get_total_rewards_distributed(&self) -> U256 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `calculate_hash`, `is_contract_creation`, and `estimate_gas` are never used [INFO] [stdout] --> src/blockchain/transaction.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl Transaction { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 23 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | fn calculate_hash(&self) -> H256 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | pub fn is_contract_creation(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 107 | pub fn estimate_gas(&self) -> U256 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_transaction`, `get_pending_transactions`, `clear`, `len`, and `is_empty` are never used [INFO] [stdout] --> src/blockchain/transaction.rs:155:12 [INFO] [stdout] | [INFO] [stdout] 140 | impl TransactionPool { [INFO] [stdout] | -------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 155 | pub fn get_transaction(&self, hash: &H256) -> Option<&Transaction> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 163 | pub fn get_pending_transactions(&self) -> Vec<&Transaction> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 185 | pub fn clear(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 190 | pub fn len(&self) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 194 | pub fn is_empty(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `block` is never used [INFO] [stdout] --> src/compiler/ast.rs:340:12 [INFO] [stdout] | [INFO] [stdout] 304 | impl Statement { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 340 | pub fn block(statements: Vec) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `print` is never used [INFO] [stdout] --> src/compiler/ast.rs:366:12 [INFO] [stdout] | [INFO] [stdout] 358 | impl AstPrinter { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 366 | pub fn print(&mut self, program: &Program) -> String { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `error` is never used [INFO] [stdout] --> src/compiler/lexer.rs:127:8 [INFO] [stdout] | [INFO] [stdout] 117 | impl Lexer { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 127 | fn error(&self, message: &str) -> LexError { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `handle_builtin_method` is never used [INFO] [stdout] --> src/compiler/parser.rs:416:8 [INFO] [stdout] | [INFO] [stdout] 30 | impl Parser { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 416 | fn handle_builtin_method(&mut self, object: String) -> ParseResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `accounts` is never read [INFO] [stdout] --> src/evm/mod.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct EvmState { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 14 | pub accounts: HashMap, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `EvmState` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `storage` is never read [INFO] [stdout] --> src/types.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Account { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 13 | pub storage: HashMap, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Account` 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: field `gas_price` is never read [INFO] [stdout] --> src/types.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 28 | pub struct Transaction { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 33 | pub gas_price: U256, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Transaction` 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: field `state_changes` is never read [INFO] [stdout] --> src/types.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 69 | pub struct ExecutionResult { [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 75 | pub state_changes: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ExecutionResult` 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: function `u256_to_bytes32` is never used [INFO] [stdout] --> src/utils.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn u256_to_bytes32(value: U256) -> [u8; 32] { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 13.68s [INFO] running `Command { std: "docker" "inspect" "34089d1ad08e6888a7d522df1e66288fcb848d6588fd687e92611a7657501161", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "34089d1ad08e6888a7d522df1e66288fcb848d6588fd687e92611a7657501161", kill_on_drop: false }` [INFO] [stdout] 34089d1ad08e6888a7d522df1e66288fcb848d6588fd687e92611a7657501161