[INFO] fetching crate aix-openai 0.1.0... [INFO] testing aix-openai-0.1.0 against try#db823df02fd0c2cf67b43025ac3fef3f2d743245 for pr-150681 [INFO] extracting crate aix-openai 0.1.0 into /workspace/builds/worker-7-tc2/source [INFO] started tweaking crates.io crate aix-openai 0.1.0 [INFO] finished tweaking crates.io crate aix-openai 0.1.0 [INFO] tweaked toml for crates.io crate aix-openai 0.1.0 written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate aix-openai 0.1.0 on toolchain db823df02fd0c2cf67b43025ac3fef3f2d743245 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+db823df02fd0c2cf67b43025ac3fef3f2d743245" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate aix-openai 0.1.0 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" "+db823df02fd0c2cf67b43025ac3fef3f2d743245" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded retain_mut v0.1.9 [INFO] [stderr] Downloaded wiremock v0.5.22 [INFO] [stderr] Downloaded deadpool v0.9.5 [INFO] [stderr] Downloaded aix-core v0.1.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+db823df02fd0c2cf67b43025ac3fef3f2d743245" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 01ae0a38e448000daac7f0ff97db33271a385eff3fa82e95bc37e6b5e7c6d792 [INFO] running `Command { std: "docker" "start" "-a" "01ae0a38e448000daac7f0ff97db33271a385eff3fa82e95bc37e6b5e7c6d792", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "01ae0a38e448000daac7f0ff97db33271a385eff3fa82e95bc37e6b5e7c6d792", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "01ae0a38e448000daac7f0ff97db33271a385eff3fa82e95bc37e6b5e7c6d792", kill_on_drop: false }` [INFO] [stdout] 01ae0a38e448000daac7f0ff97db33271a385eff3fa82e95bc37e6b5e7c6d792 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+db823df02fd0c2cf67b43025ac3fef3f2d743245" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e1ad9b57cc5735883e3b11c96795c918dc428d0a1209c2299e37cf76b9c9d1fa [INFO] running `Command { std: "docker" "start" "-a" "e1ad9b57cc5735883e3b11c96795c918dc428d0a1209c2299e37cf76b9c9d1fa", kill_on_drop: false }` [INFO] [stderr] Compiling cc v1.2.48 [INFO] [stderr] Compiling zerocopy v0.8.31 [INFO] [stderr] Compiling openssl v0.10.75 [INFO] [stderr] Compiling tracing-core v0.1.35 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling syn v2.0.111 [INFO] [stderr] Compiling mio v1.1.0 [INFO] [stderr] Compiling hashbrown v0.16.1 [INFO] [stderr] Compiling http-body v0.4.6 [INFO] [stderr] Compiling tracing v0.1.43 [INFO] [stderr] Compiling indexmap v2.12.1 [INFO] [stderr] Compiling openssl-sys v0.9.111 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling zerovec-derive v0.11.2 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling tokio-macros v2.6.0 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.1 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling tokio v1.48.0 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling yoke v0.8.1 [INFO] [stderr] Compiling zerovec v0.11.5 [INFO] [stderr] Compiling zerotrie v0.2.3 [INFO] [stderr] Compiling tinystr v0.8.2 [INFO] [stderr] Compiling potential_utf v0.1.4 [INFO] [stderr] Compiling icu_collections v2.1.1 [INFO] [stderr] Compiling icu_locale_core v2.1.1 [INFO] [stderr] Compiling icu_provider v2.1.1 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling icu_properties v2.1.1 [INFO] [stderr] Compiling icu_normalizer v2.1.1 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling url v2.5.7 [INFO] [stderr] Compiling tokio-util v0.7.17 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling aix-core v0.1.0 [INFO] [stderr] Compiling h2 v0.3.27 [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 aix-openai v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: fields `object` and `created` are never read [INFO] [stdout] --> src/client.rs:312:5 [INFO] [stdout] | [INFO] [stdout] 310 | struct OpenAiResponse { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 311 | id: String, [INFO] [stdout] 312 | object: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 313 | created: u64, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OpenAiResponse` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `index` is never read [INFO] [stdout] --> src/client.rs:322:5 [INFO] [stdout] | [INFO] [stdout] 321 | struct OpenAiChoice { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 322 | index: u32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OpenAiChoice` 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 `total_tokens` is never read [INFO] [stdout] --> src/client.rs:339:5 [INFO] [stdout] | [INFO] [stdout] 336 | struct OpenAiUsage { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 339 | total_tokens: u32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OpenAiUsage` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `OpenAiStreamResponse` is never constructed [INFO] [stdout] --> src/client.rs:344:8 [INFO] [stdout] | [INFO] [stdout] 344 | struct OpenAiStreamResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `OpenAiStreamChoice` is never constructed [INFO] [stdout] --> src/client.rs:354:8 [INFO] [stdout] | [INFO] [stdout] 354 | struct OpenAiStreamChoice { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `OpenAiStreamDelta` is never constructed [INFO] [stdout] --> src/client.rs:362:8 [INFO] [stdout] | [INFO] [stdout] 362 | struct OpenAiStreamDelta { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `object`, `created`, and `model` are never read [INFO] [stdout] --> src/streaming.rs:159:5 [INFO] [stdout] | [INFO] [stdout] 157 | struct OpenAiStreamResponse { [INFO] [stdout] | -------------------- fields in this struct [INFO] [stdout] 158 | id: String, [INFO] [stdout] 159 | object: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 160 | created: u64, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 161 | model: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OpenAiStreamResponse` 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 `index` is never read [INFO] [stdout] --> src/streaming.rs:168:5 [INFO] [stdout] | [INFO] [stdout] 167 | struct OpenAiStreamChoice { [INFO] [stdout] | ------------------ field in this struct [INFO] [stdout] 168 | index: u32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OpenAiStreamChoice` 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 `role` is never read [INFO] [stdout] --> src/streaming.rs:176:5 [INFO] [stdout] | [INFO] [stdout] 175 | struct OpenAiStreamDelta { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] 176 | role: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OpenAiStreamDelta` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 31.65s [INFO] running `Command { std: "docker" "inspect" "e1ad9b57cc5735883e3b11c96795c918dc428d0a1209c2299e37cf76b9c9d1fa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e1ad9b57cc5735883e3b11c96795c918dc428d0a1209c2299e37cf76b9c9d1fa", kill_on_drop: false }` [INFO] [stdout] e1ad9b57cc5735883e3b11c96795c918dc428d0a1209c2299e37cf76b9c9d1fa [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+db823df02fd0c2cf67b43025ac3fef3f2d743245" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 35006ab047a1bd01e711a32bbbe7c436962b8153b26a4ffbeac65daa94bf6565 [INFO] running `Command { std: "docker" "start" "-a" "35006ab047a1bd01e711a32bbbe7c436962b8153b26a4ffbeac65daa94bf6565", kill_on_drop: false }` [INFO] [stderr] Compiling serde_json v1.0.145 [INFO] [stderr] Compiling tokio v1.48.0 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling waker-fn v1.2.0 [INFO] [stderr] Compiling http-types v2.12.0 [INFO] [stderr] Compiling async-stream-impl v0.3.6 [INFO] [stderr] Compiling num_cpus v1.17.0 [INFO] [stderr] Compiling retain_mut v0.1.9 [INFO] [stderr] Compiling deadpool-runtime v0.1.4 [INFO] [stderr] Compiling infer v0.2.3 [INFO] [stderr] Compiling futures-lite v1.13.0 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling async-stream v0.3.6 [INFO] [stderr] Compiling assert-json-diff v2.0.2 [INFO] [stderr] Compiling concurrent-queue v2.5.0 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling serde_qs v0.8.5 [INFO] [stderr] Compiling async-channel v1.9.0 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling tokio-util v0.7.17 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling aix-core v0.1.0 [INFO] [stderr] Compiling deadpool v0.9.5 [INFO] [stderr] Compiling tokio-stream v0.1.17 [INFO] [stderr] Compiling tokio-test v0.4.4 [INFO] [stderr] Compiling h2 v0.3.27 [INFO] [stderr] Compiling hyper v0.14.32 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling wiremock v0.5.22 [INFO] [stderr] Compiling reqwest v0.11.27 [INFO] [stderr] Compiling aix-openai v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: fields `object` and `created` are never read [INFO] [stdout] --> src/client.rs:312:5 [INFO] [stdout] | [INFO] [stdout] 310 | struct OpenAiResponse { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 311 | id: String, [INFO] [stdout] 312 | object: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 313 | created: u64, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OpenAiResponse` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `index` is never read [INFO] [stdout] --> src/client.rs:322:5 [INFO] [stdout] | [INFO] [stdout] 321 | struct OpenAiChoice { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 322 | index: u32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OpenAiChoice` 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 `total_tokens` is never read [INFO] [stdout] --> src/client.rs:339:5 [INFO] [stdout] | [INFO] [stdout] 336 | struct OpenAiUsage { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 339 | total_tokens: u32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OpenAiUsage` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `OpenAiStreamResponse` is never constructed [INFO] [stdout] --> src/client.rs:344:8 [INFO] [stdout] | [INFO] [stdout] 344 | struct OpenAiStreamResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `OpenAiStreamChoice` is never constructed [INFO] [stdout] --> src/client.rs:354:8 [INFO] [stdout] | [INFO] [stdout] 354 | struct OpenAiStreamChoice { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `OpenAiStreamDelta` is never constructed [INFO] [stdout] --> src/client.rs:362:8 [INFO] [stdout] | [INFO] [stdout] 362 | struct OpenAiStreamDelta { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `object`, `created`, and `model` are never read [INFO] [stdout] --> src/streaming.rs:159:5 [INFO] [stdout] | [INFO] [stdout] 157 | struct OpenAiStreamResponse { [INFO] [stdout] | -------------------- fields in this struct [INFO] [stdout] 158 | id: String, [INFO] [stdout] 159 | object: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 160 | created: u64, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 161 | model: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OpenAiStreamResponse` 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 `index` is never read [INFO] [stdout] --> src/streaming.rs:168:5 [INFO] [stdout] | [INFO] [stdout] 167 | struct OpenAiStreamChoice { [INFO] [stdout] | ------------------ field in this struct [INFO] [stdout] 168 | index: u32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OpenAiStreamChoice` 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 `role` is never read [INFO] [stdout] --> src/streaming.rs:176:5 [INFO] [stdout] | [INFO] [stdout] 175 | struct OpenAiStreamDelta { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] 176 | role: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OpenAiStreamDelta` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ChatMessage` [INFO] [stdout] --> src/client.rs:389:22 [INFO] [stdout] | [INFO] [stdout] 389 | .message(ChatMessage::system("You are a helpful assistant.")) [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `ChatMessage` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 369 + use aix_core::ChatMessage; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ChatMessage` [INFO] [stdout] --> src/client.rs:390:22 [INFO] [stdout] | [INFO] [stdout] 390 | .message(ChatMessage::user("Hello!")) [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `ChatMessage` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 369 + use aix_core::ChatMessage; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `aix_core::types::ChatMessage` [INFO] [stdout] --> src/lib.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | use aix_core::types::ChatMessage; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/streaming.rs:190:13 [INFO] [stdout] | [INFO] [stdout] 190 | b"data: {\"id\": \"1\", \"choices\": [{\"index\": 0, \"delta\": {\"content\": \" world\"}}]}\n\n", [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected an array with a size of 77, found one with a size of 78 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/streaming.rs:203:25 [INFO] [stdout] | [INFO] [stdout] 203 | chunks.push(chunk.unwrap()); [INFO] [stdout] | ^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/streaming.rs:218:13 [INFO] [stdout] | [INFO] [stdout] 218 | b"data: malformed json\n\n", // This should be skipped [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected an array with a size of 77, found one with a size of 22 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0308, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stderr] error: could not compile `aix-openai` (lib test) due to 5 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "35006ab047a1bd01e711a32bbbe7c436962b8153b26a4ffbeac65daa94bf6565", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "35006ab047a1bd01e711a32bbbe7c436962b8153b26a4ffbeac65daa94bf6565", kill_on_drop: false }` [INFO] [stdout] 35006ab047a1bd01e711a32bbbe7c436962b8153b26a4ffbeac65daa94bf6565