[INFO] cloning repository https://github.com/ssword/rust-response [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ssword/rust-response" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fssword%2Frust-response", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fssword%2Frust-response'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 411eebc99ac1b4df4e8b6f0f67d7e5d87dcc4844 [INFO] checking ssword/rust-response/411eebc99ac1b4df4e8b6f0f67d7e5d87dcc4844 against master#0b278a539440be291466ea463a9b6310eaf4d7bb for pr-145108-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fssword%2Frust-response" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/ssword/rust-response [INFO] removed 0 missing examples [INFO] finished tweaking git repo https://github.com/ssword/rust-response [INFO] tweaked toml for git repo https://github.com/ssword/rust-response written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/ssword/rust-response on toolchain 0b278a539440be291466ea463a9b6310eaf4d7bb [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+0b278a539440be291466ea463a9b6310eaf4d7bb" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/ssword/rust-response 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" "+0b278a539440be291466ea463a9b6310eaf4d7bb" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded wiremock v0.6.4 [INFO] [stderr] Downloaded backon v0.4.4 [INFO] [stderr] Downloaded value-trait v0.8.1 [INFO] [stderr] Downloaded simd-json v0.13.11 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+0b278a539440be291466ea463a9b6310eaf4d7bb" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7041acc982a47e4a709d9a0151402eaa1a0c4898714af18e67daa4d20886b3a7 [INFO] running `Command { std: "docker" "start" "-a" "7041acc982a47e4a709d9a0151402eaa1a0c4898714af18e67daa4d20886b3a7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7041acc982a47e4a709d9a0151402eaa1a0c4898714af18e67daa4d20886b3a7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7041acc982a47e4a709d9a0151402eaa1a0c4898714af18e67daa4d20886b3a7", kill_on_drop: false }` [INFO] [stdout] 7041acc982a47e4a709d9a0151402eaa1a0c4898714af18e67daa4d20886b3a7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+0b278a539440be291466ea463a9b6310eaf4d7bb" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5183f68c9f48270743e9cb0a8c77982e0af748842b2ef427f65f8249ca2a05cd [INFO] running `Command { std: "docker" "start" "-a" "5183f68c9f48270743e9cb0a8c77982e0af748842b2ef427f65f8249ca2a05cd", kill_on_drop: false }` [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling rustls v0.23.29 [INFO] [stderr] Checking tokio v1.46.1 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Checking serde v1.0.219 [INFO] [stderr] Checking rustls-webpki v0.103.4 [INFO] [stderr] Compiling pin-project-internal v1.1.10 [INFO] [stderr] Checking num_cpus v1.17.0 [INFO] [stderr] Checking deadpool-runtime v0.1.4 [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 pin-project v1.1.10 [INFO] [stderr] Checking icu_collections v2.0.0 [INFO] [stderr] Checking icu_locale_core v2.0.0 [INFO] [stderr] Checking icu_provider v2.0.0 [INFO] [stderr] Checking icu_normalizer v2.0.0 [INFO] [stderr] Checking icu_properties v2.0.1 [INFO] [stderr] Checking futures-executor v0.3.31 [INFO] [stderr] Checking idna_adapter v1.2.1 [INFO] [stderr] Checking futures v0.3.31 [INFO] [stderr] Checking idna v1.0.3 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking url v2.5.4 [INFO] [stderr] Checking assert-json-diff v2.0.2 [INFO] [stderr] Checking tokio-util v0.7.15 [INFO] [stderr] Checking tokio-rustls v0.26.2 [INFO] [stderr] Checking tower v0.5.2 [INFO] [stderr] Checking tokio-stream v0.1.17 [INFO] [stderr] Checking deadpool v0.10.0 [INFO] [stderr] Checking backon v0.4.4 [INFO] [stderr] Checking tokio-test v0.4.4 [INFO] [stderr] Checking tower-http v0.6.6 [INFO] [stderr] Checking h2 v0.4.11 [INFO] [stderr] Checking hyper v1.6.0 [INFO] [stderr] Checking hyper-util v0.1.15 [INFO] [stderr] Checking hyper-rustls v0.27.7 [INFO] [stderr] Checking wiremock v0.6.4 [INFO] [stderr] Checking reqwest v0.12.22 [INFO] [stderr] Checking openai-responses v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: generic parameters may not be used in const operations [INFO] [stdout] --> src/types/const_models.rs:281:17 [INFO] [stdout] | [INFO] [stdout] 281 | [(); if M::SUPPORTS_REASONING { 1 } else { 0 }]:, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ cannot perform const operation using `M` [INFO] [stdout] | [INFO] [stdout] = note: type parameters may not be used in const expressions [INFO] [stdout] = help: add `#![feature(generic_const_exprs)]` to allow generic const expressions [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: generic parameters may not be used in const operations [INFO] [stdout] --> src/types/const_models.rs:281:17 [INFO] [stdout] | [INFO] [stdout] 281 | [(); if M::SUPPORTS_REASONING { 1 } else { 0 }]:, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ cannot perform const operation using `M` [INFO] [stdout] | [INFO] [stdout] = note: type parameters may not be used in const expressions [INFO] [stdout] = help: add `#![feature(generic_const_exprs)]` to allow generic const expressions [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: generic parameters may not be used in const operations [INFO] [stdout] --> src/types/const_models.rs:290:17 [INFO] [stdout] | [INFO] [stdout] 290 | [(); if M::SUPPORTS_VISION { 1 } else { 0 }]:, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ cannot perform const operation using `M` [INFO] [stdout] | [INFO] [stdout] = note: type parameters may not be used in const expressions [INFO] [stdout] = help: add `#![feature(generic_const_exprs)]` to allow generic const expressions [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: generic parameters may not be used in const operations [INFO] [stdout] --> src/types/const_models.rs:290:17 [INFO] [stdout] | [INFO] [stdout] 290 | [(); if M::SUPPORTS_VISION { 1 } else { 0 }]:, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ cannot perform const operation using `M` [INFO] [stdout] | [INFO] [stdout] = note: type parameters may not be used in const expressions [INFO] [stdout] = help: add `#![feature(generic_const_exprs)]` to allow generic const expressions [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: generic parameters may not be used in const operations [INFO] [stdout] --> src/types/const_models.rs:299:17 [INFO] [stdout] | [INFO] [stdout] 299 | [(); if M::SUPPORTS_JSON { 1 } else { 0 }]:, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ cannot perform const operation using `M` [INFO] [stdout] | [INFO] [stdout] = note: type parameters may not be used in const expressions [INFO] [stdout] = help: add `#![feature(generic_const_exprs)]` to allow generic const expressions [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: generic parameters may not be used in const operations [INFO] [stdout] --> src/types/const_models.rs:299:17 [INFO] [stdout] | [INFO] [stdout] 299 | [(); if M::SUPPORTS_JSON { 1 } else { 0 }]:, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ cannot perform const operation using `M` [INFO] [stdout] | [INFO] [stdout] = note: type parameters may not be used in const expressions [INFO] [stdout] = help: add `#![feature(generic_const_exprs)]` to allow generic const expressions [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: generic parameters may not be used in const operations [INFO] [stdout] --> src/types/const_models.rs:308:17 [INFO] [stdout] | [INFO] [stdout] 308 | [(); if M::SUPPORTS_FUNCTIONS { 1 } else { 0 }]:, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ cannot perform const operation using `M` [INFO] [stdout] | [INFO] [stdout] = note: type parameters may not be used in const expressions [INFO] [stdout] = help: add `#![feature(generic_const_exprs)]` to allow generic const expressions [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: generic parameters may not be used in const operations [INFO] [stdout] --> src/types/const_models.rs:308:17 [INFO] [stdout] | [INFO] [stdout] 308 | [(); if M::SUPPORTS_FUNCTIONS { 1 } else { 0 }]:, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ cannot perform const operation using `M` [INFO] [stdout] | [INFO] [stdout] = note: type parameters may not be used in const expressions [INFO] [stdout] = help: add `#![feature(generic_const_exprs)]` to allow generic const expressions [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0107]: type alias takes 1 generic argument but 2 generic arguments were supplied [INFO] [stdout] --> src/types/typed_builder.rs:206:43 [INFO] [stdout] | [INFO] [stdout] 206 | pub fn top_p(mut self, top_p: f64) -> Result { [INFO] [stdout] | ^^^^^^ ----------------- help: remove the unnecessary generic argument [INFO] [stdout] | | [INFO] [stdout] | expected 1 generic argument [INFO] [stdout] | [INFO] [stdout] note: type alias defined here, with 1 generic parameter: `T` [INFO] [stdout] --> src/error.rs:145:10 [INFO] [stdout] | [INFO] [stdout] 145 | pub type Result = std::result::Result; [INFO] [stdout] | ^^^^^^ - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0107]: type alias takes 1 generic argument but 2 generic arguments were supplied [INFO] [stdout] --> src/types/typed_builder.rs:215:57 [INFO] [stdout] | [INFO] [stdout] 215 | pub fn frequency_penalty(mut self, penalty: f64) -> Result { [INFO] [stdout] | ^^^^^^ ----------------- help: remove the unnecessary generic argument [INFO] [stdout] | | [INFO] [stdout] | expected 1 generic argument [INFO] [stdout] | [INFO] [stdout] note: type alias defined here, with 1 generic parameter: `T` [INFO] [stdout] --> src/error.rs:145:10 [INFO] [stdout] | [INFO] [stdout] 145 | pub type Result = std::result::Result; [INFO] [stdout] | ^^^^^^ - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0107]: type alias takes 1 generic argument but 2 generic arguments were supplied [INFO] [stdout] --> src/types/typed_builder.rs:224:56 [INFO] [stdout] | [INFO] [stdout] 224 | pub fn presence_penalty(mut self, penalty: f64) -> Result { [INFO] [stdout] | ^^^^^^ ----------------- help: remove the unnecessary generic argument [INFO] [stdout] | | [INFO] [stdout] | expected 1 generic argument [INFO] [stdout] | [INFO] [stdout] note: type alias defined here, with 1 generic parameter: `T` [INFO] [stdout] --> src/error.rs:145:10 [INFO] [stdout] | [INFO] [stdout] 145 | pub type Result = std::result::Result; [INFO] [stdout] | ^^^^^^ - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0107]: type alias takes 1 generic argument but 2 generic arguments were supplied [INFO] [stdout] --> src/types/typed_builder.rs:251:30 [INFO] [stdout] | [INFO] [stdout] 251 | pub fn validate(self) -> Result, ValidationError> { [INFO] [stdout] | ^^^^^^ expected 1 generic argument ----------------- help: remove the unnecessary generic argument [INFO] [stdout] | [INFO] [stdout] note: type alias defined here, with 1 generic parameter: `T` [INFO] [stdout] --> src/error.rs:145:10 [INFO] [stdout] | [INFO] [stdout] 145 | pub type Result = std::result::Result; [INFO] [stdout] | ^^^^^^ - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0107]: type alias takes 1 generic argument but 2 generic arguments were supplied [INFO] [stdout] --> src/types/typed_builder.rs:262:27 [INFO] [stdout] | [INFO] [stdout] 262 | pub fn build(self) -> Result { [INFO] [stdout] | ^^^^^^ ----------------- help: remove the unnecessary generic argument [INFO] [stdout] | | [INFO] [stdout] | expected 1 generic argument [INFO] [stdout] | [INFO] [stdout] note: type alias defined here, with 1 generic parameter: `T` [INFO] [stdout] --> src/error.rs:145:10 [INFO] [stdout] | [INFO] [stdout] 145 | pub type Result = std::result::Result; [INFO] [stdout] | ^^^^^^ - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0107]: type alias takes 1 generic argument but 2 generic arguments were supplied [INFO] [stdout] --> src/types/typed_builder.rs:269:27 [INFO] [stdout] | [INFO] [stdout] 269 | pub fn build(self) -> Result { [INFO] [stdout] | ^^^^^^ ----------------- help: remove the unnecessary generic argument [INFO] [stdout] | | [INFO] [stdout] | expected 1 generic argument [INFO] [stdout] | [INFO] [stdout] note: type alias defined here, with 1 generic parameter: `T` [INFO] [stdout] --> src/error.rs:145:10 [INFO] [stdout] | [INFO] [stdout] 145 | pub type Result = std::result::Result; [INFO] [stdout] | ^^^^^^ - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0107]: type alias takes 1 generic argument but 2 generic arguments were supplied [INFO] [stdout] --> src/types/typed_builder.rs:206:43 [INFO] [stdout] | [INFO] [stdout] 206 | pub fn top_p(mut self, top_p: f64) -> Result { [INFO] [stdout] | ^^^^^^ ----------------- help: remove the unnecessary generic argument [INFO] [stdout] | | [INFO] [stdout] | expected 1 generic argument [INFO] [stdout] | [INFO] [stdout] note: type alias defined here, with 1 generic parameter: `T` [INFO] [stdout] --> src/error.rs:145:10 [INFO] [stdout] | [INFO] [stdout] 145 | pub type Result = std::result::Result; [INFO] [stdout] | ^^^^^^ - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0107]: type alias takes 1 generic argument but 2 generic arguments were supplied [INFO] [stdout] --> src/types/typed_builder.rs:215:57 [INFO] [stdout] | [INFO] [stdout] 215 | pub fn frequency_penalty(mut self, penalty: f64) -> Result { [INFO] [stdout] | ^^^^^^ ----------------- help: remove the unnecessary generic argument [INFO] [stdout] | | [INFO] [stdout] | expected 1 generic argument [INFO] [stdout] | [INFO] [stdout] note: type alias defined here, with 1 generic parameter: `T` [INFO] [stdout] --> src/error.rs:145:10 [INFO] [stdout] | [INFO] [stdout] 145 | pub type Result = std::result::Result; [INFO] [stdout] | ^^^^^^ - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0107]: type alias takes 1 generic argument but 2 generic arguments were supplied [INFO] [stdout] --> src/types/typed_builder.rs:224:56 [INFO] [stdout] | [INFO] [stdout] 224 | pub fn presence_penalty(mut self, penalty: f64) -> Result { [INFO] [stdout] | ^^^^^^ ----------------- help: remove the unnecessary generic argument [INFO] [stdout] | | [INFO] [stdout] | expected 1 generic argument [INFO] [stdout] | [INFO] [stdout] note: type alias defined here, with 1 generic parameter: `T` [INFO] [stdout] --> src/error.rs:145:10 [INFO] [stdout] | [INFO] [stdout] 145 | pub type Result = std::result::Result; [INFO] [stdout] | ^^^^^^ - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0107]: type alias takes 1 generic argument but 2 generic arguments were supplied [INFO] [stdout] --> src/types/typed_builder.rs:251:30 [INFO] [stdout] | [INFO] [stdout] 251 | pub fn validate(self) -> Result, ValidationError> { [INFO] [stdout] | ^^^^^^ expected 1 generic argument ----------------- help: remove the unnecessary generic argument [INFO] [stdout] | [INFO] [stdout] note: type alias defined here, with 1 generic parameter: `T` [INFO] [stdout] --> src/error.rs:145:10 [INFO] [stdout] | [INFO] [stdout] 145 | pub type Result = std::result::Result; [INFO] [stdout] | ^^^^^^ - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0107]: type alias takes 1 generic argument but 2 generic arguments were supplied [INFO] [stdout] --> src/types/typed_builder.rs:262:27 [INFO] [stdout] | [INFO] [stdout] 262 | pub fn build(self) -> Result { [INFO] [stdout] | ^^^^^^ ----------------- help: remove the unnecessary generic argument [INFO] [stdout] | | [INFO] [stdout] | expected 1 generic argument [INFO] [stdout] | [INFO] [stdout] note: type alias defined here, with 1 generic parameter: `T` [INFO] [stdout] --> src/error.rs:145:10 [INFO] [stdout] | [INFO] [stdout] 145 | pub type Result = std::result::Result; [INFO] [stdout] | ^^^^^^ - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0107]: type alias takes 1 generic argument but 2 generic arguments were supplied [INFO] [stdout] --> src/types/typed_builder.rs:269:27 [INFO] [stdout] | [INFO] [stdout] 269 | pub fn build(self) -> Result { [INFO] [stdout] | ^^^^^^ ----------------- help: remove the unnecessary generic argument [INFO] [stdout] | | [INFO] [stdout] | expected 1 generic argument [INFO] [stdout] | [INFO] [stdout] note: type alias defined here, with 1 generic parameter: `T` [INFO] [stdout] --> src/error.rs:145:10 [INFO] [stdout] | [INFO] [stdout] 145 | pub type Result = std::result::Result; [INFO] [stdout] | ^^^^^^ - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/client.rs:103:42 [INFO] [stdout] | [INFO] [stdout] 103 | reqwest::Error::from(std::io::Error::new( [INFO] [stdout] | _____________________--------------------_^ [INFO] [stdout] | | | [INFO] [stdout] | | arguments to this function are incorrect [INFO] [stdout] 104 | | std::io::ErrorKind::Other, [INFO] [stdout] 105 | | "Failed to clone request" [INFO] [stdout] 106 | | )) [INFO] [stdout] | |_____________________^ expected `reqwest::Error`, found `std::io::Error` [INFO] [stdout] | [INFO] [stdout] = note: `std::io::Error` and `reqwest::Error` have similar names, but are actually distinct types [INFO] [stdout] note: `std::io::Error` is defined in crate `std` [INFO] [stdout] --> /rustc/0b278a539440be291466ea463a9b6310eaf4d7bb/library/std/src/io/error.rs:65:1 [INFO] [stdout] note: `reqwest::Error` is defined in crate `reqwest` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/reqwest-0.12.22/src/error.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct Error { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /rustc/0b278a539440be291466ea463a9b6310eaf4d7bb/library/core/src/convert/mod.rs:592:8 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/client.rs:103:42 [INFO] [stdout] | [INFO] [stdout] 103 | reqwest::Error::from(std::io::Error::new( [INFO] [stdout] | _____________________--------------------_^ [INFO] [stdout] | | | [INFO] [stdout] | | arguments to this function are incorrect [INFO] [stdout] 104 | | std::io::ErrorKind::Other, [INFO] [stdout] 105 | | "Failed to clone request" [INFO] [stdout] 106 | | )) [INFO] [stdout] | |_____________________^ expected `reqwest::Error`, found `std::io::Error` [INFO] [stdout] | [INFO] [stdout] = note: `std::io::Error` and `reqwest::Error` have similar names, but are actually distinct types [INFO] [stdout] note: `std::io::Error` is defined in crate `std` [INFO] [stdout] --> /rustc/0b278a539440be291466ea463a9b6310eaf4d7bb/library/std/src/io/error.rs:65:1 [INFO] [stdout] note: `reqwest::Error` is defined in crate `reqwest` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/reqwest-0.12.22/src/error.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct Error { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /rustc/0b278a539440be291466ea463a9b6310eaf4d7bb/library/core/src/convert/mod.rs:592:8 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/types/typed_builder.rs:208:24 [INFO] [stdout] | [INFO] [stdout] 208 | return Err(ValidationError::InvalidTopP(top_p)); [INFO] [stdout] | --- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `OpenAIError`, found `ValidationError` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] help: the type constructed contains `request::ValidationError` due to the type of the argument passed [INFO] [stdout] --> src/types/typed_builder.rs:208:20 [INFO] [stdout] | [INFO] [stdout] 208 | return Err(ValidationError::InvalidTopP(top_p)); [INFO] [stdout] | ^^^^-----------------------------------^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Err` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/0b278a539440be291466ea463a9b6310eaf4d7bb/library/core/src/result.rs:559:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/types/typed_builder.rs:208:24 [INFO] [stdout] | [INFO] [stdout] 208 | return Err(ValidationError::InvalidTopP(top_p)); [INFO] [stdout] | --- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `OpenAIError`, found `ValidationError` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] help: the type constructed contains `request::ValidationError` due to the type of the argument passed [INFO] [stdout] --> src/types/typed_builder.rs:208:20 [INFO] [stdout] | [INFO] [stdout] 208 | return Err(ValidationError::InvalidTopP(top_p)); [INFO] [stdout] | ^^^^-----------------------------------^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Err` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/0b278a539440be291466ea463a9b6310eaf4d7bb/library/core/src/result.rs:559:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/types/typed_builder.rs:217:24 [INFO] [stdout] | [INFO] [stdout] 217 | return Err(ValidationError::InvalidFrequencyPenalty(penalty)); [INFO] [stdout] | --- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `OpenAIError`, found `ValidationError` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] help: the type constructed contains `request::ValidationError` due to the type of the argument passed [INFO] [stdout] --> src/types/typed_builder.rs:217:20 [INFO] [stdout] | [INFO] [stdout] 217 | return Err(ValidationError::InvalidFrequencyPenalty(penalty)); [INFO] [stdout] | ^^^^-------------------------------------------------^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Err` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/0b278a539440be291466ea463a9b6310eaf4d7bb/library/core/src/result.rs:559:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/types/typed_builder.rs:226:24 [INFO] [stdout] | [INFO] [stdout] 226 | return Err(ValidationError::InvalidPresencePenalty(penalty)); [INFO] [stdout] | --- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `OpenAIError`, found `ValidationError` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] help: the type constructed contains `request::ValidationError` due to the type of the argument passed [INFO] [stdout] --> src/types/typed_builder.rs:226:20 [INFO] [stdout] | [INFO] [stdout] 226 | return Err(ValidationError::InvalidPresencePenalty(penalty)); [INFO] [stdout] | ^^^^------------------------------------------------^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Err` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/0b278a539440be291466ea463a9b6310eaf4d7bb/library/core/src/result.rs:559:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/types/typed_builder.rs:217:24 [INFO] [stdout] | [INFO] [stdout] 217 | return Err(ValidationError::InvalidFrequencyPenalty(penalty)); [INFO] [stdout] | --- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `OpenAIError`, found `ValidationError` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] help: the type constructed contains `request::ValidationError` due to the type of the argument passed [INFO] [stdout] --> src/types/typed_builder.rs:217:20 [INFO] [stdout] | [INFO] [stdout] 217 | return Err(ValidationError::InvalidFrequencyPenalty(penalty)); [INFO] [stdout] | ^^^^-------------------------------------------------^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Err` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/0b278a539440be291466ea463a9b6310eaf4d7bb/library/core/src/result.rs:559:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/types/typed_builder.rs:226:24 [INFO] [stdout] | [INFO] [stdout] 226 | return Err(ValidationError::InvalidPresencePenalty(penalty)); [INFO] [stdout] | --- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `OpenAIError`, found `ValidationError` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] help: the type constructed contains `request::ValidationError` due to the type of the argument passed [INFO] [stdout] --> src/types/typed_builder.rs:226:20 [INFO] [stdout] | [INFO] [stdout] 226 | return Err(ValidationError::InvalidPresencePenalty(penalty)); [INFO] [stdout] | ^^^^------------------------------------------------^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Err` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/0b278a539440be291466ea463a9b6310eaf4d7bb/library/core/src/result.rs:559:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `OpenAIError` [INFO] [stdout] --> src/types/typed_builder.rs:253:42 [INFO] [stdout] | [INFO] [stdout] 253 | self.request.validate_for_model()?; [INFO] [stdout] | --------------------^ the trait `From` is not implemented for `OpenAIError` [INFO] [stdout] | | [INFO] [stdout] | this can't be annotated with `?` because it has type `Result<_, request::ValidationError>` [INFO] [stdout] | [INFO] [stdout] note: `OpenAIError` needs to implement `From` [INFO] [stdout] --> src/error.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | pub enum OpenAIError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: alternatively, `request::ValidationError` needs to implement `Into` [INFO] [stdout] --> src/types/request.rs:28:1 [INFO] [stdout] | [INFO] [stdout] 28 | pub enum ValidationError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = help: the following other types implement trait `From`: [INFO] [stdout] `OpenAIError` implements `From` [INFO] [stdout] `OpenAIError` implements `From` [INFO] [stdout] `OpenAIError` implements `From` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `error::OpenAIError` [INFO] [stdout] --> src/types/typed_builder.rs:253:42 [INFO] [stdout] | [INFO] [stdout] 253 | self.request.validate_for_model()?; [INFO] [stdout] | --------------------^ the trait `From` is not implemented for `error::OpenAIError` [INFO] [stdout] | | [INFO] [stdout] | this can't be annotated with `?` because it has type `Result<_, request::ValidationError>` [INFO] [stdout] | [INFO] [stdout] note: `error::OpenAIError` needs to implement `From` [INFO] [stdout] --> src/error.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | pub enum OpenAIError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: alternatively, `request::ValidationError` needs to implement `Into` [INFO] [stdout] --> src/types/request.rs:28:1 [INFO] [stdout] | [INFO] [stdout] 28 | pub enum ValidationError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = help: the following other types implement trait `From`: [INFO] [stdout] `error::OpenAIError` implements `From` [INFO] [stdout] `error::OpenAIError` implements `From` [INFO] [stdout] `error::OpenAIError` implements `From` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0369]: binary operation `==` cannot be applied to type `const_models::TypedModel` [INFO] [stdout] --> src/types/const_models.rs:406:9 [INFO] [stdout] | [INFO] [stdout] 406 | assert_eq!(deserialized, model); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | const_models::TypedModel [INFO] [stdout] | const_models::TypedModel [INFO] [stdout] | [INFO] [stdout] note: an implementation of `PartialEq` might be missing for `const_models::O1` [INFO] [stdout] --> src/types/const_models.rs:212:1 [INFO] [stdout] | [INFO] [stdout] 212 | pub struct O1; [INFO] [stdout] | ^^^^^^^^^^^^^ must implement `PartialEq` [INFO] [stdout] = note: this error originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider annotating `const_models::O1` with `#[derive(PartialEq)]` [INFO] [stdout] | [INFO] [stdout] 212 + #[derive(PartialEq)] [INFO] [stdout] 213 | pub struct O1; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `const_models::O1` doesn't implement `Debug` [INFO] [stdout] --> src/types/const_models.rs:406:9 [INFO] [stdout] | [INFO] [stdout] 406 | assert_eq!(deserialized, model); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Debug` is not implemented for `const_models::O1` [INFO] [stdout] | [INFO] [stdout] = note: add `#[derive(Debug)]` to `const_models::O1` or manually `impl Debug for const_models::O1` [INFO] [stdout] = help: the trait `Debug` is implemented for `const_models::TypedModel` [INFO] [stdout] = note: this error originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider annotating `const_models::O1` with `#[derive(Debug)]` [INFO] [stdout] | [INFO] [stdout] 212 + #[derive(Debug)] [INFO] [stdout] 213 | pub struct O1; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `const_models::O1` doesn't implement `Debug` [INFO] [stdout] --> src/types/const_models.rs:406:9 [INFO] [stdout] | [INFO] [stdout] 406 | assert_eq!(deserialized, model); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Debug` is not implemented for `const_models::O1` [INFO] [stdout] | [INFO] [stdout] = note: add `#[derive(Debug)]` to `const_models::O1` or manually `impl Debug for const_models::O1` [INFO] [stdout] = help: the trait `Debug` is implemented for `const_models::TypedModel` [INFO] [stdout] = note: this error originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider annotating `const_models::O1` with `#[derive(Debug)]` [INFO] [stdout] | [INFO] [stdout] 212 + #[derive(Debug)] [INFO] [stdout] 213 | pub struct O1; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing local variable `json_str` [INFO] [stdout] --> src/json.rs:192:13 [INFO] [stdout] | [INFO] [stdout] 192 | serde_json::from_str(&json_str).map_err(OpenAIError::Json) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^---------^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | `json_str` is borrowed here [INFO] [stdout] | returns a value referencing data owned by the current function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `validated` [INFO] [stdout] --> src/types/typed_builder.rs:347:13 [INFO] [stdout] | [INFO] [stdout] 347 | let validated = builder.validate().unwrap(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_validated` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0107, E0277, E0308, E0515. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0107`. [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing local variable `json_str` [INFO] [stdout] --> src/json.rs:192:13 [INFO] [stdout] | [INFO] [stdout] 192 | serde_json::from_str(&json_str).map_err(OpenAIError::Json) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^---------^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | `json_str` is borrowed here [INFO] [stdout] | returns a value referencing data owned by the current function [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `openai-responses` (lib) due to 16 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] Some errors have detailed explanations: E0107, E0277, E0308, E0369, E0515. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0107`. [INFO] [stdout] [INFO] [stderr] error: could not compile `openai-responses` (lib test) due to 19 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "5183f68c9f48270743e9cb0a8c77982e0af748842b2ef427f65f8249ca2a05cd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5183f68c9f48270743e9cb0a8c77982e0af748842b2ef427f65f8249ca2a05cd", kill_on_drop: false }` [INFO] [stdout] 5183f68c9f48270743e9cb0a8c77982e0af748842b2ef427f65f8249ca2a05cd