[INFO] cloning repository https://github.com/0x-Professor/smart-contract-analyzer [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/0x-Professor/smart-contract-analyzer" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F0x-Professor%2Fsmart-contract-analyzer", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F0x-Professor%2Fsmart-contract-analyzer'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 294796ca7520d1d56c41e462156dbd7f3c4a038a [INFO] checking 0x-Professor/smart-contract-analyzer against master#779e19d8baa3e3625bd4fc5c85cbb2ad47b43155 for pr-147589-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F0x-Professor%2Fsmart-contract-analyzer" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/0x-Professor/smart-contract-analyzer [INFO] finished tweaking git repo https://github.com/0x-Professor/smart-contract-analyzer [INFO] tweaked toml for git repo https://github.com/0x-Professor/smart-contract-analyzer written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/0x-Professor/smart-contract-analyzer on toolchain 779e19d8baa3e3625bd4fc5c85cbb2ad47b43155 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+779e19d8baa3e3625bd4fc5c85cbb2ad47b43155" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/0x-Professor/smart-contract-analyzer 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" "+779e19d8baa3e3625bd4fc5c85cbb2ad47b43155" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded tempfile v3.21.0 [INFO] [stderr] Downloaded uuid v1.18.0 [INFO] [stderr] Downloaded winapi-util v0.1.10 [INFO] [stderr] Downloaded clap v4.5.45 [INFO] [stderr] Downloaded anyhow v1.0.99 [INFO] [stderr] Downloaded indicatif v0.17.11 [INFO] [stderr] Downloaded url v2.5.5 [INFO] [stderr] Downloaded cc v1.2.33 [INFO] [stderr] Downloaded serde_json v1.0.143 [INFO] [stderr] Downloaded bitflags v2.9.2 [INFO] [stderr] Downloaded clap_builder v4.5.44 [INFO] [stderr] Downloaded rustix v1.0.8 [INFO] [stderr] Downloaded tokio v1.47.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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" "+779e19d8baa3e3625bd4fc5c85cbb2ad47b43155" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 85a781ac1fb58600b0f87d54433ffd52616ea1a5310ad6c37a741165a22be02b [INFO] running `Command { std: "docker" "start" "-a" "85a781ac1fb58600b0f87d54433ffd52616ea1a5310ad6c37a741165a22be02b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "85a781ac1fb58600b0f87d54433ffd52616ea1a5310ad6c37a741165a22be02b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "85a781ac1fb58600b0f87d54433ffd52616ea1a5310ad6c37a741165a22be02b", kill_on_drop: false }` [INFO] [stdout] 85a781ac1fb58600b0f87d54433ffd52616ea1a5310ad6c37a741165a22be02b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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" "+779e19d8baa3e3625bd4fc5c85cbb2ad47b43155" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7112fce7337ef7a63b3032e624310e34d11d242068a6ccb0de5c00e417cd5857 [INFO] running `Command { std: "docker" "start" "-a" "7112fce7337ef7a63b3032e624310e34d11d242068a6ccb0de5c00e417cd5857", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.175 [INFO] [stderr] Checking smallvec v1.15.1 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Checking memchr v2.7.5 [INFO] [stderr] Compiling proc-macro2 v1.0.101 [INFO] [stderr] Compiling lock_api v0.4.13 [INFO] [stderr] Compiling cc v1.2.33 [INFO] [stderr] Checking hashbrown v0.15.5 [INFO] [stderr] Checking bitflags v2.9.2 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Checking http v0.2.12 [INFO] [stderr] Checking tracing-core v0.1.34 [INFO] [stderr] Compiling zerocopy v0.8.26 [INFO] [stderr] Checking log v0.4.27 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Checking form_urlencoded v1.2.2 [INFO] [stderr] Checking crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling portable-atomic v1.11.1 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Checking anstyle v1.0.11 [INFO] [stderr] Compiling serde_json v1.0.143 [INFO] [stderr] Compiling rayon-core v1.13.0 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling rustix v1.0.8 [INFO] [stderr] Checking anstream v0.6.20 [INFO] [stderr] Checking winnow v0.7.12 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Checking unicode-width v0.2.1 [INFO] [stderr] Compiling semver v1.0.26 [INFO] [stderr] Checking clap_lex v0.7.5 [INFO] [stderr] Compiling anyhow v1.0.99 [INFO] [stderr] Checking crossbeam-deque v0.8.6 [INFO] [stderr] Checking base64 v0.21.7 [INFO] [stderr] Checking clap_builder v4.5.44 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking http-body v0.4.6 [INFO] [stderr] Checking regex-automata v0.4.9 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking encoding_rs v0.8.35 [INFO] [stderr] Checking number_prefix v0.4.0 [INFO] [stderr] Checking rustls-pemfile v1.0.4 [INFO] [stderr] Checking humantime v2.2.0 [INFO] [stderr] Checking either v1.15.0 [INFO] [stderr] Checking sync_wrapper v0.1.2 [INFO] [stderr] Checking fixedbitset v0.4.2 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Checking sha2 v0.10.9 [INFO] [stderr] Checking indexmap v2.10.0 [INFO] [stderr] Checking colored v2.2.0 [INFO] [stderr] Checking rayon v1.11.0 [INFO] [stderr] Compiling openssl-sys v0.9.109 [INFO] [stderr] Checking socket2 v0.6.0 [INFO] [stderr] Checking signal-hook-registry v1.4.6 [INFO] [stderr] Checking mio v1.0.4 [INFO] [stderr] Checking getrandom v0.2.16 [INFO] [stderr] Checking socket2 v0.5.10 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Checking parking_lot v0.12.4 [INFO] [stderr] Checking is-terminal v0.4.16 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking console v0.15.11 [INFO] [stderr] Checking ppv-lite86 v0.2.21 [INFO] [stderr] Checking uuid v1.18.0 [INFO] [stderr] Checking dashmap v5.5.3 [INFO] [stderr] Checking petgraph v0.6.5 [INFO] [stderr] Checking indicatif v0.17.11 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking tempfile v3.21.0 [INFO] [stderr] Checking regex v1.11.1 [INFO] [stderr] Checking env_logger v0.10.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 zerovec-derive v0.11.1 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling clap_derive v4.5.45 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling async-stream-impl v0.3.6 [INFO] [stderr] Checking tokio v1.47.1 [INFO] [stderr] Checking async-stream v0.3.6 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Checking zerofrom v0.1.6 [INFO] [stderr] Checking thiserror v1.0.69 [INFO] [stderr] Checking yoke v0.8.0 [INFO] [stderr] Checking zerovec v0.11.4 [INFO] [stderr] Checking zerotrie v0.2.2 [INFO] [stderr] Checking clap v4.5.45 [INFO] [stderr] Checking tinystr v0.8.1 [INFO] [stderr] Checking potential_utf v0.1.2 [INFO] [stderr] Checking icu_collections v2.0.0 [INFO] [stderr] Checking icu_locale_core v2.0.0 [INFO] [stderr] Checking serde v1.0.219 [INFO] [stderr] Checking icu_provider v2.0.0 [INFO] [stderr] Checking icu_properties v2.0.1 [INFO] [stderr] Checking icu_normalizer v2.0.0 [INFO] [stderr] Checking idna_adapter v1.2.1 [INFO] [stderr] Checking futures-executor v0.3.31 [INFO] [stderr] Checking idna v1.1.0 [INFO] [stderr] Checking futures v0.3.31 [INFO] [stderr] Checking url v2.5.5 [INFO] [stderr] Checking toml_datetime v0.6.11 [INFO] [stderr] Checking serde_spanned v0.6.9 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking chrono v0.4.41 [INFO] [stderr] Checking tokio-util v0.7.16 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking tokio-stream v0.1.17 [INFO] [stderr] Checking toml_edit v0.22.27 [INFO] [stderr] Checking tokio-test v0.4.4 [INFO] [stderr] Checking h2 v0.3.27 [INFO] [stderr] Checking toml v0.8.23 [INFO] [stderr] Checking hyper v0.14.32 [INFO] [stderr] Checking hyper-tls v0.5.0 [INFO] [stderr] Checking reqwest v0.11.27 [INFO] [stderr] Checking smart-contract-analyzer v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/parser/solidity.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::collections::HashMap; [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 imports: `HashMap`, `HashSet`, and `VecDeque` [INFO] [stdout] --> src/parser/enhanced_solidity.rs:4:24 [INFO] [stdout] | [INFO] [stdout] 4 | use std::collections::{HashMap, HashSet, VecDeque}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Contract` [INFO] [stdout] --> src/detector/enhanced_detector.rs:1:20 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::types::{Contract, Vulnerability, VulnerabilityReport}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashSet` [INFO] [stdout] --> src/detector/enhanced_detector.rs:5:33 [INFO] [stdout] | [INFO] [stdout] 5 | use std::collections::{HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Instruction` [INFO] [stdout] --> src/analyzer/gas/static_analyzer.rs:1:37 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::parser::{BytecodeParser, Instruction}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `StateMutability` [INFO] [stdout] --> src/analyzer/gas_analyzer.rs:1:94 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::parser::enhanced_solidity::{EnhancedContract, EnhancedFunction, EnhancedVariable, StateMutability, Visibility}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashSet` [INFO] [stdout] --> src/analyzer/gas_analyzer.rs:4:33 [INFO] [stdout] | [INFO] [stdout] 4 | use std::collections::{HashMap, HashSet, BTreeMap}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/lib.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub use detector::*; [INFO] [stdout] | ^^^^^^^^^^^ the name `VulnerabilityPattern` in the type namespace is first re-exported here [INFO] [stdout] ... [INFO] [stdout] 17 | pub use types::*; [INFO] [stdout] | -------- but the name `VulnerabilityPattern` in the type namespace is also re-exported here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(ambiguous_glob_reexports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/lib.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub use detector::*; [INFO] [stdout] | ^^^^^^^^^^^ the name `CodeQualityIssue` in the type namespace is first re-exported here [INFO] [stdout] 13 | pub use analyzer::*; [INFO] [stdout] | ----------- but the name `CodeQualityIssue` in the type namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/lib.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | pub use blockchain::*; [INFO] [stdout] | ^^^^^^^^^^^^^ the name `contract` in the type namespace is first re-exported here [INFO] [stdout] ... [INFO] [stdout] 17 | pub use types::*; [INFO] [stdout] | -------- but the name `contract` in the type namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/parser/solidity.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::collections::HashMap; [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 imports: `HashMap`, `HashSet`, and `VecDeque` [INFO] [stdout] --> src/parser/enhanced_solidity.rs:4:24 [INFO] [stdout] | [INFO] [stdout] 4 | use std::collections::{HashMap, HashSet, VecDeque}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Contract` [INFO] [stdout] --> src/detector/enhanced_detector.rs:1:20 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::types::{Contract, Vulnerability, VulnerabilityReport}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashSet` [INFO] [stdout] --> src/detector/enhanced_detector.rs:5:33 [INFO] [stdout] | [INFO] [stdout] 5 | use std::collections::{HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Instruction` [INFO] [stdout] --> src/analyzer/gas/static_analyzer.rs:1:37 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::parser::{BytecodeParser, Instruction}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `StateMutability` [INFO] [stdout] --> src/analyzer/gas_analyzer.rs:1:94 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::parser::enhanced_solidity::{EnhancedContract, EnhancedFunction, EnhancedVariable, StateMutability, Visibility}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashSet` [INFO] [stdout] --> src/analyzer/gas_analyzer.rs:4:33 [INFO] [stdout] | [INFO] [stdout] 4 | use std::collections::{HashMap, HashSet, BTreeMap}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/lib.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub use detector::*; [INFO] [stdout] | ^^^^^^^^^^^ the name `VulnerabilityPattern` in the type namespace is first re-exported here [INFO] [stdout] ... [INFO] [stdout] 17 | pub use types::*; [INFO] [stdout] | -------- but the name `VulnerabilityPattern` in the type namespace is also re-exported here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(ambiguous_glob_reexports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/lib.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub use detector::*; [INFO] [stdout] | ^^^^^^^^^^^ the name `CodeQualityIssue` in the type namespace is first re-exported here [INFO] [stdout] 13 | pub use analyzer::*; [INFO] [stdout] | ----------- but the name `CodeQualityIssue` in the type namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/lib.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | pub use blockchain::*; [INFO] [stdout] | ^^^^^^^^^^^^^ the name `contract` in the type namespace is first re-exported here [INFO] [stdout] ... [INFO] [stdout] 17 | pub use types::*; [INFO] [stdout] | -------- but the name `contract` in the type namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/blockchain/simulation.rs:332:13 [INFO] [stdout] | [INFO] [stdout] 332 | let mut optimized_contract = contract.clone(); [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/blockchain/simulation.rs:332:13 [INFO] [stdout] | [INFO] [stdout] 332 | let mut optimized_contract = contract.clone(); [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `context` [INFO] [stdout] --> src/parser/enhanced_solidity.rs:365:61 [INFO] [stdout] | [INFO] [stdout] 365 | fn extract_enhanced_functions(&self, source_code: &str, context: &mut ParseContext) -> Result> { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_context` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `function_name` [INFO] [stdout] --> src/parser/enhanced_solidity.rs:489:67 [INFO] [stdout] | [INFO] [stdout] 489 | ...f, source_code: &str, function_name: &str, start_line: usize) -> Result<(String, usize, usize)> { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_function_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `current_line` is never read [INFO] [stdout] --> src/parser/enhanced_solidity.rs:515:32 [INFO] [stdout] | [INFO] [stdout] 515 | let mut current_line = brace_line; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `context` [INFO] [stdout] --> src/parser/enhanced_solidity.rs:365:61 [INFO] [stdout] | [INFO] [stdout] 365 | fn extract_enhanced_functions(&self, source_code: &str, context: &mut ParseContext) -> Result> { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_context` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `function_name` [INFO] [stdout] --> src/parser/enhanced_solidity.rs:489:67 [INFO] [stdout] | [INFO] [stdout] 489 | ...f, source_code: &str, function_name: &str, start_line: usize) -> Result<(String, usize, usize)> { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_function_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `current_line` is never read [INFO] [stdout] --> src/parser/enhanced_solidity.rs:515:32 [INFO] [stdout] | [INFO] [stdout] 515 | let mut current_line = brace_line; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/parser/bytecode.rs:241:14 [INFO] [stdout] | [INFO] [stdout] 241 | for (i, instruction) in instructions.iter().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/parser/bytecode.rs:241:14 [INFO] [stdout] | [INFO] [stdout] 241 | for (i, instruction) in instructions.iter().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `contract` [INFO] [stdout] --> src/detector/enhanced_detector.rs:788:74 [INFO] [stdout] | [INFO] [stdout] 788 | fn check_access_control_advanced(&self, function: &EnhancedFunction, contract: &EnhancedContract) -> Result> { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_contract` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `contract` [INFO] [stdout] --> src/detector/enhanced_detector.rs:913:43 [INFO] [stdout] | [INFO] [stdout] 913 | fn analyze_reentrancy_patterns(&self, contract: &EnhancedContract) -> Result> { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_contract` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `contract` [INFO] [stdout] --> src/analyzer/gas/dynamic_analyzer.rs:123:48 [INFO] [stdout] | [INFO] [stdout] 123 | pub async fn profile_storage_access(&self, contract: &Contract) -> crate::Result { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_contract` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `contract` [INFO] [stdout] --> src/detector/enhanced_detector.rs:788:74 [INFO] [stdout] | [INFO] [stdout] 788 | fn check_access_control_advanced(&self, function: &EnhancedFunction, contract: &EnhancedContract) -> Result> { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_contract` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `contract` [INFO] [stdout] --> src/detector/enhanced_detector.rs:913:43 [INFO] [stdout] | [INFO] [stdout] 913 | fn analyze_reentrancy_patterns(&self, contract: &EnhancedContract) -> Result> { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_contract` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `contract` [INFO] [stdout] --> src/analyzer/gas/dynamic_analyzer.rs:123:48 [INFO] [stdout] | [INFO] [stdout] 123 | pub async fn profile_storage_access(&self, contract: &Contract) -> crate::Result { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_contract` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `constructor_params` [INFO] [stdout] --> src/blockchain/contract.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | constructor_params: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_constructor_params` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bytecode` [INFO] [stdout] --> src/blockchain/contract.rs:37:13 [INFO] [stdout] | [INFO] [stdout] 37 | let bytecode = contract.bytecode.as_ref() [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bytecode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `contract_address` [INFO] [stdout] --> src/blockchain/contract.rs:112:9 [INFO] [stdout] | [INFO] [stdout] 112 | contract_address: &str, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_contract_address` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `to_block` [INFO] [stdout] --> src/blockchain/contract.rs:114:9 [INFO] [stdout] | [INFO] [stdout] 114 | to_block: Option, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_to_block` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `parameters` [INFO] [stdout] --> src/blockchain/contract.rs:163:57 [INFO] [stdout] | [INFO] [stdout] 163 | fn encode_function_call(&self, function_name: &str, parameters: &[String]) -> crate::Result { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_parameters` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `source_code` [INFO] [stdout] --> src/blockchain/contract.rs:188:9 [INFO] [stdout] | [INFO] [stdout] 188 | source_code: &str, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_source_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `compiler_version` [INFO] [stdout] --> src/blockchain/contract.rs:189:9 [INFO] [stdout] | [INFO] [stdout] 189 | compiler_version: &str, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_compiler_version` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `constructor_params` [INFO] [stdout] --> src/blockchain/contract.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | constructor_params: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_constructor_params` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bytecode` [INFO] [stdout] --> src/blockchain/contract.rs:37:13 [INFO] [stdout] | [INFO] [stdout] 37 | let bytecode = contract.bytecode.as_ref() [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bytecode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `contract_address` [INFO] [stdout] --> src/blockchain/contract.rs:112:9 [INFO] [stdout] | [INFO] [stdout] 112 | contract_address: &str, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_contract_address` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `to_block` [INFO] [stdout] --> src/blockchain/contract.rs:114:9 [INFO] [stdout] | [INFO] [stdout] 114 | to_block: Option, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_to_block` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `parameters` [INFO] [stdout] --> src/blockchain/contract.rs:163:57 [INFO] [stdout] | [INFO] [stdout] 163 | fn encode_function_call(&self, function_name: &str, parameters: &[String]) -> crate::Result { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_parameters` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `source_code` [INFO] [stdout] --> src/blockchain/contract.rs:188:9 [INFO] [stdout] | [INFO] [stdout] 188 | source_code: &str, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_source_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `compiler_version` [INFO] [stdout] --> src/blockchain/contract.rs:189:9 [INFO] [stdout] | [INFO] [stdout] 189 | compiler_version: &str, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_compiler_version` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `min` [INFO] [stdout] --> src/blockchain/simulation.rs:275:42 [INFO] [stdout] | [INFO] [stdout] 275 | AssertionType::GasUsed { min, max } => { [INFO] [stdout] | ^^^ help: try ignoring the field: `min: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `max` [INFO] [stdout] --> src/blockchain/simulation.rs:275:47 [INFO] [stdout] | [INFO] [stdout] 275 | AssertionType::GasUsed { min, max } => { [INFO] [stdout] | ^^^ help: try ignoring the field: `max: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `optimized_contract` [INFO] [stdout] --> src/blockchain/simulation.rs:141:17 [INFO] [stdout] | [INFO] [stdout] 141 | let optimized_contract = self.apply_gas_optimizations(contract).await?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_optimized_contract` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `gas_analysis` [INFO] [stdout] --> src/cli/commands.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | gas_analysis: bool, [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_gas_analysis` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `vulnerability_analysis` [INFO] [stdout] --> src/cli/commands.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | vulnerability_analysis: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_vulnerability_analysis` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rules` [INFO] [stdout] --> src/cli/commands.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | rules: Option<&PathBuf>, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_rules` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `contract` [INFO] [stdout] --> src/cli/commands.rs:182:9 [INFO] [stdout] | [INFO] [stdout] 182 | let contract = parser.parse_contract(&source_code)?; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_contract` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `private_key` [INFO] [stdout] --> src/cli/commands.rs:213:5 [INFO] [stdout] | [INFO] [stdout] 213 | private_key: Option<&String>, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_private_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `gas_limit` [INFO] [stdout] --> src/cli/commands.rs:214:5 [INFO] [stdout] | [INFO] [stdout] 214 | gas_limit: Option, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_gas_limit` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `gas_price` [INFO] [stdout] --> src/cli/commands.rs:215:5 [INFO] [stdout] | [INFO] [stdout] 215 | gas_price: Option, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_gas_price` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `min` [INFO] [stdout] --> src/blockchain/simulation.rs:275:42 [INFO] [stdout] | [INFO] [stdout] 275 | AssertionType::GasUsed { min, max } => { [INFO] [stdout] | ^^^ help: try ignoring the field: `min: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `max` [INFO] [stdout] --> src/blockchain/simulation.rs:275:47 [INFO] [stdout] | [INFO] [stdout] 275 | AssertionType::GasUsed { min, max } => { [INFO] [stdout] | ^^^ help: try ignoring the field: `max: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `optimized_contract` [INFO] [stdout] --> src/blockchain/simulation.rs:141:17 [INFO] [stdout] | [INFO] [stdout] 141 | let optimized_contract = self.apply_gas_optimizations(contract).await?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_optimized_contract` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `gas_analysis` [INFO] [stdout] --> src/cli/commands.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | gas_analysis: bool, [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_gas_analysis` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `vulnerability_analysis` [INFO] [stdout] --> src/cli/commands.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | vulnerability_analysis: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_vulnerability_analysis` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rules` [INFO] [stdout] --> src/cli/commands.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | rules: Option<&PathBuf>, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_rules` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `contract` [INFO] [stdout] --> src/cli/commands.rs:182:9 [INFO] [stdout] | [INFO] [stdout] 182 | let contract = parser.parse_contract(&source_code)?; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_contract` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `private_key` [INFO] [stdout] --> src/cli/commands.rs:213:5 [INFO] [stdout] | [INFO] [stdout] 213 | private_key: Option<&String>, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_private_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `gas_limit` [INFO] [stdout] --> src/cli/commands.rs:214:5 [INFO] [stdout] | [INFO] [stdout] 214 | gas_limit: Option, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_gas_limit` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `gas_price` [INFO] [stdout] --> src/cli/commands.rs:215:5 [INFO] [stdout] | [INFO] [stdout] 215 | gas_price: Option, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_gas_price` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `modifier_regex` is never read [INFO] [stdout] --> src/parser/solidity.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct SolidityParser { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 9 | modifier_regex: Regex, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `AnalysisType` is never used [INFO] [stdout] --> src/analyzer/enhanced_analyzer.rs:778:6 [INFO] [stdout] | [INFO] [stdout] 778 | enum AnalysisType { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `patterns` is never read [INFO] [stdout] --> src/analyzer/vulnerabilities/detector.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct VulnerabilityDetector { [INFO] [stdout] | --------------------- field in this struct [INFO] [stdout] 4 | patterns: Vec, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `client` and `contract_manager` are never read [INFO] [stdout] --> src/blockchain/simulation.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct ContractSimulator { [INFO] [stdout] | ----------------- fields in this struct [INFO] [stdout] 7 | client: BlockchainClient, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 8 | contract_manager: ContractManager, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `modifier_regex` is never read [INFO] [stdout] --> src/parser/solidity.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct SolidityParser { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 9 | modifier_regex: Regex, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `AnalysisType` is never used [INFO] [stdout] --> src/analyzer/enhanced_analyzer.rs:778:6 [INFO] [stdout] | [INFO] [stdout] 778 | enum AnalysisType { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `patterns` is never read [INFO] [stdout] --> src/analyzer/vulnerabilities/detector.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct VulnerabilityDetector { [INFO] [stdout] | --------------------- field in this struct [INFO] [stdout] 4 | patterns: Vec, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `client` and `contract_manager` are never read [INFO] [stdout] --> src/blockchain/simulation.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct ContractSimulator { [INFO] [stdout] | ----------------- fields in this struct [INFO] [stdout] 7 | client: BlockchainClient, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 8 | contract_manager: ContractManager, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 54.20s [INFO] running `Command { std: "docker" "inspect" "7112fce7337ef7a63b3032e624310e34d11d242068a6ccb0de5c00e417cd5857", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7112fce7337ef7a63b3032e624310e34d11d242068a6ccb0de5c00e417cd5857", kill_on_drop: false }` [INFO] [stdout] 7112fce7337ef7a63b3032e624310e34d11d242068a6ccb0de5c00e417cd5857