[INFO] cloning repository https://github.com/meipeter/ai_translate_unity_localization [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/meipeter/ai_translate_unity_localization" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmeipeter%2Fai_translate_unity_localization", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmeipeter%2Fai_translate_unity_localization'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 3b3de6f7bf5fbf1df5d0b324ce38b838e63b9a3b [INFO] testing meipeter/ai_translate_unity_localization against try#16fbf98f22730e073c09e7b03f0eafb87a295545 for pr-145628 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmeipeter%2Fai_translate_unity_localization" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/meipeter/ai_translate_unity_localization [INFO] finished tweaking git repo https://github.com/meipeter/ai_translate_unity_localization [INFO] tweaked toml for git repo https://github.com/meipeter/ai_translate_unity_localization written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/meipeter/ai_translate_unity_localization on toolchain 16fbf98f22730e073c09e7b03f0eafb87a295545 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+16fbf98f22730e073c09e7b03f0eafb87a295545" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/meipeter/ai_translate_unity_localization 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" "+16fbf98f22730e073c09e7b03f0eafb87a295545" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded openai-api-rs v5.0.10 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+16fbf98f22730e073c09e7b03f0eafb87a295545" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 79cf68b8bd61ac6f2e483c558e98f54e938fcea54115f45c1d7012027accc689 [INFO] running `Command { std: "docker" "start" "-a" "79cf68b8bd61ac6f2e483c558e98f54e938fcea54115f45c1d7012027accc689", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "79cf68b8bd61ac6f2e483c558e98f54e938fcea54115f45c1d7012027accc689", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "79cf68b8bd61ac6f2e483c558e98f54e938fcea54115f45c1d7012027accc689", kill_on_drop: false }` [INFO] [stdout] 79cf68b8bd61ac6f2e483c558e98f54e938fcea54115f45c1d7012027accc689 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+16fbf98f22730e073c09e7b03f0eafb87a295545" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c652ddf46eca171b0bcc390e01bc02bf37496e64f03720a41455f1ba4260bca1 [INFO] running `Command { std: "docker" "start" "-a" "c652ddf46eca171b0bcc390e01bc02bf37496e64f03720a41455f1ba4260bca1", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling libc v0.2.159 [INFO] [stderr] Compiling pin-project-lite v0.2.14 [INFO] [stderr] Compiling bytes v1.7.2 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling once_cell v1.20.1 [INFO] [stderr] Compiling itoa v1.0.11 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Compiling pkg-config v0.3.31 [INFO] [stderr] Compiling cc v1.1.23 [INFO] [stderr] Compiling futures-task v0.3.30 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling unicase v2.7.0 [INFO] [stderr] Compiling httparse v1.9.5 [INFO] [stderr] Compiling openssl v0.10.66 [INFO] [stderr] Compiling bitflags v2.6.0 [INFO] [stderr] Compiling atomic-waker v1.1.2 [INFO] [stderr] Compiling serde v1.0.210 [INFO] [stderr] Compiling futures-util v0.3.30 [INFO] [stderr] Compiling native-tls v0.2.12 [INFO] [stderr] Compiling tracing-core v0.1.32 [INFO] [stderr] Compiling try-lock v0.2.5 [INFO] [stderr] Compiling tinyvec v1.8.0 [INFO] [stderr] Compiling want v0.3.1 [INFO] [stderr] Compiling thiserror v1.0.64 [INFO] [stderr] Compiling openssl-probe v0.1.5 [INFO] [stderr] Compiling log v0.4.22 [INFO] [stderr] Compiling unicode-bidi v0.3.15 [INFO] [stderr] Compiling http v1.1.0 [INFO] [stderr] Compiling mime_guess v2.0.5 [INFO] [stderr] Compiling tower-service v0.3.3 [INFO] [stderr] Compiling serde_json v1.0.128 [INFO] [stderr] Compiling indexmap v2.5.0 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling rustls-pki-types v1.9.0 [INFO] [stderr] Compiling sync_wrapper v1.0.1 [INFO] [stderr] Compiling encoding_rs v0.8.34 [INFO] [stderr] Compiling base64 v0.22.1 [INFO] [stderr] Compiling ipnet v2.10.0 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling socket2 v0.5.7 [INFO] [stderr] Compiling mio v1.0.2 [INFO] [stderr] Compiling signal-hook-registry v1.4.2 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling syn v2.0.79 [INFO] [stderr] Compiling rustls-pemfile v2.2.0 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling http-body v1.0.1 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling http-body-util v0.1.2 [INFO] [stderr] Compiling unicode-normalization v0.1.24 [INFO] [stderr] Compiling openssl-sys v0.9.103 [INFO] [stderr] Compiling idna v0.5.0 [INFO] [stderr] Compiling url v2.5.2 [INFO] [stderr] Compiling tokio-macros v2.4.0 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling serde_derive v1.0.210 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling thiserror-impl v1.0.64 [INFO] [stderr] Compiling tokio v1.40.0 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling ppv-lite86 v0.2.20 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling tokio-util v0.7.12 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling tokio-socks v0.5.2 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling h2 v0.4.6 [INFO] [stderr] Compiling hyper v1.4.1 [INFO] [stderr] Compiling hyper-util v0.1.9 [INFO] [stderr] Compiling hyper-tls v0.6.0 [INFO] [stderr] Compiling reqwest v0.12.8 [INFO] [stderr] Compiling openai-api-rs v5.0.10 [INFO] [stderr] Compiling ai_translate_unity_localization v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `ops::Deref` [INFO] [stdout] --> src/main.rs:1:26 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{fs, io::Write, ops::Deref, sync::Arc, time::Duration}; [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 import: `task::JoinHandle` [INFO] [stdout] --> src/main.rs:2:26 [INFO] [stdout] | [INFO] [stdout] 2 | use tokio::{sync::Mutex, task::JoinHandle, time}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde::Serialize` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use serde::Serialize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | let mut L: format::L = serde_json::from_str(&input_file).expect("Failed to deserialize JSON"); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `lc` does not live long enough [INFO] [stdout] --> src/main.rs:19:28 [INFO] [stdout] | [INFO] [stdout] 18 | let lc = Arc::clone(&lc); [INFO] [stdout] | -- binding `lc` declared here [INFO] [stdout] 19 | let mut lc_guard = lc.lock().await; [INFO] [stdout] | ^^ borrowed value does not live long enough [INFO] [stdout] ... [INFO] [stdout] 25 | let task = tokio::spawn(async move { [INFO] [stdout] | ________________________________- [INFO] [stdout] 26 | | time::sleep(Duration::from_secs(OsRng.gen_range(0..1))).await; [INFO] [stdout] 27 | | let mut value = value.lock().await; [INFO] [stdout] 28 | | println!("val {:?}", &value); [INFO] [stdout] 29 | | value.value = "ssdf".to_string(); [INFO] [stdout] 30 | | println!("val {:?}", &value.value); [INFO] [stdout] 31 | | }); [INFO] [stdout] | |______________________- argument requires that `lc` is borrowed for `'static` [INFO] [stdout] ... [INFO] [stdout] 36 | } [INFO] [stdout] | - `lc` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `lc_guard` does not live long enough [INFO] [stdout] --> src/main.rs:21:25 [INFO] [stdout] | [INFO] [stdout] 19 | let mut lc_guard = lc.lock().await; [INFO] [stdout] | ------------ binding `lc_guard` declared here [INFO] [stdout] 20 | [INFO] [stdout] 21 | for tab in &mut lc_guard.tables { [INFO] [stdout] | ^^^^^^^^ borrowed value does not live long enough [INFO] [stdout] ... [INFO] [stdout] 25 | let task = tokio::spawn(async move { [INFO] [stdout] | ________________________________- [INFO] [stdout] 26 | | time::sleep(Duration::from_secs(OsRng.gen_range(0..1))).await; [INFO] [stdout] 27 | | let mut value = value.lock().await; [INFO] [stdout] 28 | | println!("val {:?}", &value); [INFO] [stdout] 29 | | value.value = "ssdf".to_string(); [INFO] [stdout] 30 | | println!("val {:?}", &value.value); [INFO] [stdout] 31 | | }); [INFO] [stdout] | |______________________- argument requires that `lc_guard` is borrowed for `'static` [INFO] [stdout] ... [INFO] [stdout] 36 | } [INFO] [stdout] | - `lc_guard` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0597`. [INFO] [stdout] [INFO] [stderr] error: could not compile `ai_translate_unity_localization` (bin "ai_translate_unity_localization") due to 2 previous errors; 4 warnings emitted [INFO] running `Command { std: "docker" "inspect" "c652ddf46eca171b0bcc390e01bc02bf37496e64f03720a41455f1ba4260bca1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c652ddf46eca171b0bcc390e01bc02bf37496e64f03720a41455f1ba4260bca1", kill_on_drop: false }` [INFO] [stdout] c652ddf46eca171b0bcc390e01bc02bf37496e64f03720a41455f1ba4260bca1