[INFO] fetching crate xtalk 0.0.1-alpha.3... [INFO] checking xtalk-0.0.1-alpha.3 against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] extracting crate xtalk 0.0.1-alpha.3 into /workspace/builds/worker-5-tc2/source [INFO] validating manifest of crates.io crate xtalk 0.0.1-alpha.3 on toolchain ccf408f4326a858c00dd845a64a86b16f360a801 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate xtalk 0.0.1-alpha.3 [INFO] finished tweaking crates.io crate xtalk 0.0.1-alpha.3 [INFO] tweaked toml for crates.io crate xtalk 0.0.1-alpha.3 written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] crate crates.io crate xtalk 0.0.1-alpha.3 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" "+ccf408f4326a858c00dd845a64a86b16f360a801" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 894762946c27a247fe3a609691f5b5f9662216ee9cfba1a10178c06e8e086970 [INFO] running `Command { std: "docker" "start" "-a" "894762946c27a247fe3a609691f5b5f9662216ee9cfba1a10178c06e8e086970", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "894762946c27a247fe3a609691f5b5f9662216ee9cfba1a10178c06e8e086970", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "894762946c27a247fe3a609691f5b5f9662216ee9cfba1a10178c06e8e086970", kill_on_drop: false }` [INFO] [stdout] 894762946c27a247fe3a609691f5b5f9662216ee9cfba1a10178c06e8e086970 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] fc71cf7866a4eaf6aa14528517d8c0945a0c2c79df144de49ec9c40fc9e5676d [INFO] running `Command { std: "docker" "start" "-a" "fc71cf7866a4eaf6aa14528517d8c0945a0c2c79df144de49ec9c40fc9e5676d", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Migrating Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Compiling proc-macro2 v1.0.85 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling libc v0.2.155 [INFO] [stderr] Compiling serde v1.0.203 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Checking log v0.4.21 [INFO] [stderr] Checking stable_deref_trait v1.2.0 [INFO] [stderr] Checking bytes v1.6.0 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Compiling pkg-config v0.3.30 [INFO] [stderr] Compiling cc v1.0.99 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Checking litemap v0.7.3 [INFO] [stderr] Checking writeable v0.5.5 [INFO] [stderr] Checking http v1.1.0 [INFO] [stderr] Checking utf8parse v0.2.2 [INFO] [stderr] Checking foreign-types-shared v0.1.1 [INFO] [stderr] Checking icu_locid_transform_data v1.5.0 [INFO] [stderr] Compiling httparse v1.8.0 [INFO] [stderr] Checking futures-sink v0.3.30 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Checking indexmap v2.2.6 [INFO] [stderr] Compiling openssl v0.10.64 [INFO] [stderr] Compiling syn v2.0.66 [INFO] [stderr] Checking signal-hook-registry v1.4.2 [INFO] [stderr] Checking parking_lot_core v0.9.10 [INFO] [stderr] Checking mio v0.8.11 [INFO] [stderr] Checking socket2 v0.5.7 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Checking http-body v1.0.0 [INFO] [stderr] Checking foreign-types v0.3.2 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Checking try-lock v0.2.5 [INFO] [stderr] Checking atomic-waker v1.1.2 [INFO] [stderr] Compiling signal-hook v0.3.17 [INFO] [stderr] Compiling native-tls v0.2.12 [INFO] [stderr] Compiling heck v0.5.0 [INFO] [stderr] Checking icu_properties_data v1.5.0 [INFO] [stderr] Checking want v0.3.1 [INFO] [stderr] Checking futures-channel v0.3.30 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling rustix v0.38.34 [INFO] [stderr] Checking write16 v1.0.0 [INFO] [stderr] Checking utf8_iter v1.0.4 [INFO] [stderr] Checking tower-service v0.3.2 [INFO] [stderr] Compiling openssl-sys v0.9.102 [INFO] [stderr] Checking utf16_iter v1.0.5 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Checking tower-layer v0.3.2 [INFO] [stderr] Checking icu_normalizer_data v1.5.0 [INFO] [stderr] Checking openssl-probe v0.1.5 [INFO] [stderr] Compiling vte_generate_state_changes v0.1.2 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking anstyle-parse v0.2.4 [INFO] [stderr] Checking linux-raw-sys v0.4.14 [INFO] [stderr] Checking anstyle v1.0.7 [INFO] [stderr] Checking anstyle-query v1.1.0 [INFO] [stderr] Compiling thiserror v1.0.63 [INFO] [stderr] Checking colorchoice v1.0.1 [INFO] [stderr] Checking is_terminal_polyfill v1.70.0 [INFO] [stderr] Compiling serde_json v1.0.117 [INFO] [stderr] Checking vte v0.11.1 [INFO] [stderr] Checking signal-hook-mio v0.2.3 [INFO] [stderr] Checking anstream v0.6.14 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking http-body-util v0.1.1 [INFO] [stderr] Checking rustls-pki-types v1.7.0 [INFO] [stderr] Checking strsim v0.11.1 [INFO] [stderr] Checking winnow v0.6.18 [INFO] [stderr] Checking clap_lex v0.7.1 [INFO] [stderr] Checking iana-time-zone v0.1.60 [INFO] [stderr] Checking base64 v0.22.1 [INFO] [stderr] Checking itertools v0.12.1 [INFO] [stderr] Checking clap_builder v4.5.9 [INFO] [stderr] Checking rustls-pemfile v2.1.2 [INFO] [stderr] Checking strip-ansi-escapes v0.2.0 [INFO] [stderr] Checking encoding_rs v0.8.34 [INFO] [stderr] Checking sync_wrapper v0.1.2 [INFO] [stderr] Checking unicode-segmentation v1.11.0 [INFO] [stderr] Checking ipnet v2.9.0 [INFO] [stderr] Checking nu-ansi-term v0.50.0 [INFO] [stderr] Checking unicode-width v0.1.13 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Compiling synstructure v0.13.1 [INFO] [stderr] Compiling serde_derive v1.0.203 [INFO] [stderr] Compiling zerofrom-derive v0.1.4 [INFO] [stderr] Compiling yoke-derive v0.7.4 [INFO] [stderr] Compiling zerovec-derive v0.10.2 [INFO] [stderr] Compiling displaydoc v0.2.4 [INFO] [stderr] Compiling tokio-macros v2.3.0 [INFO] [stderr] Compiling icu_provider_macros v1.5.0 [INFO] [stderr] Compiling futures-macro v0.3.30 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Checking tokio v1.38.0 [INFO] [stderr] Compiling pin-project-internal v1.1.5 [INFO] [stderr] Compiling zerocopy-derive v0.6.6 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Compiling thiserror-impl v1.0.63 [INFO] [stderr] Compiling strum_macros v0.26.4 [INFO] [stderr] Checking zerofrom v0.1.4 [INFO] [stderr] Checking zerocopy v0.6.6 [INFO] [stderr] Checking yoke v0.7.4 [INFO] [stderr] Checking zerovec v0.10.2 [INFO] [stderr] Checking pin-project v1.1.5 [INFO] [stderr] Checking ppv-lite86 v0.2.18 [INFO] [stderr] Compiling clap_derive v4.5.8 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Compiling async-trait v0.1.80 [INFO] [stderr] Checking tinystr v0.7.6 [INFO] [stderr] Checking icu_collections v1.5.0 [INFO] [stderr] Checking icu_locid v1.5.0 [INFO] [stderr] Checking strum v0.26.3 [INFO] [stderr] Checking icu_provider v1.5.0 [INFO] [stderr] Checking clap v4.5.9 [INFO] [stderr] Checking icu_locid_transform v1.5.0 [INFO] [stderr] Checking icu_properties v1.5.0 [INFO] [stderr] Checking tokio-util v0.7.11 [INFO] [stderr] Checking tower v0.4.13 [INFO] [stderr] Checking h2 v0.4.5 [INFO] [stderr] Checking icu_normalizer v1.5.0 [INFO] [stderr] Checking bitflags v2.5.0 [INFO] [stderr] Checking serde_spanned v0.6.7 [INFO] [stderr] Checking toml_datetime v0.6.8 [INFO] [stderr] Checking chrono v0.4.38 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking toml_edit v0.22.20 [INFO] [stderr] Checking crossterm v0.27.0 [INFO] [stderr] Checking idna v1.0.0 [INFO] [stderr] Checking url v2.5.1 [INFO] [stderr] Checking toml v0.8.19 [INFO] [stderr] Checking fd-lock v4.0.2 [INFO] [stderr] Checking hyper v1.3.1 [INFO] [stderr] Checking reedline v0.32.0 [INFO] [stderr] Checking hyper-util v0.1.5 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking hyper-tls v0.6.0 [INFO] [stderr] Checking reqwest v0.12.4 [INFO] [stderr] Checking xtalk v0.0.1-alpha.3 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2021 edition to 2024 [INFO] [stderr] Fixed src/config.rs (1 fix) [INFO] [stderr] Fixed src/providers/ollama/api.rs (1 fix) [INFO] [stderr] Fixed src/cli/chat/prompt.rs (1 fix) [INFO] [stderr] Fixed src/providers/apireq/json_stream_parser.rs (2 fixes) [INFO] [stderr] Fixed src/providers/openai/api.rs (1 fix) [INFO] [stderr] Fixed src/registry.rs (1 fix) [INFO] [stderr] Fixed src/cli/chat.rs (1 fix) [INFO] [stderr] Fixed src/registry/registry.rs (1 fix) [INFO] [stderr] Fixed src/cli/chat/repl.rs (5 fixes) [INFO] [stdout] warning: unused variable: `cursor` [INFO] [stdout] --> src/cli/chat/highlighter.rs:7:37 [INFO] [stdout] | [INFO] [stdout] 7 | fn highlight(&self, line: &str, cursor: usize) -> reedline::StyledText { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_cursor` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Standard` is never constructed [INFO] [stdout] --> src/cli/chat.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 26 | pub(crate) enum Severity { [INFO] [stdout] | -------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 29 | Standard, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `output`, `model`, and `system` are never used [INFO] [stdout] --> src/cli/chat.rs:47:19 [INFO] [stdout] | [INFO] [stdout] 38 | impl Message { [INFO] [stdout] | ------------ associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 47 | pub(crate) fn output(msg: String) -> Message { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | pub(crate) fn model(msg: String, model_id: String) -> Message { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | pub(crate) fn system(msg: String) -> Message { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ContextExceeded` is never constructed [INFO] [stdout] --> src/providers.rs:77:5 [INFO] [stdout] | [INFO] [stdout] 47 | pub(crate) enum ErrorKind { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 77 | ContextExceeded, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ErrorKind` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_kind` is never used [INFO] [stdout] --> src/providers.rs:89:19 [INFO] [stdout] | [INFO] [stdout] 88 | impl Error { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 89 | pub(crate) fn from_kind(kind: ErrorKind) -> Error { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `role` is never read [INFO] [stdout] --> src/providers.rs:150:9 [INFO] [stdout] | [INFO] [stdout] 148 | pub(crate) struct MessageDelta { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 149 | /// The role of the message. [INFO] [stdout] 150 | pub role: Role, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MessageDelta` 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 `prompt_tokens` and `completion_tokens` are never read [INFO] [stdout] --> src/providers.rs:159:5 [INFO] [stdout] | [INFO] [stdout] 157 | pub(crate) struct Usage { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 158 | /// The number of tokens in the prompt. [INFO] [stdout] 159 | prompt_tokens: Option, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 160 | /// The number of tokens in the response. [INFO] [stdout] 161 | completion_tokens: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Usage` has derived impls for the traits `Default`, `Clone`, and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `finish_reason` and `usage` are never used [INFO] [stdout] --> src/providers.rs:172:8 [INFO] [stdout] | [INFO] [stdout] 166 | pub(crate) trait AsyncMessageIterator { [INFO] [stdout] | -------------------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 172 | fn finish_reason(&self) -> FinishReason; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 176 | fn usage(&self) -> &Usage; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `done` is never read [INFO] [stdout] --> src/providers/apireq/json_stream_parser.rs:396:9 [INFO] [stdout] | [INFO] [stdout] 394 | struct ModelJson<'c> { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 395 | model: &'c str, [INFO] [stdout] 396 | done: bool, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ModelJson` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `typ` is never read [INFO] [stdout] --> src/providers/openai/api.rs:225:5 [INFO] [stdout] | [INFO] [stdout] 222 | pub(super) struct ApiErrorPayload { [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 225 | typ: String, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ApiErrorPayload` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/providers/openai/provider.rs:50:19 [INFO] [stdout] | [INFO] [stdout] 49 | impl OpenAIProvider { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] 50 | pub(crate) fn new(api_key: &str, api_base: U) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `provider` and `model` are never used [INFO] [stdout] --> src/registry/registry.rs:111:19 [INFO] [stdout] | [INFO] [stdout] 84 | impl ModelSpec { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 111 | pub(crate) fn provider(&self) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 115 | pub(crate) fn model(&self) -> Option<&str> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/providers/ollama/api.rs:308:15 [INFO] [stdout] | [INFO] [stdout] 308 | while let Some(s) = res_stream.next().await { [INFO] [stdout] | ^^^^^^^^^^^^^^----------------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/providers/ollama/api.rs:318:9 [INFO] [stdout] | [INFO] [stdout] 318 | } [INFO] [stdout] | ^ [INFO] [stdout] = note: `--force-warn if-let-rescope` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/providers/openai/api.rs:339:15 [INFO] [stdout] | [INFO] [stdout] 339 | while let Some(chunk) = iterator.next().await { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^--------------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/providers/openai/api.rs:387:9 [INFO] [stdout] | [INFO] [stdout] 387 | } [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Fixed src/providers/ollama/api.rs (1 fix) [INFO] [stderr] Fixed src/providers/openai/api.rs (1 fix) [INFO] [stdout] warning: unused variable: `cursor` [INFO] [stdout] --> src/cli/chat/highlighter.rs:7:37 [INFO] [stdout] | [INFO] [stdout] 7 | fn highlight(&self, line: &str, cursor: usize) -> reedline::StyledText { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_cursor` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Standard` is never constructed [INFO] [stdout] --> src/cli/chat.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 26 | pub(crate) enum Severity { [INFO] [stdout] | -------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 29 | Standard, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `output`, `model`, and `system` are never used [INFO] [stdout] --> src/cli/chat.rs:47:19 [INFO] [stdout] | [INFO] [stdout] 38 | impl Message { [INFO] [stdout] | ------------ associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 47 | pub(crate) fn output(msg: String) -> Message { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | pub(crate) fn model(msg: String, model_id: String) -> Message { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | pub(crate) fn system(msg: String) -> Message { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `with_style` are never used [INFO] [stdout] --> src/cli/list/table.rs:45:19 [INFO] [stdout] | [INFO] [stdout] 44 | impl Cell { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 45 | pub(crate) fn new(content: String, style: Style) -> Cell { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | pub(crate) fn with_style(mut self, style: Style) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `IntoCell` is never used [INFO] [stdout] --> src/cli/list/table.rs:295:18 [INFO] [stdout] | [INFO] [stdout] 295 | pub(crate) trait IntoCell: Into + Sized { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ContextExceeded` is never constructed [INFO] [stdout] --> src/providers.rs:77:5 [INFO] [stdout] | [INFO] [stdout] 47 | pub(crate) enum ErrorKind { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 77 | ContextExceeded, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ErrorKind` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_kind` is never used [INFO] [stdout] --> src/providers.rs:89:19 [INFO] [stdout] | [INFO] [stdout] 88 | impl Error { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 89 | pub(crate) fn from_kind(kind: ErrorKind) -> Error { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `role` is never read [INFO] [stdout] --> src/providers.rs:150:9 [INFO] [stdout] | [INFO] [stdout] 148 | pub(crate) struct MessageDelta { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 149 | /// The role of the message. [INFO] [stdout] 150 | pub role: Role, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MessageDelta` 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 `prompt_tokens` and `completion_tokens` are never read [INFO] [stdout] --> src/providers.rs:159:5 [INFO] [stdout] | [INFO] [stdout] 157 | pub(crate) struct Usage { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 158 | /// The number of tokens in the prompt. [INFO] [stdout] 159 | prompt_tokens: Option, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 160 | /// The number of tokens in the response. [INFO] [stdout] 161 | completion_tokens: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Usage` has derived impls for the traits `Default`, `Clone`, and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `finish_reason` and `usage` are never used [INFO] [stdout] --> src/providers.rs:172:8 [INFO] [stdout] | [INFO] [stdout] 166 | pub(crate) trait AsyncMessageIterator { [INFO] [stdout] | -------------------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 172 | fn finish_reason(&self) -> FinishReason; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 176 | fn usage(&self) -> &Usage; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `typ` is never read [INFO] [stdout] --> src/providers/openai/api.rs:225:5 [INFO] [stdout] | [INFO] [stdout] 222 | pub(super) struct ApiErrorPayload { [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 225 | typ: String, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ApiErrorPayload` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `env_api_key` is never used [INFO] [stdout] --> src/providers/openai/api.rs:316:8 [INFO] [stdout] | [INFO] [stdout] 316 | fn env_api_key() -> String { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/providers/openai/provider.rs:50:19 [INFO] [stdout] | [INFO] [stdout] 49 | impl OpenAIProvider { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] 50 | pub(crate) fn new(api_key: &str, api_base: U) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `provider` and `model` are never used [INFO] [stdout] --> src/registry/registry.rs:111:19 [INFO] [stdout] | [INFO] [stdout] 84 | impl ModelSpec { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 111 | pub(crate) fn provider(&self) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 115 | pub(crate) fn model(&self) -> Option<&str> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 15.61s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking xtalk v0.0.1-alpha.3 (/tmp/fixit) [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `OllamaApi` [INFO] [stdout] --> src/providers/ollama/api.rs:243:19 [INFO] [stdout] | [INFO] [stdout] 243 | let api = OllamaApi::new(); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `OllamaApi` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 241 + use crate::providers::ollama::api::OllamaApi; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `OllamaApi` [INFO] [stdout] --> src/providers/ollama/api.rs:278:19 [INFO] [stdout] | [INFO] [stdout] 278 | let api = OllamaApi::new(); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `OllamaApi` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 241 + use crate::providers::ollama::api::OllamaApi; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `ChatMessage` in this scope [INFO] [stdout] --> src/providers/ollama/api.rs:280:25 [INFO] [stdout] | [INFO] [stdout] 280 | let messages = [ChatMessage { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 241 + use crate::providers::ollama::api::ChatMessage; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Role` [INFO] [stdout] --> src/providers/ollama/api.rs:281:19 [INFO] [stdout] | [INFO] [stdout] 281 | role: Role::User, [INFO] [stdout] | ^^^^ use of undeclared type `Role` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these enums [INFO] [stdout] | [INFO] [stdout] 241 + use crate::providers::Role; [INFO] [stdout] | [INFO] [stdout] 241 + use crate::providers::ollama::api::Role; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Error` [INFO] [stdout] --> src/providers/ollama/api.rs:290:35 [INFO] [stdout] | [INFO] [stdout] 290 | assert!(matches!(err, Error::NotFound(_))); [INFO] [stdout] | ^^^^^ use of undeclared type `Error` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 241 + use crate::providers::Error; [INFO] [stdout] | [INFO] [stdout] 241 + use crate::providers::fmt::Error; [INFO] [stdout] | [INFO] [stdout] 241 + use crate::providers::ollama::api::Error; [INFO] [stdout] | [INFO] [stdout] 241 + use crate::registry::registry::Error; [INFO] [stdout] | [INFO] [stdout] and 17 other candidates [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `OllamaApi` [INFO] [stdout] --> src/providers/ollama/api.rs:296:19 [INFO] [stdout] | [INFO] [stdout] 296 | let api = OllamaApi::new(); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `OllamaApi` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 241 + use crate::providers::ollama::api::OllamaApi; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `ChatMessage` in this scope [INFO] [stdout] --> src/providers/ollama/api.rs:298:25 [INFO] [stdout] | [INFO] [stdout] 298 | let messages = [ChatMessage { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 241 + use crate::providers::ollama::api::ChatMessage; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Role` [INFO] [stdout] --> src/providers/ollama/api.rs:299:19 [INFO] [stdout] | [INFO] [stdout] 299 | role: Role::User, [INFO] [stdout] | ^^^^ use of undeclared type `Role` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these enums [INFO] [stdout] | [INFO] [stdout] 241 + use crate::providers::Role; [INFO] [stdout] | [INFO] [stdout] 241 + use crate::providers::ollama::api::Role; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `StreamingChatDelta` in this scope [INFO] [stdout] --> src/providers/ollama/api.rs:305:31 [INFO] [stdout] | [INFO] [stdout] 305 | let mut first: Option = None; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 241 + use crate::providers::ollama::api::StreamingChatDelta; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `StreamingChatDelta` in this scope [INFO] [stdout] --> src/providers/ollama/api.rs:306:30 [INFO] [stdout] | [INFO] [stdout] 306 | let mut last: Option = None; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 241 + use crate::providers::ollama::api::StreamingChatDelta; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Role` [INFO] [stdout] --> src/providers/ollama/api.rs:327:46 [INFO] [stdout] | [INFO] [stdout] 327 | assert!(matches!(first.message.role, Role::Assistant)); [INFO] [stdout] | ^^^^ use of undeclared type `Role` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these enums [INFO] [stdout] | [INFO] [stdout] 241 + use crate::providers::Role; [INFO] [stdout] | [INFO] [stdout] 241 + use crate::providers::ollama::api::Role; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `DoneReason` [INFO] [stdout] --> src/providers/ollama/api.rs:333:44 [INFO] [stdout] | [INFO] [stdout] 333 | assert!(matches!(last.done_reason, DoneReason::Stop)); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `DoneReason` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 241 + use crate::providers::ollama::api::DoneReason; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `OpenAIApi` [INFO] [stdout] --> src/providers/openai/api.rs:324:19 [INFO] [stdout] | [INFO] [stdout] 324 | let api = OpenAIApi::with_api_key(&api_key); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `OpenAIApi` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 316 + use crate::providers::openai::api::OpenAIApi; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `ChatMessage` in this scope [INFO] [stdout] --> src/providers/openai/api.rs:326:25 [INFO] [stdout] | [INFO] [stdout] 326 | let messages = [ChatMessage { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 316 + use crate::providers::openai::api::ChatMessage; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Role` [INFO] [stdout] --> src/providers/openai/api.rs:328:19 [INFO] [stdout] | [INFO] [stdout] 328 | role: Role::User, [INFO] [stdout] | ^^^^ use of undeclared type `Role` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these enums [INFO] [stdout] | [INFO] [stdout] 316 + use crate::providers::Role; [INFO] [stdout] | [INFO] [stdout] 316 + use crate::providers::openai::api::Role; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Role` [INFO] [stdout] --> src/providers/openai/api.rs:353:58 [INFO] [stdout] | [INFO] [stdout] 353 | assert!(matches!(choice.delta.role, Some(Role::Assistant))); [INFO] [stdout] | ^^^^ use of undeclared type `Role` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these enums [INFO] [stdout] | [INFO] [stdout] 316 + use crate::providers::Role; [INFO] [stdout] | [INFO] [stdout] 316 + use crate::providers::openai::api::Role; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `FinishReason` [INFO] [stdout] --> src/providers/openai/api.rs:366:70 [INFO] [stdout] | [INFO] [stdout] 366 | let finish_now = matches!(choice.finish_reason, Some(FinishReason::Stop)); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `FinishReason` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these enums [INFO] [stdout] | [INFO] [stdout] 316 + use crate::providers::FinishReason; [INFO] [stdout] | [INFO] [stdout] 316 + use crate::providers::openai::api::FinishReason; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `OpenAIApi` [INFO] [stdout] --> src/providers/openai/api.rs:396:19 [INFO] [stdout] | [INFO] [stdout] 396 | let api = OpenAIApi::with_api_key(&api_key); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `OpenAIApi` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 316 + use crate::providers::openai::api::OpenAIApi; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `ChatMessage` in this scope [INFO] [stdout] --> src/providers/openai/api.rs:398:25 [INFO] [stdout] | [INFO] [stdout] 398 | let messages = [ChatMessage { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 316 + use crate::providers::openai::api::ChatMessage; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Role` [INFO] [stdout] --> src/providers/openai/api.rs:400:19 [INFO] [stdout] | [INFO] [stdout] 400 | role: Role::User, [INFO] [stdout] | ^^^^ use of undeclared type `Role` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these enums [INFO] [stdout] | [INFO] [stdout] 316 + use crate::providers::Role; [INFO] [stdout] | [INFO] [stdout] 316 + use crate::providers::openai::api::Role; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Error` [INFO] [stdout] --> src/providers/openai/api.rs:407:34 [INFO] [stdout] | [INFO] [stdout] 407 | assert!(matches!(it, Err(Error::NotFound(_)))); [INFO] [stdout] | ^^^^^ use of undeclared type `Error` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 316 + use crate::providers::Error; [INFO] [stdout] | [INFO] [stdout] 316 + use crate::providers::fmt::Error; [INFO] [stdout] | [INFO] [stdout] 316 + use crate::providers::openai::api::Error; [INFO] [stdout] | [INFO] [stdout] 316 + use crate::registry::registry::Error; [INFO] [stdout] | [INFO] [stdout] and 17 other candidates [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `OpenAIApi` [INFO] [stdout] --> src/providers/openai/api.rs:412:19 [INFO] [stdout] | [INFO] [stdout] 412 | let api = OpenAIApi::with_api_key("not_a_valid_key"); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `OpenAIApi` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 316 + use crate::providers::openai::api::OpenAIApi; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `ChatMessage` in this scope [INFO] [stdout] --> src/providers/openai/api.rs:414:25 [INFO] [stdout] | [INFO] [stdout] 414 | let messages = [ChatMessage { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 316 + use crate::providers::openai::api::ChatMessage; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Role` [INFO] [stdout] --> src/providers/openai/api.rs:416:19 [INFO] [stdout] | [INFO] [stdout] 416 | role: Role::User, [INFO] [stdout] | ^^^^ use of undeclared type `Role` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these enums [INFO] [stdout] | [INFO] [stdout] 316 + use crate::providers::Role; [INFO] [stdout] | [INFO] [stdout] 316 + use crate::providers::openai::api::Role; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Error` [INFO] [stdout] --> src/providers/openai/api.rs:423:34 [INFO] [stdout] | [INFO] [stdout] 423 | assert!(matches!(it, Err(Error::Authentication(_)))); [INFO] [stdout] | ^^^^^ use of undeclared type `Error` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 316 + use crate::providers::Error; [INFO] [stdout] | [INFO] [stdout] 316 + use crate::providers::fmt::Error; [INFO] [stdout] | [INFO] [stdout] 316 + use crate::providers::openai::api::Error; [INFO] [stdout] | [INFO] [stdout] 316 + use crate::registry::registry::Error; [INFO] [stdout] | [INFO] [stdout] and 17 other candidates [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cursor` [INFO] [stdout] --> src/cli/chat/highlighter.rs:7:37 [INFO] [stdout] | [INFO] [stdout] 7 | fn highlight(&self, line: &str, cursor: usize) -> reedline::StyledText { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_cursor` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cursor` [INFO] [stdout] --> src/cli/chat/highlighter.rs:7:37 [INFO] [stdout] | [INFO] [stdout] 7 | fn highlight(&self, line: &str, cursor: usize) -> reedline::StyledText { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_cursor` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing local variable `messages` [INFO] [stdout] --> src/providers/ollama/provider.rs:150:1 [INFO] [stdout] | [INFO] [stdout] 150 | #[async_trait] [INFO] [stdout] | ^^^^^^^^^^^^^^ returns a value referencing data owned by the current function [INFO] [stdout] ... [INFO] [stdout] 185 | let completion = self.api.chat(model, &messages).await?; [INFO] [stdout] | --------- `messages` is borrowed here [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the attribute macro `async_trait` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: lifetime may not live long enough [INFO] [stdout] --> src/providers/ollama/provider.rs:176:55 [INFO] [stdout] | [INFO] [stdout] 173 | &self, [INFO] [stdout] | - lifetime `'life0` defined here [INFO] [stdout] ... [INFO] [stdout] 176 | ) -> Result, Error> { [INFO] [stdout] | _______________________________________________________^ [INFO] [stdout] 177 | | let messages: Vec = messages [INFO] [stdout] 178 | | .iter() [INFO] [stdout] 179 | | .map(|m| api::ChatMessage { [INFO] [stdout] ... | [INFO] [stdout] 191 | | })) [INFO] [stdout] 192 | | } [INFO] [stdout] | |_____^ returning this value requires that `'life0` must outlive `'static` [INFO] [stdout] | [INFO] [stdout] help: to declare that the trait object captures data from argument `self`, you can add an explicit `'life0` lifetime bound [INFO] [stdout] | [INFO] [stdout] 176 | ) -> Result, Error> { [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: lifetime may not live long enough [INFO] [stdout] --> src/providers/ollama/provider.rs:176:55 [INFO] [stdout] | [INFO] [stdout] 174 | model: &str, [INFO] [stdout] | - lifetime `'life1` defined here [INFO] [stdout] 175 | messages: &[Message], [INFO] [stdout] 176 | ) -> Result, Error> { [INFO] [stdout] | _______________________________________________________^ [INFO] [stdout] 177 | | let messages: Vec = messages [INFO] [stdout] 178 | | .iter() [INFO] [stdout] 179 | | .map(|m| api::ChatMessage { [INFO] [stdout] ... | [INFO] [stdout] 191 | | })) [INFO] [stdout] 192 | | } [INFO] [stdout] | |_____^ returning this value requires that `'life1` must outlive `'static` [INFO] [stdout] | [INFO] [stdout] help: to declare that the trait object captures data from argument `model`, you can add an explicit `'life1` lifetime bound [INFO] [stdout] | [INFO] [stdout] 176 | ) -> Result, Error> { [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] help: the following changes may resolve your lifetime errors [INFO] [stdout] | [INFO] [stdout] = help: replace `'life0` with `'static` [INFO] [stdout] = help: replace `'life1` with `'static` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing local variable `messages` [INFO] [stdout] --> src/providers/ollama/provider.rs:150:1 [INFO] [stdout] | [INFO] [stdout] 150 | #[async_trait] [INFO] [stdout] | ^^^^^^^^^^^^^^ returns a value referencing data owned by the current function [INFO] [stdout] ... [INFO] [stdout] 185 | let completion = self.api.chat(model, &messages).await?; [INFO] [stdout] | --------- `messages` is borrowed here [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the attribute macro `async_trait` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing local variable `messages` [INFO] [stdout] --> src/providers/openai/provider.rs:179:1 [INFO] [stdout] | [INFO] [stdout] 179 | #[async_trait] [INFO] [stdout] | ^^^^^^^^^^^^^^ returns a value referencing data owned by the current function [INFO] [stdout] ... [INFO] [stdout] 210 | let iterator = self.api.streaming_chat_completion(model, &messages).await?; [INFO] [stdout] | --------- `messages` is borrowed here [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the attribute macro `async_trait` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: lifetime may not live long enough [INFO] [stdout] --> src/providers/ollama/provider.rs:176:55 [INFO] [stdout] | [INFO] [stdout] 173 | &self, [INFO] [stdout] | - lifetime `'life0` defined here [INFO] [stdout] ... [INFO] [stdout] 176 | ) -> Result, Error> { [INFO] [stdout] | _______________________________________________________^ [INFO] [stdout] 177 | | let messages: Vec = messages [INFO] [stdout] 178 | | .iter() [INFO] [stdout] 179 | | .map(|m| api::ChatMessage { [INFO] [stdout] ... | [INFO] [stdout] 191 | | })) [INFO] [stdout] 192 | | } [INFO] [stdout] | |_____^ returning this value requires that `'life0` must outlive `'static` [INFO] [stdout] | [INFO] [stdout] help: to declare that the trait object captures data from argument `self`, you can add an explicit `'life0` lifetime bound [INFO] [stdout] | [INFO] [stdout] 176 | ) -> Result, Error> { [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: lifetime may not live long enough [INFO] [stdout] --> src/providers/ollama/provider.rs:176:55 [INFO] [stdout] | [INFO] [stdout] 174 | model: &str, [INFO] [stdout] | - lifetime `'life1` defined here [INFO] [stdout] 175 | messages: &[Message], [INFO] [stdout] 176 | ) -> Result, Error> { [INFO] [stdout] | _______________________________________________________^ [INFO] [stdout] 177 | | let messages: Vec = messages [INFO] [stdout] 178 | | .iter() [INFO] [stdout] 179 | | .map(|m| api::ChatMessage { [INFO] [stdout] ... | [INFO] [stdout] 191 | | })) [INFO] [stdout] 192 | | } [INFO] [stdout] | |_____^ returning this value requires that `'life1` must outlive `'static` [INFO] [stdout] | [INFO] [stdout] help: to declare that the trait object captures data from argument `model`, you can add an explicit `'life1` lifetime bound [INFO] [stdout] | [INFO] [stdout] 176 | ) -> Result, Error> { [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] help: the following changes may resolve your lifetime errors [INFO] [stdout] | [INFO] [stdout] = help: replace `'life0` with `'static` [INFO] [stdout] = help: replace `'life1` with `'static` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: lifetime may not live long enough [INFO] [stdout] --> src/providers/openai/provider.rs:201:55 [INFO] [stdout] | [INFO] [stdout] 198 | &self, [INFO] [stdout] | - lifetime `'life0` defined here [INFO] [stdout] ... [INFO] [stdout] 201 | ) -> Result, Error> { [INFO] [stdout] | _______________________________________________________^ [INFO] [stdout] 202 | | let messages: Vec = messages [INFO] [stdout] 203 | | .iter() [INFO] [stdout] 204 | | .map(|m| api::ChatMessage { [INFO] [stdout] ... | [INFO] [stdout] 212 | | Ok(Box::new(OpenAICompletionResponse::new(iterator))) [INFO] [stdout] 213 | | } [INFO] [stdout] | |_____^ returning this value requires that `'life0` must outlive `'static` [INFO] [stdout] | [INFO] [stdout] help: to declare that the trait object captures data from argument `self`, you can add an explicit `'life0` lifetime bound [INFO] [stdout] | [INFO] [stdout] 201 | ) -> Result, Error> { [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: lifetime may not live long enough [INFO] [stdout] --> src/providers/openai/provider.rs:201:55 [INFO] [stdout] | [INFO] [stdout] 199 | model: &str, [INFO] [stdout] | - lifetime `'life1` defined here [INFO] [stdout] 200 | messages: &[Message], [INFO] [stdout] 201 | ) -> Result, Error> { [INFO] [stdout] | _______________________________________________________^ [INFO] [stdout] 202 | | let messages: Vec = messages [INFO] [stdout] 203 | | .iter() [INFO] [stdout] 204 | | .map(|m| api::ChatMessage { [INFO] [stdout] ... | [INFO] [stdout] 212 | | Ok(Box::new(OpenAICompletionResponse::new(iterator))) [INFO] [stdout] 213 | | } [INFO] [stdout] | |_____^ returning this value requires that `'life1` must outlive `'static` [INFO] [stdout] | [INFO] [stdout] help: to declare that the trait object captures data from argument `model`, you can add an explicit `'life1` lifetime bound [INFO] [stdout] | [INFO] [stdout] 201 | ) -> Result, Error> { [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0515`. [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing local variable `messages` [INFO] [stdout] --> src/providers/openai/provider.rs:179:1 [INFO] [stdout] | [INFO] [stdout] 179 | #[async_trait] [INFO] [stdout] | ^^^^^^^^^^^^^^ returns a value referencing data owned by the current function [INFO] [stdout] ... [INFO] [stdout] 210 | let iterator = self.api.streaming_chat_completion(model, &messages).await?; [INFO] [stdout] | --------- `messages` is borrowed here [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the attribute macro `async_trait` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `xtalk` (bin "xtalk") due to 7 previous errors; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: lifetime may not live long enough [INFO] [stdout] --> src/providers/openai/provider.rs:201:55 [INFO] [stdout] | [INFO] [stdout] 198 | &self, [INFO] [stdout] | - lifetime `'life0` defined here [INFO] [stdout] ... [INFO] [stdout] 201 | ) -> Result, Error> { [INFO] [stdout] | _______________________________________________________^ [INFO] [stdout] 202 | | let messages: Vec = messages [INFO] [stdout] 203 | | .iter() [INFO] [stdout] 204 | | .map(|m| api::ChatMessage { [INFO] [stdout] ... | [INFO] [stdout] 212 | | Ok(Box::new(OpenAICompletionResponse::new(iterator))) [INFO] [stdout] 213 | | } [INFO] [stdout] | |_____^ returning this value requires that `'life0` must outlive `'static` [INFO] [stdout] | [INFO] [stdout] help: to declare that the trait object captures data from argument `self`, you can add an explicit `'life0` lifetime bound [INFO] [stdout] | [INFO] [stdout] 201 | ) -> Result, Error> { [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: lifetime may not live long enough [INFO] [stdout] --> src/providers/openai/provider.rs:201:55 [INFO] [stdout] | [INFO] [stdout] 199 | model: &str, [INFO] [stdout] | - lifetime `'life1` defined here [INFO] [stdout] 200 | messages: &[Message], [INFO] [stdout] 201 | ) -> Result, Error> { [INFO] [stdout] | _______________________________________________________^ [INFO] [stdout] 202 | | let messages: Vec = messages [INFO] [stdout] 203 | | .iter() [INFO] [stdout] 204 | | .map(|m| api::ChatMessage { [INFO] [stdout] ... | [INFO] [stdout] 212 | | Ok(Box::new(OpenAICompletionResponse::new(iterator))) [INFO] [stdout] 213 | | } [INFO] [stdout] | |_____^ returning this value requires that `'life1` must outlive `'static` [INFO] [stdout] | [INFO] [stdout] help: to declare that the trait object captures data from argument `model`, you can add an explicit `'life1` lifetime bound [INFO] [stdout] | [INFO] [stdout] 201 | ) -> Result, Error> { [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 31 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0422, E0433, E0515. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: could not compile `xtalk` (bin "xtalk" test) due to 32 previous errors; 1 warning emitted [INFO] [stderr] error: failed to check after updating to 2024 [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo check --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "fc71cf7866a4eaf6aa14528517d8c0945a0c2c79df144de49ec9c40fc9e5676d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fc71cf7866a4eaf6aa14528517d8c0945a0c2c79df144de49ec9c40fc9e5676d", kill_on_drop: false }` [INFO] [stdout] fc71cf7866a4eaf6aa14528517d8c0945a0c2c79df144de49ec9c40fc9e5676d