[INFO] cloning repository https://github.com/AyushK0808/rust-gpt-cli [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/AyushK0808/rust-gpt-cli" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAyushK0808%2Frust-gpt-cli", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAyushK0808%2Frust-gpt-cli'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 3cbd1ddfbe165ab820f8cef3d1fc7ac306f300ac [INFO] checking AyushK0808/rust-gpt-cli/3cbd1ddfbe165ab820f8cef3d1fc7ac306f300ac against try#4d98531622e1718ae0bc3c7a1ab9cd8938428452+rustflags=-Dtail_expr_drop_order for pr-129604 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAyushK0808%2Frust-gpt-cli" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/AyushK0808/rust-gpt-cli on toolchain 4d98531622e1718ae0bc3c7a1ab9cd8938428452 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/AyushK0808/rust-gpt-cli [INFO] finished tweaking git repo https://github.com/AyushK0808/rust-gpt-cli [INFO] tweaked toml for git repo https://github.com/AyushK0808/rust-gpt-cli written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/AyushK0808/rust-gpt-cli 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" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 075761b2bb9925fcfb16eadd29d1754330ef57f99607eaf19c568cd987459067 [INFO] running `Command { std: "docker" "start" "-a" "075761b2bb9925fcfb16eadd29d1754330ef57f99607eaf19c568cd987459067", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "075761b2bb9925fcfb16eadd29d1754330ef57f99607eaf19c568cd987459067", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "075761b2bb9925fcfb16eadd29d1754330ef57f99607eaf19c568cd987459067", kill_on_drop: false }` [INFO] [stdout] 075761b2bb9925fcfb16eadd29d1754330ef57f99607eaf19c568cd987459067 [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 -Dtail_expr_drop_order" "-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8c4fc137613bc2949f5eb7e68ff72128637eb2030eaf0749bc9871bb8d0af2e1 [INFO] running `Command { std: "docker" "start" "-a" "8c4fc137613bc2949f5eb7e68ff72128637eb2030eaf0749bc9871bb8d0af2e1", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.84 [INFO] [stderr] Compiling openssl-sys v0.9.102 [INFO] [stderr] Compiling openssl v0.10.64 [INFO] [stderr] Checking dirs-sys v0.3.7 [INFO] [stderr] Checking futures-task v0.3.30 [INFO] [stderr] Checking bitflags v2.5.0 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling native-tls v0.2.12 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Checking dirs v2.0.2 [INFO] [stderr] Compiling serde_json v1.0.117 [INFO] [stderr] Checking term v0.6.1 [INFO] [stderr] Checking ansi_term v0.7.5 [INFO] [stderr] Checking strum v0.21.0 [INFO] [stderr] Checking maplit v1.0.2 [INFO] [stderr] Checking dotenv v0.15.0 [INFO] [stderr] Checking spinner v0.5.0 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling syn v2.0.66 [INFO] [stderr] Compiling strum_macros v0.21.1 [INFO] [stderr] Compiling tokio-macros v2.2.0 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling serde_derive v1.0.203 [INFO] [stderr] Checking spinners v2.0.0 [INFO] [stderr] Checking tokio v1.37.0 [INFO] [stderr] Checking tokio-util v0.7.11 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking h2 v0.3.26 [INFO] [stderr] Checking hyper v0.14.28 [INFO] [stderr] Checking hyper-tls v0.5.0 [INFO] [stderr] Checking rust-gpt-cli v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/main.rs:97:5 [INFO] [stdout] | [INFO] [stdout] 47 | / loop { [INFO] [stdout] 48 | | print!(">"); [INFO] [stdout] 49 | | stdout().flush().unwrap(); [INFO] [stdout] 50 | | let mut user_text = String::new(); [INFO] [stdout] ... | [INFO] [stdout] 95 | | } [INFO] [stdout] 96 | | } [INFO] [stdout] | |_____- any code following this expression is unreachable [INFO] [stdout] 97 | Ok(()) [INFO] [stdout] | ^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/main.rs:97:5 [INFO] [stdout] | [INFO] [stdout] 47 | / loop { [INFO] [stdout] 48 | | print!(">"); [INFO] [stdout] 49 | | stdout().flush().unwrap(); [INFO] [stdout] 50 | | let mut user_text = String::new(); [INFO] [stdout] ... | [INFO] [stdout] 95 | | } [INFO] [stdout] 96 | | } [INFO] [stdout] | |_____- any code following this expression is unreachable [INFO] [stdout] 97 | Ok(()) [INFO] [stdout] | ^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `index`, `logprobs`, and `finish_reason` are never read [INFO] [stdout] --> src/main.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 11 | struct OpenAIChoices { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 12 | text: String, [INFO] [stdout] 13 | index: u8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 14 | logprobs: Option, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 15 | finish_reason: String, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OpenAIChoices` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `object`, `created`, and `model` are never read [INFO] [stdout] --> src/main.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 19 | struct OpenAIResponse { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 20 | id: Option, [INFO] [stdout] | ^^ [INFO] [stdout] 21 | object: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 22 | created: Option, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 23 | model: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OpenAIResponse` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/main.rs:70:15 [INFO] [stdout] | [INFO] [stdout] 57 | let sp = Spinner::new(&Spinners::Dots12, "\t\tBot is thinking....".into()); [INFO] [stdout] | -- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 63 | let body = Body::from(serde_json::to_vec(&openai_request)?); [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 64 | let req = Request::post(uri) [INFO] [stdout] | --- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 70 | match client.request(req).await { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-gpt-cli` (bin "rust-gpt-cli" test) due to 2 previous errors; 3 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: fields `index`, `logprobs`, and `finish_reason` are never read [INFO] [stdout] --> src/main.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 11 | struct OpenAIChoices { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 12 | text: String, [INFO] [stdout] 13 | index: u8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 14 | logprobs: Option, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 15 | finish_reason: String, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OpenAIChoices` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `object`, `created`, and `model` are never read [INFO] [stdout] --> src/main.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 19 | struct OpenAIResponse { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 20 | id: Option, [INFO] [stdout] | ^^ [INFO] [stdout] 21 | object: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 22 | created: Option, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 23 | model: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OpenAIResponse` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/main.rs:70:15 [INFO] [stdout] | [INFO] [stdout] 57 | let sp = Spinner::new(&Spinners::Dots12, "\t\tBot is thinking....".into()); [INFO] [stdout] | -- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 63 | let body = Body::from(serde_json::to_vec(&openai_request)?); [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 64 | let req = Request::post(uri) [INFO] [stdout] | --- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 70 | match client.request(req).await { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-gpt-cli` (bin "rust-gpt-cli") due to 2 previous errors; 3 warnings emitted [INFO] running `Command { std: "docker" "inspect" "8c4fc137613bc2949f5eb7e68ff72128637eb2030eaf0749bc9871bb8d0af2e1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8c4fc137613bc2949f5eb7e68ff72128637eb2030eaf0749bc9871bb8d0af2e1", kill_on_drop: false }` [INFO] [stdout] 8c4fc137613bc2949f5eb7e68ff72128637eb2030eaf0749bc9871bb8d0af2e1