[INFO] cloning repository https://github.com/Isaac-Fate/unilang [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Isaac-Fate/unilang" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FIsaac-Fate%2Funilang", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FIsaac-Fate%2Funilang'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 6abfba0ee8813c8bbf968c7fbbc41734b89f3bba [INFO] checking Isaac-Fate/unilang/6abfba0ee8813c8bbf968c7fbbc41734b89f3bba against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FIsaac-Fate%2Funilang" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Isaac-Fate/unilang on toolchain ccf408f4326a858c00dd845a64a86b16f360a801 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Isaac-Fate/unilang [INFO] finished tweaking git repo https://github.com/Isaac-Fate/unilang [INFO] tweaked toml for git repo https://github.com/Isaac-Fate/unilang written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/Isaac-Fate/unilang 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" "+ccf408f4326a858c00dd845a64a86b16f360a801" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a0503a589106792374a41ca0533f9d522e70d708190be168f9fc0d9be7b5f134 [INFO] running `Command { std: "docker" "start" "-a" "a0503a589106792374a41ca0533f9d522e70d708190be168f9fc0d9be7b5f134", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a0503a589106792374a41ca0533f9d522e70d708190be168f9fc0d9be7b5f134", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a0503a589106792374a41ca0533f9d522e70d708190be168f9fc0d9be7b5f134", kill_on_drop: false }` [INFO] [stdout] a0503a589106792374a41ca0533f9d522e70d708190be168f9fc0d9be7b5f134 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c6a9dc2ab7aa6f85875a37e950751f4e9d7574a230c356100727b42f8b0affb9 [INFO] running `Command { std: "docker" "start" "-a" "c6a9dc2ab7aa6f85875a37e950751f4e9d7574a230c356100727b42f8b0affb9", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Migrating Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Compiling proc-macro2 v1.0.69 [INFO] [stderr] Compiling libc v0.2.150 [INFO] [stderr] Checking pin-project-lite v0.2.13 [INFO] [stderr] Compiling futures-core v0.3.29 [INFO] [stderr] Checking memchr v2.6.4 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Checking once_cell v1.18.0 [INFO] [stderr] Compiling pkg-config v0.3.27 [INFO] [stderr] Checking futures-sink v0.3.29 [INFO] [stderr] Checking log v0.4.20 [INFO] [stderr] Compiling futures-task v0.3.29 [INFO] [stderr] Checking bytes v1.5.0 [INFO] [stderr] Compiling futures-channel v0.3.29 [INFO] [stderr] Compiling futures-util v0.3.29 [INFO] [stderr] Checking itoa v1.0.9 [INFO] [stderr] Checking bitflags v2.4.1 [INFO] [stderr] Checking futures-io v0.3.29 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Compiling openssl v0.10.59 [INFO] [stderr] Checking tracing-core v0.1.32 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Compiling serde v1.0.193 [INFO] [stderr] Compiling httparse v1.8.0 [INFO] [stderr] Checking equivalent v1.0.1 [INFO] [stderr] Compiling native-tls v0.2.11 [INFO] [stderr] Checking hashbrown v0.14.2 [INFO] [stderr] Checking percent-encoding v2.3.0 [INFO] [stderr] Checking try-lock v0.2.4 [INFO] [stderr] Compiling strsim v0.10.0 [INFO] [stderr] Checking unicode-normalization v0.1.22 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Checking want v0.3.1 [INFO] [stderr] Checking form_urlencoded v1.2.0 [INFO] [stderr] Checking http v0.2.11 [INFO] [stderr] Checking httpdate v1.0.3 [INFO] [stderr] Checking tower-service v0.3.2 [INFO] [stderr] Compiling serde_json v1.0.108 [INFO] [stderr] Checking ryu v1.0.15 [INFO] [stderr] Compiling rustix v0.38.25 [INFO] [stderr] Checking unicode-bidi v0.3.13 [INFO] [stderr] Checking aho-corasick v1.1.2 [INFO] [stderr] Checking regex-syntax v0.8.2 [INFO] [stderr] Compiling async-trait v0.1.74 [INFO] [stderr] Checking linux-raw-sys v0.4.11 [INFO] [stderr] Checking encoding_rs v0.8.33 [INFO] [stderr] Checking mime v0.3.17 [INFO] [stderr] Compiling anyhow v1.0.75 [INFO] [stderr] Checking base64 v0.21.5 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Checking ipnet v2.9.0 [INFO] [stderr] Compiling thiserror v1.0.50 [INFO] [stderr] Checking indexmap v2.1.0 [INFO] [stderr] Checking idna v0.4.0 [INFO] [stderr] Checking termcolor v1.4.0 [INFO] [stderr] Checking humantime v2.1.0 [INFO] [stderr] Compiling cc v1.0.83 [INFO] [stderr] Compiling syn v2.0.39 [INFO] [stderr] Checking socket2 v0.5.5 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking mio v0.8.9 [INFO] [stderr] Checking socket2 v0.4.10 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking http-body v0.4.5 [INFO] [stderr] Checking dotenv v0.15.0 [INFO] [stderr] Checking url v2.4.1 [INFO] [stderr] Checking is-terminal v0.4.9 [INFO] [stderr] Compiling openssl-sys v0.9.95 [INFO] [stderr] Checking regex-automata v0.4.3 [INFO] [stderr] Checking regex v1.10.2 [INFO] [stderr] Compiling darling_core v0.20.3 [INFO] [stderr] Checking env_logger v0.10.1 [INFO] [stderr] Compiling tokio-macros v2.2.0 [INFO] [stderr] Compiling futures-macro v0.3.29 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling serde_derive v1.0.193 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling thiserror-impl v1.0.50 [INFO] [stderr] Checking tokio v1.34.0 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Compiling darling_macro v0.20.3 [INFO] [stderr] Compiling darling v0.20.3 [INFO] [stderr] Compiling serde_with_macros v3.4.0 [INFO] [stderr] Checking futures-executor v0.3.29 [INFO] [stderr] Checking futures v0.3.29 [INFO] [stderr] Checking tokio-util v0.7.10 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking h2 v0.3.22 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking serde_with v3.4.0 [INFO] [stderr] Checking hyper v0.14.27 [INFO] [stderr] Checking hyper-tls v0.5.0 [INFO] [stderr] Checking reqwest v0.11.22 [INFO] [stderr] Checking reqwest-streams v0.4.0 [INFO] [stderr] Checking unilang v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] Fixed src/openai/chat/api_call.rs (1 fix) [INFO] [stderr] Fixed src/qianfan/chat/response/response.rs (1 fix) [INFO] [stderr] Fixed src/qianfan/chat/api_call.rs (1 fix) [INFO] [stderr] Fixed src/openai/chat/response/mod.rs (1 fix) [INFO] [stdout] warning: fields `id`, `choices`, `object`, `created`, `model`, and `usage` are never read [INFO] [stdout] --> src/openai/chat/response/response.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct OpenAIChatResponse { [INFO] [stdout] | ------------------ fields in this struct [INFO] [stdout] 5 | pub id: String, [INFO] [stdout] | ^^ [INFO] [stdout] 6 | pub choices: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 7 | pub object: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 8 | pub created: i64, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 9 | pub model: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 10 | pub usage: OpenAIChatTokenUsage, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OpenAIChatResponse` 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 `finish_reason`, `index`, and `message` are never read [INFO] [stdout] --> src/openai/chat/response/response.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct OpenAIChatResponseChoice { [INFO] [stdout] | ------------------------ fields in this struct [INFO] [stdout] 15 | pub finish_reason: String, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 16 | pub index: u32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 17 | pub message: OpenAIChatResponseMessage, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OpenAIChatResponseChoice` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `content` and `role` are never read [INFO] [stdout] --> src/openai/chat/response/response.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct OpenAIChatResponseMessage { [INFO] [stdout] | ------------------------- fields in this struct [INFO] [stdout] 22 | pub content: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 23 | pub role: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OpenAIChatResponseMessage` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `prompt_tokens`, `completion_tokens`, and `total_tokens` are never read [INFO] [stdout] --> src/openai/chat/response/response.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct OpenAIChatTokenUsage { [INFO] [stdout] | -------------------- fields in this struct [INFO] [stdout] 28 | pub prompt_tokens: u32, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 29 | pub completion_tokens: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 30 | pub total_tokens: u32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OpenAIChatTokenUsage` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/openai/chat/api_call.rs:137:15 [INFO] [stdout] | [INFO] [stdout] 137 | while let Some(chunk) = stream.next().await { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^------^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/openai/chat/api_call.rs:139:9 [INFO] [stdout] | [INFO] [stdout] 139 | } [INFO] [stdout] | ^ [INFO] [stdout] = note: `--force-warn if-let-rescope` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/openai/chat/api_call.rs:182:15 [INFO] [stdout] | [INFO] [stdout] 182 | while let Some(chunk) = strean.next().await { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^------------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/openai/chat/api_call.rs:184:9 [INFO] [stdout] | [INFO] [stdout] 184 | } [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/qianfan/chat/api_call.rs:167:15 [INFO] [stdout] | [INFO] [stdout] 167 | while let Some(response) = response.next().await { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^--------^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/qianfan/chat/api_call.rs:169:9 [INFO] [stdout] | [INFO] [stdout] 169 | } [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `choices`, `object`, `created`, `model`, and `usage` are never read [INFO] [stdout] --> src/openai/chat/response/response.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct OpenAIChatResponse { [INFO] [stdout] | ------------------ fields in this struct [INFO] [stdout] 5 | pub id: String, [INFO] [stdout] | ^^ [INFO] [stdout] 6 | pub choices: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 7 | pub object: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 8 | pub created: i64, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 9 | pub model: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 10 | pub usage: OpenAIChatTokenUsage, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OpenAIChatResponse` 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 `finish_reason`, `index`, and `message` are never read [INFO] [stdout] --> src/openai/chat/response/response.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct OpenAIChatResponseChoice { [INFO] [stdout] | ------------------------ fields in this struct [INFO] [stdout] 15 | pub finish_reason: String, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 16 | pub index: u32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 17 | pub message: OpenAIChatResponseMessage, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OpenAIChatResponseChoice` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `content` and `role` are never read [INFO] [stdout] --> src/openai/chat/response/response.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct OpenAIChatResponseMessage { [INFO] [stdout] | ------------------------- fields in this struct [INFO] [stdout] 22 | pub content: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 23 | pub role: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OpenAIChatResponseMessage` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `prompt_tokens`, `completion_tokens`, and `total_tokens` are never read [INFO] [stdout] --> src/openai/chat/response/response.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct OpenAIChatTokenUsage { [INFO] [stdout] | -------------------- fields in this struct [INFO] [stdout] 28 | pub prompt_tokens: u32, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 29 | pub completion_tokens: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 30 | pub total_tokens: u32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OpenAIChatTokenUsage` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_streamed_chat_response` is never used [INFO] [stdout] --> src/openai/chat/api_call.rs:48:14 [INFO] [stdout] | [INFO] [stdout] 48 | pub async fn get_streamed_chat_response( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating tests/stream.rs from 2021 edition to 2024 [INFO] [stderr] Migrating src/main.rs from 2021 edition to 2024 [INFO] [stdout] warning: unused variable: `cx` [INFO] [stdout] --> tests/stream.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | cx: &mut Context<'_> [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_cx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `i` is assigned to, but never used [INFO] [stdout] --> tests/stream.rs:62:13 [INFO] [stdout] | [INFO] [stdout] 62 | let mut i = 0; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_i` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `role` and `content` are never read [INFO] [stdout] --> tests/stream.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 6 | struct Message { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 7 | role: ChatRole, [INFO] [stdout] | ^^^^ [INFO] [stdout] 8 | content: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Message` 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: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 13.59s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking unilang v0.1.0 (/tmp/fixit) [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/openai/chat/api_call.rs:123:14 [INFO] [stdout] | [INFO] [stdout] 123 | &Client::builder() [INFO] [stdout] | ______________^ [INFO] [stdout] 124 | | .timeout(Duration::from_secs(60)) [INFO] [stdout] 125 | | .build()?, [INFO] [stdout] | |_________________________^ creates a temporary value which is freed while still in use [INFO] [stdout] ... [INFO] [stdout] 135 | ).await?; [INFO] [stdout] | - temporary value is freed at the end of this statement [INFO] [stdout] 136 | [INFO] [stdout] 137 | while let Some(chunk) = stream.next().await { [INFO] [stdout] | ------ borrow later used here [INFO] [stdout] | [INFO] [stdout] help: consider using a `let` binding to create a longer lived value [INFO] [stdout] | [INFO] [stdout] 122 ~ let binding = Client::builder() [INFO] [stdout] 123 + .timeout(Duration::from_secs(60)) [INFO] [stdout] 124 + .build()?; [INFO] [stdout] 125 ~ let mut stream = get_streamed_chat_response( [INFO] [stdout] 126 ~ &binding, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/openai/chat/api_call.rs:126:14 [INFO] [stdout] | [INFO] [stdout] 126 | &OpenAIChatRequestBody::builder() [INFO] [stdout] | ______________^ [INFO] [stdout] 127 | | .messages(vec![ [INFO] [stdout] 128 | | OpenAIChatMessage{ [INFO] [stdout] 129 | | role: OpenAIChatRole::User, [INFO] [stdout] ... | [INFO] [stdout] 133 | | .temperature(0.0) [INFO] [stdout] 134 | | .build() [INFO] [stdout] | |________________________^ creates a temporary value which is freed while still in use [INFO] [stdout] 135 | ).await?; [INFO] [stdout] | - temporary value is freed at the end of this statement [INFO] [stdout] 136 | [INFO] [stdout] 137 | while let Some(chunk) = stream.next().await { [INFO] [stdout] | ------ borrow later used here [INFO] [stdout] | [INFO] [stdout] help: consider using a `let` binding to create a longer lived value [INFO] [stdout] | [INFO] [stdout] 122 ~ let binding = OpenAIChatRequestBody::builder() [INFO] [stdout] 123 + .messages(vec![ [INFO] [stdout] 124 + OpenAIChatMessage{ [INFO] [stdout] 125 + role: OpenAIChatRole::User, [INFO] [stdout] 126 + content: "What is Rust?".to_string(), [INFO] [stdout] 127 + }, [INFO] [stdout] 128 + ]) [INFO] [stdout] 129 + .temperature(0.0) [INFO] [stdout] 130 + .build(); [INFO] [stdout] 131 ~ let mut stream = get_streamed_chat_response( [INFO] [stdout] 132 | &Client::builder() [INFO] [stdout] 133 | .timeout(Duration::from_secs(60)) [INFO] [stdout] 134 | .build()?, [INFO] [stdout] 135 ~ &binding [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/qianfan/chat/api_call.rs:157:14 [INFO] [stdout] | [INFO] [stdout] 157 | &QianfanChatRequestBody::builder() [INFO] [stdout] | ______________^ [INFO] [stdout] 158 | | .messages(vec![ [INFO] [stdout] 159 | | QianfanChatMessage { [INFO] [stdout] 160 | | role: QianfanChatRole::User, [INFO] [stdout] ... | [INFO] [stdout] 163 | | ]) [INFO] [stdout] 164 | | .build() [INFO] [stdout] | |________________________^ creates a temporary value which is freed while still in use [INFO] [stdout] 165 | ).await?; [INFO] [stdout] | - temporary value is freed at the end of this statement [INFO] [stdout] 166 | [INFO] [stdout] 167 | while let Some(response) = response.next().await { [INFO] [stdout] | -------- borrow later used here [INFO] [stdout] | [INFO] [stdout] help: consider using a `let` binding to create a longer lived value [INFO] [stdout] | [INFO] [stdout] 155 ~ let binding = QianfanChatRequestBody::builder() [INFO] [stdout] 156 + .messages(vec![ [INFO] [stdout] 157 + QianfanChatMessage { [INFO] [stdout] 158 + role: QianfanChatRole::User, [INFO] [stdout] 159 + content: "What is Rust?".to_string(), [INFO] [stdout] 160 + }, [INFO] [stdout] 161 + ]) [INFO] [stdout] 162 + .build(); [INFO] [stdout] 163 ~ let mut response = get_streamed_chat_response( [INFO] [stdout] 164 | &client, [INFO] [stdout] 165 ~ &binding [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `choices`, `object`, `created`, `model`, and `usage` are never read [INFO] [stdout] --> src/openai/chat/response/response.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct OpenAIChatResponse { [INFO] [stdout] | ------------------ fields in this struct [INFO] [stdout] 5 | pub id: String, [INFO] [stdout] | ^^ [INFO] [stdout] 6 | pub choices: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 7 | pub object: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 8 | pub created: i64, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 9 | pub model: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 10 | pub usage: OpenAIChatTokenUsage, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OpenAIChatResponse` 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 `finish_reason`, `index`, and `message` are never read [INFO] [stdout] --> src/openai/chat/response/response.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct OpenAIChatResponseChoice { [INFO] [stdout] | ------------------------ fields in this struct [INFO] [stdout] 15 | pub finish_reason: String, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 16 | pub index: u32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 17 | pub message: OpenAIChatResponseMessage, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OpenAIChatResponseChoice` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `content` and `role` are never read [INFO] [stdout] --> src/openai/chat/response/response.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct OpenAIChatResponseMessage { [INFO] [stdout] | ------------------------- fields in this struct [INFO] [stdout] 22 | pub content: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 23 | pub role: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OpenAIChatResponseMessage` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `prompt_tokens`, `completion_tokens`, and `total_tokens` are never read [INFO] [stdout] --> src/openai/chat/response/response.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct OpenAIChatTokenUsage { [INFO] [stdout] | -------------------- fields in this struct [INFO] [stdout] 28 | pub prompt_tokens: u32, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 29 | pub completion_tokens: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 30 | pub total_tokens: u32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OpenAIChatTokenUsage` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_streamed_chat_response` is never used [INFO] [stdout] --> src/openai/chat/api_call.rs:48:14 [INFO] [stdout] | [INFO] [stdout] 48 | pub async fn get_streamed_chat_response( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0716`. [INFO] [stdout] [INFO] [stderr] error: could not compile `unilang` (lib test) due to 4 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: failed to check after updating to 2024 [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo check --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "c6a9dc2ab7aa6f85875a37e950751f4e9d7574a230c356100727b42f8b0affb9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c6a9dc2ab7aa6f85875a37e950751f4e9d7574a230c356100727b42f8b0affb9", kill_on_drop: false }` [INFO] [stdout] c6a9dc2ab7aa6f85875a37e950751f4e9d7574a230c356100727b42f8b0affb9