[INFO] fetching crate chatdelta 0.6.0... [INFO] checking chatdelta-0.6.0 against try#a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d for pr-145342-1 [INFO] extracting crate chatdelta 0.6.0 into /workspace/builds/worker-2-tc2/source [INFO] started tweaking crates.io crate chatdelta 0.6.0 [INFO] removed 0 missing examples [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate chatdelta 0.6.0 [INFO] tweaked toml for crates.io crate chatdelta 0.6.0 written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate chatdelta 0.6.0 on toolchain a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate chatdelta 0.6.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" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6df9d4ec5f2b5665eb6da1ed1a72c6030aeb38a8cf5abefea6bdc5456a3988f0 [INFO] running `Command { std: "docker" "start" "-a" "6df9d4ec5f2b5665eb6da1ed1a72c6030aeb38a8cf5abefea6bdc5456a3988f0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6df9d4ec5f2b5665eb6da1ed1a72c6030aeb38a8cf5abefea6bdc5456a3988f0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6df9d4ec5f2b5665eb6da1ed1a72c6030aeb38a8cf5abefea6bdc5456a3988f0", kill_on_drop: false }` [INFO] [stdout] 6df9d4ec5f2b5665eb6da1ed1a72c6030aeb38a8cf5abefea6bdc5456a3988f0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 812ceb68596eb0c183c9daa8e84cb684dd98941a538ff5933707bfd29f2ed982 [INFO] running `Command { std: "docker" "start" "-a" "812ceb68596eb0c183c9daa8e84cb684dd98941a538ff5933707bfd29f2ed982", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.95 [INFO] [stderr] Compiling unicode-ident v1.0.18 [INFO] [stderr] Compiling libc v0.2.174 [INFO] [stderr] Checking cfg-if v1.0.1 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Checking pin-project-lite v0.2.16 [INFO] [stderr] Checking smallvec v1.15.1 [INFO] [stderr] Compiling autocfg v1.5.0 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Checking stable_deref_trait v1.2.0 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Checking futures-core v0.3.31 [INFO] [stderr] Checking bytes v1.10.1 [INFO] [stderr] Checking futures-sink v0.3.31 [INFO] [stderr] Compiling pkg-config v0.3.32 [INFO] [stderr] Checking once_cell v1.21.3 [INFO] [stderr] Checking memchr v2.7.5 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Checking futures-channel v0.3.31 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Checking itoa v1.0.15 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Checking slab v0.4.10 [INFO] [stderr] Compiling cc v1.2.29 [INFO] [stderr] Checking futures-io v0.3.31 [INFO] [stderr] Checking futures-task v0.3.31 [INFO] [stderr] Checking litemap v0.8.0 [INFO] [stderr] Checking writeable v0.6.1 [INFO] [stderr] Checking untrusted v0.9.0 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Compiling icu_normalizer_data v2.0.0 [INFO] [stderr] Compiling icu_properties_data v2.0.1 [INFO] [stderr] Checking log v0.4.27 [INFO] [stderr] Checking hashbrown v0.15.4 [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Checking equivalent v1.0.2 [INFO] [stderr] Compiling httparse v1.10.1 [INFO] [stderr] Checking tracing-core v0.1.34 [INFO] [stderr] Compiling lock_api v0.4.13 [INFO] [stderr] Checking foreign-types-shared v0.1.1 [INFO] [stderr] Checking try-lock v0.2.5 [INFO] [stderr] Compiling zerocopy v0.8.26 [INFO] [stderr] Compiling rustls v0.21.12 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Checking http v0.2.12 [INFO] [stderr] Checking foreign-types v0.3.2 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Checking bitflags v2.9.1 [INFO] [stderr] Checking want v0.3.1 [INFO] [stderr] Checking tower-service v0.3.3 [INFO] [stderr] Checking parking v2.2.1 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Checking percent-encoding v2.3.1 [INFO] [stderr] Checking httpdate v1.0.3 [INFO] [stderr] Checking indexmap v2.10.0 [INFO] [stderr] Checking openssl-probe v0.1.6 [INFO] [stderr] Compiling portable-atomic v1.11.1 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Checking concurrent-queue v2.5.0 [INFO] [stderr] Checking ryu v1.0.20 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Checking utf8_iter v1.0.4 [INFO] [stderr] Checking base64 v0.21.7 [INFO] [stderr] Compiling moka v0.12.10 [INFO] [stderr] Checking crossbeam-epoch v0.9.18 [INFO] [stderr] Checking form_urlencoded v1.2.1 [INFO] [stderr] Checking crossbeam-channel v0.5.15 [INFO] [stderr] Checking encoding_rs v0.8.35 [INFO] [stderr] Checking mime v0.3.17 [INFO] [stderr] Checking event-listener v5.4.1 [INFO] [stderr] Checking sync_wrapper v0.1.2 [INFO] [stderr] Checking ipnet v2.11.0 [INFO] [stderr] Checking tagptr v0.2.0 [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Checking event-listener-strategy v0.5.4 [INFO] [stderr] Checking webpki-roots v0.25.4 [INFO] [stderr] Checking http-body v0.4.6 [INFO] [stderr] Checking rustls-pemfile v1.0.4 [INFO] [stderr] Checking async-lock v3.4.1 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling openssl-sys v0.9.109 [INFO] [stderr] Checking getrandom v0.2.16 [INFO] [stderr] Checking signal-hook-registry v1.4.5 [INFO] [stderr] Checking mio v1.0.4 [INFO] [stderr] Checking socket2 v0.5.10 [INFO] [stderr] Checking parking_lot v0.12.4 [INFO] [stderr] Checking uuid v1.18.0 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking ppv-lite86 v0.2.21 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Checking sct v0.7.1 [INFO] [stderr] Checking rustls-webpki v0.101.7 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling async-trait v0.1.88 [INFO] [stderr] Checking tokio v1.46.1 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Checking zerofrom v0.1.6 [INFO] [stderr] Checking yoke v0.8.0 [INFO] [stderr] Checking zerotrie v0.2.2 [INFO] [stderr] Checking zerovec v0.11.2 [INFO] [stderr] Checking tinystr v0.8.1 [INFO] [stderr] Checking potential_utf v0.1.2 [INFO] [stderr] Checking icu_locale_core v2.0.0 [INFO] [stderr] Checking icu_collections v2.0.0 [INFO] [stderr] Checking futures-executor v0.3.31 [INFO] [stderr] Checking futures v0.3.31 [INFO] [stderr] Checking icu_provider v2.0.0 [INFO] [stderr] Checking icu_properties v2.0.1 [INFO] [stderr] Checking icu_normalizer v2.0.0 [INFO] [stderr] Checking idna_adapter v1.2.1 [INFO] [stderr] Checking idna v1.0.3 [INFO] [stderr] Checking tokio-util v0.7.15 [INFO] [stderr] Checking tokio-rustls v0.24.1 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking tokio-stream v0.1.17 [INFO] [stderr] Checking url v2.5.4 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking h2 v0.3.27 [INFO] [stderr] Checking hyper v0.14.32 [INFO] [stderr] Checking hyper-rustls v0.24.2 [INFO] [stderr] Checking hyper-tls v0.5.0 [INFO] [stderr] Checking reqwest v0.11.27 [INFO] [stderr] Checking chatdelta v0.6.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: fields `index` and `content_block` are never read [INFO] [stdout] --> src/clients/claude.rs:316:17 [INFO] [stdout] | [INFO] [stdout] 315 | ContentBlockStart { [INFO] [stdout] | ----------------- fields in this variant [INFO] [stdout] 316 | index: usize, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 317 | content_block: ContentBlock, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `StreamEvent` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `index` is never read [INFO] [stdout] --> src/clients/claude.rs:321:17 [INFO] [stdout] | [INFO] [stdout] 320 | ContentBlockDelta { [INFO] [stdout] | ----------------- field in this variant [INFO] [stdout] 321 | index: usize, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `StreamEvent` 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/clients/claude.rs:326:17 [INFO] [stdout] | [INFO] [stdout] 325 | ContentBlockStop { [INFO] [stdout] | ---------------- field in this variant [INFO] [stdout] 326 | index: usize, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `StreamEvent` 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 `usage` is never read [INFO] [stdout] --> src/clients/claude.rs:343:13 [INFO] [stdout] | [INFO] [stdout] 340 | struct MessageInfo { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 343 | usage: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MessageInfo` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `block_type` and `text` are never read [INFO] [stdout] --> src/clients/claude.rs:349:13 [INFO] [stdout] | [INFO] [stdout] 347 | struct ContentBlock { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 348 | #[serde(rename = "type")] [INFO] [stdout] 349 | block_type: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 350 | text: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ContentBlock` 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 `delta_type` is never read [INFO] [stdout] --> src/clients/claude.rs:356:13 [INFO] [stdout] | [INFO] [stdout] 354 | struct Delta { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 355 | #[serde(rename = "type")] [INFO] [stdout] 356 | delta_type: Option, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Delta` 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 `capabilities` is never read [INFO] [stdout] --> src/orchestration.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct AiOrchestrator { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 20 | capabilities: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `history` is never read [INFO] [stdout] --> src/prompt_optimizer.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct PromptOptimizer { [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 15 | history: PerformanceHistory, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `templates` is never read [INFO] [stdout] --> src/prompt_optimizer.rs:342:5 [INFO] [stdout] | [INFO] [stdout] 341 | struct TemplateLibrary { [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] 342 | templates: HashMap, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `history` is never read [INFO] [stdout] --> src/prompt_optimizer.rs:364:5 [INFO] [stdout] | [INFO] [stdout] 363 | struct PerformanceHistory { [INFO] [stdout] | ------------------ field in this struct [INFO] [stdout] 364 | history: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `prompt`, `optimized`, and `performance_score` are never read [INFO] [stdout] --> src/prompt_optimizer.rs:368:5 [INFO] [stdout] | [INFO] [stdout] 367 | struct HistoryEntry { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 368 | prompt: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 369 | optimized: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 370 | performance_score: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `record` is never used [INFO] [stdout] --> src/prompt_optimizer.rs:380:8 [INFO] [stdout] | [INFO] [stdout] 373 | impl PerformanceHistory { [INFO] [stdout] | ----------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 380 | fn record(&mut self, prompt: String, optimized: String, score: f64) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `event`, `id`, and `retry` are never read [INFO] [stdout] --> src/sse.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct SseEvent { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 12 | pub event: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 13 | pub data: String, [INFO] [stdout] 14 | pub id: Option, [INFO] [stdout] | ^^ [INFO] [stdout] 15 | pub retry: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SseEvent` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: invalid format string: expected `}`, found `\'` [INFO] [stdout] --> examples/orchestration_demo.rs:58:22 [INFO] [stdout] | [INFO] [stdout] 58 | println!("\n{'='*60}"); [INFO] [stdout] | -^ expected `}` in format string [INFO] [stdout] | | [INFO] [stdout] | because of this opening brace [INFO] [stdout] | [INFO] [stdout] = note: if you intended to print `{`, you can escape it using `{{` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `prompt_tokens` in this scope [INFO] [stdout] --> examples/metadata_and_tokens.rs:50:28 [INFO] [stdout] | [INFO] [stdout] 50 | let prompt_cost = (prompt_tokens.unwrap_or(0) as f64 / 1000.0) * cost_per_1k_prompt; [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `completion_tokens` in this scope [INFO] [stdout] --> examples/metadata_and_tokens.rs:51:32 [INFO] [stdout] | [INFO] [stdout] 51 | let completion_cost = (completion_tokens.unwrap_or(0) as f64 / 1000.0) * cost_per_1k_completion; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `clone` exists for struct `Vec>`, but its trait bounds were not satisfied [INFO] [stdout] --> examples/orchestration_demo.rs:113:56 [INFO] [stdout] | [INFO] [stdout] 113 | let orchestrator = AiOrchestrator::new(clients.clone()) [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `Box: Clone` [INFO] [stdout] which is required by `Vec>: Clone` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] [INFO] [stdout] error[E0308]: `?` operator has incompatible types [INFO] [stdout] --> examples/metadata_and_tokens.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | std::env::var("OPENAI_API_KEY")?, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `&str`, found `String` [INFO] [stdout] | [INFO] [stdout] = note: `?` operator cannot convert from `String` to `&str` [INFO] [stdout] note: return type inferred to be `&str` here [INFO] [stdout] --> examples/metadata_and_tokens.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | std::env::var("OPENAI_API_KEY")?, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 18 | &std::env::var("OPENAI_API_KEY")?, [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> examples/retry_strategies.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 17 | let client = create_client( [INFO] [stdout] | ------------- arguments to this function are incorrect [INFO] [stdout] 18 | "openai", [INFO] [stdout] 19 | std::env::var("OPENAI_API_KEY").unwrap_or_else(|_| "demo-key".to_string()), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `&str`, found `String` [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:539:8 [INFO] [stdout] | [INFO] [stdout] 539 | pub fn create_client( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 19 | &std::env::var("OPENAI_API_KEY").unwrap_or_else(|_| "demo-key".to_string()), [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> examples/retry_strategies.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 34 | let client = create_client( [INFO] [stdout] | ------------- arguments to this function are incorrect [INFO] [stdout] 35 | "openai", [INFO] [stdout] 36 | std::env::var("OPENAI_API_KEY").unwrap_or_else(|_| "demo-key".to_string()), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `&str`, found `String` [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:539:8 [INFO] [stdout] | [INFO] [stdout] 539 | pub fn create_client( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 36 | &std::env::var("OPENAI_API_KEY").unwrap_or_else(|_| "demo-key".to_string()), [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `chatdelta` (example "orchestration_demo") due to 2 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> examples/retry_strategies.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 51 | let client = create_client( [INFO] [stdout] | ------------- arguments to this function are incorrect [INFO] [stdout] 52 | "openai", [INFO] [stdout] 53 | std::env::var("OPENAI_API_KEY").unwrap_or_else(|_| "demo-key".to_string()), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `&str`, found `String` [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:539:8 [INFO] [stdout] | [INFO] [stdout] 539 | pub fn create_client( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 53 | &std::env::var("OPENAI_API_KEY").unwrap_or_else(|_| "demo-key".to_string()), [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> examples/retry_strategies.rs:70:9 [INFO] [stdout] | [INFO] [stdout] 68 | let client = create_client( [INFO] [stdout] | ------------- arguments to this function are incorrect [INFO] [stdout] 69 | "openai", [INFO] [stdout] 70 | std::env::var("OPENAI_API_KEY").unwrap_or_else(|_| "demo-key".to_string()), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `&str`, found `String` [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:539:8 [INFO] [stdout] | [INFO] [stdout] 539 | pub fn create_client( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 70 | &std::env::var("OPENAI_API_KEY").unwrap_or_else(|_| "demo-key".to_string()), [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0425. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> examples/retry_strategies.rs:86:9 [INFO] [stdout] | [INFO] [stdout] 84 | let critical_client = create_client( [INFO] [stdout] | ------------- arguments to this function are incorrect [INFO] [stdout] 85 | "openai", [INFO] [stdout] 86 | std::env::var("OPENAI_API_KEY").unwrap_or_else(|_| "demo-key".to_string()), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `&str`, found `String` [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:539:8 [INFO] [stdout] | [INFO] [stdout] 539 | pub fn create_client( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 86 | &std::env::var("OPENAI_API_KEY").unwrap_or_else(|_| "demo-key".to_string()), [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> examples/custom_endpoints.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 16 | let azure_client = create_client( [INFO] [stdout] | ------------- arguments to this function are incorrect [INFO] [stdout] 17 | "openai", [INFO] [stdout] 18 | std::env::var("AZURE_OPENAI_API_KEY").unwrap_or_else(|_| "demo-key".to_string()), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `&str`, found `String` [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:539:8 [INFO] [stdout] | [INFO] [stdout] 539 | pub fn create_client( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 18 | &std::env::var("AZURE_OPENAI_API_KEY").unwrap_or_else(|_| "demo-key".to_string()), [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> examples/retry_strategies.rs:102:9 [INFO] [stdout] | [INFO] [stdout] 100 | let rate_limited_client = create_client( [INFO] [stdout] | ------------- arguments to this function are incorrect [INFO] [stdout] 101 | "openai", [INFO] [stdout] 102 | std::env::var("OPENAI_API_KEY").unwrap_or_else(|_| "demo-key".to_string()), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `&str`, found `String` [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:539:8 [INFO] [stdout] | [INFO] [stdout] 539 | pub fn create_client( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 102 | &std::env::var("OPENAI_API_KEY").unwrap_or_else(|_| "demo-key".to_string()), [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `chatdelta` (example "metadata_and_tokens") due to 3 previous errors [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> examples/custom_endpoints.rs:58:9 [INFO] [stdout] | [INFO] [stdout] 56 | let gateway_client = create_client( [INFO] [stdout] | ------------- arguments to this function are incorrect [INFO] [stdout] 57 | "openai", [INFO] [stdout] 58 | std::env::var("COMPANY_API_KEY").unwrap_or_else(|_| "demo-key".to_string()), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `&str`, found `String` [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:539:8 [INFO] [stdout] | [INFO] [stdout] 539 | pub fn create_client( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 58 | &std::env::var("COMPANY_API_KEY").unwrap_or_else(|_| "demo-key".to_string()), [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stdout] error[E0308]: `?` operator has incompatible types [INFO] [stdout] --> examples/chat_session.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | std::env::var("OPENAI_API_KEY")?, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `&str`, found `String` [INFO] [stdout] | [INFO] [stdout] = note: `?` operator cannot convert from `String` to `&str` [INFO] [stdout] note: return type inferred to be `&str` here [INFO] [stdout] --> examples/chat_session.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | std::env::var("OPENAI_API_KEY")?, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 18 | &std::env::var("OPENAI_API_KEY")?, [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Box: AiClient` is not satisfied [INFO] [stdout] --> examples/chat_session.rs:24:40 [INFO] [stdout] | [INFO] [stdout] 24 | let mut session = ChatSession::new(Box::new(client)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ the trait `AiClient` is not implemented for `Box` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `AiClient`: [INFO] [stdout] ChatGpt [INFO] [stdout] Claude [INFO] [stdout] Gemini [INFO] [stdout] = note: required for the cast from `Box>` to `Box<(dyn AiClient + 'static)>` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `chatdelta` (example "retry_strategies") due to 6 previous errors [INFO] [stderr] error: could not compile `chatdelta` (example "custom_endpoints") due to 2 previous errors [INFO] [stdout] Some errors have detailed explanations: E0277, E0308. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `chatdelta` (example "chat_session") due to 2 previous errors [INFO] [stdout] warning: fields `index` and `content_block` are never read [INFO] [stdout] --> src/clients/claude.rs:316:17 [INFO] [stdout] | [INFO] [stdout] 315 | ContentBlockStart { [INFO] [stdout] | ----------------- fields in this variant [INFO] [stdout] 316 | index: usize, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 317 | content_block: ContentBlock, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `StreamEvent` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `index` is never read [INFO] [stdout] --> src/clients/claude.rs:321:17 [INFO] [stdout] | [INFO] [stdout] 320 | ContentBlockDelta { [INFO] [stdout] | ----------------- field in this variant [INFO] [stdout] 321 | index: usize, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `StreamEvent` 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/clients/claude.rs:326:17 [INFO] [stdout] | [INFO] [stdout] 325 | ContentBlockStop { [INFO] [stdout] | ---------------- field in this variant [INFO] [stdout] 326 | index: usize, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `StreamEvent` 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 `usage` is never read [INFO] [stdout] --> src/clients/claude.rs:343:13 [INFO] [stdout] | [INFO] [stdout] 340 | struct MessageInfo { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 343 | usage: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MessageInfo` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `block_type` and `text` are never read [INFO] [stdout] --> src/clients/claude.rs:349:13 [INFO] [stdout] | [INFO] [stdout] 347 | struct ContentBlock { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 348 | #[serde(rename = "type")] [INFO] [stdout] 349 | block_type: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 350 | text: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ContentBlock` 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 `delta_type` is never read [INFO] [stdout] --> src/clients/claude.rs:356:13 [INFO] [stdout] | [INFO] [stdout] 354 | struct Delta { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 355 | #[serde(rename = "type")] [INFO] [stdout] 356 | delta_type: Option, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Delta` 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 `capabilities` is never read [INFO] [stdout] --> src/orchestration.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct AiOrchestrator { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 20 | capabilities: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `history` is never read [INFO] [stdout] --> src/prompt_optimizer.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct PromptOptimizer { [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 15 | history: PerformanceHistory, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `templates` is never read [INFO] [stdout] --> src/prompt_optimizer.rs:342:5 [INFO] [stdout] | [INFO] [stdout] 341 | struct TemplateLibrary { [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] 342 | templates: HashMap, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `history` is never read [INFO] [stdout] --> src/prompt_optimizer.rs:364:5 [INFO] [stdout] | [INFO] [stdout] 363 | struct PerformanceHistory { [INFO] [stdout] | ------------------ field in this struct [INFO] [stdout] 364 | history: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `prompt`, `optimized`, and `performance_score` are never read [INFO] [stdout] --> src/prompt_optimizer.rs:368:5 [INFO] [stdout] | [INFO] [stdout] 367 | struct HistoryEntry { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 368 | prompt: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 369 | optimized: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 370 | performance_score: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `record` is never used [INFO] [stdout] --> src/prompt_optimizer.rs:380:8 [INFO] [stdout] | [INFO] [stdout] 373 | impl PerformanceHistory { [INFO] [stdout] | ----------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 380 | fn record(&mut self, prompt: String, optimized: String, score: f64) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `event`, `id`, and `retry` are never read [INFO] [stdout] --> src/sse.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct SseEvent { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 12 | pub event: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 13 | pub data: String, [INFO] [stdout] 14 | pub id: Option, [INFO] [stdout] | ^^ [INFO] [stdout] 15 | pub retry: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SseEvent` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "812ceb68596eb0c183c9daa8e84cb684dd98941a538ff5933707bfd29f2ed982", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "812ceb68596eb0c183c9daa8e84cb684dd98941a538ff5933707bfd29f2ed982", kill_on_drop: false }` [INFO] [stdout] 812ceb68596eb0c183c9daa8e84cb684dd98941a538ff5933707bfd29f2ed982