[INFO] cloning repository https://github.com/khushalmistry/Re-AI [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/khushalmistry/Re-AI" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkhushalmistry%2FRe-AI", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkhushalmistry%2FRe-AI'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b4681b17c1b0c5ed693d3b6053115c4ba82d8df7 [INFO] checking khushalmistry/Re-AI against master#08cd08fbef8c6663b052d8d9e4930d5696cbb8a7 for 150662-leaf [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkhushalmistry%2FRe-AI" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/khushalmistry/Re-AI [INFO] finished tweaking git repo https://github.com/khushalmistry/Re-AI [INFO] tweaked toml for git repo https://github.com/khushalmistry/Re-AI written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/khushalmistry/Re-AI on toolchain 08cd08fbef8c6663b052d8d9e4930d5696cbb8a7 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+08cd08fbef8c6663b052d8d9e4930d5696cbb8a7" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/khushalmistry/Re-AI 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" "+08cd08fbef8c6663b052d8d9e4930d5696cbb8a7" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded rfd v0.15.4 [INFO] [stderr] Downloaded egui_extras v0.29.1 [INFO] [stderr] Downloaded ehttp v0.5.0 [INFO] [stderr] Downloaded imagesize v0.12.0 [INFO] [stderr] Downloaded toml_edit v0.25.3+spec-1.1.0 [INFO] [stderr] Downloaded usvg-tree v0.37.0 [INFO] [stderr] Downloaded roxmltree v0.19.0 [INFO] [stderr] Downloaded webbrowser v1.1.0 [INFO] [stderr] Downloaded usvg-parser v0.37.0 [INFO] [stderr] Downloaded resvg v0.37.0 [INFO] [stderr] Downloaded capstone v0.12.0 [INFO] [stderr] Downloaded goblin v0.7.1 [INFO] [stderr] Downloaded usvg v0.37.0 [INFO] [stderr] Downloaded svgtypes v0.13.0 [INFO] [stderr] Downloaded capstone-sys v0.16.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+08cd08fbef8c6663b052d8d9e4930d5696cbb8a7" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] fae086bbae0597726e11ccc905c52f3807f20cff66e5e30aecee77146a00ad8a [INFO] running `Command { std: "docker" "start" "-a" "fae086bbae0597726e11ccc905c52f3807f20cff66e5e30aecee77146a00ad8a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fae086bbae0597726e11ccc905c52f3807f20cff66e5e30aecee77146a00ad8a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fae086bbae0597726e11ccc905c52f3807f20cff66e5e30aecee77146a00ad8a", kill_on_drop: false }` [INFO] [stdout] fae086bbae0597726e11ccc905c52f3807f20cff66e5e30aecee77146a00ad8a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+08cd08fbef8c6663b052d8d9e4930d5696cbb8a7" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] dbf98c1ddd0cd7aed0f32f2596427311ce706f0876467621a2e63ac7b7c8b074 [INFO] running `Command { std: "docker" "start" "-a" "dbf98c1ddd0cd7aed0f32f2596427311ce706f0876467621a2e63ac7b7c8b074", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.106 [INFO] [stderr] Compiling quote v1.0.45 [INFO] [stderr] Compiling libc v0.2.182 [INFO] [stderr] Checking bitflags v2.11.0 [INFO] [stderr] Compiling cc v1.2.56 [INFO] [stderr] Compiling toml_datetime v1.0.0+spec-1.1.0 [INFO] [stderr] Compiling toml_parser v1.0.9+spec-1.1.0 [INFO] [stderr] Compiling zerocopy v0.8.40 [INFO] [stderr] Compiling wayland-sys v0.31.8 [INFO] [stderr] Compiling quick-xml v0.38.4 [INFO] [stderr] Checking event-listener v5.4.1 [INFO] [stderr] Compiling getrandom v0.3.4 [INFO] [stderr] Checking float-cmp v0.9.0 [INFO] [stderr] Checking async-executor v1.14.0 [INFO] [stderr] Checking ordered-stream v0.2.0 [INFO] [stderr] Checking png v0.17.16 [INFO] [stderr] Checking event-listener-strategy v0.5.4 [INFO] [stderr] Checking strict-num v0.1.1 [INFO] [stderr] Checking rustix v1.1.4 [INFO] [stderr] Checking rustix v0.38.44 [INFO] [stderr] Checking kurbo v0.9.5 [INFO] [stderr] Compiling winit v0.30.13 [INFO] [stderr] Checking siphasher v0.3.11 [INFO] [stderr] Checking http v0.2.12 [INFO] [stderr] Checking async-channel v2.5.0 [INFO] [stderr] Checking async-lock v3.4.2 [INFO] [stderr] Checking async-broadcast v0.7.2 [INFO] [stderr] Checking blocking v1.6.2 [INFO] [stderr] Compiling phf_shared v0.11.3 [INFO] [stderr] Checking xkbcommon-dl v0.4.2 [INFO] [stderr] Checking futures-channel v0.3.32 [INFO] [stderr] Checking syn v2.0.117 [INFO] [stderr] Compiling toml_edit v0.25.3+spec-1.1.0 [INFO] [stderr] Compiling native-tls v0.2.18 [INFO] [stderr] Compiling rustls v0.23.37 [INFO] [stderr] Checking rctree v0.5.0 [INFO] [stderr] Compiling phf v0.11.3 [INFO] [stderr] Checking simplecss v0.2.2 [INFO] [stderr] Checking svgtypes v0.13.0 [INFO] [stderr] Compiling wayland-scanner v0.31.8 [INFO] [stderr] Checking roxmltree v0.19.0 [INFO] [stderr] Checking data-url v0.3.2 [INFO] [stderr] Checking async-fs v2.2.0 [INFO] [stderr] Checking imagesize v0.12.0 [INFO] [stderr] Checking openssl-probe v0.2.1 [INFO] [stderr] Checking http-body v0.4.6 [INFO] [stderr] Checking gif v0.14.1 [INFO] [stderr] Compiling mime_guess2 v2.3.1 [INFO] [stderr] Checking moxcms v0.7.11 [INFO] [stderr] Checking png v0.18.1 [INFO] [stderr] Checking uuid v1.21.0 [INFO] [stderr] Checking pico-args v0.5.0 [INFO] [stderr] Checking xmlwriter v0.1.0 [INFO] [stderr] Compiling proc-macro-crate v3.5.0 [INFO] [stderr] Compiling rfd v0.15.4 [INFO] [stderr] Checking regex-automata v0.4.14 [INFO] [stderr] Compiling wayland-backend v0.3.12 [INFO] [stderr] Checking getrandom v0.2.17 [INFO] [stderr] Checking parking_lot_core v0.9.12 [INFO] [stderr] Checking errno v0.3.14 [INFO] [stderr] Checking xdg-home v1.3.0 [INFO] [stderr] Checking nix v0.29.0 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking memmap2 v0.9.10 [INFO] [stderr] Compiling openssl-sys v0.9.111 [INFO] [stderr] Checking signal-hook-registry v1.4.8 [INFO] [stderr] Checking parking_lot v0.12.5 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Checking x11-dl v2.21.0 [INFO] [stderr] Checking socket2 v0.6.2 [INFO] [stderr] Checking mio v1.1.1 [INFO] [stderr] Checking rand_core v0.9.5 [INFO] [stderr] Checking socket2 v0.5.10 [INFO] [stderr] Compiling capstone-sys v0.16.0 [INFO] [stderr] Checking clap_builder v4.5.60 [INFO] [stderr] Compiling anyhow v1.0.102 [INFO] [stderr] Compiling openssl v0.10.75 [INFO] [stderr] Checking plain v0.2.3 [INFO] [stderr] Checking pollster v0.4.0 [INFO] [stderr] Checking open v5.3.3 [INFO] [stderr] Checking tracing-subscriber v0.3.22 [INFO] [stderr] Checking assert_matches v1.5.0 [INFO] [stderr] Checking regex v1.12.3 [INFO] [stderr] Checking ppv-lite86 v0.2.21 [INFO] [stderr] Checking ahash v0.8.12 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand_chacha v0.9.0 [INFO] [stderr] Checking polling v3.11.0 [INFO] [stderr] Checking gethostname v1.1.0 [INFO] [stderr] Checking rand v0.9.2 [INFO] [stderr] Checking x11rb v0.13.2 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling zvariant_utils v2.1.0 [INFO] [stderr] Checking async-io v2.6.0 [INFO] [stderr] Checking glutin_glx_sys v0.6.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking glutin v0.32.3 [INFO] [stderr] Checking async-signal v0.2.13 [INFO] [stderr] Checking async-net v2.0.0 [INFO] [stderr] Checking async-process v2.5.0 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling enumflags2_derive v0.7.12 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.1 [INFO] [stderr] Compiling tracing-attributes v0.1.31 [INFO] [stderr] Compiling zerovec-derive v0.11.2 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling bytemuck_derive v1.10.2 [INFO] [stderr] Compiling zvariant_derive v4.2.0 [INFO] [stderr] Compiling futures-macro v0.3.32 [INFO] [stderr] Checking wayland-client v0.31.12 [INFO] [stderr] Compiling serde_repr v0.1.20 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling zbus_macros v4.4.0 [INFO] [stderr] Checking wayland-csd-frame v0.3.0 [INFO] [stderr] Compiling tokio-macros v2.6.1 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Checking futures-util v0.3.32 [INFO] [stderr] Compiling thiserror-impl v2.0.18 [INFO] [stderr] Compiling async-recursion v1.1.1 [INFO] [stderr] Checking wayland-protocols v0.32.10 [INFO] [stderr] Checking zerofrom v0.1.6 [INFO] [stderr] Checking tracing v0.1.44 [INFO] [stderr] Checking bytemuck v1.25.0 [INFO] [stderr] Checking wayland-cursor v0.31.12 [INFO] [stderr] Checking yoke v0.8.1 [INFO] [stderr] Checking rustls-webpki v0.103.9 [INFO] [stderr] Checking calloop v0.14.4 [INFO] [stderr] Checking tokio v1.50.0 [INFO] [stderr] Checking arboard v3.6.1 [INFO] [stderr] Compiling scroll_derive v0.11.1 [INFO] [stderr] Checking tiny-skia-path v0.11.4 [INFO] [stderr] Checking zerovec v0.11.5 [INFO] [stderr] Checking zerotrie v0.2.3 [INFO] [stderr] Checking thiserror v1.0.69 [INFO] [stderr] Checking emath v0.29.1 [INFO] [stderr] Checking calloop v0.13.0 [INFO] [stderr] Checking rgb v0.8.53 [INFO] [stderr] Checking thiserror v2.0.18 [INFO] [stderr] Checking image v0.25.9 [INFO] [stderr] Checking calloop-wayland-source v0.4.1 [INFO] [stderr] Compiling enum-map-derive v0.17.0 [INFO] [stderr] Checking calloop-wayland-source v0.3.0 [INFO] [stderr] Checking tiny-skia v0.11.4 [INFO] [stderr] Checking usvg-tree v0.37.0 [INFO] [stderr] Checking scroll v0.11.0 [INFO] [stderr] Checking tinystr v0.8.2 [INFO] [stderr] Checking potential_utf v0.1.4 [INFO] [stderr] Checking usvg-parser v0.37.0 [INFO] [stderr] Checking ecolor v0.29.1 [INFO] [stderr] Checking icu_collections v2.1.1 [INFO] [stderr] Compiling clap_derive v4.5.55 [INFO] [stderr] Checking icu_locale_core v2.1.1 [INFO] [stderr] Checking epaint v0.29.1 [INFO] [stderr] Checking goblin v0.7.1 [INFO] [stderr] Checking serde v1.0.228 [INFO] [stderr] Checking usvg v0.37.0 [INFO] [stderr] Checking icu_provider v2.1.1 [INFO] [stderr] Checking egui v0.29.1 [INFO] [stderr] Compiling enumflags2 v0.7.12 [INFO] [stderr] Compiling quick-xml v0.30.0 [INFO] [stderr] Compiling zvariant_utils v3.3.0 [INFO] [stderr] Checking resvg v0.37.0 [INFO] [stderr] Checking icu_properties v2.1.2 [INFO] [stderr] Checking icu_normalizer v2.1.1 [INFO] [stderr] Compiling zvariant v4.2.0 [INFO] [stderr] Checking enum-map v2.7.3 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Compiling zvariant_derive v5.10.0 [INFO] [stderr] Checking clap v4.5.60 [INFO] [stderr] Compiling zvariant v5.10.0 [INFO] [stderr] Checking idna_adapter v1.2.1 [INFO] [stderr] Checking idna v1.1.0 [INFO] [stderr] Checking url v2.5.8 [INFO] [stderr] Checking webbrowser v1.1.0 [INFO] [stderr] Checking ureq v2.12.1 [INFO] [stderr] Checking tokio-util v0.7.18 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Compiling zbus_names v3.0.0 [INFO] [stderr] Checking ehttp v0.5.0 [INFO] [stderr] Checking egui_glow v0.29.1 [INFO] [stderr] Checking wayland-protocols-wlr v0.3.10 [INFO] [stderr] Checking wayland-protocols-plasma v0.3.10 [INFO] [stderr] Checking wayland-protocols-experimental v20250721.0.1 [INFO] [stderr] Checking wayland-protocols-misc v0.3.10 [INFO] [stderr] Checking h2 v0.3.27 [INFO] [stderr] Checking zbus_xml v4.0.0 [INFO] [stderr] Checking zbus v4.4.0 [INFO] [stderr] Checking egui_extras v0.29.1 [INFO] [stderr] Checking zbus-lockstep v0.4.4 [INFO] [stderr] Compiling zbus-lockstep-macros v0.4.4 [INFO] [stderr] Compiling zbus_names v4.3.1 [INFO] [stderr] Checking smithay-client-toolkit v0.19.2 [INFO] [stderr] Checking smithay-client-toolkit v0.20.0 [INFO] [stderr] Compiling zbus_macros v5.14.0 [INFO] [stderr] Checking sctk-adwaita v0.10.1 [INFO] [stderr] Checking smithay-clipboard v0.7.3 [INFO] [stderr] Checking hyper v0.14.32 [INFO] [stderr] Checking zbus v5.14.0 [INFO] [stderr] Checking atspi-common v0.6.0 [INFO] [stderr] Checking glutin-winit v0.5.0 [INFO] [stderr] Checking hyper-tls v0.5.0 [INFO] [stderr] Checking reqwest v0.11.27 [INFO] [stderr] Checking atspi-proxies v0.6.0 [INFO] [stderr] Checking accesskit_atspi_common v0.9.3 [INFO] [stderr] Checking atspi-connection v0.6.0 [INFO] [stderr] Checking atspi v0.22.0 [INFO] [stderr] Checking accesskit_unix v0.12.3 [INFO] [stderr] Checking capstone v0.12.0 [INFO] [stderr] Checking ashpd v0.11.1 [INFO] [stderr] Checking accesskit_winit v0.22.4 [INFO] [stderr] Checking egui-winit v0.29.1 [INFO] [stderr] Checking eframe v0.29.1 [INFO] [stderr] Checking re-ai v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `start` [INFO] [stdout] --> src/analysis/functions.rs:170:17 [INFO] [stdout] | [INFO] [stdout] 170 | let start = i; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_start` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `start` [INFO] [stdout] --> src/analysis/functions.rs:170:17 [INFO] [stdout] | [INFO] [stdout] 170 | let start = i; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_start` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `min_sequence` is never read [INFO] [stdout] --> src/analysis/functions.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct FunctionDetector { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] 6 | min_sequence: usize, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `min_sequence` is never read [INFO] [stdout] --> src/analysis/functions.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct FunctionDetector { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] 6 | min_sequence: usize, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `start` [INFO] [stdout] --> src/analysis/functions.rs:170:17 [INFO] [stdout] | [INFO] [stdout] 170 | let start = i; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_start` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `start` [INFO] [stdout] --> src/analysis/functions.rs:170:17 [INFO] [stdout] | [INFO] [stdout] 170 | let start = i; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_start` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `start` [INFO] [stdout] --> src/analysis/functions.rs:170:17 [INFO] [stdout] | [INFO] [stdout] 170 | let start = i; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_start` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `start` [INFO] [stdout] --> src/analysis/functions.rs:170:17 [INFO] [stdout] | [INFO] [stdout] 170 | let start = i; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_start` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `is_control_flow`, `is_call`, and `is_return` are never used [INFO] [stdout] --> src/disasm/mod.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 27 | impl Instruction { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] 28 | pub fn is_control_flow(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn is_call(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn is_return(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DisassemblyResult` is never constructed [INFO] [stdout] --> src/disasm/mod.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 42 | pub struct DisassemblyResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `architecture` is never read [INFO] [stdout] --> src/disasm/engine.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Disassembler { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 8 | cs: Capstone, [INFO] [stdout] 9 | architecture: Architecture, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `disassemble` and `architecture` are never used [INFO] [stdout] --> src/disasm/engine.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl Disassembler { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn disassemble(&self, bytes: &[u8], address: u64) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn architecture(&self) -> Architecture { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `disassemble_function` is never used [INFO] [stdout] --> src/disasm/engine.rs:64:8 [INFO] [stdout] | [INFO] [stdout] 64 | pub fn disassemble_function(binary: &crate::binary::Binary, func_addr: u64) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AnalysisResult` is never constructed [INFO] [stdout] --> src/analysis/mod.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct AnalysisResult { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CodeMetrics` is never constructed [INFO] [stdout] --> src/analysis/mod.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | pub struct CodeMetrics { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `min_sequence` is never read [INFO] [stdout] --> src/analysis/functions.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct FunctionDetector { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] 6 | min_sequence: usize, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BasicBlock` is never constructed [INFO] [stdout] --> src/analysis/cfg.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct BasicBlock { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ControlFlowGraph` is never constructed [INFO] [stdout] --> src/analysis/cfg.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct ControlFlowGraph { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/analysis/cfg.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl ControlFlowGraph { [INFO] [stdout] | --------------------- associated items in this implementation [INFO] [stdout] 23 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn build(instructions: &[Instruction]) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | fn build_edges(&mut self, _instructions: &[Instruction]) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 88 | pub fn block_at(&self, address: u64) -> Option<&BasicBlock> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 92 | pub fn cyclomatic_complexity(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | pub fn find_branch_blocks(&self) -> Vec<&BasicBlock> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 104 | pub fn find_call_blocks(&self) -> Vec<&BasicBlock> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 110 | pub fn find_return_blocks(&self) -> Vec<&BasicBlock> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_function_cfg` is never used [INFO] [stdout] --> src/analysis/cfg.rs:123:8 [INFO] [stdout] | [INFO] [stdout] 123 | pub fn build_function_cfg(binary: &crate::binary::Binary, func: &crate::binary::Function) -> anyhow::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `api_key`, `temperature`, and `max_tokens` are never read [INFO] [stdout] --> src/ai/llm.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct LLMConfig { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 11 | pub api_key: Option, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 12 | pub temperature: f32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 13 | pub max_tokens: usize, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LLMConfig` 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: variant `OpenAI` is never constructed [INFO] [stdout] --> src/ai/llm.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 17 | pub enum LLMBackend { [INFO] [stdout] | ---------- variant in this enum [INFO] [stdout] 18 | Ollama, [INFO] [stdout] 19 | OpenAI, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LLMBackend` 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: associated function `new` is never used [INFO] [stdout] --> src/ai/llm.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 52 | impl LLMClient { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] 53 | pub fn new(config: LLMConfig) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `with_llm` is never used [INFO] [stdout] --> src/ai/queries.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 28 | impl QueryProcessor { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn with_llm(config: crate::ai::llm::LLMConfig) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `IRInstruction` is never constructed [INFO] [stdout] --> src/ir/mod.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct IRInstruction { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `IROp` is never used [INFO] [stdout] --> src/ir/mod.rs:15:10 [INFO] [stdout] | [INFO] [stdout] 15 | pub enum IROp { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `IROperand` is never used [INFO] [stdout] --> src/ir/mod.rs:26:10 [INFO] [stdout] | [INFO] [stdout] 26 | pub enum IROperand { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `IRFunction` is never constructed [INFO] [stdout] --> src/ir/mod.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 35 | pub struct IRFunction { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `IRBlock` is never constructed [INFO] [stdout] --> src/ir/mod.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 43 | pub struct IRBlock { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_ir` is never used [INFO] [stdout] --> src/ir/representation.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn build_ir(instructions: &[Instruction], arch: &Architecture) -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `instruction_to_ir` is never used [INFO] [stdout] --> src/ir/representation.rs:9:4 [INFO] [stdout] | [INFO] [stdout] 9 | fn instruction_to_ir(insn: &Instruction, arch: &Architecture) -> IRInstruction { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_operand` is never used [INFO] [stdout] --> src/ir/representation.rs:95:4 [INFO] [stdout] | [INFO] [stdout] 95 | fn parse_operand(s: &str, arch: &Architecture) -> IROperand { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_two_operands` is never used [INFO] [stdout] --> src/ir/representation.rs:116:4 [INFO] [stdout] | [INFO] [stdout] 116 | fn parse_two_operands(s: &str, arch: &Architecture) -> (IROperand, IROperand) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_all_operands` is never used [INFO] [stdout] --> src/ir/representation.rs:125:4 [INFO] [stdout] | [INFO] [stdout] 125 | fn parse_all_operands(s: &str, arch: &Architecture) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_memory_operand` is never used [INFO] [stdout] --> src/ir/representation.rs:129:4 [INFO] [stdout] | [INFO] [stdout] 129 | fn parse_memory_operand(s: &str, arch: &Architecture) -> IROperand { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_register` is never used [INFO] [stdout] --> src/ir/representation.rs:147:4 [INFO] [stdout] | [INFO] [stdout] 147 | fn is_register(s: &str, arch: &Architecture) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `is_control_flow`, `is_call`, and `is_return` are never used [INFO] [stdout] --> src/disasm/mod.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 27 | impl Instruction { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] 28 | pub fn is_control_flow(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn is_call(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn is_return(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DisassemblyResult` is never constructed [INFO] [stdout] --> src/disasm/mod.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 42 | pub struct DisassemblyResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `architecture` is never read [INFO] [stdout] --> src/disasm/engine.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Disassembler { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 8 | cs: Capstone, [INFO] [stdout] 9 | architecture: Architecture, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `disassemble` and `architecture` are never used [INFO] [stdout] --> src/disasm/engine.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl Disassembler { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn disassemble(&self, bytes: &[u8], address: u64) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn architecture(&self) -> Architecture { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `disassemble_function` is never used [INFO] [stdout] --> src/disasm/engine.rs:64:8 [INFO] [stdout] | [INFO] [stdout] 64 | pub fn disassemble_function(binary: &crate::binary::Binary, func_addr: u64) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AnalysisResult` is never constructed [INFO] [stdout] --> src/analysis/mod.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct AnalysisResult { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CodeMetrics` is never constructed [INFO] [stdout] --> src/analysis/mod.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | pub struct CodeMetrics { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `min_sequence` is never read [INFO] [stdout] --> src/analysis/functions.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct FunctionDetector { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] 6 | min_sequence: usize, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BasicBlock` is never constructed [INFO] [stdout] --> src/analysis/cfg.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct BasicBlock { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ControlFlowGraph` is never constructed [INFO] [stdout] --> src/analysis/cfg.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct ControlFlowGraph { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/analysis/cfg.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl ControlFlowGraph { [INFO] [stdout] | --------------------- associated items in this implementation [INFO] [stdout] 23 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn build(instructions: &[Instruction]) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | fn build_edges(&mut self, _instructions: &[Instruction]) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 88 | pub fn block_at(&self, address: u64) -> Option<&BasicBlock> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 92 | pub fn cyclomatic_complexity(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | pub fn find_branch_blocks(&self) -> Vec<&BasicBlock> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 104 | pub fn find_call_blocks(&self) -> Vec<&BasicBlock> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 110 | pub fn find_return_blocks(&self) -> Vec<&BasicBlock> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_function_cfg` is never used [INFO] [stdout] --> src/analysis/cfg.rs:123:8 [INFO] [stdout] | [INFO] [stdout] 123 | pub fn build_function_cfg(binary: &crate::binary::Binary, func: &crate::binary::Function) -> anyhow::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `api_key`, `temperature`, and `max_tokens` are never read [INFO] [stdout] --> src/ai/llm.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct LLMConfig { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 11 | pub api_key: Option, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 12 | pub temperature: f32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 13 | pub max_tokens: usize, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LLMConfig` 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: variant `OpenAI` is never constructed [INFO] [stdout] --> src/ai/llm.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 17 | pub enum LLMBackend { [INFO] [stdout] | ---------- variant in this enum [INFO] [stdout] 18 | Ollama, [INFO] [stdout] 19 | OpenAI, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LLMBackend` 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: associated function `new` is never used [INFO] [stdout] --> src/ai/llm.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 52 | impl LLMClient { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] 53 | pub fn new(config: LLMConfig) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `with_llm` is never used [INFO] [stdout] --> src/ai/queries.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 28 | impl QueryProcessor { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn with_llm(config: crate::ai::llm::LLMConfig) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `IRInstruction` is never constructed [INFO] [stdout] --> src/ir/mod.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct IRInstruction { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `IROp` is never used [INFO] [stdout] --> src/ir/mod.rs:15:10 [INFO] [stdout] | [INFO] [stdout] 15 | pub enum IROp { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `IROperand` is never used [INFO] [stdout] --> src/ir/mod.rs:26:10 [INFO] [stdout] | [INFO] [stdout] 26 | pub enum IROperand { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `IRFunction` is never constructed [INFO] [stdout] --> src/ir/mod.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 35 | pub struct IRFunction { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `IRBlock` is never constructed [INFO] [stdout] --> src/ir/mod.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 43 | pub struct IRBlock { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_ir` is never used [INFO] [stdout] --> src/ir/representation.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn build_ir(instructions: &[Instruction], arch: &Architecture) -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `instruction_to_ir` is never used [INFO] [stdout] --> src/ir/representation.rs:9:4 [INFO] [stdout] | [INFO] [stdout] 9 | fn instruction_to_ir(insn: &Instruction, arch: &Architecture) -> IRInstruction { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_operand` is never used [INFO] [stdout] --> src/ir/representation.rs:95:4 [INFO] [stdout] | [INFO] [stdout] 95 | fn parse_operand(s: &str, arch: &Architecture) -> IROperand { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_two_operands` is never used [INFO] [stdout] --> src/ir/representation.rs:116:4 [INFO] [stdout] | [INFO] [stdout] 116 | fn parse_two_operands(s: &str, arch: &Architecture) -> (IROperand, IROperand) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_all_operands` is never used [INFO] [stdout] --> src/ir/representation.rs:125:4 [INFO] [stdout] | [INFO] [stdout] 125 | fn parse_all_operands(s: &str, arch: &Architecture) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_memory_operand` is never used [INFO] [stdout] --> src/ir/representation.rs:129:4 [INFO] [stdout] | [INFO] [stdout] 129 | fn parse_memory_operand(s: &str, arch: &Architecture) -> IROperand { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_register` is never used [INFO] [stdout] --> src/ir/representation.rs:147:4 [INFO] [stdout] | [INFO] [stdout] 147 | fn is_register(s: &str, arch: &Architecture) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `size` is never read [INFO] [stdout] --> src/gui_main.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 39 | struct OllamaModel { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 40 | name: String, [INFO] [stdout] 41 | size: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OllamaModel` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `exports` is never read [INFO] [stdout] --> src/gui_main.rs:118:5 [INFO] [stdout] | [INFO] [stdout] 113 | struct BinaryState { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 118 | exports: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `name` is never read [INFO] [stdout] --> src/gui_main.rs:139:5 [INFO] [stdout] | [INFO] [stdout] 136 | struct QueryResult { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 139 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `QueryResult` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `function_at` is never used [INFO] [stdout] --> src/binary/mod.rs:139:12 [INFO] [stdout] | [INFO] [stdout] 122 | impl Binary { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 139 | pub fn function_at(&self, address: u64) -> Option<&Function> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `is_control_flow`, `is_call`, and `is_return` are never used [INFO] [stdout] --> src/disasm/mod.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 27 | impl Instruction { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] 28 | pub fn is_control_flow(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn is_call(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn is_return(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DisassemblyResult` is never constructed [INFO] [stdout] --> src/disasm/mod.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 42 | pub struct DisassemblyResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `architecture` is never read [INFO] [stdout] --> src/disasm/engine.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Disassembler { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 8 | cs: Capstone, [INFO] [stdout] 9 | architecture: Architecture, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `disassemble` and `architecture` are never used [INFO] [stdout] --> src/disasm/engine.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl Disassembler { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn disassemble(&self, bytes: &[u8], address: u64) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn architecture(&self) -> Architecture { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `disassemble_function` is never used [INFO] [stdout] --> src/disasm/engine.rs:64:8 [INFO] [stdout] | [INFO] [stdout] 64 | pub fn disassemble_function(binary: &crate::binary::Binary, func_addr: u64) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AnalysisResult` is never constructed [INFO] [stdout] --> src/analysis/mod.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct AnalysisResult { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CodeMetrics` is never constructed [INFO] [stdout] --> src/analysis/mod.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | pub struct CodeMetrics { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `min_sequence` is never read [INFO] [stdout] --> src/analysis/functions.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct FunctionDetector { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] 6 | min_sequence: usize, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_suspicious_patterns` is never used [INFO] [stdout] --> src/analysis/patterns.rs:133:8 [INFO] [stdout] | [INFO] [stdout] 133 | pub fn find_suspicious_patterns(binary: &Binary) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BasicBlock` is never constructed [INFO] [stdout] --> src/analysis/cfg.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct BasicBlock { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ControlFlowGraph` is never constructed [INFO] [stdout] --> src/analysis/cfg.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct ControlFlowGraph { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/analysis/cfg.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl ControlFlowGraph { [INFO] [stdout] | --------------------- associated items in this implementation [INFO] [stdout] 23 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn build(instructions: &[Instruction]) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | fn build_edges(&mut self, _instructions: &[Instruction]) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 88 | pub fn block_at(&self, address: u64) -> Option<&BasicBlock> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 92 | pub fn cyclomatic_complexity(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | pub fn find_branch_blocks(&self) -> Vec<&BasicBlock> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 104 | pub fn find_call_blocks(&self) -> Vec<&BasicBlock> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 110 | pub fn find_return_blocks(&self) -> Vec<&BasicBlock> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_function_cfg` is never used [INFO] [stdout] --> src/analysis/cfg.rs:123:8 [INFO] [stdout] | [INFO] [stdout] 123 | pub fn build_function_cfg(binary: &crate::binary::Binary, func: &crate::binary::Function) -> anyhow::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `QueryResult` is never constructed [INFO] [stdout] --> src/ai/mod.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct QueryResult { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `QueryIntent` is never used [INFO] [stdout] --> src/ai/mod.rs:16:10 [INFO] [stdout] | [INFO] [stdout] 16 | pub enum QueryIntent { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `QueryMatch` is never constructed [INFO] [stdout] --> src/ai/mod.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | pub struct QueryMatch { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `MatchType` is never used [INFO] [stdout] --> src/ai/mod.rs:39:10 [INFO] [stdout] | [INFO] [stdout] 39 | pub enum MatchType { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BinaryContext` is never constructed [INFO] [stdout] --> src/ai/mod.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 49 | pub struct BinaryContext { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `from_binary` and `to_prompt` are never used [INFO] [stdout] --> src/ai/mod.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 59 | impl BinaryContext { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 60 | pub fn from_binary(binary: &crate::binary::Binary) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | pub fn to_prompt(&self) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LLMConfig` is never constructed [INFO] [stdout] --> src/ai/llm.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct LLMConfig { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `LLMBackend` is never used [INFO] [stdout] --> src/ai/llm.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 17 | pub enum LLMBackend { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LLMClient` is never constructed [INFO] [stdout] --> src/ai/llm.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 35 | pub struct LLMClient { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `OllamaRequest` is never constructed [INFO] [stdout] --> src/ai/llm.rs:41:8 [INFO] [stdout] | [INFO] [stdout] 41 | struct OllamaRequest { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `OllamaResponse` is never constructed [INFO] [stdout] --> src/ai/llm.rs:48:8 [INFO] [stdout] | [INFO] [stdout] 48 | struct OllamaResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `generate`, `ollama_generate`, `openai_generate`, `classify_intent`, and `explain_results` are never used [INFO] [stdout] --> src/ai/llm.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 52 | impl LLMClient { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 53 | pub fn new(config: LLMConfig) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | pub fn generate(&self, prompt: &str) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | fn ollama_generate(&self, prompt: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 94 | fn openai_generate(&self, _prompt: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | pub async fn classify_intent(&self, query: &str, context: &crate::ai::BinaryContext) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 119 | pub async fn explain_results(&self, query: &str, results: &[crate::ai::QueryMatch], context: &crate::ai::BinaryContext) -> Resu... [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `QueryProcessor` is never constructed [INFO] [stdout] --> src/ai/queries.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct QueryProcessor { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `QUERY_PATTERNS` is never used [INFO] [stdout] --> src/ai/queries.rs:15:7 [INFO] [stdout] | [INFO] [stdout] 15 | const QUERY_PATTERNS: &[(&str, QueryIntent)] = &[ [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/ai/queries.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 28 | impl QueryProcessor { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 29 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn with_llm(config: crate::ai::llm::LLMConfig) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn load_binary(&mut self, binary: Binary) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | pub async fn process(&self, query: &str) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | async fn classify_intent(&self, query: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 88 | async fn find_functions(&self, query: &str, binary: &Binary) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 118 | async fn find_strings(&self, query: &str, binary: &Binary) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 146 | async fn get_address_info(&self, query: &str, binary: &Binary) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 171 | async fn search_patterns(&self, query: &str, binary: &Binary) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 202 | async fn analyze_security(&self, binary: &Binary) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 215 | async fn explain_code(&self, query: &str, binary: &Binary) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 234 | async fn get_overview(&self, binary: &Binary) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `IRInstruction` is never constructed [INFO] [stdout] --> src/ir/mod.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct IRInstruction { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `IROp` is never used [INFO] [stdout] --> src/ir/mod.rs:15:10 [INFO] [stdout] | [INFO] [stdout] 15 | pub enum IROp { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `IROperand` is never used [INFO] [stdout] --> src/ir/mod.rs:26:10 [INFO] [stdout] | [INFO] [stdout] 26 | pub enum IROperand { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `IRFunction` is never constructed [INFO] [stdout] --> src/ir/mod.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 35 | pub struct IRFunction { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `IRBlock` is never constructed [INFO] [stdout] --> src/ir/mod.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 43 | pub struct IRBlock { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_ir` is never used [INFO] [stdout] --> src/ir/representation.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn build_ir(instructions: &[Instruction], arch: &Architecture) -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `instruction_to_ir` is never used [INFO] [stdout] --> src/ir/representation.rs:9:4 [INFO] [stdout] | [INFO] [stdout] 9 | fn instruction_to_ir(insn: &Instruction, arch: &Architecture) -> IRInstruction { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_operand` is never used [INFO] [stdout] --> src/ir/representation.rs:95:4 [INFO] [stdout] | [INFO] [stdout] 95 | fn parse_operand(s: &str, arch: &Architecture) -> IROperand { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_two_operands` is never used [INFO] [stdout] --> src/ir/representation.rs:116:4 [INFO] [stdout] | [INFO] [stdout] 116 | fn parse_two_operands(s: &str, arch: &Architecture) -> (IROperand, IROperand) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_all_operands` is never used [INFO] [stdout] --> src/ir/representation.rs:125:4 [INFO] [stdout] | [INFO] [stdout] 125 | fn parse_all_operands(s: &str, arch: &Architecture) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_memory_operand` is never used [INFO] [stdout] --> src/ir/representation.rs:129:4 [INFO] [stdout] | [INFO] [stdout] 129 | fn parse_memory_operand(s: &str, arch: &Architecture) -> IROperand { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_register` is never used [INFO] [stdout] --> src/ir/representation.rs:147:4 [INFO] [stdout] | [INFO] [stdout] 147 | fn is_register(s: &str, arch: &Architecture) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `size` is never read [INFO] [stdout] --> src/gui_main.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 39 | struct OllamaModel { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 40 | name: String, [INFO] [stdout] 41 | size: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OllamaModel` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `exports` is never read [INFO] [stdout] --> src/gui_main.rs:118:5 [INFO] [stdout] | [INFO] [stdout] 113 | struct BinaryState { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 118 | exports: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `name` is never read [INFO] [stdout] --> src/gui_main.rs:139:5 [INFO] [stdout] | [INFO] [stdout] 136 | struct QueryResult { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 139 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `QueryResult` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `function_at` is never used [INFO] [stdout] --> src/binary/mod.rs:139:12 [INFO] [stdout] | [INFO] [stdout] 122 | impl Binary { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 139 | pub fn function_at(&self, address: u64) -> Option<&Function> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `is_control_flow`, `is_call`, and `is_return` are never used [INFO] [stdout] --> src/disasm/mod.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 27 | impl Instruction { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] 28 | pub fn is_control_flow(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn is_call(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn is_return(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DisassemblyResult` is never constructed [INFO] [stdout] --> src/disasm/mod.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 42 | pub struct DisassemblyResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `architecture` is never read [INFO] [stdout] --> src/disasm/engine.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Disassembler { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 8 | cs: Capstone, [INFO] [stdout] 9 | architecture: Architecture, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `disassemble` and `architecture` are never used [INFO] [stdout] --> src/disasm/engine.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl Disassembler { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn disassemble(&self, bytes: &[u8], address: u64) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn architecture(&self) -> Architecture { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `disassemble_function` is never used [INFO] [stdout] --> src/disasm/engine.rs:64:8 [INFO] [stdout] | [INFO] [stdout] 64 | pub fn disassemble_function(binary: &crate::binary::Binary, func_addr: u64) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AnalysisResult` is never constructed [INFO] [stdout] --> src/analysis/mod.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct AnalysisResult { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CodeMetrics` is never constructed [INFO] [stdout] --> src/analysis/mod.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | pub struct CodeMetrics { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `min_sequence` is never read [INFO] [stdout] --> src/analysis/functions.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct FunctionDetector { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] 6 | min_sequence: usize, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_suspicious_patterns` is never used [INFO] [stdout] --> src/analysis/patterns.rs:133:8 [INFO] [stdout] | [INFO] [stdout] 133 | pub fn find_suspicious_patterns(binary: &Binary) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BasicBlock` is never constructed [INFO] [stdout] --> src/analysis/cfg.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct BasicBlock { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ControlFlowGraph` is never constructed [INFO] [stdout] --> src/analysis/cfg.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct ControlFlowGraph { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/analysis/cfg.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl ControlFlowGraph { [INFO] [stdout] | --------------------- associated items in this implementation [INFO] [stdout] 23 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn build(instructions: &[Instruction]) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | fn build_edges(&mut self, _instructions: &[Instruction]) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 88 | pub fn block_at(&self, address: u64) -> Option<&BasicBlock> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 92 | pub fn cyclomatic_complexity(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | pub fn find_branch_blocks(&self) -> Vec<&BasicBlock> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 104 | pub fn find_call_blocks(&self) -> Vec<&BasicBlock> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 110 | pub fn find_return_blocks(&self) -> Vec<&BasicBlock> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_function_cfg` is never used [INFO] [stdout] --> src/analysis/cfg.rs:123:8 [INFO] [stdout] | [INFO] [stdout] 123 | pub fn build_function_cfg(binary: &crate::binary::Binary, func: &crate::binary::Function) -> anyhow::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `QueryResult` is never constructed [INFO] [stdout] --> src/ai/mod.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct QueryResult { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `QueryIntent` is never used [INFO] [stdout] --> src/ai/mod.rs:16:10 [INFO] [stdout] | [INFO] [stdout] 16 | pub enum QueryIntent { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `QueryMatch` is never constructed [INFO] [stdout] --> src/ai/mod.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | pub struct QueryMatch { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `MatchType` is never used [INFO] [stdout] --> src/ai/mod.rs:39:10 [INFO] [stdout] | [INFO] [stdout] 39 | pub enum MatchType { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BinaryContext` is never constructed [INFO] [stdout] --> src/ai/mod.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 49 | pub struct BinaryContext { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `from_binary` and `to_prompt` are never used [INFO] [stdout] --> src/ai/mod.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 59 | impl BinaryContext { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 60 | pub fn from_binary(binary: &crate::binary::Binary) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | pub fn to_prompt(&self) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LLMConfig` is never constructed [INFO] [stdout] --> src/ai/llm.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct LLMConfig { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `LLMBackend` is never used [INFO] [stdout] --> src/ai/llm.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 17 | pub enum LLMBackend { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LLMClient` is never constructed [INFO] [stdout] --> src/ai/llm.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 35 | pub struct LLMClient { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `OllamaRequest` is never constructed [INFO] [stdout] --> src/ai/llm.rs:41:8 [INFO] [stdout] | [INFO] [stdout] 41 | struct OllamaRequest { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `OllamaResponse` is never constructed [INFO] [stdout] --> src/ai/llm.rs:48:8 [INFO] [stdout] | [INFO] [stdout] 48 | struct OllamaResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `generate`, `ollama_generate`, `openai_generate`, `classify_intent`, and `explain_results` are never used [INFO] [stdout] --> src/ai/llm.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 52 | impl LLMClient { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 53 | pub fn new(config: LLMConfig) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | pub fn generate(&self, prompt: &str) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | fn ollama_generate(&self, prompt: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 94 | fn openai_generate(&self, _prompt: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | pub async fn classify_intent(&self, query: &str, context: &crate::ai::BinaryContext) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 119 | pub async fn explain_results(&self, query: &str, results: &[crate::ai::QueryMatch], context: &crate::ai::BinaryContext) -> Resu... [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `QueryProcessor` is never constructed [INFO] [stdout] --> src/ai/queries.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct QueryProcessor { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `QUERY_PATTERNS` is never used [INFO] [stdout] --> src/ai/queries.rs:15:7 [INFO] [stdout] | [INFO] [stdout] 15 | const QUERY_PATTERNS: &[(&str, QueryIntent)] = &[ [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/ai/queries.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 28 | impl QueryProcessor { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 29 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn with_llm(config: crate::ai::llm::LLMConfig) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn load_binary(&mut self, binary: Binary) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | pub async fn process(&self, query: &str) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | async fn classify_intent(&self, query: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 88 | async fn find_functions(&self, query: &str, binary: &Binary) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 118 | async fn find_strings(&self, query: &str, binary: &Binary) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 146 | async fn get_address_info(&self, query: &str, binary: &Binary) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 171 | async fn search_patterns(&self, query: &str, binary: &Binary) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 202 | async fn analyze_security(&self, binary: &Binary) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 215 | async fn explain_code(&self, query: &str, binary: &Binary) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 234 | async fn get_overview(&self, binary: &Binary) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `IRInstruction` is never constructed [INFO] [stdout] --> src/ir/mod.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct IRInstruction { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `IROp` is never used [INFO] [stdout] --> src/ir/mod.rs:15:10 [INFO] [stdout] | [INFO] [stdout] 15 | pub enum IROp { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `IROperand` is never used [INFO] [stdout] --> src/ir/mod.rs:26:10 [INFO] [stdout] | [INFO] [stdout] 26 | pub enum IROperand { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `IRFunction` is never constructed [INFO] [stdout] --> src/ir/mod.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 35 | pub struct IRFunction { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `IRBlock` is never constructed [INFO] [stdout] --> src/ir/mod.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 43 | pub struct IRBlock { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_ir` is never used [INFO] [stdout] --> src/ir/representation.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn build_ir(instructions: &[Instruction], arch: &Architecture) -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `instruction_to_ir` is never used [INFO] [stdout] --> src/ir/representation.rs:9:4 [INFO] [stdout] | [INFO] [stdout] 9 | fn instruction_to_ir(insn: &Instruction, arch: &Architecture) -> IRInstruction { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_operand` is never used [INFO] [stdout] --> src/ir/representation.rs:95:4 [INFO] [stdout] | [INFO] [stdout] 95 | fn parse_operand(s: &str, arch: &Architecture) -> IROperand { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_two_operands` is never used [INFO] [stdout] --> src/ir/representation.rs:116:4 [INFO] [stdout] | [INFO] [stdout] 116 | fn parse_two_operands(s: &str, arch: &Architecture) -> (IROperand, IROperand) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_all_operands` is never used [INFO] [stdout] --> src/ir/representation.rs:125:4 [INFO] [stdout] | [INFO] [stdout] 125 | fn parse_all_operands(s: &str, arch: &Architecture) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_memory_operand` is never used [INFO] [stdout] --> src/ir/representation.rs:129:4 [INFO] [stdout] | [INFO] [stdout] 129 | fn parse_memory_operand(s: &str, arch: &Architecture) -> IROperand { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_register` is never used [INFO] [stdout] --> src/ir/representation.rs:147:4 [INFO] [stdout] | [INFO] [stdout] 147 | fn is_register(s: &str, arch: &Architecture) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 34s [INFO] running `Command { std: "docker" "inspect" "dbf98c1ddd0cd7aed0f32f2596427311ce706f0876467621a2e63ac7b7c8b074", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dbf98c1ddd0cd7aed0f32f2596427311ce706f0876467621a2e63ac7b7c8b074", kill_on_drop: false }` [INFO] [stdout] dbf98c1ddd0cd7aed0f32f2596427311ce706f0876467621a2e63ac7b7c8b074