[INFO] cloning repository https://github.com/peturparkur/cgpt
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/peturparkur/cgpt" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpeturparkur%2Fcgpt", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpeturparkur%2Fcgpt'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] c5bcdbc24419dc81fecb8052697d614c456c4272
[INFO] checking peturparkur/cgpt against 1.95.0 for pr-155915
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpeturparkur%2Fcgpt" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/peturparkur/cgpt
[INFO] finished tweaking git repo https://github.com/peturparkur/cgpt
[INFO] tweaked toml for git repo https://github.com/peturparkur/cgpt written to /workspace/builds/worker-1-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/peturparkur/cgpt on toolchain 1.95.0
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.95.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/peturparkur/cgpt 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" "+1.95.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded futures-core v0.3.27
[INFO] [stderr]   Downloaded is-terminal v0.4.5
[INFO] [stderr]   Downloaded futures-channel v0.3.27
[INFO] [stderr]   Downloaded futures-task v0.3.27
[INFO] [stderr]   Downloaded futures-sink v0.3.27
[INFO] [stderr]   Downloaded clap_derive v4.1.12
[INFO] [stderr]   Downloaded openssl-sys v0.9.82
[INFO] [stderr]   Downloaded futures-util v0.3.27
[INFO] [stderr]   Downloaded reqwest v0.11.15
[INFO] [stderr]   Downloaded rustix v0.36.11
[INFO] [stderr]   Downloaded openssl v0.10.47
[INFO] [stderr]   Downloaded clap v4.1.13
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+1.95.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] fef2df36c122875666135d023d905f1122056fc0912a2a4d38e649153afe55f9
[INFO] running `Command { std: "docker" "start" "-a" "fef2df36c122875666135d023d905f1122056fc0912a2a4d38e649153afe55f9", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "fef2df36c122875666135d023d905f1122056fc0912a2a4d38e649153afe55f9", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "fef2df36c122875666135d023d905f1122056fc0912a2a4d38e649153afe55f9", kill_on_drop: false }`
[INFO] [stdout] fef2df36c122875666135d023d905f1122056fc0912a2a4d38e649153afe55f9
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+1.95.0" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 1b036eca242d79bc9a0b4b9797942da7ffad69460b96ee9f5a4ed2f74b559451
[INFO] running `Command { std: "docker" "start" "-a" "1b036eca242d79bc9a0b4b9797942da7ffad69460b96ee9f5a4ed2f74b559451", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.140
[INFO] [stderr]    Compiling proc-macro2 v1.0.53
[INFO] [stderr]    Compiling unicode-ident v1.0.8
[INFO] [stderr]     Checking once_cell v1.17.1
[INFO] [stderr]    Compiling parking_lot_core v0.9.7
[INFO] [stderr]    Compiling pkg-config v0.3.26
[INFO] [stderr]    Compiling futures-core v0.3.27
[INFO] [stderr]    Compiling serde_derive v1.0.158
[INFO] [stderr]    Compiling indexmap v1.9.2
[INFO] [stderr]    Compiling serde v1.0.158
[INFO] [stderr]    Compiling futures-task v0.3.27
[INFO] [stderr]    Compiling futures-util v0.3.27
[INFO] [stderr]    Compiling openssl v0.10.47
[INFO] [stderr]     Checking futures-sink v0.3.27
[INFO] [stderr]    Compiling io-lifetimes v1.0.9
[INFO] [stderr]    Compiling futures-channel v0.3.27
[INFO] [stderr]    Compiling rustix v0.36.11
[INFO] [stderr]     Checking want v0.3.0
[INFO] [stderr]    Compiling serde_json v1.0.94
[INFO] [stderr]     Checking unicode-bidi v0.3.13
[INFO] [stderr]     Checking yaml-rust v0.4.5
[INFO] [stderr]     Checking tracing-core v0.1.30
[INFO] [stderr]     Checking os_str_bytes v6.5.0
[INFO] [stderr]     Checking ipnet v2.7.1
[INFO] [stderr]     Checking clap_lex v0.3.3
[INFO] [stderr]    Compiling openssl-sys v0.9.82
[INFO] [stderr]     Checking idna v0.3.0
[INFO] [stderr]     Checking tracing v0.1.37
[INFO] [stderr]     Checking url v2.3.1
[INFO] [stderr]    Compiling quote v1.0.26
[INFO] [stderr]    Compiling native-tls v0.2.11
[INFO] [stderr]    Compiling syn v2.0.8
[INFO] [stderr]    Compiling syn v1.0.109
[INFO] [stderr]     Checking signal-hook-registry v1.4.1
[INFO] [stderr]     Checking mio v0.8.6
[INFO] [stderr]     Checking num_cpus v1.15.0
[INFO] [stderr]     Checking socket2 v0.4.9
[INFO] [stderr]     Checking atty v0.2.14
[INFO] [stderr]     Checking dirs-sys v0.3.7
[INFO] [stderr]     Checking clap v2.34.0
[INFO] [stderr]     Checking directories v4.0.1
[INFO] [stderr]     Checking parking_lot v0.12.1
[INFO] [stderr]     Checking is-terminal v0.4.5
[INFO] [stderr]     Checking dotenv v0.15.0
[INFO] [stderr]    Compiling thiserror-impl v1.0.40
[INFO] [stderr]    Compiling clap_derive v4.1.12
[INFO] [stderr]    Compiling tokio-macros v1.8.2
[INFO] [stderr]    Compiling openssl-macros v0.1.0
[INFO] [stderr]     Checking tokio v1.26.0
[INFO] [stderr]     Checking thiserror v1.0.40
[INFO] [stderr]     Checking clap v4.1.13
[INFO] [stderr]     Checking tokio-util v0.7.7
[INFO] [stderr]     Checking tokio-native-tls v0.3.1
[INFO] [stderr]     Checking h2 v0.3.16
[INFO] [stderr]     Checking serde_yaml v0.8.26
[INFO] [stderr]     Checking toml v0.5.11
[INFO] [stderr]     Checking serde_urlencoded v0.7.1
[INFO] [stderr]     Checking confy v0.5.1
[INFO] [stderr]     Checking hyper v0.14.25
[INFO] [stderr]     Checking hyper-tls v0.5.0
[INFO] [stderr]     Checking reqwest v0.11.15
[INFO] [stderr]     Checking cgpt v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused imports: `Display` and `future::Future`
[INFO] [stdout]  --> src/main.rs:1:11
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::{future::Future, path::{Path, PathBuf}, fmt::{Debug, Display}};
[INFO] [stdout]   |           ^^^^^^^^^^^^^^                                      ^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Display` and `future::Future`
[INFO] [stdout]  --> src/main.rs:1:11
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::{future::Future, path::{Path, PathBuf}, fmt::{Debug, Display}};
[INFO] [stdout]   |           ^^^^^^^^^^^^^^                                      ^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `x`
[INFO] [stdout]   --> src/main.rs:76:59
[INFO] [stdout]    |
[INFO] [stdout] 76 |         Err(confy::ConfyError::ReadConfigurationFileError(x)) => Ok(Configuration::default()),
[INFO] [stdout]    |                                                           ^ help: if this is intentional, prefix it with an underscore: `_x`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `y`
[INFO] [stdout]   --> src/main.rs:86:9
[INFO] [stdout]    |
[INFO] [stdout] 86 |     let y = match clap_args.command {
[INFO] [stdout]    |         ^
[INFO] [stdout]    |
[INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `_`
[INFO] [stdout]    |
[INFO] [stdout] 86 -     let y = match clap_args.command {
[INFO] [stdout] 86 +     let _ = match clap_args.command {
[INFO] [stdout]    |
[INFO] [stdout] help: if this is intentional, prefix it with an underscore
[INFO] [stdout]    |
[INFO] [stdout] 86 |     let _y = match clap_args.command {
[INFO] [stdout]    |         +
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `prompt`
[INFO] [stdout]   --> src/main.rs:87:34
[INFO] [stdout]    |
[INFO] [stdout] 87 |         Commands::Checkout { id, prompt } => {
[INFO] [stdout]    |                                  ^^^^^^ help: try ignoring the field: `prompt: _`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `no_save`
[INFO] [stdout]   --> src/main.rs:95:38
[INFO] [stdout]    |
[INFO] [stdout] 95 |         Commands::Message { message, no_save } => {
[INFO] [stdout]    |                                      ^^^^^^^ help: try ignoring the field: `no_save: _`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `msg`
[INFO] [stdout]   --> src/main.rs:96:17
[INFO] [stdout]    |
[INFO] [stdout] 96 |             let msg = Message{role: types::Role::User, content: message};
[INFO] [stdout]    |                 ^^^ help: if this is intentional, prefix it with an underscore: `_msg`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `context`
[INFO] [stdout]   --> src/main.rs:97:17
[INFO] [stdout]    |
[INFO] [stdout] 97 |             let context: Vec<Message> = vec![];
[INFO] [stdout]    |                 ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_context`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `save_json` is never used
[INFO] [stdout]    --> src/main.rs:115:10
[INFO] [stdout]     |
[INFO] [stdout] 115 | async fn save_json<T, P>(content: &T, path: &P) -> Result<(), std::io::Error>
[INFO] [stdout]     |          ^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `gpt_url` should have an upper case name
[INFO] [stdout]    --> src/main.rs:132:11
[INFO] [stdout]     |
[INFO] [stdout] 132 |     const gpt_url: &str = "https://api.openai.com/v1/chat/completions";
[INFO] [stdout]     |           ^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(non_upper_case_globals)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] help: convert the identifier to upper case
[INFO] [stdout]     |
[INFO] [stdout] 132 -     const gpt_url: &str = "https://api.openai.com/v1/chat/completions";
[INFO] [stdout] 132 +     const GPT_URL: &str = "https://api.openai.com/v1/chat/completions";
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `x`
[INFO] [stdout]   --> src/main.rs:76:59
[INFO] [stdout]    |
[INFO] [stdout] 76 |         Err(confy::ConfyError::ReadConfigurationFileError(x)) => Ok(Configuration::default()),
[INFO] [stdout]    |                                                           ^ help: if this is intentional, prefix it with an underscore: `_x`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `y`
[INFO] [stdout]   --> src/main.rs:86:9
[INFO] [stdout]    |
[INFO] [stdout] 86 |     let y = match clap_args.command {
[INFO] [stdout]    |         ^
[INFO] [stdout]    |
[INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `_`
[INFO] [stdout]    |
[INFO] [stdout] 86 -     let y = match clap_args.command {
[INFO] [stdout] 86 +     let _ = match clap_args.command {
[INFO] [stdout]    |
[INFO] [stdout] help: if this is intentional, prefix it with an underscore
[INFO] [stdout]    |
[INFO] [stdout] 86 |     let _y = match clap_args.command {
[INFO] [stdout]    |         +
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `prompt`
[INFO] [stdout]   --> src/main.rs:87:34
[INFO] [stdout]    |
[INFO] [stdout] 87 |         Commands::Checkout { id, prompt } => {
[INFO] [stdout]    |                                  ^^^^^^ help: try ignoring the field: `prompt: _`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `no_save`
[INFO] [stdout]   --> src/main.rs:95:38
[INFO] [stdout]    |
[INFO] [stdout] 95 |         Commands::Message { message, no_save } => {
[INFO] [stdout]    |                                      ^^^^^^^ help: try ignoring the field: `no_save: _`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `msg`
[INFO] [stdout]   --> src/main.rs:96:17
[INFO] [stdout]    |
[INFO] [stdout] 96 |             let msg = Message{role: types::Role::User, content: message};
[INFO] [stdout]    |                 ^^^ help: if this is intentional, prefix it with an underscore: `_msg`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `context`
[INFO] [stdout]   --> src/main.rs:97:17
[INFO] [stdout]    |
[INFO] [stdout] 97 |             let context: Vec<Message> = vec![];
[INFO] [stdout]    |                 ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_context`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `save_json` is never used
[INFO] [stdout]    --> src/main.rs:115:10
[INFO] [stdout]     |
[INFO] [stdout] 115 | async fn save_json<T, P>(content: &T, path: &P) -> Result<(), std::io::Error>
[INFO] [stdout]     |          ^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `gpt_url` should have an upper case name
[INFO] [stdout]    --> src/main.rs:132:11
[INFO] [stdout]     |
[INFO] [stdout] 132 |     const gpt_url: &str = "https://api.openai.com/v1/chat/completions";
[INFO] [stdout]     |           ^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(non_upper_case_globals)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] help: convert the identifier to upper case
[INFO] [stdout]     |
[INFO] [stdout] 132 -     const gpt_url: &str = "https://api.openai.com/v1/chat/completions";
[INFO] [stdout] 132 +     const GPT_URL: &str = "https://api.openai.com/v1/chat/completions";
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 27.98s
[INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: openssl v0.10.47
[INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 7`
[INFO] running `Command { std: "docker" "inspect" "1b036eca242d79bc9a0b4b9797942da7ffad69460b96ee9f5a4ed2f74b559451", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "1b036eca242d79bc9a0b4b9797942da7ffad69460b96ee9f5a4ed2f74b559451", kill_on_drop: false }`
[INFO] [stdout] 1b036eca242d79bc9a0b4b9797942da7ffad69460b96ee9f5a4ed2f74b559451
