[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#c7f6aa2869acdbf014d094c6e427e554e160b6db for pr-146237-2
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcalveshelder%2Fcode-assist" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-2-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-2-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/calveshelder/code-assist on toolchain c7f6aa2869acdbf014d094c6e427e554e160b6db
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/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" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded strum_macros v0.25.3
[INFO] [stderr]   Downloaded cc v1.0.106
[INFO] [stderr]   Downloaded tree-sitter-javascript v0.20.4
[INFO] [stderr]   Downloaded git2 v0.17.2
[INFO] [stderr]   Downloaded ratatui v0.23.0
[INFO] [stderr]   Downloaded tree-sitter-python v0.20.4
[INFO] [stderr]   Downloaded tree-sitter-rust v0.20.4
[INFO] [stderr]   Downloaded tree-sitter-cpp v0.20.5
[INFO] [stderr]   Downloaded libgit2-sys v0.15.2+1.6.4
[INFO] [stderr]   Downloaded tree-sitter-go v0.20.0
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 04d5dddcd841095aa7def35d37c7bbe168fae80f245f570c8833e103b0f86411
[INFO] running `Command { std: "docker" "start" "-a" "04d5dddcd841095aa7def35d37c7bbe168fae80f245f570c8833e103b0f86411", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "04d5dddcd841095aa7def35d37c7bbe168fae80f245f570c8833e103b0f86411", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "04d5dddcd841095aa7def35d37c7bbe168fae80f245f570c8833e103b0f86411", kill_on_drop: false }`
[INFO] [stdout] 04d5dddcd841095aa7def35d37c7bbe168fae80f245f570c8833e103b0f86411
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] bdce73bbed4872a9b5bca59e2c2e6e55e3b90a58f2eb59eb5d82d90093c837b5
[INFO] running `Command { std: "docker" "start" "-a" "bdce73bbed4872a9b5bca59e2c2e6e55e3b90a58f2eb59eb5d82d90093c837b5", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.170
[INFO] [stderr]    Compiling smallvec v1.14.0
[INFO] [stderr]    Compiling log v0.4.26
[INFO] [stderr]    Compiling quote v1.0.39
[INFO] [stderr]    Compiling serde v1.0.218
[INFO] [stderr]    Compiling indexmap v2.7.1
[INFO] [stderr]    Compiling bitflags v2.9.0
[INFO] [stderr]    Compiling openssl v0.10.71
[INFO] [stderr]    Compiling tracing v0.1.41
[INFO] [stderr]    Compiling bstr v1.11.3
[INFO] [stderr]    Compiling winnow v0.5.40
[INFO] [stderr]    Compiling clap_builder v4.5.31
[INFO] [stderr]    Compiling syn v2.0.99
[INFO] [stderr]    Compiling itertools v0.11.0
[INFO] [stderr]    Compiling indoc v2.0.6
[INFO] [stderr]    Compiling chrono v0.4.40
[INFO] [stderr]    Compiling glob v0.3.2
[INFO] [stderr]    Compiling globset v0.4.16
[INFO] [stderr]    Compiling jobserver v0.1.32
[INFO] [stderr]    Compiling signal-hook-registry v1.4.2
[INFO] [stderr]    Compiling cc v1.0.106
[INFO] [stderr]    Compiling parking_lot_core v0.9.10
[INFO] [stderr]    Compiling socket2 v0.5.8
[INFO] [stderr]    Compiling parking_lot v0.12.3
[INFO] [stderr]    Compiling mio v1.0.3
[INFO] [stderr]    Compiling signal-hook v0.3.17
[INFO] [stderr]    Compiling mio v0.8.11
[INFO] [stderr]    Compiling console v0.15.11
[INFO] [stderr]    Compiling dirs-sys v0.4.1
[INFO] [stderr]    Compiling is-terminal v0.4.16
[INFO] [stderr]    Compiling dirs v5.0.1
[INFO] [stderr]    Compiling env_logger v0.10.2
[INFO] [stderr]    Compiling ignore v0.4.23
[INFO] [stderr]    Compiling signal-hook-mio v0.2.4
[INFO] [stderr]    Compiling crossterm v0.27.0
[INFO] [stderr]    Compiling openssl-sys v0.9.106
[INFO] [stderr]    Compiling libz-sys v1.1.21
[INFO] [stderr]    Compiling tree-sitter v0.20.10
[INFO] [stderr]    Compiling libssh2-sys v0.3.1
[INFO] [stderr]    Compiling libgit2-sys v0.15.2+1.6.4
[INFO] [stderr]    Compiling tree-sitter-javascript v0.20.4
[INFO] [stderr]    Compiling native-tls v0.2.14
[INFO] [stderr]    Compiling tree-sitter-rust v0.20.4
[INFO] [stderr]    Compiling tree-sitter-go v0.20.0
[INFO] [stderr]    Compiling tree-sitter-cpp v0.20.5
[INFO] [stderr]    Compiling tree-sitter-python v0.20.4
[INFO] [stderr]    Compiling synstructure v0.13.1
[INFO] [stderr]    Compiling indicatif v0.17.11
[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 tokio-macros v2.5.0
[INFO] [stderr]    Compiling futures-macro v0.3.31
[INFO] [stderr]    Compiling tokio v1.43.0
[INFO] [stderr]    Compiling openssl-macros v0.1.1
[INFO] [stderr]    Compiling strum_macros v0.25.3
[INFO] [stderr]    Compiling zerofrom v0.1.6
[INFO] [stderr]    Compiling yoke v0.7.5
[INFO] [stderr]    Compiling futures-util v0.3.31
[INFO] [stderr]    Compiling zerovec v0.10.4
[INFO] [stderr]    Compiling tinystr v0.7.6
[INFO] [stderr]    Compiling icu_collections v1.5.0
[INFO] [stderr]    Compiling icu_locid v1.5.0
[INFO] [stderr]    Compiling icu_provider v1.5.0
[INFO] [stderr]    Compiling strum v0.25.0
[INFO] [stderr]    Compiling futures-executor v0.3.31
[INFO] [stderr]    Compiling icu_locid_transform v1.5.0
[INFO] [stderr]    Compiling thiserror-impl v1.0.69
[INFO] [stderr]    Compiling clap_derive v4.5.28
[INFO] [stderr]    Compiling icu_properties v1.5.1
[INFO] [stderr]    Compiling thiserror v1.0.69
[INFO] [stderr]    Compiling futures v0.3.31
[INFO] [stderr]    Compiling ratatui v0.23.0
[INFO] [stderr]    Compiling async-trait v0.1.87
[INFO] [stderr]    Compiling clap v4.5.31
[INFO] [stderr]    Compiling tokio-util v0.7.13
[INFO] [stderr]    Compiling serde_spanned v0.6.8
[INFO] [stderr]    Compiling toml_datetime v0.6.8
[INFO] [stderr]    Compiling tokio-native-tls v0.3.1
[INFO] [stderr]    Compiling serde_urlencoded v0.7.1
[INFO] [stderr]    Compiling icu_normalizer v1.5.0
[INFO] [stderr]    Compiling toml_edit v0.19.15
[INFO] [stderr]    Compiling h2 v0.3.26
[INFO] [stderr]    Compiling serde_json v1.0.140
[INFO] [stderr]    Compiling idna_adapter v1.2.0
[INFO] [stderr]    Compiling idna v1.0.3
[INFO] [stderr]    Compiling serde_yaml v0.9.34+deprecated
[INFO] [stderr]    Compiling url v2.5.4
[INFO] [stderr]    Compiling toml v0.7.8
[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 git2 v0.17.2
[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<Vec<CommitInfo>> {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 42 |     pub fn search_commits(repo_path: &Path, query: &str) -> Result<Vec<CommitInfo>> {
[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<String> {
[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<Vec<SearchResult>> {
[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<FileStructure> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  26 |     fn analyze_rust_file(&self, content: &str) -> Result<FileStructure> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  79 |     fn analyze_python_file(&self, content: &str) -> Result<FileStructure> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 123 |     fn analyze_javascript_file(&self, content: &str) -> Result<FileStructure> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 324 |     fn analyze_php_file(&self, content: &str) -> Result<FileStructure> {
[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<String> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 607 |     fn analyze_go_file(&self, content: &str) -> Result<FileStructure> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 695 |     fn analyze_generic_file(&self, _content: &str) -> Result<FileStructure> {
[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 3m 12s
[INFO] running `Command { std: "docker" "inspect" "bdce73bbed4872a9b5bca59e2c2e6e55e3b90a58f2eb59eb5d82d90093c837b5", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "bdce73bbed4872a9b5bca59e2c2e6e55e3b90a58f2eb59eb5d82d90093c837b5", kill_on_drop: false }`
[INFO] [stdout] bdce73bbed4872a9b5bca59e2c2e6e55e3b90a58f2eb59eb5d82d90093c837b5
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] e8dbd12fb354528307fd2b480b2a9dc8c1c1dad8892d937f1c3d79e4c44f6c79
[INFO] running `Command { std: "docker" "start" "-a" "e8dbd12fb354528307fd2b480b2a9dc8c1c1dad8892d937f1c3d79e4c44f6c79", 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<Vec<CommitInfo>> {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 42 |     pub fn search_commits(repo_path: &Path, query: &str) -> Result<Vec<CommitInfo>> {
[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<String> {
[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<Vec<SearchResult>> {
[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<FileStructure> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  26 |     fn analyze_rust_file(&self, content: &str) -> Result<FileStructure> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  79 |     fn analyze_python_file(&self, content: &str) -> Result<FileStructure> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 123 |     fn analyze_javascript_file(&self, content: &str) -> Result<FileStructure> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 324 |     fn analyze_php_file(&self, content: &str) -> Result<FileStructure> {
[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<String> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 607 |     fn analyze_go_file(&self, content: &str) -> Result<FileStructure> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 695 |     fn analyze_generic_file(&self, _content: &str) -> Result<FileStructure> {
[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.78s
[INFO] running `Command { std: "docker" "inspect" "e8dbd12fb354528307fd2b480b2a9dc8c1c1dad8892d937f1c3d79e4c44f6c79", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "e8dbd12fb354528307fd2b480b2a9dc8c1c1dad8892d937f1c3d79e4c44f6c79", kill_on_drop: false }`
[INFO] [stdout] e8dbd12fb354528307fd2b480b2a9dc8c1c1dad8892d937f1c3d79e4c44f6c79
