[INFO] cloning repository https://github.com/calveshelder/code-assist [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/calveshelder/code-assist" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcalveshelder%2Fcode-assist", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcalveshelder%2Fcode-assist'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 74b6b85181215f4e514a7c1fcf1a045d726fd1a3 [INFO] building calveshelder/code-assist against master#ad85bc524b1ad696e42061ad8338d382dffbdbe5 for pr-146237-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcalveshelder%2Fcode-assist" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/calveshelder/code-assist [INFO] finished tweaking git repo https://github.com/calveshelder/code-assist [INFO] tweaked toml for git repo https://github.com/calveshelder/code-assist written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/calveshelder/code-assist on toolchain ad85bc524b1ad696e42061ad8338d382dffbdbe5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/calveshelder/code-assist 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" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded cc v1.0.106 [INFO] [stderr] Downloaded tree-sitter-go v0.20.0 [INFO] [stderr] Downloaded tree-sitter-python v0.20.4 [INFO] [stderr] Downloaded bstr v1.11.3 [INFO] [stderr] Downloaded tree-sitter-javascript v0.20.4 [INFO] [stderr] Downloaded ratatui v0.23.0 [INFO] [stderr] Downloaded rustix v1.0.1 [INFO] [stderr] Downloaded tree-sitter-rust v0.20.4 [INFO] [stderr] Downloaded libz-sys v1.1.21 [INFO] [stderr] Downloaded tree-sitter-cpp v0.20.5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 128705be06ec67387243728683f4186bcdf712db1a21e45275f5c8ac4583533c [INFO] running `Command { std: "docker" "start" "-a" "128705be06ec67387243728683f4186bcdf712db1a21e45275f5c8ac4583533c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "128705be06ec67387243728683f4186bcdf712db1a21e45275f5c8ac4583533c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "128705be06ec67387243728683f4186bcdf712db1a21e45275f5c8ac4583533c", kill_on_drop: false }` [INFO] [stdout] 128705be06ec67387243728683f4186bcdf712db1a21e45275f5c8ac4583533c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e413d94017f2f32c07f91e309f731b51bd856b34477fe85f45ec78f1001462c3 [INFO] running `Command { std: "docker" "start" "-a" "e413d94017f2f32c07f91e309f731b51bd856b34477fe85f45ec78f1001462c3", kill_on_drop: false }` [INFO] [stderr] Compiling smallvec v1.14.0 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling proc-macro2 v1.0.94 [INFO] [stderr] Compiling mio v1.0.3 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Compiling cc v1.0.106 [INFO] [stderr] Compiling tracing-core v0.1.33 [INFO] [stderr] Compiling signal-hook v0.3.17 [INFO] [stderr] Compiling http-body v0.4.6 [INFO] [stderr] Compiling mio v0.8.11 [INFO] [stderr] Compiling portable-atomic v1.11.0 [INFO] [stderr] Compiling bstr v1.11.3 [INFO] [stderr] Compiling winnow v0.5.40 [INFO] [stderr] Compiling unicode-width v0.2.0 [INFO] [stderr] Compiling option-ext v0.2.0 [INFO] [stderr] Compiling clap_builder v4.5.31 [INFO] [stderr] Compiling dirs-sys v0.4.1 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling console v0.15.11 [INFO] [stderr] Compiling rustls-pemfile v1.0.4 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling quote v1.0.39 [INFO] [stderr] Compiling signal-hook-mio v0.2.4 [INFO] [stderr] Compiling syn v2.0.99 [INFO] [stderr] Compiling anyhow v1.0.97 [INFO] [stderr] Compiling itertools v0.11.0 [INFO] [stderr] Compiling is-terminal v0.4.16 [INFO] [stderr] Compiling termcolor v1.4.1 [INFO] [stderr] Compiling humantime v2.1.0 [INFO] [stderr] Compiling sync_wrapper v0.1.2 [INFO] [stderr] Compiling unsafe-libyaml v0.2.11 [INFO] [stderr] Compiling unicode-width v0.1.14 [INFO] [stderr] Compiling cassowary v0.3.0 [INFO] [stderr] Compiling number_prefix v0.4.0 [INFO] [stderr] Compiling crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling crossterm v0.27.0 [INFO] [stderr] Compiling colored v2.2.0 [INFO] [stderr] Compiling indicatif v0.17.11 [INFO] [stderr] Compiling crossbeam-deque v0.8.6 [INFO] [stderr] Compiling chrono v0.4.40 [INFO] [stderr] Compiling dirs v5.0.1 [INFO] [stderr] Compiling rayon-core v1.12.1 [INFO] [stderr] Compiling glob v0.3.2 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling openssl-sys v0.9.106 [INFO] [stderr] Compiling tree-sitter v0.20.10 [INFO] [stderr] Compiling libz-sys v1.1.21 [INFO] [stderr] Compiling libssh2-sys v0.3.1 [INFO] [stderr] Compiling libgit2-sys v0.15.2+1.6.4 [INFO] [stderr] Compiling tree-sitter-python v0.20.4 [INFO] [stderr] Compiling tree-sitter-go v0.20.0 [INFO] [stderr] Compiling tree-sitter-javascript v0.20.4 [INFO] [stderr] Compiling tree-sitter-cpp v0.20.5 [INFO] [stderr] Compiling tree-sitter-rust v0.20.4 [INFO] [stderr] Compiling openssl v0.10.71 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling rayon v1.10.0 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling globset v0.4.16 [INFO] [stderr] Compiling synstructure v0.13.1 [INFO] [stderr] Compiling env_logger v0.10.2 [INFO] [stderr] Compiling ignore v0.4.23 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.7.5 [INFO] [stderr] Compiling zerovec-derive v0.10.3 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling icu_provider_macros v1.5.0 [INFO] [stderr] Compiling serde_derive v1.0.218 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling strum_macros v0.25.3 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling clap_derive v4.5.28 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling async-trait v0.1.87 [INFO] [stderr] Compiling yoke v0.7.5 [INFO] [stderr] Compiling tokio v1.43.0 [INFO] [stderr] Compiling zerovec v0.10.4 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling strum v0.25.0 [INFO] [stderr] Compiling tinystr v0.7.6 [INFO] [stderr] Compiling icu_collections v1.5.0 [INFO] [stderr] Compiling ratatui v0.23.0 [INFO] [stderr] Compiling icu_locid v1.5.0 [INFO] [stderr] Compiling serde v1.0.218 [INFO] [stderr] Compiling clap v4.5.31 [INFO] [stderr] Compiling icu_provider v1.5.0 [INFO] [stderr] Compiling icu_locid_transform v1.5.0 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling icu_properties v1.5.1 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling toml_datetime v0.6.8 [INFO] [stderr] Compiling serde_spanned v0.6.8 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling serde_yaml v0.9.34+deprecated [INFO] [stderr] Compiling toml_edit v0.19.15 [INFO] [stderr] Compiling icu_normalizer v1.5.0 [INFO] [stderr] Compiling tokio-util v0.7.13 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling h2 v0.3.26 [INFO] [stderr] Compiling idna_adapter v1.2.0 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling toml v0.7.8 [INFO] [stderr] Compiling git2 v0.17.2 [INFO] [stderr] Compiling hyper v0.14.32 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling reqwest v0.11.27 [INFO] [stderr] Compiling code-assist v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `Commit` and `Error as Git2Error` [INFO] [stdout] --> src/git/history.rs:1:24 [INFO] [stdout] | [INFO] [stdout] 1 | use git2::{Repository, Commit, Error as Git2Error}; [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 import: `anyhow` [INFO] [stdout] --> src/git/history.rs:2:31 [INFO] [stdout] | [INFO] [stdout] 2 | use anyhow::{Result, Context, anyhow}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Diff` and `Error as Git2Error` [INFO] [stdout] --> src/git/diff.rs:1:24 [INFO] [stdout] | [INFO] [stdout] 1 | use git2::{Repository, Diff, Error as Git2Error}; [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PathBuf` [INFO] [stdout] --> src/fs/edit.rs:3:23 [INFO] [stdout] | [INFO] [stdout] 3 | use std::path::{Path, PathBuf}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `drupal_modules` is never read [INFO] [stdout] --> src/analysis/structure.rs:162:17 [INFO] [stdout] | [INFO] [stdout] 162 | let mut drupal_modules = Vec::new(); [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: field `config` is never read [INFO] [stdout] --> src/app.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct App { [INFO] [stdout] | --- field in this struct [INFO] [stdout] 10 | config: Config, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `format_code` is never used [INFO] [stdout] --> src/ui/display.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn format_code(code: &str) -> ColoredString { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `format_success` is never used [INFO] [stdout] --> src/ui/display.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn format_success(message: &str) -> ColoredString { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `format_error` is never used [INFO] [stdout] --> src/ui/display.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn format_error(message: &str) -> ColoredString { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `format_info` is never used [INFO] [stdout] --> src/ui/display.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn format_info(message: &str) -> ColoredString { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PromptBuilder` is never constructed [INFO] [stdout] --> src/llm/prompt.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct PromptBuilder; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `build_system_prompt` and `build_user_prompt` are never used [INFO] [stdout] --> src/llm/prompt.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 3 | impl PromptBuilder { [INFO] [stdout] | ------------------ associated functions in this implementation [INFO] [stdout] 4 | pub fn build_system_prompt() -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | pub fn build_user_prompt(command: &str, context: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GitHistory` is never constructed [INFO] [stdout] --> src/git/history.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct GitHistory; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `get_commit_history` and `search_commits` are never used [INFO] [stdout] --> src/git/history.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 7 | impl GitHistory { [INFO] [stdout] | --------------- associated functions in this implementation [INFO] [stdout] 8 | pub fn get_commit_history(repo_path: &Path, max_count: usize) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn search_commits(repo_path: &Path, query: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CommitInfo` is never constructed [INFO] [stdout] --> src/git/history.rs:80:12 [INFO] [stdout] | [INFO] [stdout] 80 | pub struct CommitInfo { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GitDiff` is never constructed [INFO] [stdout] --> src/git/diff.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct GitDiff; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `get_working_diff` and `resolve_merge_conflict` are never used [INFO] [stdout] --> src/git/diff.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 7 | impl GitDiff { [INFO] [stdout] | ------------ associated functions in this implementation [INFO] [stdout] 8 | pub fn get_working_diff(repo_path: &Path) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn resolve_merge_conflict( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `find_and_replace` is never used [INFO] [stdout] --> src/fs/edit.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 7 | impl FileEditor { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 24 | pub fn find_and_replace( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `search_in_files` is never used [INFO] [stdout] --> src/fs/search.rs:58:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl CodeSearch { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 58 | pub fn search_in_files(&self, base_path: &Path, pattern: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SearchResult` is never constructed [INFO] [stdout] --> src/fs/search.rs:443:12 [INFO] [stdout] | [INFO] [stdout] 443 | pub struct SearchResult { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CodeParser` is never constructed [INFO] [stdout] --> src/analysis/parser.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct CodeParser; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/analysis/parser.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 7 | impl CodeParser { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] 8 | pub fn analyze_file_structure(&self, file_path: &Path) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | fn analyze_rust_file(&self, content: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | fn analyze_python_file(&self, content: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 123 | fn analyze_javascript_file(&self, content: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 324 | fn analyze_php_file(&self, content: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 420 | fn extract_class_definition(&self, line: &str, line_idx: usize, lines: &[&str], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 515 | fn extract_function_definition(&self, line: &str, line_idx: usize, _lines: &[&str], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 578 | fn extract_doc_comment_description(&self, doc_comment: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 607 | fn analyze_go_file(&self, content: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 695 | fn analyze_generic_file(&self, _content: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FileStructure` is never constructed [INFO] [stdout] --> src/analysis/parser.rs:705:12 [INFO] [stdout] | [INFO] [stdout] 705 | pub struct FileStructure { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CodeElement` is never constructed [INFO] [stdout] --> src/analysis/parser.rs:711:12 [INFO] [stdout] | [INFO] [stdout] 711 | pub struct CodeElement { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ElementMetadata` is never constructed [INFO] [stdout] --> src/analysis/parser.rs:720:12 [INFO] [stdout] | [INFO] [stdout] 720 | pub struct ElementMetadata { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `TypeScript` is never constructed [INFO] [stdout] --> src/analysis/structure.rs:761:5 [INFO] [stdout] | [INFO] [stdout] 755 | pub enum ProjectType { [INFO] [stdout] | ----------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 761 | TypeScript, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ProjectType` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_loaded_files` is never used [INFO] [stdout] --> src/memory/mod.rs:102:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl ProjectMemory { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 102 | pub fn get_loaded_files(&self) -> &[PathBuf] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 44s [INFO] running `Command { std: "docker" "inspect" "e413d94017f2f32c07f91e309f731b51bd856b34477fe85f45ec78f1001462c3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e413d94017f2f32c07f91e309f731b51bd856b34477fe85f45ec78f1001462c3", kill_on_drop: false }` [INFO] [stdout] e413d94017f2f32c07f91e309f731b51bd856b34477fe85f45ec78f1001462c3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5289f59ece7454f80d907e9cfe2f4bf55c4b1c3458238f5f0b280443384b9f54 [INFO] running `Command { std: "docker" "start" "-a" "5289f59ece7454f80d907e9cfe2f4bf55c4b1c3458238f5f0b280443384b9f54", kill_on_drop: false }` [INFO] [stderr] Compiling code-assist v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `Commit` and `Error as Git2Error` [INFO] [stdout] --> src/git/history.rs:1:24 [INFO] [stdout] | [INFO] [stdout] 1 | use git2::{Repository, Commit, Error as Git2Error}; [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 import: `anyhow` [INFO] [stdout] --> src/git/history.rs:2:31 [INFO] [stdout] | [INFO] [stdout] 2 | use anyhow::{Result, Context, anyhow}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Diff` and `Error as Git2Error` [INFO] [stdout] --> src/git/diff.rs:1:24 [INFO] [stdout] | [INFO] [stdout] 1 | use git2::{Repository, Diff, Error as Git2Error}; [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PathBuf` [INFO] [stdout] --> src/fs/edit.rs:3:23 [INFO] [stdout] | [INFO] [stdout] 3 | use std::path::{Path, PathBuf}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `drupal_modules` is never read [INFO] [stdout] --> src/analysis/structure.rs:162:17 [INFO] [stdout] | [INFO] [stdout] 162 | let mut drupal_modules = Vec::new(); [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: field `config` is never read [INFO] [stdout] --> src/app.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct App { [INFO] [stdout] | --- field in this struct [INFO] [stdout] 10 | config: Config, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `format_code` is never used [INFO] [stdout] --> src/ui/display.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn format_code(code: &str) -> ColoredString { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `format_success` is never used [INFO] [stdout] --> src/ui/display.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn format_success(message: &str) -> ColoredString { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `format_error` is never used [INFO] [stdout] --> src/ui/display.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn format_error(message: &str) -> ColoredString { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `format_info` is never used [INFO] [stdout] --> src/ui/display.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn format_info(message: &str) -> ColoredString { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PromptBuilder` is never constructed [INFO] [stdout] --> src/llm/prompt.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct PromptBuilder; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `build_system_prompt` and `build_user_prompt` are never used [INFO] [stdout] --> src/llm/prompt.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 3 | impl PromptBuilder { [INFO] [stdout] | ------------------ associated functions in this implementation [INFO] [stdout] 4 | pub fn build_system_prompt() -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | pub fn build_user_prompt(command: &str, context: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GitHistory` is never constructed [INFO] [stdout] --> src/git/history.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct GitHistory; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `get_commit_history` and `search_commits` are never used [INFO] [stdout] --> src/git/history.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 7 | impl GitHistory { [INFO] [stdout] | --------------- associated functions in this implementation [INFO] [stdout] 8 | pub fn get_commit_history(repo_path: &Path, max_count: usize) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn search_commits(repo_path: &Path, query: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CommitInfo` is never constructed [INFO] [stdout] --> src/git/history.rs:80:12 [INFO] [stdout] | [INFO] [stdout] 80 | pub struct CommitInfo { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GitDiff` is never constructed [INFO] [stdout] --> src/git/diff.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct GitDiff; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `get_working_diff` and `resolve_merge_conflict` are never used [INFO] [stdout] --> src/git/diff.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 7 | impl GitDiff { [INFO] [stdout] | ------------ associated functions in this implementation [INFO] [stdout] 8 | pub fn get_working_diff(repo_path: &Path) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn resolve_merge_conflict( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `find_and_replace` is never used [INFO] [stdout] --> src/fs/edit.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 7 | impl FileEditor { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 24 | pub fn find_and_replace( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `search_in_files` is never used [INFO] [stdout] --> src/fs/search.rs:58:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl CodeSearch { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 58 | pub fn search_in_files(&self, base_path: &Path, pattern: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SearchResult` is never constructed [INFO] [stdout] --> src/fs/search.rs:443:12 [INFO] [stdout] | [INFO] [stdout] 443 | pub struct SearchResult { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CodeParser` is never constructed [INFO] [stdout] --> src/analysis/parser.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct CodeParser; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/analysis/parser.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 7 | impl CodeParser { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] 8 | pub fn analyze_file_structure(&self, file_path: &Path) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | fn analyze_rust_file(&self, content: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | fn analyze_python_file(&self, content: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 123 | fn analyze_javascript_file(&self, content: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 324 | fn analyze_php_file(&self, content: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 420 | fn extract_class_definition(&self, line: &str, line_idx: usize, lines: &[&str], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 515 | fn extract_function_definition(&self, line: &str, line_idx: usize, _lines: &[&str], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 578 | fn extract_doc_comment_description(&self, doc_comment: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 607 | fn analyze_go_file(&self, content: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 695 | fn analyze_generic_file(&self, _content: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FileStructure` is never constructed [INFO] [stdout] --> src/analysis/parser.rs:705:12 [INFO] [stdout] | [INFO] [stdout] 705 | pub struct FileStructure { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CodeElement` is never constructed [INFO] [stdout] --> src/analysis/parser.rs:711:12 [INFO] [stdout] | [INFO] [stdout] 711 | pub struct CodeElement { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ElementMetadata` is never constructed [INFO] [stdout] --> src/analysis/parser.rs:720:12 [INFO] [stdout] | [INFO] [stdout] 720 | pub struct ElementMetadata { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `TypeScript` is never constructed [INFO] [stdout] --> src/analysis/structure.rs:761:5 [INFO] [stdout] | [INFO] [stdout] 755 | pub enum ProjectType { [INFO] [stdout] | ----------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 761 | TypeScript, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ProjectType` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_loaded_files` is never used [INFO] [stdout] --> src/memory/mod.rs:102:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl ProjectMemory { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 102 | pub fn get_loaded_files(&self) -> &[PathBuf] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.99s [INFO] running `Command { std: "docker" "inspect" "5289f59ece7454f80d907e9cfe2f4bf55c4b1c3458238f5f0b280443384b9f54", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5289f59ece7454f80d907e9cfe2f4bf55c4b1c3458238f5f0b280443384b9f54", kill_on_drop: false }` [INFO] [stdout] 5289f59ece7454f80d907e9cfe2f4bf55c4b1c3458238f5f0b280443384b9f54