[INFO] fetching crate chatgpt_rs 1.2.3... [INFO] checking chatgpt_rs-1.2.3 against try#0c7fed2b7584d310ca8221267fa1b3bec4df427f for pr-133502-4 [INFO] extracting crate chatgpt_rs 1.2.3 into /workspace/builds/worker-6-tc2/source [INFO] validating manifest of crates.io crate chatgpt_rs 1.2.3 on toolchain 0c7fed2b7584d310ca8221267fa1b3bec4df427f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+0c7fed2b7584d310ca8221267fa1b3bec4df427f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate chatgpt_rs 1.2.3 [INFO] finished tweaking crates.io crate chatgpt_rs 1.2.3 [INFO] tweaked toml for crates.io crate chatgpt_rs 1.2.3 written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] crate crates.io crate chatgpt_rs 1.2.3 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" "+0c7fed2b7584d310ca8221267fa1b3bec4df427f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+0c7fed2b7584d310ca8221267fa1b3bec4df427f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9b84ce130d4b387c52ce093aed0f40cf055ba5a0751cb84f093903c30d92ba90 [INFO] running `Command { std: "docker" "start" "-a" "9b84ce130d4b387c52ce093aed0f40cf055ba5a0751cb84f093903c30d92ba90", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9b84ce130d4b387c52ce093aed0f40cf055ba5a0751cb84f093903c30d92ba90", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9b84ce130d4b387c52ce093aed0f40cf055ba5a0751cb84f093903c30d92ba90", kill_on_drop: false }` [INFO] [stdout] 9b84ce130d4b387c52ce093aed0f40cf055ba5a0751cb84f093903c30d92ba90 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+0c7fed2b7584d310ca8221267fa1b3bec4df427f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a746c1360706a0c74b418593654380716d549bb25fb491eb8801f32abe9d475c [INFO] running `Command { std: "docker" "start" "-a" "a746c1360706a0c74b418593654380716d549bb25fb491eb8801f32abe9d475c", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.67 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling libc v0.2.148 [INFO] [stderr] Checking once_cell v1.18.0 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Checking pin-project-lite v0.2.13 [INFO] [stderr] Compiling futures-core v0.3.28 [INFO] [stderr] Checking bytes v1.5.0 [INFO] [stderr] Checking itoa v1.0.9 [INFO] [stderr] Compiling futures-task v0.3.28 [INFO] [stderr] Compiling serde v1.0.188 [INFO] [stderr] Checking tracing-core v0.1.31 [INFO] [stderr] Compiling futures-util v0.3.28 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling rustls v0.21.7 [INFO] [stderr] Compiling futures-channel v0.3.28 [INFO] [stderr] Compiling httparse v1.8.0 [INFO] [stderr] Checking http v0.2.9 [INFO] [stderr] Checking futures-sink v0.3.28 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Checking hashbrown v0.12.3 [INFO] [stderr] Checking tracing v0.1.37 [INFO] [stderr] Checking tinyvec v1.6.0 [INFO] [stderr] Checking try-lock v0.2.4 [INFO] [stderr] Checking percent-encoding v2.3.0 [INFO] [stderr] Compiling syn v2.0.33 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling cc v1.0.83 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking mio v0.8.8 [INFO] [stderr] Checking socket2 v0.5.4 [INFO] [stderr] Checking log v0.4.20 [INFO] [stderr] Checking socket2 v0.4.9 [INFO] [stderr] Checking form_urlencoded v1.2.0 [INFO] [stderr] Checking want v0.3.1 [INFO] [stderr] Checking unicode-normalization v0.1.22 [INFO] [stderr] Checking http-body v0.4.5 [INFO] [stderr] Checking tower-service v0.3.2 [INFO] [stderr] Checking ryu v1.0.15 [INFO] [stderr] Compiling serde_json v1.0.107 [INFO] [stderr] Checking unicode-bidi v0.3.13 [INFO] [stderr] Checking base64 v0.21.4 [INFO] [stderr] Compiling thiserror v1.0.48 [INFO] [stderr] Checking encoding_rs v0.8.33 [INFO] [stderr] Checking idna v0.4.0 [INFO] [stderr] Checking webpki-roots v0.25.2 [INFO] [stderr] Checking rustls-pemfile v1.0.3 [INFO] [stderr] Checking ipnet v2.8.0 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Compiling darling_core v0.14.4 [INFO] [stderr] Checking rustls-webpki v0.101.5 [INFO] [stderr] Checking sct v0.7.0 [INFO] [stderr] Compiling tokio-macros v2.1.0 [INFO] [stderr] Compiling futures-macro v0.3.28 [INFO] [stderr] Compiling serde_derive v1.0.188 [INFO] [stderr] Compiling thiserror-impl v1.0.48 [INFO] [stderr] Checking tokio v1.32.0 [INFO] [stderr] Compiling darling_macro v0.14.4 [INFO] [stderr] Compiling darling v0.14.4 [INFO] [stderr] Compiling derive_builder_core v0.12.0 [INFO] [stderr] Compiling derive_builder_macro v0.12.0 [INFO] [stderr] Checking derive_builder v0.12.0 [INFO] [stderr] Checking tokio-util v0.7.8 [INFO] [stderr] Checking tokio-rustls v0.24.1 [INFO] [stderr] Checking h2 v0.3.21 [INFO] [stderr] Checking hyper v0.14.27 [INFO] [stderr] Checking hyper-rustls v0.24.1 [INFO] [stderr] Checking url v2.4.1 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking reqwest v0.11.20 [INFO] [stderr] Checking chatgpt_rs v1.2.3 (/opt/rustwide/workdir) [INFO] [stdout] error[E0432]: unresolved import `futures` [INFO] [stdout] --> src/chatgpt.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | use futures::StreamExt; [INFO] [stdout] | ^^^^^^^ use of unresolved module or unlinked crate `futures` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `futures`, use `cargo add futures` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::types::ResponseChunk` [INFO] [stdout] --> src/chatgpt.rs:30:62 [INFO] [stdout] | [INFO] [stdout] 30 | use crate::{client::ChatGPT, config::ModelConfiguration, types::ResponseChunk}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ no `ResponseChunk` in `types` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> src/types.rs:181:10 [INFO] [stdout] | [INFO] [stdout] 181 | pub enum ResponseChunk { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] note: the item is gated behind the `streams` feature [INFO] [stdout] --> src/types.rs:180:7 [INFO] [stdout] | [INFO] [stdout] 180 | #[cfg(feature = "streams")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `send_message_streaming` found for struct `ChatGPT` in the current scope [INFO] [stdout] --> src/chatgpt.rs:115:14 [INFO] [stdout] | [INFO] [stdout] 114 | let response = client [INFO] [stdout] | ________________________- [INFO] [stdout] 115 | | .send_message_streaming("Could you give me names of three popular Rust web frameworks?") [INFO] [stdout] | |_____________-^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/client.rs:26:1 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct ChatGPT { [INFO] [stdout] | ------------------ method `send_message_streaming` not found for this struct [INFO] [stdout] | [INFO] [stdout] help: there is a method `send_message` with a similar name [INFO] [stdout] | [INFO] [stdout] 115 - .send_message_streaming("Could you give me names of three popular Rust web frameworks?") [INFO] [stdout] 115 + .send_message("Could you give me names of three popular Rust web frameworks?") [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/chatgpt.rs:114:13 [INFO] [stdout] | [INFO] [stdout] 114 | let response = client [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 117 | let collected = response.collect::>().await; [INFO] [stdout] | ------- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `response` an explicit type [INFO] [stdout] | [INFO] [stdout] 114 | let response: /* Type */ = client [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/chatgpt.rs:117:13 [INFO] [stdout] | [INFO] [stdout] 117 | let collected = response.collect::>().await; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 118 | assert_eq!(collected.last().unwrap().to_owned(), ResponseChunk::Done); [INFO] [stdout] | ---- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `collected` an explicit type [INFO] [stdout] | [INFO] [stdout] 117 | let collected: /* Type */ = response.collect::>().await; [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `send_message_streaming` found for struct `Conversation` in the current scope [INFO] [stdout] --> src/chatgpt.rs:130:14 [INFO] [stdout] | [INFO] [stdout] 129 | let streamed = conv [INFO] [stdout] | ________________________- [INFO] [stdout] 130 | | .send_message_streaming("Now could you do the same but for Kotlin?") [INFO] [stdout] | |_____________-^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/converse.rs:23:1 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct Conversation { [INFO] [stdout] | ----------------------- method `send_message_streaming` not found for this struct [INFO] [stdout] | [INFO] [stdout] help: there is a method `send_message` with a similar name [INFO] [stdout] | [INFO] [stdout] 130 - .send_message_streaming("Now could you do the same but for Kotlin?") [INFO] [stdout] 130 + .send_message("Now could you do the same but for Kotlin?") [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/chatgpt.rs:129:13 [INFO] [stdout] | [INFO] [stdout] 129 | let streamed = conv [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 132 | let collected = streamed.collect::>().await; [INFO] [stdout] | ------- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `streamed` an explicit type [INFO] [stdout] | [INFO] [stdout] 129 | let streamed: /* Type */ = conv [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/chatgpt.rs:132:13 [INFO] [stdout] | [INFO] [stdout] 132 | let collected = streamed.collect::>().await; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 133 | assert_eq!(collected.last().unwrap().to_owned(), ResponseChunk::Done); [INFO] [stdout] | ---- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `collected` an explicit type [INFO] [stdout] | [INFO] [stdout] 132 | let collected: /* Type */ = streamed.collect::>().await; [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0432, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stderr] error: could not compile `chatgpt_rs` (lib test) due to 8 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] running `Command { std: "docker" "inspect" "a746c1360706a0c74b418593654380716d549bb25fb491eb8801f32abe9d475c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a746c1360706a0c74b418593654380716d549bb25fb491eb8801f32abe9d475c", kill_on_drop: false }` [INFO] [stdout] a746c1360706a0c74b418593654380716d549bb25fb491eb8801f32abe9d475c