[INFO] fetching crate openai-cli 0.3.4... [INFO] checking openai-cli-0.3.4 against try#23ffd2897cbb44320ca18dfe4d05dbacb37d55e0 for pr-115950 [INFO] extracting crate openai-cli 0.3.4 into /workspace/builds/worker-1-tc2/source [INFO] validating manifest of crates.io crate openai-cli 0.3.4 on toolchain 23ffd2897cbb44320ca18dfe4d05dbacb37d55e0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate openai-cli 0.3.4 [INFO] finished tweaking crates.io crate openai-cli 0.3.4 [INFO] tweaked toml for crates.io crate openai-cli 0.3.4 written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] crate crates.io crate openai-cli 0.3.4 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" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "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:4f8da3c744d2da974e54ce020a79f4ad54313e914ebeaab8fc086f07e8d8b066" "/opt/rustwide/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5dc1c3c9a60dd1a39491b32498046c20f30cf05a8ef70710191a463e1cf476fb [INFO] running `Command { std: "docker" "start" "-a" "5dc1c3c9a60dd1a39491b32498046c20f30cf05a8ef70710191a463e1cf476fb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5dc1c3c9a60dd1a39491b32498046c20f30cf05a8ef70710191a463e1cf476fb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5dc1c3c9a60dd1a39491b32498046c20f30cf05a8ef70710191a463e1cf476fb", kill_on_drop: false }` [INFO] [stdout] 5dc1c3c9a60dd1a39491b32498046c20f30cf05a8ef70710191a463e1cf476fb [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:4f8da3c744d2da974e54ce020a79f4ad54313e914ebeaab8fc086f07e8d8b066" "/opt/rustwide/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e2edeff2f2fa558e63e0908beda7e759d670068f7f9e663c3ec0426fdbf9db19 [INFO] running `Command { std: "docker" "start" "-a" "e2edeff2f2fa558e63e0908beda7e759d670068f7f9e663c3ec0426fdbf9db19", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.66 [INFO] [stderr] Compiling unicode-ident v1.0.11 [INFO] [stderr] Compiling libc v0.2.147 [INFO] [stderr] Checking bytes v1.4.0 [INFO] [stderr] Compiling rustix v0.38.4 [INFO] [stderr] Compiling openssl v0.10.55 [INFO] [stderr] Compiling futures-util v0.3.28 [INFO] [stderr] Checking foreign-types-shared v0.1.1 [INFO] [stderr] Checking bitflags v2.3.3 [INFO] [stderr] Compiling signal-hook v0.3.17 [INFO] [stderr] Checking utf8parse v0.2.1 [INFO] [stderr] Checking linux-raw-sys v0.4.3 [INFO] [stderr] Checking foreign-types v0.3.2 [INFO] [stderr] Checking http v0.2.9 [INFO] [stderr] Checking tracing v0.1.37 [INFO] [stderr] Compiling futures-channel v0.3.28 [INFO] [stderr] Compiling native-tls v0.2.11 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling serde_json v1.0.105 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Compiling thiserror v1.0.43 [INFO] [stderr] Compiling syn v2.0.29 [INFO] [stderr] Compiling cc v1.0.83 [INFO] [stderr] Compiling vte_generate_state_changes v0.1.1 [INFO] [stderr] Checking anstyle-parse v0.2.0 [INFO] [stderr] Checking mio v0.8.8 [INFO] [stderr] Checking socket2 v0.5.3 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking signal-hook-registry v1.4.1 [INFO] [stderr] Checking parking_lot_core v0.9.8 [INFO] [stderr] Checking http-body v0.4.5 [INFO] [stderr] Checking socket2 v0.4.9 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Compiling anyhow v1.0.71 [INFO] [stderr] Checking signal-hook-mio v0.2.3 [INFO] [stderr] Checking colorchoice v1.0.0 [INFO] [stderr] Checking unicode-segmentation v1.10.1 [INFO] [stderr] Checking anstyle-query v1.0.0 [INFO] [stderr] Checking anstyle v1.0.1 [INFO] [stderr] Checking vte v0.10.1 [INFO] [stderr] Checking url v2.4.0 [INFO] [stderr] Checking clap_lex v0.5.0 [INFO] [stderr] Checking option-ext v0.2.0 [INFO] [stderr] Checking strsim v0.10.0 [INFO] [stderr] Checking ipnet v2.7.2 [INFO] [stderr] Checking is-terminal v0.4.9 [INFO] [stderr] Checking anstream v0.3.2 [INFO] [stderr] Checking either v1.8.1 [INFO] [stderr] Checking unicode-width v0.1.10 [INFO] [stderr] Checking base64 v0.21.2 [INFO] [stderr] Compiling openssl-sys v0.9.90 [INFO] [stderr] Checking clap_builder v4.3.15 [INFO] [stderr] Checking itertools v0.10.5 [INFO] [stderr] Checking fd-lock v3.0.13 [INFO] [stderr] Checking strip-ansi-escapes v0.1.1 [INFO] [stderr] Checking chrono v0.4.26 [INFO] [stderr] Checking dirs-sys v0.4.1 [INFO] [stderr] Checking newline-converter v0.2.2 [INFO] [stderr] Checking crossterm v0.25.0 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking nu-ansi-term v0.49.0 [INFO] [stderr] Checking dyn-clone v1.0.11 [INFO] [stderr] Checking strum v0.25.0 [INFO] [stderr] Checking colored v2.0.0 [INFO] [stderr] Checking dirs v5.0.1 [INFO] [stderr] Compiling tokio-macros v2.1.0 [INFO] [stderr] Compiling serde_derive v1.0.188 [INFO] [stderr] Compiling futures-macro v0.3.28 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling thiserror-impl v1.0.43 [INFO] [stderr] Compiling clap_derive v4.3.12 [INFO] [stderr] Compiling strum_macros v0.25.2 [INFO] [stderr] Checking tokio v1.32.0 [INFO] [stderr] Checking inquire v0.6.2 [INFO] [stderr] Checking clap v4.3.15 [INFO] [stderr] Checking serde v1.0.188 [INFO] [stderr] Checking tokio-util v0.7.8 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking h2 v0.3.21 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking crossterm v0.26.1 [INFO] [stderr] Checking reedline v0.22.0 [INFO] [stderr] Checking hyper v0.14.26 [INFO] [stderr] Checking hyper-tls v0.5.0 [INFO] [stderr] Checking reqwest v0.11.18 [INFO] [stderr] Checking openai-rust v0.3.1 [INFO] [stderr] Checking openai-cli v0.3.4 (/opt/rustwide/workdir) [INFO] [stdout] error[E0499]: cannot borrow `state.history` as mutable more than once at a time [INFO] [stdout] --> src/chat.rs:130:29 [INFO] [stdout] | [INFO] [stdout] 118 | let res = send_chat_streaming(&client, &mut state).await; [INFO] [stdout] | ---------- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 130 | state.history.push(openai_rust::chat::Message { [INFO] [stdout] | ^^^^^^^^^^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 142 | } [INFO] [stdout] | - first borrow might be used here, when `res` is dropped and runs the destructor for type `Result, anyhow::Error>>, anyhow::Error>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `state.history` as mutable more than once at a time [INFO] [stdout] --> src/chat.rs:130:29 [INFO] [stdout] | [INFO] [stdout] 118 | let res = send_chat_streaming(&client, &mut state).await; [INFO] [stdout] | ---------- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 130 | state.history.push(openai_rust::chat::Message { [INFO] [stdout] | ^^^^^^^^^^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 142 | } [INFO] [stdout] | - first borrow might be used here, when `res` is dropped and runs the destructor for type `Result, anyhow::Error>>, anyhow::Error>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0503]: cannot use `state.debug` because it was mutably borrowed [INFO] [stdout] --> src/chat.rs:134:32 [INFO] [stdout] | [INFO] [stdout] 118 | let res = send_chat_streaming(&client, &mut state).await; [INFO] [stdout] | ---------- `state` is borrowed here [INFO] [stdout] ... [INFO] [stdout] 134 | if state.debug { [INFO] [stdout] | ^^^^^^^^^^^ use of borrowed `state` [INFO] [stdout] ... [INFO] [stdout] 142 | } [INFO] [stdout] | - borrow might be used here, when `res` is dropped and runs the destructor for type `Result, anyhow::Error>>, anyhow::Error>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0503]: cannot use `state.debug` because it was mutably borrowed [INFO] [stdout] --> src/chat.rs:134:32 [INFO] [stdout] | [INFO] [stdout] 118 | let res = send_chat_streaming(&client, &mut state).await; [INFO] [stdout] | ---------- `state` is borrowed here [INFO] [stdout] ... [INFO] [stdout] 134 | if state.debug { [INFO] [stdout] | ^^^^^^^^^^^ use of borrowed `state` [INFO] [stdout] ... [INFO] [stdout] 142 | } [INFO] [stdout] | - borrow might be used here, when `res` is dropped and runs the destructor for type `Result, anyhow::Error>>, anyhow::Error>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `state.history` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/chat.rs:135:53 [INFO] [stdout] | [INFO] [stdout] 118 | let res = send_chat_streaming(&client, &mut state).await; [INFO] [stdout] | ---------- mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 135 | eprintln!("\n{:?}", state.history); [INFO] [stdout] | ^^^^^^^^^^^^^ immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 142 | } [INFO] [stdout] | - mutable borrow might be used here, when `res` is dropped and runs the destructor for type `Result, anyhow::Error>>, anyhow::Error>` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `eprintln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `state.history` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/chat.rs:135:53 [INFO] [stdout] | [INFO] [stdout] 118 | let res = send_chat_streaming(&client, &mut state).await; [INFO] [stdout] | ---------- mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 135 | eprintln!("\n{:?}", state.history); [INFO] [stdout] | ^^^^^^^^^^^^^ immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 142 | } [INFO] [stdout] | - mutable borrow might be used here, when `res` is dropped and runs the destructor for type `Result, anyhow::Error>>, anyhow::Error>` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `eprintln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0499, E0502, E0503. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0499`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0499, E0502, E0503. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0499`. [INFO] [stdout] [INFO] [stderr] error: could not compile `openai-cli` (bin "openai-cli" test) due to 4 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `openai-cli` (bin "openai-cli") due to 4 previous errors [INFO] running `Command { std: "docker" "inspect" "e2edeff2f2fa558e63e0908beda7e759d670068f7f9e663c3ec0426fdbf9db19", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e2edeff2f2fa558e63e0908beda7e759d670068f7f9e663c3ec0426fdbf9db19", kill_on_drop: false }` [INFO] [stdout] e2edeff2f2fa558e63e0908beda7e759d670068f7f9e663c3ec0426fdbf9db19