[INFO] fetching crate openai-rs-api 1.1.3... [INFO] testing openai-rs-api-1.1.3 against master#caccb4d0368bd918ef6668af8e13834d07040417 for pr-146098-1 [INFO] extracting crate openai-rs-api 1.1.3 into /workspace/builds/worker-2-tc1/source [INFO] started tweaking crates.io crate openai-rs-api 1.1.3 [INFO] finished tweaking crates.io crate openai-rs-api 1.1.3 [INFO] tweaked toml for crates.io crate openai-rs-api 1.1.3 written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate openai-rs-api 1.1.3 on toolchain caccb4d0368bd918ef6668af8e13834d07040417 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 183 packages to latest compatible versions [INFO] [stderr] Adding rustls v0.20.9 (available: v0.23.32) [INFO] [stderr] Adding webpki-roots v0.23.1 (available: v1.0.2) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded webpki v0.22.4 [INFO] [stderr] Downloaded actix-tls v3.4.0 [INFO] [stderr] Downloaded webpki-roots v0.23.1 [INFO] [stderr] Downloaded awc v3.8.0 [INFO] [stderr] Downloaded rustls v0.20.9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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" "+caccb4d0368bd918ef6668af8e13834d07040417" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ab6d53e086db841664a7bddd2ba0220b200c8bd830be9a14f98b72bc423c4a3b [INFO] running `Command { std: "docker" "start" "-a" "ab6d53e086db841664a7bddd2ba0220b200c8bd830be9a14f98b72bc423c4a3b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ab6d53e086db841664a7bddd2ba0220b200c8bd830be9a14f98b72bc423c4a3b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ab6d53e086db841664a7bddd2ba0220b200c8bd830be9a14f98b72bc423c4a3b", kill_on_drop: false }` [INFO] [stdout] ab6d53e086db841664a7bddd2ba0220b200c8bd830be9a14f98b72bc423c4a3b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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" "+caccb4d0368bd918ef6668af8e13834d07040417" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3c860ed0ca681de0ac0d3c70a784448222bbff9b7bcdcc48362d14018e841029 [INFO] running `Command { std: "docker" "start" "-a" "3c860ed0ca681de0ac0d3c70a784448222bbff9b7bcdcc48362d14018e841029", kill_on_drop: false }` [INFO] [stderr] Compiling jobserver v0.1.34 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling rustls v0.20.9 [INFO] [stderr] Compiling rand_core v0.9.3 [INFO] [stderr] Compiling time-core v0.1.6 [INFO] [stderr] Compiling parking_lot v0.12.4 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling deranged v0.5.4 [INFO] [stderr] Compiling cc v1.2.39 [INFO] [stderr] Compiling time-macros v0.2.24 [INFO] [stderr] Compiling rand_chacha v0.9.0 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling brotli v8.0.2 [INFO] [stderr] Compiling rand v0.9.2 [INFO] [stderr] Compiling bytestring v1.5.0 [INFO] [stderr] Compiling time v0.3.44 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling zstd-sys v2.0.16+zstd.1.5.7 [INFO] [stderr] Compiling cookie v0.16.2 [INFO] [stderr] Compiling serde_json v1.0.145 [INFO] [stderr] Compiling darling_core v0.21.3 [INFO] [stderr] Compiling rustls-webpki v0.100.3 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling derive_more-impl v2.0.1 [INFO] [stderr] Compiling webpki-roots v0.23.1 [INFO] [stderr] Compiling tokio v1.47.1 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Compiling webpki v0.22.4 [INFO] [stderr] Compiling sct v0.7.1 [INFO] [stderr] Compiling darling_macro v0.21.3 [INFO] [stderr] Compiling darling v0.21.3 [INFO] [stderr] Compiling webpki-roots v0.22.6 [INFO] [stderr] Compiling serde_with_macros v3.14.1 [INFO] [stderr] Compiling derive_more v2.0.1 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling serde_with v3.14.1 [INFO] [stderr] Compiling zstd-safe v7.2.4 [INFO] [stderr] Compiling zstd v0.13.3 [INFO] [stderr] Compiling tokio-util v0.7.16 [INFO] [stderr] Compiling actix-rt v2.11.0 [INFO] [stderr] Compiling tokio-rustls v0.23.4 [INFO] [stderr] Compiling actix-codec v0.5.2 [INFO] [stderr] Compiling h2 v0.3.27 [INFO] [stderr] Compiling actix-tls v3.4.0 [INFO] [stderr] Compiling actix-http v3.11.1 [INFO] [stderr] Compiling awc v3.8.0 [INFO] [stderr] Compiling openai-rs-api v1.1.3 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 38s [INFO] running `Command { std: "docker" "inspect" "3c860ed0ca681de0ac0d3c70a784448222bbff9b7bcdcc48362d14018e841029", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3c860ed0ca681de0ac0d3c70a784448222bbff9b7bcdcc48362d14018e841029", kill_on_drop: false }` [INFO] [stdout] 3c860ed0ca681de0ac0d3c70a784448222bbff9b7bcdcc48362d14018e841029 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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" "+caccb4d0368bd918ef6668af8e13834d07040417" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ee61510e99c5f8d80904d2297d88bb1dedcbd6121f6bce25f310ccef144509fc [INFO] running `Command { std: "docker" "start" "-a" "ee61510e99c5f8d80904d2297d88bb1dedcbd6121f6bce25f310ccef144509fc", kill_on_drop: false }` [INFO] [stderr] Compiling openai-rs-api v1.1.3 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 2.56s [INFO] running `Command { std: "docker" "inspect" "ee61510e99c5f8d80904d2297d88bb1dedcbd6121f6bce25f310ccef144509fc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ee61510e99c5f8d80904d2297d88bb1dedcbd6121f6bce25f310ccef144509fc", kill_on_drop: false }` [INFO] [stdout] ee61510e99c5f8d80904d2297d88bb1dedcbd6121f6bce25f310ccef144509fc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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" "+caccb4d0368bd918ef6668af8e13834d07040417" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 0c03cbe80fb8f64588ca1def0ddf8405afe94dc049075fdbfe3ecd4eb3e7a532 [INFO] running `Command { std: "docker" "start" "-a" "0c03cbe80fb8f64588ca1def0ddf8405afe94dc049075fdbfe3ecd4eb3e7a532", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.19s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/openai_rs_api-e2d9e6ba4e48f5b7) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests openai_rs_api [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stdout] test src/core/models.rs - core::models::completions::CompletionParameters::model (line 172) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/core/models.rs - core::models::completions::CompletionParameters::model (line 172) stdout ---- [INFO] [stdout] error[E0308]: arguments to this function are incorrect [INFO] [stdout] --> src/core/models.rs:179:18 [INFO] [stdout] | [INFO] [stdout] 9 | let openai = OpenAI::new("your_api_key", "your_organization_id"); [INFO] [stdout] | ^^^^^^^^^^^ -------------- ---------------------- expected `String`, found `&str` [INFO] [stdout] | | [INFO] [stdout] | expected `String`, found `&str` [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/core/mod.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn new(token: String, oia_org: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] help: try using a conversion method [INFO] [stdout] | [INFO] [stdout] 9 | let openai = OpenAI::new("your_api_key".to_string(), "your_organization_id"); [INFO] [stdout] | ++++++++++++ [INFO] [stdout] help: try using a conversion method [INFO] [stdout] | [INFO] [stdout] 9 | let openai = OpenAI::new("your_api_key", "your_organization_id".to_string()); [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in an async block that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/core/models.rs:180:55 [INFO] [stdout] | [INFO] [stdout] 7 | #[tokio::main] [INFO] [stdout] | -------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 10 | let models: ModelList = openai.list_models().await?; [INFO] [stdout] | ^ cannot use the `?` operator in an async block that returns `()` [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/core/models.rs:181:5 [INFO] [stdout] | [INFO] [stdout] 8 | async fn main() -> Result<(), Box> { [INFO] [stdout] | -------------------------------------- expected `Result<(), Box<(dyn std::error::Error + 'static)>>` because of return type [INFO] [stdout] ... [INFO] [stdout] 11 | println!("{:#?}", models); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Result<(), Box>`, found `()` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Result<(), Box<(dyn std::error::Error + 'static)>>` [INFO] [stdout] found unit type `()` [INFO] [stdout] help: try adding an expression at the end of the block [INFO] [stdout] | [INFO] [stdout] 11 ~ println!("{:#?}", models);; [INFO] [stdout] 12 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/core/models.rs - core::models::completions::CompletionParameters::model (line 172) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.27s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "0c03cbe80fb8f64588ca1def0ddf8405afe94dc049075fdbfe3ecd4eb3e7a532", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0c03cbe80fb8f64588ca1def0ddf8405afe94dc049075fdbfe3ecd4eb3e7a532", kill_on_drop: false }` [INFO] [stdout] 0c03cbe80fb8f64588ca1def0ddf8405afe94dc049075fdbfe3ecd4eb3e7a532