[INFO] cloning repository https://github.com/micro-hxq/chat-llm [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/micro-hxq/chat-llm" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmicro-hxq%2Fchat-llm", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmicro-hxq%2Fchat-llm'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d98f37cb9519cb7903cc5cf3b10dc63c82313ce9 [INFO] building micro-hxq/chat-llm against try#d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6 for pr-146237-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmicro-hxq%2Fchat-llm" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/micro-hxq/chat-llm [INFO] removed 0 missing examples [INFO] finished tweaking git repo https://github.com/micro-hxq/chat-llm [INFO] tweaked toml for git repo https://github.com/micro-hxq/chat-llm written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/micro-hxq/chat-llm on toolchain d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/micro-hxq/chat-llm 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" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/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" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3121486a07b44e09bf62dd4f147ee2061fbfe0dbcbcefac3251fcaa75610bf0e [INFO] running `Command { std: "docker" "start" "-a" "3121486a07b44e09bf62dd4f147ee2061fbfe0dbcbcefac3251fcaa75610bf0e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3121486a07b44e09bf62dd4f147ee2061fbfe0dbcbcefac3251fcaa75610bf0e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3121486a07b44e09bf62dd4f147ee2061fbfe0dbcbcefac3251fcaa75610bf0e", kill_on_drop: false }` [INFO] [stdout] 3121486a07b44e09bf62dd4f147ee2061fbfe0dbcbcefac3251fcaa75610bf0e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/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" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c8179216ae69d0c9dd00d4f6108711606931234d238714f725ceaf76c5d0701c [INFO] running `Command { std: "docker" "start" "-a" "c8179216ae69d0c9dd00d4f6108711606931234d238714f725ceaf76c5d0701c", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.157 [INFO] [stderr] Compiling once_cell v1.19.0 [INFO] [stderr] Compiling autocfg v1.3.0 [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling serde v1.0.208 [INFO] [stderr] Compiling cc v1.1.13 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling allocator-api2 v0.2.18 [INFO] [stderr] Compiling futures-core v0.3.30 [INFO] [stderr] Compiling pkg-config v0.3.30 [INFO] [stderr] Compiling bitflags v2.6.0 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling tracing-core v0.1.32 [INFO] [stderr] Compiling futures-sink v0.3.30 [INFO] [stderr] Compiling syn v2.0.75 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling bytes v1.7.1 [INFO] [stderr] Compiling thiserror v1.0.63 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling futures-channel v0.3.30 [INFO] [stderr] Compiling futures-task v0.3.30 [INFO] [stderr] Compiling signal-hook-registry v1.4.2 [INFO] [stderr] Compiling mio v1.0.2 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling socket2 v0.5.7 [INFO] [stderr] Compiling indexmap v2.4.0 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling openssl-sys v0.9.103 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling futures-io v0.3.30 [INFO] [stderr] Compiling signal-hook v0.3.17 [INFO] [stderr] Compiling ahash v0.7.8 [INFO] [stderr] Compiling ucd-trie v0.1.6 [INFO] [stderr] Compiling openssl v0.10.66 [INFO] [stderr] Compiling mio v0.8.11 [INFO] [stderr] Compiling http v0.2.12 [INFO] [stderr] Compiling native-tls v0.2.12 [INFO] [stderr] Compiling httparse v1.9.4 [INFO] [stderr] Compiling rustix v0.38.34 [INFO] [stderr] Compiling signal-hook-mio v0.2.4 [INFO] [stderr] Compiling backtrace v0.3.71 [INFO] [stderr] Compiling thread_local v1.1.8 [INFO] [stderr] Compiling serde_json v1.0.125 [INFO] [stderr] Compiling either v1.13.0 [INFO] [stderr] Compiling openssl-probe v0.1.5 [INFO] [stderr] Compiling gimli v0.28.1 [INFO] [stderr] Compiling linux-raw-sys v0.4.14 [INFO] [stderr] Compiling http-body v0.4.6 [INFO] [stderr] Compiling itertools v0.13.0 [INFO] [stderr] Compiling tracing-subscriber v0.3.18 [INFO] [stderr] Compiling miniz_oxide v0.7.4 [INFO] [stderr] Compiling hashbrown v0.12.3 [INFO] [stderr] Compiling unicode-normalization v0.1.23 [INFO] [stderr] Compiling castaway v0.2.3 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling object v0.32.2 [INFO] [stderr] Compiling dlv-list v0.3.0 [INFO] [stderr] Compiling unicode-width v0.1.13 [INFO] [stderr] Compiling utf8parse v0.2.2 [INFO] [stderr] Compiling unicode-segmentation v1.11.0 [INFO] [stderr] Compiling unicode-bidi v0.3.15 [INFO] [stderr] Compiling rustc-demangle v0.1.24 [INFO] [stderr] Compiling unicode-truncate v1.1.0 [INFO] [stderr] Compiling compact_str v0.8.0 [INFO] [stderr] Compiling addr2line v0.21.0 [INFO] [stderr] Compiling idna v0.5.0 [INFO] [stderr] Compiling anstyle-parse v0.2.5 [INFO] [stderr] Compiling crossterm v0.28.1 [INFO] [stderr] Compiling darling_core v0.20.10 [INFO] [stderr] Compiling ordered-multimap v0.4.3 [INFO] [stderr] Compiling tracing-error v0.2.0 [INFO] [stderr] Compiling lru v0.12.4 [INFO] [stderr] Compiling owo-colors v3.5.0 [INFO] [stderr] Compiling colorchoice v1.0.2 [INFO] [stderr] Compiling anstyle-query v1.1.1 [INFO] [stderr] Compiling anstyle v1.0.8 [INFO] [stderr] Compiling anyhow v1.0.86 [INFO] [stderr] Compiling is_terminal_polyfill v1.70.1 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling anstream v0.6.15 [INFO] [stderr] Compiling yaml-rust v0.4.5 [INFO] [stderr] Compiling eyre v0.6.12 [INFO] [stderr] Compiling color-spantrace v0.2.1 [INFO] [stderr] Compiling url v2.5.2 [INFO] [stderr] Compiling rust-ini v0.18.0 [INFO] [stderr] Compiling serde_derive v1.0.208 [INFO] [stderr] Compiling thiserror-impl v1.0.63 [INFO] [stderr] Compiling futures-macro v0.3.30 [INFO] [stderr] Compiling tokio-macros v2.4.0 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling tokio v1.39.3 [INFO] [stderr] Compiling futures-util v0.3.30 [INFO] [stderr] Compiling strum_macros v0.26.4 [INFO] [stderr] Compiling darling_macro v0.20.10 [INFO] [stderr] Compiling pest v2.7.11 [INFO] [stderr] Compiling darling v0.20.10 [INFO] [stderr] Compiling derive_builder_core v0.20.0 [INFO] [stderr] Compiling instability v0.3.2 [INFO] [stderr] Compiling pest_meta v2.7.11 [INFO] [stderr] Compiling strum v0.26.3 [INFO] [stderr] Compiling ratatui v0.28.0 [INFO] [stderr] Compiling derive_builder_macro v0.20.0 [INFO] [stderr] Compiling async-trait v0.1.81 [INFO] [stderr] Compiling crossterm v0.27.0 [INFO] [stderr] Compiling pest_generator v2.7.11 [INFO] [stderr] Compiling futures-executor v0.3.30 [INFO] [stderr] Compiling uuid v1.10.0 [INFO] [stderr] Compiling iana-time-zone v0.1.60 [INFO] [stderr] Compiling pathdiff v0.2.1 [INFO] [stderr] Compiling ipnet v2.9.0 [INFO] [stderr] Compiling sync_wrapper v0.1.2 [INFO] [stderr] Compiling chrono v0.4.38 [INFO] [stderr] Compiling pest_derive v2.7.11 [INFO] [stderr] Compiling tui-textarea v0.4.0 [INFO] [stderr] Compiling futures v0.3.30 [INFO] [stderr] Compiling derive_builder v0.20.0 [INFO] [stderr] Compiling color-eyre v0.6.3 [INFO] [stderr] Compiling serde_spanned v0.6.7 [INFO] [stderr] Compiling toml_datetime v0.6.8 [INFO] [stderr] Compiling tokio-util v0.7.11 [INFO] [stderr] Compiling toml_edit v0.22.20 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling ron v0.7.1 [INFO] [stderr] Compiling os_info v3.8.2 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling h2 v0.3.26 [INFO] [stderr] Compiling json5 v0.4.1 [INFO] [stderr] Compiling toml v0.5.11 [INFO] [stderr] Compiling toml v0.8.19 [INFO] [stderr] Compiling human-panic v1.2.3 [INFO] [stderr] Compiling config v0.13.4 [INFO] [stderr] Compiling hyper v0.14.30 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling reqwest v0.11.27 [INFO] [stderr] Compiling chat-llm v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: use of deprecated method `ratatui::Frame::<'_>::size`: use .area() as its the more correct name [INFO] [stdout] --> src/ui.rs:27:22 [INFO] [stdout] | [INFO] [stdout] 27 | .split(frame.size()); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `request` [INFO] [stdout] --> src/llm/openai.rs:123:13 [INFO] [stdout] | [INFO] [stdout] 123 | let request = ChatCompletionRequestBuilder::default() [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_request` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `LlmMessage` is never used [INFO] [stdout] --> src/llm/base.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait LlmMessage { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `LlmConfig` is never used [INFO] [stdout] --> src/llm/base.rs:9:11 [INFO] [stdout] | [INFO] [stdout] 9 | pub trait LlmConfig { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `LlmGenerationConfig` is never used [INFO] [stdout] --> src/llm/base.rs:21:11 [INFO] [stdout] | [INFO] [stdout] 21 | pub trait LlmGenerationConfig { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Llm` is never used [INFO] [stdout] --> src/llm/base.rs:35:11 [INFO] [stdout] | [INFO] [stdout] 35 | pub trait Llm { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MockLlm` is never constructed [INFO] [stdout] --> src/llm/mock.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct MockLlm {} [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/llm/openai.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl ChatCompletionMessage { [INFO] [stdout] | -------------------------- associated function in this implementation [INFO] [stdout] 17 | pub fn new(role: &str, content: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/llm/openai.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 40 | impl ChatCompletionRequest { [INFO] [stdout] | -------------------------- associated function in this implementation [INFO] [stdout] 41 | pub fn new(model: &str, messages: &[&dyn LlmMessage]) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Usage` is never constructed [INFO] [stdout] --> src/llm/openai.rs:59:8 [INFO] [stdout] | [INFO] [stdout] 59 | struct Usage { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Choice` is never constructed [INFO] [stdout] --> src/llm/openai.rs:66:8 [INFO] [stdout] | [INFO] [stdout] 66 | struct Choice { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ChatCompletionResponse` is never constructed [INFO] [stdout] --> src/llm/openai.rs:74:8 [INFO] [stdout] | [INFO] [stdout] 74 | struct ChatCompletionResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ChatOpenAI` is never constructed [INFO] [stdout] --> src/llm/openai.rs:85:12 [INFO] [stdout] | [INFO] [stdout] 85 | pub struct ChatOpenAI { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/llm/openai.rs:91:12 [INFO] [stdout] | [INFO] [stdout] 90 | impl ChatOpenAI { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 91 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `api_key`, `url`, `model`, and `generation_config` are never read [INFO] [stdout] --> src/llm/openai.rs:142:5 [INFO] [stdout] | [INFO] [stdout] 141 | pub struct ChatOpenAIConfig { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] 142 | api_key: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 143 | url: Option, [INFO] [stdout] | ^^^ [INFO] [stdout] 144 | model: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 145 | generation_config: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ChatOpenAIConfig` 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: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/component/util.rs:5:38 [INFO] [stdout] | [INFO] [stdout] 5 | pub(crate) fn split_message(message: &str, width: usize) -> Vec { [INFO] [stdout] | ^^^^ ^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 5 | pub(crate) fn split_message(message: &str, width: usize) -> Vec> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `do_sample`, `temperature`, `max_tokens`, `top_p`, `frequency_penalty`, and `presence_penalty` are never read [INFO] [stdout] --> src/llm/openai.rs:171:5 [INFO] [stdout] | [INFO] [stdout] 170 | pub struct ChatOpenAIGenerationConfig { [INFO] [stdout] | -------------------------- fields in this struct [INFO] [stdout] 171 | do_sample: Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 172 | temperature: Option, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 173 | max_tokens: Option, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 174 | top_p: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 175 | frequency_penalty: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 176 | presence_penalty: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ChatOpenAIGenerationConfig` 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: use of deprecated type alias `std::panic::PanicInfo`: use `PanicHookInfo` instead [INFO] [stdout] --> src/main.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | setup_panic!(); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] = note: this warning originates in the macro `$crate::setup_panic` which comes from the expansion of the macro `setup_panic` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `std::panic::PanicInfo`: use `PanicHookInfo` instead [INFO] [stdout] --> src/main.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | setup_panic!(); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `$crate::setup_panic` which comes from the expansion of the macro `setup_panic` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2m 31s [INFO] running `Command { std: "docker" "inspect" "c8179216ae69d0c9dd00d4f6108711606931234d238714f725ceaf76c5d0701c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c8179216ae69d0c9dd00d4f6108711606931234d238714f725ceaf76c5d0701c", kill_on_drop: false }` [INFO] [stdout] c8179216ae69d0c9dd00d4f6108711606931234d238714f725ceaf76c5d0701c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/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" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ae505378e7753425b8a12c9a7469c169e6a4e8939111c10fefcf543c422cee1e [INFO] running `Command { std: "docker" "start" "-a" "ae505378e7753425b8a12c9a7469c169e6a4e8939111c10fefcf543c422cee1e", kill_on_drop: false }` [INFO] [stdout] warning: use of deprecated method `ratatui::Frame::<'_>::size`: use .area() as its the more correct name [INFO] [stdout] --> src/ui.rs:27:22 [INFO] [stdout] | [INFO] [stdout] 27 | .split(frame.size()); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `request` [INFO] [stdout] --> src/llm/openai.rs:123:13 [INFO] [stdout] | [INFO] [stdout] 123 | let request = ChatCompletionRequestBuilder::default() [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_request` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `LlmMessage` is never used [INFO] [stdout] --> src/llm/base.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait LlmMessage { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `LlmConfig` is never used [INFO] [stdout] --> src/llm/base.rs:9:11 [INFO] [stdout] | [INFO] [stdout] 9 | pub trait LlmConfig { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `LlmGenerationConfig` is never used [INFO] [stdout] --> src/llm/base.rs:21:11 [INFO] [stdout] | [INFO] [stdout] 21 | pub trait LlmGenerationConfig { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Llm` is never used [INFO] [stdout] --> src/llm/base.rs:35:11 [INFO] [stdout] | [INFO] [stdout] 35 | pub trait Llm { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MockLlm` is never constructed [INFO] [stdout] --> src/llm/mock.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct MockLlm {} [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/llm/openai.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl ChatCompletionMessage { [INFO] [stdout] | -------------------------- associated function in this implementation [INFO] [stdout] 17 | pub fn new(role: &str, content: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/llm/openai.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 40 | impl ChatCompletionRequest { [INFO] [stdout] | -------------------------- associated function in this implementation [INFO] [stdout] 41 | pub fn new(model: &str, messages: &[&dyn LlmMessage]) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Usage` is never constructed [INFO] [stdout] --> src/llm/openai.rs:59:8 [INFO] [stdout] | [INFO] [stdout] 59 | struct Usage { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Choice` is never constructed [INFO] [stdout] --> src/llm/openai.rs:66:8 [INFO] [stdout] | [INFO] [stdout] 66 | struct Choice { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ChatCompletionResponse` is never constructed [INFO] [stdout] --> src/llm/openai.rs:74:8 [INFO] [stdout] | [INFO] [stdout] 74 | struct ChatCompletionResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ChatOpenAI` is never constructed [INFO] [stdout] --> src/llm/openai.rs:85:12 [INFO] [stdout] | [INFO] [stdout] 85 | pub struct ChatOpenAI { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/llm/openai.rs:91:12 [INFO] [stdout] | [INFO] [stdout] 90 | impl ChatOpenAI { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 91 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `api_key`, `url`, `model`, and `generation_config` are never read [INFO] [stdout] --> src/llm/openai.rs:142:5 [INFO] [stdout] | [INFO] [stdout] 141 | pub struct ChatOpenAIConfig { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] 142 | api_key: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 143 | url: Option, [INFO] [stdout] | ^^^ [INFO] [stdout] 144 | model: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 145 | generation_config: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ChatOpenAIConfig` 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: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/component/util.rs:5:38 [INFO] [stdout] | [INFO] [stdout] 5 | pub(crate) fn split_message(message: &str, width: usize) -> Vec { [INFO] [stdout] | ^^^^ ^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 5 | pub(crate) fn split_message(message: &str, width: usize) -> Vec> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `do_sample`, `temperature`, `max_tokens`, `top_p`, `frequency_penalty`, and `presence_penalty` are never read [INFO] [stdout] --> src/llm/openai.rs:171:5 [INFO] [stdout] | [INFO] [stdout] 170 | pub struct ChatOpenAIGenerationConfig { [INFO] [stdout] | -------------------------- fields in this struct [INFO] [stdout] 171 | do_sample: Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 172 | temperature: Option, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 173 | max_tokens: Option, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 174 | top_p: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 175 | frequency_penalty: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 176 | presence_penalty: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ChatOpenAIGenerationConfig` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling chat-llm v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: use of deprecated type alias `std::panic::PanicInfo`: use `PanicHookInfo` instead [INFO] [stdout] --> src/main.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | setup_panic!(); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] = note: this warning originates in the macro `$crate::setup_panic` which comes from the expansion of the macro `setup_panic` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `std::panic::PanicInfo`: use `PanicHookInfo` instead [INFO] [stdout] --> src/main.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | setup_panic!(); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `$crate::setup_panic` which comes from the expansion of the macro `setup_panic` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ratatui::widgets::*` [INFO] [stdout] --> examples/bubble_demo.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use ratatui::widgets::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `ratatui::Frame::<'_>::size`: use .area() as its the more correct name [INFO] [stdout] --> examples/bubble_demo.rs:36:61 [INFO] [stdout] | [INFO] [stdout] 36 | let bubble = Bubble::new(&message).with_width(frame.size().width); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `ratatui::Frame::<'_>::size`: use .area() as its the more correct name [INFO] [stdout] --> examples/bubble_demo.rs:37:43 [INFO] [stdout] | [INFO] [stdout] 37 | frame.render_widget(bubble, frame.size()); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ratatui::prelude` [INFO] [stdout] --> examples/bubble_demo.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use ratatui::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `ratatui::Frame::<'_>::size`: use .area() as its the more correct name [INFO] [stdout] --> src/ui.rs:27:22 [INFO] [stdout] | [INFO] [stdout] 27 | .split(frame.size()); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `ratatui::Frame::<'_>::size`: use .area() as its the more correct name [INFO] [stdout] --> examples/dialogue_demo.rs:55:54 [INFO] [stdout] | [INFO] [stdout] 55 | frame.render_stateful_widget(dialogue, frame.size(), &mut self.state); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `request` [INFO] [stdout] --> src/llm/openai.rs:123:13 [INFO] [stdout] | [INFO] [stdout] 123 | let request = ChatCompletionRequestBuilder::default() [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_request` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `role` and `content` are never used [INFO] [stdout] --> src/llm/base.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait LlmMessage { [INFO] [stdout] | ---------- methods in this trait [INFO] [stdout] 4 | fn role(&self) -> &str; [INFO] [stdout] | ^^^^ [INFO] [stdout] 5 | [INFO] [stdout] 6 | fn content(&self) -> &str; [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 `generation_config` is never used [INFO] [stdout] --> src/llm/base.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub trait LlmConfig { [INFO] [stdout] | --------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 18 | fn generation_config(&self) -> &Self::GenerationConfig; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `do_sample`, `temperature`, `max_tokens`, `top_p`, `frequency_penalty`, and `presence_penalty` are never used [INFO] [stdout] --> src/llm/base.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 21 | pub trait LlmGenerationConfig { [INFO] [stdout] | ------------------- methods in this trait [INFO] [stdout] 22 | fn do_sample(&self) -> Option; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 23 | [INFO] [stdout] 24 | fn temperature(&self) -> Option; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 25 | [INFO] [stdout] 26 | fn max_tokens(&self) -> Option; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 27 | [INFO] [stdout] 28 | fn top_p(&self) -> Option; [INFO] [stdout] | ^^^^^ [INFO] [stdout] 29 | [INFO] [stdout] 30 | fn frequency_penalty(&self) -> Option; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 31 | [INFO] [stdout] 32 | fn presence_penalty(&self) -> Option; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/llm/openai.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl ChatCompletionMessage { [INFO] [stdout] | -------------------------- associated function in this implementation [INFO] [stdout] 17 | pub fn new(role: &str, content: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/llm/openai.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 40 | impl ChatCompletionRequest { [INFO] [stdout] | -------------------------- associated function in this implementation [INFO] [stdout] 41 | pub fn new(model: &str, messages: &[&dyn LlmMessage]) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Usage` is never constructed [INFO] [stdout] --> src/llm/openai.rs:59:8 [INFO] [stdout] | [INFO] [stdout] 59 | struct Usage { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Choice` is never constructed [INFO] [stdout] --> src/llm/openai.rs:66:8 [INFO] [stdout] | [INFO] [stdout] 66 | struct Choice { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ChatCompletionResponse` is never constructed [INFO] [stdout] --> src/llm/openai.rs:74:8 [INFO] [stdout] | [INFO] [stdout] 74 | struct ChatCompletionResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ChatOpenAI` is never constructed [INFO] [stdout] --> src/llm/openai.rs:85:12 [INFO] [stdout] | [INFO] [stdout] 85 | pub struct ChatOpenAI { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/llm/openai.rs:91:12 [INFO] [stdout] | [INFO] [stdout] 90 | impl ChatOpenAI { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 91 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `generation_config` is never read [INFO] [stdout] --> src/llm/openai.rs:145:5 [INFO] [stdout] | [INFO] [stdout] 141 | pub struct ChatOpenAIConfig { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 145 | generation_config: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ChatOpenAIConfig` 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: fields `do_sample`, `temperature`, `max_tokens`, `top_p`, `frequency_penalty`, and `presence_penalty` are never read [INFO] [stdout] --> src/llm/openai.rs:171:5 [INFO] [stdout] | [INFO] [stdout] 170 | pub struct ChatOpenAIGenerationConfig { [INFO] [stdout] | -------------------------- fields in this struct [INFO] [stdout] 171 | do_sample: Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 172 | temperature: Option, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 173 | max_tokens: Option, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 174 | top_p: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 175 | frequency_penalty: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 176 | presence_penalty: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ChatOpenAIGenerationConfig` 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: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/component/util.rs:5:38 [INFO] [stdout] | [INFO] [stdout] 5 | pub(crate) fn split_message(message: &str, width: usize) -> Vec { [INFO] [stdout] | ^^^^ ^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 5 | pub(crate) fn split_message(message: &str, width: usize) -> Vec> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 4.17s [INFO] running `Command { std: "docker" "inspect" "ae505378e7753425b8a12c9a7469c169e6a4e8939111c10fefcf543c422cee1e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ae505378e7753425b8a12c9a7469c169e6a4e8939111c10fefcf543c422cee1e", kill_on_drop: false }` [INFO] [stdout] ae505378e7753425b8a12c9a7469c169e6a4e8939111c10fefcf543c422cee1e