[INFO] cloning repository https://github.com/EfeDurmaz16/rustshell [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/EfeDurmaz16/rustshell" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FEfeDurmaz16%2Frustshell", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FEfeDurmaz16%2Frustshell'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 8c5b094417223615da4412acee62dd7eb2425716 [INFO] testing EfeDurmaz16/rustshell against master#ad85bc524b1ad696e42061ad8338d382dffbdbe5 for pr-146237 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FEfeDurmaz16%2Frustshell" "/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/EfeDurmaz16/rustshell [INFO] finished tweaking git repo https://github.com/EfeDurmaz16/rustshell [INFO] tweaked toml for git repo https://github.com/EfeDurmaz16/rustshell written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/EfeDurmaz16/rustshell 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/EfeDurmaz16/rustshell 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] Downloading crates ... [INFO] [stderr] Downloaded tokio-test v0.4.4 [INFO] [stderr] Downloaded ordered-multimap v0.4.3 [INFO] [stderr] Downloaded rust-ini v0.18.0 [INFO] [stderr] Downloaded rustyline-derive v0.8.0 [INFO] [stderr] Downloaded pathdiff v0.2.3 [INFO] [stderr] Downloaded ron v0.7.1 [INFO] [stderr] Downloaded config v0.13.4 [INFO] [stderr] Downloaded clap v4.5.37 [INFO] [stderr] Downloaded dlv-list v0.3.0 [INFO] [stderr] Downloaded rustyline v11.0.0 [INFO] [stderr] Downloaded fd-lock v3.0.13 [INFO] [stderr] Downloaded clap_builder v4.5.37 [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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8dd9375889c175937897842f95d0195264532ef435c402de8cc4f87a2e842f46 [INFO] running `Command { std: "docker" "start" "-a" "8dd9375889c175937897842f95d0195264532ef435c402de8cc4f87a2e842f46", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8dd9375889c175937897842f95d0195264532ef435c402de8cc4f87a2e842f46", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8dd9375889c175937897842f95d0195264532ef435c402de8cc4f87a2e842f46", kill_on_drop: false }` [INFO] [stdout] 8dd9375889c175937897842f95d0195264532ef435c402de8cc4f87a2e842f46 [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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 17a6ab4cbbf6d024360d6912ebc47273541ba9a236b247dd33b68e51de58849f [INFO] running `Command { std: "docker" "start" "-a" "17a6ab4cbbf6d024360d6912ebc47273541ba9a236b247dd33b68e51de58849f", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.172 [INFO] [stderr] Compiling smallvec v1.15.0 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling autocfg v1.5.0 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling pkg-config v0.3.32 [INFO] [stderr] Compiling bytes v1.10.1 [INFO] [stderr] Compiling cc v1.2.27 [INFO] [stderr] Compiling allocator-api2 v0.2.21 [INFO] [stderr] Compiling itoa v1.0.15 [INFO] [stderr] Compiling equivalent v1.0.2 [INFO] [stderr] Compiling foldhash v0.1.5 [INFO] [stderr] Compiling writeable v0.6.1 [INFO] [stderr] Compiling litemap v0.8.0 [INFO] [stderr] Compiling syn v2.0.101 [INFO] [stderr] Compiling icu_properties_data v2.0.1 [INFO] [stderr] Compiling icu_normalizer_data v2.0.0 [INFO] [stderr] Compiling ahash v0.7.8 [INFO] [stderr] Compiling ucd-trie v0.1.7 [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Compiling tracing-core v0.1.34 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling httparse v1.10.1 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling slab v0.4.10 [INFO] [stderr] Compiling rustix v0.38.44 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling ryu v1.0.20 [INFO] [stderr] Compiling openssl-probe v0.1.6 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling anstyle-parse v0.2.6 [INFO] [stderr] Compiling http v0.2.12 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling hashbrown v0.15.4 [INFO] [stderr] Compiling lock_api v0.4.13 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling dlv-list v0.3.0 [INFO] [stderr] Compiling colorchoice v1.0.3 [INFO] [stderr] Compiling anstyle-query v1.1.2 [INFO] [stderr] Compiling anstyle v1.0.10 [INFO] [stderr] Compiling linux-raw-sys v0.4.15 [INFO] [stderr] Compiling nibble_vec v0.1.0 [INFO] [stderr] Compiling winnow v0.7.11 [INFO] [stderr] Compiling linked-hash-map v0.5.6 [INFO] [stderr] Compiling toml_write v0.1.2 [INFO] [stderr] Compiling clap_lex v0.7.4 [INFO] [stderr] Compiling endian-type v0.1.2 [INFO] [stderr] Compiling anyhow v1.0.98 [INFO] [stderr] Compiling radix_trie v0.2.1 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling yaml-rust v0.4.5 [INFO] [stderr] Compiling rustls-pemfile v1.0.4 [INFO] [stderr] Compiling anstream v0.6.18 [INFO] [stderr] Compiling encoding_rs v0.8.35 [INFO] [stderr] Compiling http-body v0.4.6 [INFO] [stderr] Compiling indexmap v2.9.0 [INFO] [stderr] Compiling ipnet v2.11.0 [INFO] [stderr] Compiling clap_builder v4.5.37 [INFO] [stderr] Compiling unicode-width v0.1.14 [INFO] [stderr] Compiling unicode-segmentation v1.12.0 [INFO] [stderr] Compiling pathdiff v0.2.3 [INFO] [stderr] Compiling mio v1.0.4 [INFO] [stderr] Compiling socket2 v0.5.10 [INFO] [stderr] Compiling signal-hook-registry v1.4.5 [INFO] [stderr] Compiling parking_lot v0.12.4 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling openssl-sys v0.9.109 [INFO] [stderr] Compiling dirs-sys-next v0.1.2 [INFO] [stderr] Compiling nix v0.26.4 [INFO] [stderr] Compiling hashbrown v0.12.3 [INFO] [stderr] Compiling dirs-next v2.0.0 [INFO] [stderr] Compiling lru v0.12.5 [INFO] [stderr] Compiling rustyline-derive v0.8.0 [INFO] [stderr] Compiling ordered-multimap v0.4.3 [INFO] [stderr] Compiling fd-lock v3.0.13 [INFO] [stderr] Compiling rust-ini v0.18.0 [INFO] [stderr] Compiling rustyline v11.0.0 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling thiserror-impl v2.0.12 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling async-trait v0.1.88 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling clap_derive v4.5.32 [INFO] [stderr] Compiling tokio v1.45.1 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Compiling zerovec v0.11.2 [INFO] [stderr] Compiling thiserror v2.0.12 [INFO] [stderr] Compiling pest v2.8.1 [INFO] [stderr] Compiling clap v4.5.37 [INFO] [stderr] Compiling tinystr v0.8.1 [INFO] [stderr] Compiling potential_utf v0.1.2 [INFO] [stderr] Compiling icu_collections v2.0.0 [INFO] [stderr] Compiling icu_locale_core v2.0.0 [INFO] [stderr] Compiling pest_meta v2.8.1 [INFO] [stderr] Compiling icu_provider v2.0.0 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling icu_properties v2.0.1 [INFO] [stderr] Compiling pest_generator v2.8.1 [INFO] [stderr] Compiling pest_derive v2.8.1 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling tokio-util v0.7.15 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling toml_datetime v0.6.11 [INFO] [stderr] Compiling serde_spanned v0.6.9 [INFO] [stderr] Compiling toml v0.5.11 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling ron v0.7.1 [INFO] [stderr] Compiling json5 v0.4.1 [INFO] [stderr] Compiling toml_edit v0.22.27 [INFO] [stderr] Compiling h2 v0.3.26 [INFO] [stderr] Compiling config v0.13.4 [INFO] [stderr] Compiling toml v0.8.23 [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 rustshell v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: fields `highlighter`, `hinter`, `validator`, `colored_hint`, and `config` are never read [INFO] [stdout] --> src/main.rs:170:5 [INFO] [stdout] | [INFO] [stdout] 168 | struct RustShellHelper { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 169 | completer: FilenameCompleter, [INFO] [stdout] 170 | highlighter: MatchingBracketHighlighter, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 171 | hinter: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 172 | validator: MatchingBracketValidator, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 175 | colored_hint: bool, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 176 | config: RustShellConfig, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `find_command_match` is never used [INFO] [stdout] --> src/main.rs:257:8 [INFO] [stdout] | [INFO] [stdout] 179 | impl RustShellHelper { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 257 | fn find_command_match(&self, line: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `endpoint`, `timeout`, `max_tokens`, and `temperature` are never read [INFO] [stdout] --> src/llm/mod.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct LLMConfig { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 35 | pub endpoint: Option, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 36 | pub timeout: Duration, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 37 | pub max_tokens: u32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 38 | pub temperature: f32, [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: methods `name` and `is_available` are never used [INFO] [stdout] --> src/llm/mod.rs:80:8 [INFO] [stdout] | [INFO] [stdout] 78 | pub trait LLMProviderTrait: Send + Sync { [INFO] [stdout] | ---------------- methods in this trait [INFO] [stdout] 79 | async fn generate(&self, request: &LLMRequest) -> Result; [INFO] [stdout] 80 | fn name(&self) -> &str; [INFO] [stdout] | ^^^^ [INFO] [stdout] 81 | fn is_available(&self) -> bool; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `name` and `is_available` are never used [INFO] [stdout] --> src/llm/client.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl LLMProviderEnum { [INFO] [stdout] | -------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn name(&self) -> &str { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn is_available(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `is_available`, `provider_name`, `config`, `clear_cache`, and `cache_size` are never used [INFO] [stdout] --> src/llm/client.rs:110:12 [INFO] [stdout] | [INFO] [stdout] 46 | impl LLMClient { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 110 | pub fn is_available(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 114 | pub fn provider_name(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 118 | pub fn config(&self) -> &LLMConfig { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 135 | pub async fn clear_cache(&self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 140 | pub async fn cache_size(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CommandTranslation` is never constructed [INFO] [stdout] --> src/llm/prompts.rs:83:12 [INFO] [stdout] | [INFO] [stdout] 83 | pub struct CommandTranslation { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `with_endpoint` is never used [INFO] [stdout] --> src/llm/providers/openai.rs:62:12 [INFO] [stdout] | [INFO] [stdout] 48 | impl OpenAIProvider { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 62 | pub fn with_endpoint(api_key: String, model: String, endpoint: String) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `with_endpoint` is never used [INFO] [stdout] --> src/llm/providers/anthropic.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 49 | impl AnthropicProvider { [INFO] [stdout] | ---------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 63 | pub fn with_endpoint(api_key: String, model: String, endpoint: String) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 06s [INFO] running `Command { std: "docker" "inspect" "17a6ab4cbbf6d024360d6912ebc47273541ba9a236b247dd33b68e51de58849f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "17a6ab4cbbf6d024360d6912ebc47273541ba9a236b247dd33b68e51de58849f", kill_on_drop: false }` [INFO] [stdout] 17a6ab4cbbf6d024360d6912ebc47273541ba9a236b247dd33b68e51de58849f [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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 32a77b37787c40568ba1c4974b7651fd803542a9c504013846be76ae6beb2540 [INFO] running `Command { std: "docker" "start" "-a" "32a77b37787c40568ba1c4974b7651fd803542a9c504013846be76ae6beb2540", kill_on_drop: false }` [INFO] [stderr] Compiling tokio v1.45.1 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling rustix v1.0.7 [INFO] [stderr] Compiling async-stream-impl v0.3.6 [INFO] [stderr] Compiling linux-raw-sys v0.9.4 [INFO] [stderr] Compiling async-stream v0.3.6 [INFO] [stderr] Compiling tempfile v3.20.0 [INFO] [stderr] Compiling tokio-util v0.7.15 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling tokio-stream v0.1.17 [INFO] [stderr] Compiling tokio-test v0.4.4 [INFO] [stderr] Compiling h2 v0.3.26 [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 rustshell v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: fields `highlighter`, `hinter`, `validator`, `colored_hint`, and `config` are never read [INFO] [stdout] --> src/main.rs:170:5 [INFO] [stdout] | [INFO] [stdout] 168 | struct RustShellHelper { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 169 | completer: FilenameCompleter, [INFO] [stdout] 170 | highlighter: MatchingBracketHighlighter, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 171 | hinter: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 172 | validator: MatchingBracketValidator, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 175 | colored_hint: bool, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 176 | config: RustShellConfig, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `find_command_match` is never used [INFO] [stdout] --> src/main.rs:257:8 [INFO] [stdout] | [INFO] [stdout] 179 | impl RustShellHelper { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 257 | fn find_command_match(&self, line: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `endpoint`, `timeout`, `max_tokens`, and `temperature` are never read [INFO] [stdout] --> src/llm/mod.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct LLMConfig { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 35 | pub endpoint: Option, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 36 | pub timeout: Duration, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 37 | pub max_tokens: u32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 38 | pub temperature: f32, [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: methods `name` and `is_available` are never used [INFO] [stdout] --> src/llm/mod.rs:80:8 [INFO] [stdout] | [INFO] [stdout] 78 | pub trait LLMProviderTrait: Send + Sync { [INFO] [stdout] | ---------------- methods in this trait [INFO] [stdout] 79 | async fn generate(&self, request: &LLMRequest) -> Result; [INFO] [stdout] 80 | fn name(&self) -> &str; [INFO] [stdout] | ^^^^ [INFO] [stdout] 81 | fn is_available(&self) -> bool; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `name` and `is_available` are never used [INFO] [stdout] --> src/llm/client.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl LLMProviderEnum { [INFO] [stdout] | -------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn name(&self) -> &str { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn is_available(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `is_available`, `provider_name`, `config`, `clear_cache`, and `cache_size` are never used [INFO] [stdout] --> src/llm/client.rs:110:12 [INFO] [stdout] | [INFO] [stdout] 46 | impl LLMClient { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 110 | pub fn is_available(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 114 | pub fn provider_name(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 118 | pub fn config(&self) -> &LLMConfig { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 135 | pub async fn clear_cache(&self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 140 | pub async fn cache_size(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CommandTranslation` is never constructed [INFO] [stdout] --> src/llm/prompts.rs:83:12 [INFO] [stdout] | [INFO] [stdout] 83 | pub struct CommandTranslation { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `with_endpoint` is never used [INFO] [stdout] --> src/llm/providers/openai.rs:62:12 [INFO] [stdout] | [INFO] [stdout] 48 | impl OpenAIProvider { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 62 | pub fn with_endpoint(api_key: String, model: String, endpoint: String) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `with_endpoint` is never used [INFO] [stdout] --> src/llm/providers/anthropic.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 49 | impl AnthropicProvider { [INFO] [stdout] | ---------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 63 | pub fn with_endpoint(api_key: String, model: String, endpoint: String) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 24.88s [INFO] running `Command { std: "docker" "inspect" "32a77b37787c40568ba1c4974b7651fd803542a9c504013846be76ae6beb2540", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "32a77b37787c40568ba1c4974b7651fd803542a9c504013846be76ae6beb2540", kill_on_drop: false }` [INFO] [stdout] 32a77b37787c40568ba1c4974b7651fd803542a9c504013846be76ae6beb2540 [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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 6f2f5b758259fea48a1c8de4be3e48cda8f3b8ece267e5ffc35062b1f2b9c0e8 [INFO] running `Command { std: "docker" "start" "-a" "6f2f5b758259fea48a1c8de4be3e48cda8f3b8ece267e5ffc35062b1f2b9c0e8", kill_on_drop: false }` [INFO] [stderr] warning: fields `highlighter`, `hinter`, `validator`, `colored_hint`, and `config` are never read [INFO] [stderr] --> src/main.rs:170:5 [INFO] [stderr] | [INFO] [stderr] 168 | struct RustShellHelper { [INFO] [stderr] | --------------- fields in this struct [INFO] [stderr] 169 | completer: FilenameCompleter, [INFO] [stderr] 170 | highlighter: MatchingBracketHighlighter, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] 171 | hinter: Option, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] 172 | validator: MatchingBracketValidator, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 175 | colored_hint: bool, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] 176 | config: RustShellConfig, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: method `find_command_match` is never used [INFO] [stderr] --> src/main.rs:257:8 [INFO] [stderr] | [INFO] [stderr] 179 | impl RustShellHelper { [INFO] [stderr] | -------------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 257 | fn find_command_match(&self, line: &str) -> Option { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `endpoint`, `timeout`, `max_tokens`, and `temperature` are never read [INFO] [stderr] --> src/llm/mod.rs:35:9 [INFO] [stderr] | [INFO] [stderr] 31 | pub struct LLMConfig { [INFO] [stderr] | --------- fields in this struct [INFO] [stderr] ... [INFO] [stderr] 35 | pub endpoint: Option, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] 36 | pub timeout: Duration, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] 37 | pub max_tokens: u32, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] 38 | pub temperature: f32, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `LLMConfig` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: methods `name` and `is_available` are never used [INFO] [stderr] --> src/llm/mod.rs:80:8 [INFO] [stderr] | [INFO] [stderr] 78 | pub trait LLMProviderTrait: Send + Sync { [INFO] [stderr] | ---------------- methods in this trait [INFO] [stderr] 79 | async fn generate(&self, request: &LLMRequest) -> Result; [INFO] [stderr] 80 | fn name(&self) -> &str; [INFO] [stderr] | ^^^^ [INFO] [stderr] 81 | fn is_available(&self) -> bool; [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `name` and `is_available` are never used [INFO] [stderr] --> src/llm/client.rs:25:12 [INFO] [stderr] | [INFO] [stderr] 17 | impl LLMProviderEnum { [INFO] [stderr] | -------------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 25 | pub fn name(&self) -> &str { [INFO] [stderr] | ^^^^ [INFO] [stderr] ... [INFO] [stderr] 32 | pub fn is_available(&self) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `is_available`, `provider_name`, `config`, `clear_cache`, and `cache_size` are never used [INFO] [stderr] --> src/llm/client.rs:110:12 [INFO] [stderr] | [INFO] [stderr] 46 | impl LLMClient { [INFO] [stderr] | -------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 110 | pub fn is_available(&self) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 114 | pub fn provider_name(&self) -> &str { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 118 | pub fn config(&self) -> &LLMConfig { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 135 | pub async fn clear_cache(&self) { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 140 | pub async fn cache_size(&self) -> usize { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `CommandTranslation` is never constructed [INFO] [stderr] --> src/llm/prompts.rs:83:12 [INFO] [stderr] | [INFO] [stderr] 83 | pub struct CommandTranslation { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `with_endpoint` is never used [INFO] [stderr] --> src/llm/providers/openai.rs:62:12 [INFO] [stderr] | [INFO] [stderr] 48 | impl OpenAIProvider { [INFO] [stderr] | ------------------- associated function in this implementation [INFO] [stderr] ... [INFO] [stderr] 62 | pub fn with_endpoint(api_key: String, model: String, endpoint: String) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `with_endpoint` is never used [INFO] [stderr] --> src/llm/providers/anthropic.rs:63:12 [INFO] [stderr] | [INFO] [stderr] 49 | impl AnthropicProvider { [INFO] [stderr] | ---------------------- associated function in this implementation [INFO] [stderr] ... [INFO] [stderr] 63 | pub fn with_endpoint(api_key: String, model: String, endpoint: String) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `rustshell` (bin "rustshell" test) generated 9 warnings [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.30s [INFO] [stdout] [INFO] [stdout] running 6 tests [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/rustshell-095df9de01925078) [INFO] [stdout] test config::tests::test_confirmation_required ... ok [INFO] [stdout] test config::tests::test_default_config ... ok [INFO] [stdout] test llm::prompts::tests::test_natural_language_detection ... ok [INFO] [stdout] test llm::prompts::tests::test_prompt_building ... ok [INFO] [stdout] test llm::prompts::tests::test_os_detection ... ok [INFO] [stdout] test config::tests::test_dangerous_command_detection ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "6f2f5b758259fea48a1c8de4be3e48cda8f3b8ece267e5ffc35062b1f2b9c0e8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6f2f5b758259fea48a1c8de4be3e48cda8f3b8ece267e5ffc35062b1f2b9c0e8", kill_on_drop: false }` [INFO] [stdout] 6f2f5b758259fea48a1c8de4be3e48cda8f3b8ece267e5ffc35062b1f2b9c0e8