[INFO] cloning repository https://github.com/chiahaohsutai/bash-bert [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/chiahaohsutai/bash-bert" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fchiahaohsutai%2Fbash-bert", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fchiahaohsutai%2Fbash-bert'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ada3534f812b2365a6b3c638f1ea6edd3331dcf5 [INFO] checking chiahaohsutai/bash-bert against try#5ef65a4ed75279dc1b7a26cedc27293a9f4ca8db for pr-143717 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fchiahaohsutai%2Fbash-bert" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/chiahaohsutai/bash-bert [INFO] finished tweaking git repo https://github.com/chiahaohsutai/bash-bert [INFO] tweaked toml for git repo https://github.com/chiahaohsutai/bash-bert written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/chiahaohsutai/bash-bert on toolchain 5ef65a4ed75279dc1b7a26cedc27293a9f4ca8db [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+5ef65a4ed75279dc1b7a26cedc27293a9f4ca8db" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/chiahaohsutai/bash-bert 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" "+5ef65a4ed75279dc1b7a26cedc27293a9f4ca8db" "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] 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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+5ef65a4ed75279dc1b7a26cedc27293a9f4ca8db" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e6c7c4d3417036ce98d71a9a6ebc1c539517e6fd8e908c3150a503ee8d2b750d [INFO] running `Command { std: "docker" "start" "-a" "e6c7c4d3417036ce98d71a9a6ebc1c539517e6fd8e908c3150a503ee8d2b750d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e6c7c4d3417036ce98d71a9a6ebc1c539517e6fd8e908c3150a503ee8d2b750d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e6c7c4d3417036ce98d71a9a6ebc1c539517e6fd8e908c3150a503ee8d2b750d", kill_on_drop: false }` [INFO] [stdout] e6c7c4d3417036ce98d71a9a6ebc1c539517e6fd8e908c3150a503ee8d2b750d [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" "-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+5ef65a4ed75279dc1b7a26cedc27293a9f4ca8db" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0c3435842bf856113990c70e4f33cd8797d1efa9594fef6e76f5a184ff6870b0 [INFO] running `Command { std: "docker" "start" "-a" "0c3435842bf856113990c70e4f33cd8797d1efa9594fef6e76f5a184ff6870b0", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.95 [INFO] [stderr] Compiling unicode-ident v1.0.18 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Checking itoa v1.0.15 [INFO] [stderr] Checking memchr v2.7.5 [INFO] [stderr] Checking ryu v1.0.20 [INFO] [stderr] Checking dotenvy v0.15.7 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Checking bashbert v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `api_key` [INFO] [stdout] --> src/lib.rs:77:9 [INFO] [stdout] | [INFO] [stdout] 77 | let api_key = get_env_var("GEMINI_API_KEY")?; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_api_key` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `api_key` [INFO] [stdout] --> src/lib.rs:77:9 [INFO] [stdout] | [INFO] [stdout] 77 | let api_key = get_env_var("GEMINI_API_KEY")?; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_api_key` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `endpoint` [INFO] [stdout] --> src/lib.rs:80:9 [INFO] [stdout] | [INFO] [stdout] 80 | let endpoint = format!("{base_url}/v1beta/models/{model}:generateContent"); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_endpoint` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `endpoint` [INFO] [stdout] --> src/lib.rs:80:9 [INFO] [stdout] | [INFO] [stdout] 80 | let endpoint = format!("{base_url}/v1beta/models/{model}:generateContent"); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_endpoint` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `model` [INFO] [stdout] --> src/lib.rs:85:9 [INFO] [stdout] | [INFO] [stdout] 85 | let model = env::var("GEMINI_MODEL").map_err(|_| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_model` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `model` [INFO] [stdout] --> src/lib.rs:85:9 [INFO] [stdout] | [INFO] [stdout] 85 | let model = env::var("GEMINI_MODEL").map_err(|_| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_model` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/lib.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl MessageText { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 10 | pub fn new(text: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/lib.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl MessageText { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 10 | pub fn new(text: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/lib.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl MessagePart { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 22 | pub fn new(text: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/lib.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 34 | impl ChatMessage { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 35 | pub fn new(role: &str, text: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/lib.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl MessagePart { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 22 | pub fn new(text: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_env_var` is never used [INFO] [stdout] --> src/lib.rs:60:4 [INFO] [stdout] | [INFO] [stdout] 60 | fn get_env_var(key: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `strip_trailing_slash` is never used [INFO] [stdout] --> src/lib.rs:67:4 [INFO] [stdout] | [INFO] [stdout] 67 | fn strip_trailing_slash(url: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_text` is never used [INFO] [stdout] --> src/lib.rs:75:4 [INFO] [stdout] | [INFO] [stdout] 75 | fn generate_text() -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/lib.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 34 | impl ChatMessage { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 35 | pub fn new(role: &str, text: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_env_var` is never used [INFO] [stdout] --> src/lib.rs:60:4 [INFO] [stdout] | [INFO] [stdout] 60 | fn get_env_var(key: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `strip_trailing_slash` is never used [INFO] [stdout] --> src/lib.rs:67:4 [INFO] [stdout] | [INFO] [stdout] 67 | fn strip_trailing_slash(url: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_text` is never used [INFO] [stdout] --> src/lib.rs:75:4 [INFO] [stdout] | [INFO] [stdout] 75 | fn generate_text() -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 5.49s [INFO] running `Command { std: "docker" "inspect" "0c3435842bf856113990c70e4f33cd8797d1efa9594fef6e76f5a184ff6870b0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0c3435842bf856113990c70e4f33cd8797d1efa9594fef6e76f5a184ff6870b0", kill_on_drop: false }` [INFO] [stdout] 0c3435842bf856113990c70e4f33cd8797d1efa9594fef6e76f5a184ff6870b0