[INFO] fetching crate gh_models 0.2.0... [INFO] testing gh_models-0.2.0 against try#dec9417b8611e34e787a3e4c37686b5131f9e5c5 for pr-154210-1 [INFO] extracting crate gh_models 0.2.0 into /workspace/builds/worker-1-tc2/source [INFO] started tweaking crates.io crate gh_models 0.2.0 [INFO] removed 0 missing examples [INFO] finished tweaking crates.io crate gh_models 0.2.0 [INFO] tweaked toml for crates.io crate gh_models 0.2.0 written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate gh_models 0.2.0 on toolchain dec9417b8611e34e787a3e4c37686b5131f9e5c5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate gh_models 0.2.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" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6397d2b564c59f1104cd31f09963e1d5a440a4cd934a659b56a165b3a3d2f4db [INFO] running `Command { std: "docker" "start" "-a" "6397d2b564c59f1104cd31f09963e1d5a440a4cd934a659b56a165b3a3d2f4db", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6397d2b564c59f1104cd31f09963e1d5a440a4cd934a659b56a165b3a3d2f4db", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6397d2b564c59f1104cd31f09963e1d5a440a4cd934a659b56a165b3a3d2f4db", kill_on_drop: false }` [INFO] [stdout] 6397d2b564c59f1104cd31f09963e1d5a440a4cd934a659b56a165b3a3d2f4db [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 986e9da49ac9d0c1e1772d58b93e08cb3032fa171340277d61cce9b2885d9563 [INFO] running `Command { std: "docker" "start" "-a" "986e9da49ac9d0c1e1772d58b93e08cb3032fa171340277d61cce9b2885d9563", kill_on_drop: false }` [INFO] [stderr] Compiling quote v1.0.41 [INFO] [stderr] Compiling unicode-ident v1.0.19 [INFO] [stderr] Compiling libc v0.2.176 [INFO] [stderr] Compiling stable_deref_trait v1.2.0 [INFO] [stderr] Compiling bytes v1.10.1 [INFO] [stderr] Compiling find-msvc-tools v0.1.3 [INFO] [stderr] Compiling litemap v0.8.0 [INFO] [stderr] Compiling writeable v0.6.1 [INFO] [stderr] Compiling icu_properties_data v2.0.1 [INFO] [stderr] Compiling tracing-core v0.1.34 [INFO] [stderr] Compiling hashbrown v0.16.0 [INFO] [stderr] Compiling bitflags v2.9.4 [INFO] [stderr] Compiling futures-sink v0.3.31 [INFO] [stderr] Compiling icu_normalizer_data v2.0.0 [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling slab v0.4.11 [INFO] [stderr] Compiling openssl-probe v0.1.6 [INFO] [stderr] Compiling log v0.4.28 [INFO] [stderr] Compiling proc-macro2 v1.0.101 [INFO] [stderr] Compiling serde_json v1.0.145 [INFO] [stderr] Compiling iri-string v0.7.8 [INFO] [stderr] Compiling cc v1.2.40 [INFO] [stderr] Compiling rustls-pki-types v1.12.0 [INFO] [stderr] Compiling encoding_rs v0.8.35 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling indexmap v2.11.4 [INFO] [stderr] Compiling http v1.3.1 [INFO] [stderr] Compiling parking_lot_core v0.9.12 [INFO] [stderr] Compiling mio v1.0.4 [INFO] [stderr] Compiling socket2 v0.6.0 [INFO] [stderr] Compiling signal-hook-registry v1.4.6 [INFO] [stderr] Compiling parking_lot v0.12.5 [INFO] [stderr] Compiling openssl-sys v0.9.109 [INFO] [stderr] Compiling http-body v1.0.1 [INFO] [stderr] Compiling http-body-util v0.1.3 [INFO] [stderr] Compiling synstructure v0.13.2 [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 openssl-macros v0.1.1 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling tokio v1.47.1 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Compiling zerovec v0.11.4 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Compiling tinystr v0.8.1 [INFO] [stderr] Compiling potential_utf v0.1.3 [INFO] [stderr] Compiling icu_collections v2.0.0 [INFO] [stderr] Compiling icu_locale_core v2.0.0 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling icu_provider v2.0.0 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling icu_properties v2.0.1 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling url v2.5.7 [INFO] [stderr] Compiling tokio-util v0.7.16 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling tower-http v0.6.6 [INFO] [stderr] Compiling h2 v0.4.12 [INFO] [stderr] Compiling hyper v1.7.0 [INFO] [stderr] Compiling hyper-util v0.1.17 [INFO] [stderr] Compiling hyper-tls v0.6.0 [INFO] [stderr] Compiling reqwest v0.12.23 [INFO] [stderr] Compiling gh_models v0.2.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 44.91s [INFO] running `Command { std: "docker" "inspect" "986e9da49ac9d0c1e1772d58b93e08cb3032fa171340277d61cce9b2885d9563", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "986e9da49ac9d0c1e1772d58b93e08cb3032fa171340277d61cce9b2885d9563", kill_on_drop: false }` [INFO] [stdout] 986e9da49ac9d0c1e1772d58b93e08cb3032fa171340277d61cce9b2885d9563 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9c45ed447a89a08cd7fd8668ea1bdde7cddf15fff1feaf31047f0ca0c2979be9 [INFO] running `Command { std: "docker" "start" "-a" "9c45ed447a89a08cd7fd8668ea1bdde7cddf15fff1feaf31047f0ca0c2979be9", kill_on_drop: false }` [INFO] [stderr] Compiling gh_models v0.2.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 2.28s [INFO] running `Command { std: "docker" "inspect" "9c45ed447a89a08cd7fd8668ea1bdde7cddf15fff1feaf31047f0ca0c2979be9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9c45ed447a89a08cd7fd8668ea1bdde7cddf15fff1feaf31047f0ca0c2979be9", kill_on_drop: false }` [INFO] [stdout] 9c45ed447a89a08cd7fd8668ea1bdde7cddf15fff1feaf31047f0ca0c2979be9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] ace0ff1c611193e276c820ad527f91c75b3c5f50345af8590f7f409fdeabc9d0 [INFO] running `Command { std: "docker" "start" "-a" "ace0ff1c611193e276c820ad527f91c75b3c5f50345af8590f7f409fdeabc9d0", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.23s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/gh_models-9ea5203608a167b0) [INFO] [stderr] Doc-tests gh_models [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] [stdout] [INFO] [stdout] running 4 tests [INFO] [stdout] test src/types.rs - types::ChatChoice (line 46) ... FAILED [INFO] [stdout] test src/client.rs - client (line 12) ... FAILED [INFO] [stdout] test src/lib.rs - (line 9) ... FAILED [INFO] [stdout] test src/types.rs - types::ChatResponse (line 29) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/types.rs - types::ChatChoice (line 46) stdout ---- [INFO] [stdout] error[E0425]: cannot find type `ChatChoice` in this scope [INFO] [stdout] --> src/types.rs:47:14 [INFO] [stdout] | [INFO] [stdout] 47 | let choice: &ChatChoice = &response.choices[0]; [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 46 + use gh_models::types::ChatChoice; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `response` in this scope [INFO] [stdout] --> src/types.rs:47:28 [INFO] [stdout] | [INFO] [stdout] 47 | let choice: &ChatChoice = &response.choices[0]; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/client.rs - client (line 12) stdout ---- [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/client.rs:27:60 [INFO] [stdout] | [INFO] [stdout] 27 | let response = client.chat_completion("openai/gpt-4o", messages, 1.0, 4096, 1.0).await.unwrap(); [INFO] [stdout] | --------------- ^^^^^^^^ expected `&[ChatMessage]`, found `Vec` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&[ChatMessage]` [INFO] [stdout] found struct `Vec` [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/client.rs:73:18 [INFO] [stdout] | [INFO] [stdout] 73 | pub async fn chat_completion( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 27 | let response = client.chat_completion("openai/gpt-4o", &messages, 1.0, 4096, 1.0).await.unwrap(); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 9) stdout ---- [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:24:60 [INFO] [stdout] | [INFO] [stdout] 24 | let response = client.chat_completion("openai/gpt-4o", messages, 1.0, 4096, 1.0).await.unwrap(); [INFO] [stdout] | --------------- ^^^^^^^^ expected `&[ChatMessage]`, found `Vec` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&[ChatMessage]` [INFO] [stdout] found struct `Vec` [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/client.rs:73:18 [INFO] [stdout] | [INFO] [stdout] 73 | pub async fn chat_completion( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 24 | let response = client.chat_completion("openai/gpt-4o", &messages, 1.0, 4096, 1.0).await.unwrap(); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/types.rs - types::ChatResponse (line 29) stdout ---- [INFO] [stdout] error: unexpected token: `...` [INFO] [stdout] --> src/types.rs:30:53 [INFO] [stdout] | [INFO] [stdout] 30 | let response: ChatResponse = client.chat_completion(...).await.unwrap(); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `..` for an exclusive range [INFO] [stdout] | [INFO] [stdout] 30 - let response: ChatResponse = client.chat_completion(...).await.unwrap(); [INFO] [stdout] 30 + let response: ChatResponse = client.chat_completion(..).await.unwrap(); [INFO] [stdout] | [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 30 - let response: ChatResponse = client.chat_completion(...).await.unwrap(); [INFO] [stdout] 30 + let response: ChatResponse = client.chat_completion(..=).await.unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0586]: inclusive range with no end [INFO] [stdout] --> src/types.rs:30:53 [INFO] [stdout] | [INFO] [stdout] 30 | let response: ChatResponse = client.chat_completion(...).await.unwrap(); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`) [INFO] [stdout] help: use `..` instead [INFO] [stdout] | [INFO] [stdout] 30 - let response: ChatResponse = client.chat_completion(...).await.unwrap(); [INFO] [stdout] 30 + let response: ChatResponse = client.chat_completion(..).await.unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `ChatResponse` in this scope [INFO] [stdout] --> src/types.rs:30:15 [INFO] [stdout] | [INFO] [stdout] 30 | let response: ChatResponse = client.chat_completion(...).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 29 + use gh_models::types::ChatResponse; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `client` in this scope [INFO] [stdout] --> src/types.rs:30:30 [INFO] [stdout] | [INFO] [stdout] 30 | let response: ChatResponse = client.chat_completion(...).await.unwrap(); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/types.rs:30:58 [INFO] [stdout] | [INFO] [stdout] 29 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_types_rs_29_0() { [INFO] [stdout] | ------------------------------------ this is not `async` [INFO] [stdout] 30 | let response: ChatResponse = client.chat_completion(...).await.unwrap(); [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0586, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/client.rs - client (line 12) [INFO] [stdout] src/lib.rs - (line 9) [INFO] [stdout] src/types.rs - types::ChatChoice (line 46) [INFO] [stdout] src/types.rs - types::ChatResponse (line 29) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 4 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.32s [INFO] [stdout] [INFO] [stdout] all doctests ran in 0.56s; merged doctests compilation took 0.23s [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "ace0ff1c611193e276c820ad527f91c75b3c5f50345af8590f7f409fdeabc9d0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ace0ff1c611193e276c820ad527f91c75b3c5f50345af8590f7f409fdeabc9d0", kill_on_drop: false }` [INFO] [stdout] ace0ff1c611193e276c820ad527f91c75b3c5f50345af8590f7f409fdeabc9d0