[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 e977a0b5ab976a591981e7263bd67a71a4f79308 for pr-158914
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fchiahaohsutai%2Fbash-bert" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-0-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-0-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/chiahaohsutai/bash-bert on toolchain e977a0b5ab976a591981e7263bd67a71a4f79308
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+e977a0b5ab976a591981e7263bd67a71a4f79308" "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" "+e977a0b5ab976a591981e7263bd67a71a4f79308" "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-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3d5ced03c013a94a2f102a4510f48a6e9184255caf5fd8244f58017bde7f5210" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] 92b60bf2b499f472f346aefab271b75acbe3a7d22ef77c5bbc87334d8c275cb3
[INFO] running `Command { std: "docker" "start" "92b60bf2b499f472f346aefab271b75acbe3a7d22ef77c5bbc87334d8c275cb3", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "92b60bf2b499f472f346aefab271b75acbe3a7d22ef77c5bbc87334d8c275cb3", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "92b60bf2b499f472f346aefab271b75acbe3a7d22ef77c5bbc87334d8c275cb3" "/opt/rustwide/cargo-home/bin/cargo" "+e977a0b5ab976a591981e7263bd67a71a4f79308" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "92b60bf2b499f472f346aefab271b75acbe3a7d22ef77c5bbc87334d8c275cb3", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-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" "-w" "/opt/rustwide/workdir" "--user" "0:0" "92b60bf2b499f472f346aefab271b75acbe3a7d22ef77c5bbc87334d8c275cb3" "/opt/rustwide/cargo-home/bin/cargo" "+e977a0b5ab976a591981e7263bd67a71a4f79308" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v1.0.95
[INFO] [stderr]     Checking memchr v2.7.5
[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 serde v1.0.219
[INFO] [stderr]     Checking serde_json v1.0.140
[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)]` (part of `#[warn(unused)]`) 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: `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: struct `MessageText` is never constructed
[INFO] [stdout]  --> src/lib.rs:6:8
[INFO] [stdout]   |
[INFO] [stdout] 6 | struct MessageText {
[INFO] [stdout]   |        ^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) 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] 
[INFO] [stdout] warning: struct `MessagePart` is never constructed
[INFO] [stdout]   --> src/lib.rs:18:8
[INFO] [stdout]    |
[INFO] [stdout] 18 | struct MessagePart {
[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: struct `ChatMessage` is never constructed
[INFO] [stdout]   --> src/lib.rs:30:8
[INFO] [stdout]    |
[INFO] [stdout] 30 | struct ChatMessage {
[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: struct `GenerationConfig` is never constructed
[INFO] [stdout]   --> src/lib.rs:44:8
[INFO] [stdout]    |
[INFO] [stdout] 44 | struct GenerationConfig {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Chat` is never constructed
[INFO] [stdout]   --> src/lib.rs:53:8
[INFO] [stdout]    |
[INFO] [stdout] 53 | struct Chat {
[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<String, Error> {
[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<String, Error> {
[INFO] [stdout]    |    ^^^^^^^^^^^^^
[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)]` (part of `#[warn(unused)]`) 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: `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: struct `MessageText` is never constructed
[INFO] [stdout]  --> src/lib.rs:6:8
[INFO] [stdout]   |
[INFO] [stdout] 6 | struct MessageText {
[INFO] [stdout]   |        ^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) 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] 
[INFO] [stdout] warning: struct `MessagePart` is never constructed
[INFO] [stdout]   --> src/lib.rs:18:8
[INFO] [stdout]    |
[INFO] [stdout] 18 | struct MessagePart {
[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: struct `ChatMessage` is never constructed
[INFO] [stdout]   --> src/lib.rs:30:8
[INFO] [stdout]    |
[INFO] [stdout] 30 | struct ChatMessage {
[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: struct `GenerationConfig` is never constructed
[INFO] [stdout]   --> src/lib.rs:44:8
[INFO] [stdout]    |
[INFO] [stdout] 44 | struct GenerationConfig {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Chat` is never constructed
[INFO] [stdout]   --> src/lib.rs:53:8
[INFO] [stdout]    |
[INFO] [stdout] 53 | struct Chat {
[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<String, Error> {
[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<String, Error> {
[INFO] [stdout]    |    ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 9.26s
[INFO] running `Command { std: "docker" "inspect" "92b60bf2b499f472f346aefab271b75acbe3a7d22ef77c5bbc87334d8c275cb3", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "92b60bf2b499f472f346aefab271b75acbe3a7d22ef77c5bbc87334d8c275cb3", kill_on_drop: false }`
[INFO] [stdout] 92b60bf2b499f472f346aefab271b75acbe3a7d22ef77c5bbc87334d8c275cb3
