[INFO] cloning repository https://github.com/jokerkakkoi/api-switch
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/jokerkakkoi/api-switch" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjokerkakkoi%2Fapi-switch", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjokerkakkoi%2Fapi-switch'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] eda325c467caaa02a521de13a32e1820cffda8f5
[INFO] testing jokerkakkoi/api-switch against 1.98.0-beta.1 for beta-1.98-2
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjokerkakkoi%2Fapi-switch" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/jokerkakkoi/api-switch
[INFO] finished tweaking git repo https://github.com/jokerkakkoi/api-switch
[INFO] tweaked toml for git repo https://github.com/jokerkakkoi/api-switch written to /workspace/builds/worker-0-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/jokerkakkoi/api-switch on toolchain 1.98.0-beta.1
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.98.0-beta.1" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/jokerkakkoi/api-switch 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" "+1.98.0-beta.1" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3d5ced03c013a94a2f102a4510f48a6e9184255caf5fd8244f58017bde7f5210" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] 250ae136d3c36b4427a139447f0b5a3a69ccb421b05310cea99f98961ba3e893
[INFO] running `Command { std: "docker" "start" "250ae136d3c36b4427a139447f0b5a3a69ccb421b05310cea99f98961ba3e893", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "250ae136d3c36b4427a139447f0b5a3a69ccb421b05310cea99f98961ba3e893", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "250ae136d3c36b4427a139447f0b5a3a69ccb421b05310cea99f98961ba3e893" "/opt/rustwide/cargo-home/bin/cargo" "+1.98.0-beta.1" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "250ae136d3c36b4427a139447f0b5a3a69ccb421b05310cea99f98961ba3e893", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "250ae136d3c36b4427a139447f0b5a3a69ccb421b05310cea99f98961ba3e893" "/opt/rustwide/cargo-home/bin/cargo" "+1.98.0-beta.1" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v1.0.106
[INFO] [stderr]    Compiling unicode-ident v1.0.24
[INFO] [stderr]    Compiling quote v1.0.45
[INFO] [stderr]    Compiling libc v0.2.186
[INFO] [stderr]    Compiling cfg-if v1.0.4
[INFO] [stderr]    Compiling smallvec v1.15.1
[INFO] [stderr]    Compiling pin-project-lite v0.2.17
[INFO] [stderr]    Compiling futures-core v0.3.32
[INFO] [stderr]    Compiling bytes v1.11.1
[INFO] [stderr]    Compiling itoa v1.0.18
[INFO] [stderr]    Compiling parking_lot_core v0.9.12
[INFO] [stderr]    Compiling stable_deref_trait v1.2.1
[INFO] [stderr]    Compiling log v0.4.29
[INFO] [stderr]    Compiling scopeguard v1.2.0
[INFO] [stderr]    Compiling lock_api v0.4.14
[INFO] [stderr]    Compiling futures-sink v0.3.32
[INFO] [stderr]    Compiling once_cell v1.21.4
[INFO] [stderr]    Compiling find-msvc-tools v0.1.9
[INFO] [stderr]    Compiling shlex v1.3.0
[INFO] [stderr]    Compiling slab v0.4.12
[INFO] [stderr]    Compiling cc v1.2.61
[INFO] [stderr]    Compiling futures-channel v0.3.32
[INFO] [stderr]    Compiling memchr v2.8.0
[INFO] [stderr]    Compiling pkg-config v0.3.33
[INFO] [stderr]    Compiling tracing-core v0.1.36
[INFO] [stderr]    Compiling litemap v0.8.2
[INFO] [stderr]    Compiling http v1.4.0
[INFO] [stderr]    Compiling futures-task v0.3.32
[INFO] [stderr]    Compiling serde_core v1.0.228
[INFO] [stderr]    Compiling futures-io v0.3.32
[INFO] [stderr]    Compiling writeable v0.6.3
[INFO] [stderr]    Compiling percent-encoding v2.3.2
[INFO] [stderr]    Compiling icu_properties_data v2.2.0
[INFO] [stderr]    Compiling syn v2.0.117
[INFO] [stderr]    Compiling equivalent v1.0.2
[INFO] [stderr]    Compiling icu_normalizer_data v2.2.0
[INFO] [stderr]    Compiling hashbrown v0.17.0
[INFO] [stderr]    Compiling utf8_iter v1.0.4
[INFO] [stderr]    Compiling tower-service v0.3.3
[INFO] [stderr]    Compiling httparse v1.10.1
[INFO] [stderr]    Compiling errno v0.3.14
[INFO] [stderr]    Compiling socket2 v0.6.3
[INFO] [stderr]    Compiling signal-hook-registry v1.4.8
[INFO] [stderr]    Compiling parking_lot v0.12.5
[INFO] [stderr]    Compiling mio v1.2.0
[INFO] [stderr]    Compiling http-body v1.0.1
[INFO] [stderr]    Compiling indexmap v2.14.0
[INFO] [stderr]    Compiling openssl-sys v0.9.115
[INFO] [stderr]    Compiling serde v1.0.228
[INFO] [stderr]    Compiling openssl v0.10.79
[INFO] [stderr]    Compiling bitflags v2.11.1
[INFO] [stderr]    Compiling form_urlencoded v1.2.2
[INFO] [stderr]    Compiling sync_wrapper v1.0.2
[INFO] [stderr]    Compiling zmij v1.0.21
[INFO] [stderr]    Compiling native-tls v0.2.18
[INFO] [stderr]    Compiling tower-layer v0.3.3
[INFO] [stderr]    Compiling httpdate v1.0.3
[INFO] [stderr]    Compiling http-body-util v0.1.3
[INFO] [stderr]    Compiling serde_json v1.0.149
[INFO] [stderr]    Compiling ryu v1.0.23
[INFO] [stderr]    Compiling ipnet v2.12.0
[INFO] [stderr]    Compiling openssl-probe v0.2.1
[INFO] [stderr]    Compiling getrandom v0.4.2
[INFO] [stderr]    Compiling zeroize v1.8.2
[INFO] [stderr]    Compiling anyhow v1.0.102
[INFO] [stderr]    Compiling rustls-pki-types v1.14.1
[INFO] [stderr]    Compiling sharded-slab v0.1.7
[INFO] [stderr]    Compiling tracing-log v0.2.0
[INFO] [stderr]    Compiling thread_local v1.1.9
[INFO] [stderr]    Compiling encoding_rs v0.8.35
[INFO] [stderr]    Compiling unsafe-libyaml v0.2.11
[INFO] [stderr]    Compiling nu-ansi-term v0.50.3
[INFO] [stderr]    Compiling matchit v0.8.4
[INFO] [stderr]    Compiling uuid v1.23.1
[INFO] [stderr]    Compiling tracing-subscriber v0.3.23
[INFO] [stderr]    Compiling serde_path_to_error v0.1.20
[INFO] [stderr]    Compiling synstructure v0.13.2
[INFO] [stderr]    Compiling zerofrom-derive v0.1.7
[INFO] [stderr]    Compiling yoke-derive v0.8.2
[INFO] [stderr]    Compiling zerovec-derive v0.11.3
[INFO] [stderr]    Compiling tokio-macros v2.7.0
[INFO] [stderr]    Compiling displaydoc v0.2.5
[INFO] [stderr]    Compiling tracing-attributes v0.1.31
[INFO] [stderr]    Compiling futures-macro v0.3.32
[INFO] [stderr]    Compiling serde_derive v1.0.228
[INFO] [stderr]    Compiling futures-util v0.3.32
[INFO] [stderr]    Compiling openssl-macros v0.1.1
[INFO] [stderr]    Compiling tokio v1.52.2
[INFO] [stderr]    Compiling zerofrom v0.1.7
[INFO] [stderr]    Compiling tracing v0.1.44
[INFO] [stderr]    Compiling yoke v0.8.2
[INFO] [stderr]    Compiling zerovec v0.11.6
[INFO] [stderr]    Compiling zerotrie v0.2.4
[INFO] [stderr]    Compiling axum-core v0.5.6
[INFO] [stderr]    Compiling tinystr v0.8.3
[INFO] [stderr]    Compiling potential_utf v0.1.5
[INFO] [stderr]    Compiling icu_collections v2.2.0
[INFO] [stderr]    Compiling icu_locale_core v2.2.0
[INFO] [stderr]    Compiling icu_provider v2.2.0
[INFO] [stderr]    Compiling serde_urlencoded v0.7.1
[INFO] [stderr]    Compiling icu_properties v2.2.0
[INFO] [stderr]    Compiling icu_normalizer v2.2.0
[INFO] [stderr]    Compiling serde_yaml v0.9.34+deprecated
[INFO] [stderr]    Compiling futures-executor v0.3.32
[INFO] [stderr]    Compiling futures v0.3.32
[INFO] [stderr]    Compiling idna_adapter v1.2.2
[INFO] [stderr]    Compiling idna v1.1.0
[INFO] [stderr]    Compiling url v2.5.8
[INFO] [stderr]    Compiling tokio-util v0.7.18
[INFO] [stderr]    Compiling tower v0.5.3
[INFO] [stderr]    Compiling tokio-native-tls v0.3.1
[INFO] [stderr]    Compiling tokio-stream v0.1.18
[INFO] [stderr]    Compiling h2 v0.4.14
[INFO] [stderr]    Compiling tower-http v0.6.10
[INFO] [stderr]    Compiling hyper v1.9.0
[INFO] [stderr]    Compiling hyper-util v0.1.20
[INFO] [stderr]    Compiling hyper-tls v0.6.0
[INFO] [stderr]    Compiling axum v0.8.9
[INFO] [stderr]    Compiling reqwest v0.12.28
[INFO] [stderr]    Compiling api-switch v0.1.1 (/opt/rustwide/workdir)
[INFO] [stdout] warning: field `top_k` is never read
[INFO] [stdout]   --> src/anthropic/mod.rs:19:9
[INFO] [stdout]    |
[INFO] [stdout]  5 | pub struct AnthropicRequest {
[INFO] [stdout]    |            ---------------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 19 |     pub top_k: Option<u32>,
[INFO] [stdout]    |         ^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `AnthropicRequest` 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 `is_error` is never read
[INFO] [stdout]   --> src/anthropic/mod.rs:59:9
[INFO] [stdout]    |
[INFO] [stdout] 54 |     ToolResult {
[INFO] [stdout]    |     ---------- field in this variant
[INFO] [stdout] ...
[INFO] [stdout] 59 |         is_error: Option<bool>,
[INFO] [stdout]    |         ^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `AnthropicContentBlock` 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: field `content_type` is never read
[INFO] [stdout]   --> src/anthropic/mod.rs:74:9
[INFO] [stdout]    |
[INFO] [stdout] 72 | pub struct ToolResultContentBlock {
[INFO] [stdout]    |            ---------------------- field in this struct
[INFO] [stdout] 73 |     #[serde(rename = "type")]
[INFO] [stdout] 74 |     pub content_type: String,
[INFO] [stdout]    |         ^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `ToolResultContentBlock` 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: field `source_type` is never read
[INFO] [stdout]   --> src/anthropic/mod.rs:82:9
[INFO] [stdout]    |
[INFO] [stdout] 80 | pub struct ImageSource {
[INFO] [stdout]    |            ----------- field in this struct
[INFO] [stdout] 81 |     #[serde(rename = "type")]
[INFO] [stdout] 82 |     pub source_type: String,
[INFO] [stdout]    |         ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `ImageSource` 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: field `content_type` is never read
[INFO] [stdout]   --> src/anthropic/mod.rs:99:9
[INFO] [stdout]    |
[INFO] [stdout] 97 | pub struct SystemContentBlock {
[INFO] [stdout]    |            ------------------ field in this struct
[INFO] [stdout] 98 |     #[serde(rename = "type")]
[INFO] [stdout] 99 |     pub content_type: String,
[INFO] [stdout]    |         ^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `SystemContentBlock` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `Ping` is never constructed
[INFO] [stdout]    --> src/anthropic/mod.rs:181:5
[INFO] [stdout]     |
[INFO] [stdout] 161 | pub enum AnthropicSSEEvent {
[INFO] [stdout]     |          ----------------- variant in this enum
[INFO] [stdout] ...
[INFO] [stdout] 181 |     Ping,
[INFO] [stdout]     |     ^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `AnthropicSSEEvent` 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: field `index` is never read
[INFO] [stdout]   --> src/openai/mod.rs:99:9
[INFO] [stdout]    |
[INFO] [stdout] 98 | pub struct OpenAIChoice {
[INFO] [stdout]    |            ------------ field in this struct
[INFO] [stdout] 99 |     pub 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 `call_type` is never read
[INFO] [stdout]    --> src/openai/mod.rs:117:9
[INFO] [stdout]     |
[INFO] [stdout] 114 | pub struct OpenAIToolCallResponse {
[INFO] [stdout]     |            ---------------------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 117 |     pub call_type: String,
[INFO] [stdout]     |         ^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `OpenAIToolCallResponse` 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: field `total_tokens` is never read
[INFO] [stdout]    --> src/openai/mod.rs:125:9
[INFO] [stdout]     |
[INFO] [stdout] 122 | pub struct OpenAIUsage {
[INFO] [stdout]     |            ----------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 125 |     pub 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: field `id` is never read
[INFO] [stdout]    --> src/openai/mod.rs:131:9
[INFO] [stdout]     |
[INFO] [stdout] 130 | pub struct OpenAISSEChunk {
[INFO] [stdout]     |            -------------- field in this struct
[INFO] [stdout] 131 |     pub id: Option<String>,
[INFO] [stdout]     |         ^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `OpenAISSEChunk` 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/openai/mod.rs:139:9
[INFO] [stdout]     |
[INFO] [stdout] 138 | pub struct OpenAIDeltaChoice {
[INFO] [stdout]     |            ----------------- field in this struct
[INFO] [stdout] 139 |     pub index: u32,
[INFO] [stdout]     |         ^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `OpenAIDeltaChoice` 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 `call_type` is never read
[INFO] [stdout]    --> src/openai/mod.rs:159:9
[INFO] [stdout]     |
[INFO] [stdout] 154 | pub struct OpenAIDeltaToolCall {
[INFO] [stdout]     |            ------------------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 159 |     pub call_type: Option<String>,
[INFO] [stdout]     |         ^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `OpenAIDeltaToolCall` 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: field `error_type` is never read
[INFO] [stdout]    --> src/openai/mod.rs:182:9
[INFO] [stdout]     |
[INFO] [stdout] 179 | pub struct OpenAIErrorDetail {
[INFO] [stdout]     |            ----------------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 182 |     pub error_type: Option<String>,
[INFO] [stdout]     |         ^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `OpenAIErrorDetail` 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 `id` and `name` are never read
[INFO] [stdout]   --> src/transform/stream.rs:12:5
[INFO] [stdout]    |
[INFO] [stdout] 11 | struct ToolCallState {
[INFO] [stdout]    |        ------------- fields in this struct
[INFO] [stdout] 12 |     id: String,
[INFO] [stdout]    |     ^^
[INFO] [stdout] 13 |     name: String,
[INFO] [stdout]    |     ^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `ToolCallState` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 57s
[INFO] running `Command { std: "docker" "inspect" "250ae136d3c36b4427a139447f0b5a3a69ccb421b05310cea99f98961ba3e893", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "250ae136d3c36b4427a139447f0b5a3a69ccb421b05310cea99f98961ba3e893" "/opt/rustwide/cargo-home/bin/cargo" "+1.98.0-beta.1" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]    Compiling api-switch v0.1.1 (/opt/rustwide/workdir)
[INFO] [stdout] warning: field `is_error` is never read
[INFO] [stdout]   --> src/anthropic/mod.rs:59:9
[INFO] [stdout]    |
[INFO] [stdout] 54 |     ToolResult {
[INFO] [stdout]    |     ---------- field in this variant
[INFO] [stdout] ...
[INFO] [stdout] 59 |         is_error: Option<bool>,
[INFO] [stdout]    |         ^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `AnthropicContentBlock` has derived impls for the traits `Clone` and `Debug`, but these are 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 `content_type` is never read
[INFO] [stdout]   --> src/anthropic/mod.rs:74:9
[INFO] [stdout]    |
[INFO] [stdout] 72 | pub struct ToolResultContentBlock {
[INFO] [stdout]    |            ---------------------- field in this struct
[INFO] [stdout] 73 |     #[serde(rename = "type")]
[INFO] [stdout] 74 |     pub content_type: String,
[INFO] [stdout]    |         ^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `ToolResultContentBlock` 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: field `source_type` is never read
[INFO] [stdout]   --> src/anthropic/mod.rs:82:9
[INFO] [stdout]    |
[INFO] [stdout] 80 | pub struct ImageSource {
[INFO] [stdout]    |            ----------- field in this struct
[INFO] [stdout] 81 |     #[serde(rename = "type")]
[INFO] [stdout] 82 |     pub source_type: String,
[INFO] [stdout]    |         ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `ImageSource` 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: field `content_type` is never read
[INFO] [stdout]   --> src/anthropic/mod.rs:99:9
[INFO] [stdout]    |
[INFO] [stdout] 97 | pub struct SystemContentBlock {
[INFO] [stdout]    |            ------------------ field in this struct
[INFO] [stdout] 98 |     #[serde(rename = "type")]
[INFO] [stdout] 99 |     pub content_type: String,
[INFO] [stdout]    |         ^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `SystemContentBlock` 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/openai/mod.rs:99:9
[INFO] [stdout]    |
[INFO] [stdout] 98 | pub struct OpenAIChoice {
[INFO] [stdout]    |            ------------ field in this struct
[INFO] [stdout] 99 |     pub 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 `call_type` is never read
[INFO] [stdout]    --> src/openai/mod.rs:117:9
[INFO] [stdout]     |
[INFO] [stdout] 114 | pub struct OpenAIToolCallResponse {
[INFO] [stdout]     |            ---------------------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 117 |     pub call_type: String,
[INFO] [stdout]     |         ^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `OpenAIToolCallResponse` 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: field `total_tokens` is never read
[INFO] [stdout]    --> src/openai/mod.rs:125:9
[INFO] [stdout]     |
[INFO] [stdout] 122 | pub struct OpenAIUsage {
[INFO] [stdout]     |            ----------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 125 |     pub 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: field `id` is never read
[INFO] [stdout]    --> src/openai/mod.rs:131:9
[INFO] [stdout]     |
[INFO] [stdout] 130 | pub struct OpenAISSEChunk {
[INFO] [stdout]     |            -------------- field in this struct
[INFO] [stdout] 131 |     pub id: Option<String>,
[INFO] [stdout]     |         ^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `OpenAISSEChunk` 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/openai/mod.rs:139:9
[INFO] [stdout]     |
[INFO] [stdout] 138 | pub struct OpenAIDeltaChoice {
[INFO] [stdout]     |            ----------------- field in this struct
[INFO] [stdout] 139 |     pub index: u32,
[INFO] [stdout]     |         ^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `OpenAIDeltaChoice` 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 `call_type` is never read
[INFO] [stdout]    --> src/openai/mod.rs:159:9
[INFO] [stdout]     |
[INFO] [stdout] 154 | pub struct OpenAIDeltaToolCall {
[INFO] [stdout]     |            ------------------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 159 |     pub call_type: Option<String>,
[INFO] [stdout]     |         ^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `OpenAIDeltaToolCall` 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: field `error_type` is never read
[INFO] [stdout]    --> src/openai/mod.rs:182:9
[INFO] [stdout]     |
[INFO] [stdout] 179 | pub struct OpenAIErrorDetail {
[INFO] [stdout]     |            ----------------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 182 |     pub error_type: Option<String>,
[INFO] [stdout]     |         ^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `OpenAIErrorDetail` 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 `id` and `name` are never read
[INFO] [stdout]   --> src/transform/stream.rs:12:5
[INFO] [stdout]    |
[INFO] [stdout] 11 | struct ToolCallState {
[INFO] [stdout]    |        ------------- fields in this struct
[INFO] [stdout] 12 |     id: String,
[INFO] [stdout]    |     ^^
[INFO] [stdout] 13 |     name: String,
[INFO] [stdout]    |     ^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `ToolCallState` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 9.15s
[INFO] running `Command { std: "docker" "inspect" "250ae136d3c36b4427a139447f0b5a3a69ccb421b05310cea99f98961ba3e893", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "250ae136d3c36b4427a139447f0b5a3a69ccb421b05310cea99f98961ba3e893" "/opt/rustwide/cargo-home/bin/cargo" "+1.98.0-beta.1" "test" "--frozen", kill_on_drop: false }`
[INFO] [stderr] warning: field `is_error` is never read
[INFO] [stderr]   --> src/anthropic/mod.rs:59:9
[INFO] [stderr]    |
[INFO] [stderr] 54 |     ToolResult {
[INFO] [stderr]    |     ---------- field in this variant
[INFO] [stderr] ...
[INFO] [stderr] 59 |         is_error: Option<bool>,
[INFO] [stderr]    |         ^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `AnthropicContentBlock` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stderr]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: field `content_type` is never read
[INFO] [stderr]   --> src/anthropic/mod.rs:74:9
[INFO] [stderr]    |
[INFO] [stderr] 72 | pub struct ToolResultContentBlock {
[INFO] [stderr]    |            ---------------------- field in this struct
[INFO] [stderr] 73 |     #[serde(rename = "type")]
[INFO] [stderr] 74 |     pub content_type: String,
[INFO] [stderr]    |         ^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `ToolResultContentBlock` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stderr] 
[INFO] [stderr] warning: field `source_type` is never read
[INFO] [stderr]   --> src/anthropic/mod.rs:82:9
[INFO] [stderr]    |
[INFO] [stderr] 80 | pub struct ImageSource {
[INFO] [stderr]    |            ----------- field in this struct
[INFO] [stderr] 81 |     #[serde(rename = "type")]
[INFO] [stderr] 82 |     pub source_type: String,
[INFO] [stderr]    |         ^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `ImageSource` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stderr] 
[INFO] [stderr] warning: field `content_type` is never read
[INFO] [stderr]   --> src/anthropic/mod.rs:99:9
[INFO] [stderr]    |
[INFO] [stderr] 97 | pub struct SystemContentBlock {
[INFO] [stderr]    |            ------------------ field in this struct
[INFO] [stderr] 98 |     #[serde(rename = "type")]
[INFO] [stderr] 99 |     pub content_type: String,
[INFO] [stderr]    |         ^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `SystemContentBlock` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stderr] 
[INFO] [stderr] warning: field `index` is never read
[INFO] [stderr]   --> src/openai/mod.rs:99:9
[INFO] [stderr]    |
[INFO] [stderr] 98 | pub struct OpenAIChoice {
[INFO] [stderr]    |            ------------ field in this struct
[INFO] [stderr] 99 |     pub index: u32,
[INFO] [stderr]    |         ^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `OpenAIChoice` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stderr] 
[INFO] [stderr] warning: field `call_type` is never read
[INFO] [stderr]    --> src/openai/mod.rs:117:9
[INFO] [stderr]     |
[INFO] [stderr] 114 | pub struct OpenAIToolCallResponse {
[INFO] [stderr]     |            ---------------------- field in this struct
[INFO] [stderr] ...
[INFO] [stderr] 117 |     pub call_type: String,
[INFO] [stderr]     |         ^^^^^^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = note: `OpenAIToolCallResponse` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stderr] 
[INFO] [stderr] warning: field `total_tokens` is never read
[INFO] [stderr]    --> src/openai/mod.rs:125:9
[INFO] [stderr]     |
[INFO] [stderr] 122 | pub struct OpenAIUsage {
[INFO] [stderr]     |            ----------- field in this struct
[INFO] [stderr] ...
[INFO] [stderr] 125 |     pub total_tokens: u32,
[INFO] [stderr]     |         ^^^^^^^^^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = note: `OpenAIUsage` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stderr] 
[INFO] [stderr] warning: field `id` is never read
[INFO] [stderr]    --> src/openai/mod.rs:131:9
[INFO] [stderr]     |
[INFO] [stderr] 130 | pub struct OpenAISSEChunk {
[INFO] [stderr]     |            -------------- field in this struct
[INFO] [stderr] 131 |     pub id: Option<String>,
[INFO] [stderr]     |         ^^
[INFO] [stderr]     |
[INFO] [stderr]     = note: `OpenAISSEChunk` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stderr] 
[INFO] [stderr] warning: field `index` is never read
[INFO] [stderr]    --> src/openai/mod.rs:139:9
[INFO] [stderr]     |
[INFO] [stderr] 138 | pub struct OpenAIDeltaChoice {
[INFO] [stderr]     |            ----------------- field in this struct
[INFO] [stderr] 139 |     pub index: u32,
[INFO] [stderr]     |         ^^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = note: `OpenAIDeltaChoice` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stderr] 
[INFO] [stderr] warning: field `call_type` is never read
[INFO] [stderr]    --> src/openai/mod.rs:159:9
[INFO] [stderr]     |
[INFO] [stderr] 154 | pub struct OpenAIDeltaToolCall {
[INFO] [stderr]     |            ------------------- field in this struct
[INFO] [stderr] ...
[INFO] [stderr] 159 |     pub call_type: Option<String>,
[INFO] [stderr]     |         ^^^^^^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = note: `OpenAIDeltaToolCall` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stderr] 
[INFO] [stderr] warning: field `error_type` is never read
[INFO] [stderr]    --> src/openai/mod.rs:182:9
[INFO] [stderr]     |
[INFO] [stderr] 179 | pub struct OpenAIErrorDetail {
[INFO] [stderr]     |            ----------------- field in this struct
[INFO] [stderr] ...
[INFO] [stderr] 182 |     pub error_type: Option<String>,
[INFO] [stderr]     |         ^^^^^^^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = note: `OpenAIErrorDetail` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stderr] 
[INFO] [stderr] warning: fields `id` and `name` are never read
[INFO] [stderr]   --> src/transform/stream.rs:12:5
[INFO] [stderr]    |
[INFO] [stderr] 11 | struct ToolCallState {
[INFO] [stderr]    |        ------------- fields in this struct
[INFO] [stderr] 12 |     id: String,
[INFO] [stderr]    |     ^^
[INFO] [stderr] 13 |     name: String,
[INFO] [stderr]    |     ^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `ToolCallState` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stderr] 
[INFO] [stderr] warning: `api-switch` (bin "api-switch" test) generated 12 warnings
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.21s
[INFO] [stderr]      Running unittests src/main.rs (/opt/rustwide/target/debug/deps/api_switch-42fcf4d7bc4954d3)
[INFO] [stdout] 
[INFO] [stdout] running 66 tests
[INFO] [stdout] test anthropic::tests::test_deserialize_anthropic_request_with_stream ... ok
[INFO] [stdout] test anthropic::tests::test_deserialize_request_with_tools ... ok
[INFO] [stdout] test anthropic::tests::test_deserialize_system_as_string ... ok
[INFO] [stdout] test anthropic::tests::test_deserialize_tool_choice_variants ... ok
[INFO] [stdout] test anthropic::tests::test_deserialize_tool_use_content_block ... ok
[INFO] [stdout] test anthropic::tests::test_serialize_response_with_tool_use ... ok
[INFO] [stdout] test anthropic::tests::test_deserialize_tool_result_content_block ... ok
[INFO] [stdout] test config::tests::test_base_url_default ... ok
[INFO] [stdout] test config::tests::test_base_url_from_config ... ok
[INFO] [stdout] test error::tests::test_auth_error_returns_401 ... ok
[INFO] [stdout] test error::tests::test_rate_limit_error_returns_429 ... ok
[INFO] [stdout] test openai::tests::test_deserialize_openai_response ... ok
[INFO] [stdout] test openai::tests::test_deserialize_openai_response_with_tool_calls ... ok
[INFO] [stdout] test openai::tests::test_serialize_openai_request ... ok
[INFO] [stdout] test openai::tests::test_deserialize_sse_chunk_with_tool_calls ... ok
[INFO] [stdout] test openai::tests::test_serialize_openai_request_with_tools ... ok
[INFO] [stdout] test transform::headers::tests::test_connection_case_insensitive_and_whitespace ... ok
[INFO] [stdout] test transform::headers::tests::test_empty_incoming_headers ... ok
[INFO] [stdout] test transform::headers::tests::test_filters_all_skip_headers ... ok
[INFO] [stdout] test transform::headers::tests::test_filters_authorization_header ... ok
[INFO] [stdout] test transform::headers::tests::test_filters_connection_declared_hop_by_hop_headers ... ok
[INFO] [stdout] test transform::headers::tests::test_invalid_app_key_returns_error ... ok
[INFO] [stdout] test transform::headers::tests::test_invalid_app_sign_returns_error ... ok
[INFO] [stdout] test transform::headers::tests::test_preserves_non_skip_headers ... ok
[INFO] [stdout] test transform::request::tests::test_convert_assistant_tool_use_only_no_text ... ok
[INFO] [stdout] test transform::request::tests::test_convert_basic_request ... ok
[INFO] [stdout] test transform::request::tests::test_convert_image_content_block ... ok
[INFO] [stdout] test transform::request::tests::test_convert_multiple_tool_results_with_text ... ok
[INFO] [stdout] test transform::request::tests::test_convert_no_system ... ok
[INFO] [stdout] test anthropic::tests::test_deserialize_anthropic_request_with_string_content ... ok
[INFO] [stdout] test transform::request::tests::test_convert_stop_sequences ... ok
[INFO] [stdout] test openai::tests::test_deserialize_sse_chunk_with_delta ... ok
[INFO] [stdout] test transform::request::tests::test_convert_stream_flag ... ok
[INFO] [stdout] test transform::headers::tests::test_adds_app_key_and_app_sign ... ok
[INFO] [stdout] test transform::request::tests::test_convert_tool_choice_any ... ok
[INFO] [stdout] test transform::request::tests::test_convert_tool_choice_auto ... ok
[INFO] [stdout] test transform::request::tests::test_convert_tool_choice_specific_tool ... ok
[INFO] [stdout] test transform::request::tests::test_convert_system_content_list ... ok
[INFO] [stdout] test transform::request::tests::test_convert_tool_result_in_user_message ... ok
[INFO] [stdout] test transform::request::tests::test_convert_tool_use_in_assistant_message ... ok
[INFO] [stdout] test transform::request::tests::test_convert_tools_definition ... ok
[INFO] [stdout] test transform::response::tests::test_convert_response_usage ... ok
[INFO] [stdout] test transform::response::tests::test_convert_response_content ... ok
[INFO] [stdout] test transform::response::tests::test_convert_response_stop_reason_end_turn ... ok
[INFO] [stdout] test transform::response::tests::test_convert_response_with_text_and_tool_calls ... ok
[INFO] [stdout] test transform::response::tests::test_convert_response_with_tool_calls ... ok
[INFO] [stdout] test transform::response::tests::test_map_openai_error_auth ... ok
[INFO] [stdout] test transform::request::tests::test_top_k_is_dropped ... ok
[INFO] [stdout] test transform::response::tests::test_map_openai_error_rate_limit ... ok
[INFO] [stdout] test transform::response::tests::test_map_openai_error_server_error ... ok
[INFO] [stdout] test transform::response::tests::test_map_stop_reason_all_mappings ... ok
[INFO] [stdout] test transform::response::tests::test_map_stop_reason_tool_calls ... ok
[INFO] [stdout] test transform::stream::tests::test_content_delta_emits_delta_event ... ok
[INFO] [stdout] test transform::stream::tests::test_finish_reason_emits_stop_events ... ok
[INFO] [stdout] test transform::stream::tests::test_stream_full_text_sequence ... ok
[INFO] [stdout] test transform::stream::tests::test_stream_multiple_tool_calls ... ok
[INFO] [stdout] test transform::stream::tests::test_stream_state_new ... ok
[INFO] [stdout] test transform::stream::tests::test_stream_tool_call_arguments_delta ... ok
[INFO] [stdout] test transform::stream::tests::test_stream_tool_call_finish ... ok
[INFO] [stdout] test transform::stream::tests::test_stream_tool_call_start ... ok
[INFO] [stdout] test transform::stream::tests::test_first_chunk_with_role_emits_start_and_block_start ... ok
[INFO] [stdout] test transform::stream::tests::test_format_sse_ping ... ok
[INFO] [stdout] test transform::stream::tests::test_map_stop_reason_mappings ... ok
[INFO] [stdout] test handler::tests::test_chat_completions_function_calling_proxy ... ok
[INFO] [stdout] test handler::tests::test_chat_completions_sets_content_type_on_outgoing_request ... ok
[INFO] [stdout] test handler::tests::test_messages_streaming_returns_sse_events ... ok
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 66 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.42s
[INFO] [stdout] 
[INFO] running `Command { std: "docker" "inspect" "250ae136d3c36b4427a139447f0b5a3a69ccb421b05310cea99f98961ba3e893", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "250ae136d3c36b4427a139447f0b5a3a69ccb421b05310cea99f98961ba3e893", kill_on_drop: false }`
[INFO] [stdout] 250ae136d3c36b4427a139447f0b5a3a69ccb421b05310cea99f98961ba3e893
