[INFO] cloning repository https://github.com/yiwufen/rig_example
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/yiwufen/rig_example" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyiwufen%2Frig_example", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyiwufen%2Frig_example'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] c2319e29f24c78ef29f8728753cb634214da3272
[INFO] checking yiwufen/rig_example/c2319e29f24c78ef29f8728753cb634214da3272 against master#4eb62535fc12dd1a63fd43a4173e224e79313c4d for pr-158816
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyiwufen%2Frig_example" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/yiwufen/rig_example
[INFO] finished tweaking git repo https://github.com/yiwufen/rig_example
[INFO] tweaked toml for git repo https://github.com/yiwufen/rig_example written to /workspace/builds/worker-0-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/yiwufen/rig_example on toolchain 4eb62535fc12dd1a63fd43a4173e224e79313c4d
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4eb62535fc12dd1a63fd43a4173e224e79313c4d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/yiwufen/rig_example 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" "+4eb62535fc12dd1a63fd43a4173e224e79313c4d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded schemars v0.8.21
[INFO] [stderr]   Downloaded zerofrom v0.1.4
[INFO] [stderr]   Downloaded schemars_derive v0.8.21
[INFO] [stderr]   Downloaded zerofrom-derive v0.1.4
[INFO] [stderr]   Downloaded url v2.5.3
[INFO] [stderr]   Downloaded rig-core v0.4.1
[INFO] [stderr]   Downloaded yoke-derive v0.7.4
[INFO] [stderr]   Downloaded security-framework-sys v2.12.1
[INFO] [stderr]   Downloaded ordered-float v4.5.0
[INFO] [stderr]   Downloaded yoke v0.7.4
[INFO] [stderr]   Downloaded litemap v0.7.3
[INFO] [stderr]   Downloaded rustix v0.38.40
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/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] fb4c7a12b07f084f3b5dbd2af2a9137f024137b428a77e49c3b5c983ad4226eb
[INFO] running `Command { std: "docker" "start" "fb4c7a12b07f084f3b5dbd2af2a9137f024137b428a77e49c3b5c983ad4226eb", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "fb4c7a12b07f084f3b5dbd2af2a9137f024137b428a77e49c3b5c983ad4226eb", 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" "fb4c7a12b07f084f3b5dbd2af2a9137f024137b428a77e49c3b5c983ad4226eb" "/opt/rustwide/cargo-home/bin/cargo" "+4eb62535fc12dd1a63fd43a4173e224e79313c4d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "fb4c7a12b07f084f3b5dbd2af2a9137f024137b428a77e49c3b5c983ad4226eb", 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" "fb4c7a12b07f084f3b5dbd2af2a9137f024137b428a77e49c3b5c983ad4226eb" "/opt/rustwide/cargo-home/bin/cargo" "+4eb62535fc12dd1a63fd43a4173e224e79313c4d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v1.0.89
[INFO] [stderr]    Compiling unicode-ident v1.0.13
[INFO] [stderr]    Compiling libc v0.2.164
[INFO] [stderr]     Checking smallvec v1.13.2
[INFO] [stderr]    Compiling pkg-config v0.3.31
[INFO] [stderr]    Compiling cc v1.2.1
[INFO] [stderr]     Checking litemap v0.7.3
[INFO] [stderr]     Checking bytes v1.8.0
[INFO] [stderr]     Checking itoa v1.0.11
[INFO] [stderr]    Compiling openssl v0.10.68
[INFO] [stderr]    Compiling serde v1.0.215
[INFO] [stderr]     Checking tracing-core v0.1.32
[INFO] [stderr]     Checking hashbrown v0.15.1
[INFO] [stderr]     Checking bitflags v2.6.0
[INFO] [stderr]    Compiling native-tls v0.2.12
[INFO] [stderr]     Checking openssl-probe v0.1.5
[INFO] [stderr]    Compiling serde_json v1.0.133
[INFO] [stderr]    Compiling num-traits v0.2.19
[INFO] [stderr]    Compiling schemars v0.8.21
[INFO] [stderr]     Checking dyn-clone v1.0.17
[INFO] [stderr]    Compiling anyhow v1.0.93
[INFO] [stderr]     Checking glob v0.3.1
[INFO] [stderr]     Checking http v0.2.12
[INFO] [stderr]    Compiling quote v1.0.37
[INFO] [stderr]    Compiling syn v2.0.87
[INFO] [stderr]     Checking indexmap v2.6.0
[INFO] [stderr]     Checking parking_lot_core v0.9.10
[INFO] [stderr]     Checking signal-hook-registry v1.4.2
[INFO] [stderr]     Checking mio v1.0.2
[INFO] [stderr]     Checking socket2 v0.5.7
[INFO] [stderr]     Checking ordered-float v4.5.0
[INFO] [stderr]     Checking parking_lot v0.12.3
[INFO] [stderr]    Compiling openssl-sys v0.9.104
[INFO] [stderr]     Checking http-body v0.4.6
[INFO] [stderr]    Compiling synstructure v0.13.1
[INFO] [stderr]    Compiling serde_derive_internals v0.29.1
[INFO] [stderr]    Compiling zerofrom-derive v0.1.4
[INFO] [stderr]    Compiling yoke-derive v0.7.4
[INFO] [stderr]    Compiling zerovec-derive v0.10.3
[INFO] [stderr]    Compiling displaydoc v0.2.5
[INFO] [stderr]    Compiling icu_provider_macros v1.5.0
[INFO] [stderr]    Compiling futures-macro v0.3.31
[INFO] [stderr]    Compiling tokio-macros v2.4.0
[INFO] [stderr]    Compiling tracing-attributes v0.1.27
[INFO] [stderr]    Compiling serde_derive v1.0.215
[INFO] [stderr]    Compiling openssl-macros v0.1.1
[INFO] [stderr]    Compiling thiserror-impl v1.0.69
[INFO] [stderr]    Compiling schemars_derive v0.8.21
[INFO] [stderr]     Checking tokio v1.41.1
[INFO] [stderr]     Checking futures-util v0.3.31
[INFO] [stderr]     Checking zerofrom v0.1.4
[INFO] [stderr]     Checking yoke v0.7.4
[INFO] [stderr]     Checking tracing v0.1.40
[INFO] [stderr]     Checking thiserror v1.0.69
[INFO] [stderr]     Checking zerovec v0.10.4
[INFO] [stderr]     Checking tinystr v0.7.6
[INFO] [stderr]     Checking icu_collections v1.5.0
[INFO] [stderr]     Checking icu_locid v1.5.0
[INFO] [stderr]     Checking icu_provider v1.5.0
[INFO] [stderr]     Checking icu_locid_transform v1.5.0
[INFO] [stderr]     Checking icu_properties v1.5.1
[INFO] [stderr]     Checking futures-executor v0.3.31
[INFO] [stderr]     Checking futures v0.3.31
[INFO] [stderr]     Checking tokio-util v0.7.12
[INFO] [stderr]     Checking tokio-native-tls v0.3.1
[INFO] [stderr]     Checking icu_normalizer v1.5.0
[INFO] [stderr]     Checking serde_urlencoded v0.7.1
[INFO] [stderr]     Checking h2 v0.3.26
[INFO] [stderr]     Checking idna_adapter v1.2.0
[INFO] [stderr]     Checking idna v1.0.3
[INFO] [stderr]     Checking url v2.5.3
[INFO] [stderr]     Checking hyper v0.14.31
[INFO] [stderr]     Checking hyper-tls v0.5.0
[INFO] [stderr]     Checking reqwest v0.11.27
[INFO] [stderr]     Checking rig-core v0.4.1
[INFO] [stderr]     Checking llm-rig v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `crate::untils::create_client_from_env`
[INFO] [stdout]  --> src/extract_demo.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use crate::untils::create_client_from_env;
[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: `VectorStore`, `completion::Prompt`, `embeddings::EmbeddingsBuilder`, and `in_memory_store::InMemoryVectorStore`
[INFO] [stdout]  --> src/rag_demo.rs:1:11
[INFO] [stdout]   |
[INFO] [stdout] 1 | use rig::{completion::Prompt, embeddings::EmbeddingsBuilder, vector_store::{in_memory_store::InMemoryVectorStore, VectorStore}};
[INFO] [stdout]   |           ^^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::untils::create_client_from_env`
[INFO] [stdout]  --> src/rag_demo.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use crate::untils::create_client_from_env;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `fs::File` and `io::Write`
[INFO] [stdout]  --> src/cot_demo.rs:1:11
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::{fs::File, io::Write};
[INFO] [stdout]   |           ^^^^^^^^  ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Chat` and `Message`
[INFO] [stdout]  --> src/cot_demo.rs:3:23
[INFO] [stdout]   |
[INFO] [stdout] 3 | use rig::completion::{Chat, Message};
[INFO] [stdout]   |                       ^^^^  ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::untils::create_client_from_env`
[INFO] [stdout]  --> src/cot_demo.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use crate::untils::create_client_from_env;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `MovieReview` is never constructed
[INFO] [stdout]  --> src/extract_demo.rs:7:8
[INFO] [stdout]   |
[INFO] [stdout] 7 | struct MovieReview {
[INFO] [stdout]   |        ^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `PLan` is never constructed
[INFO] [stdout]   --> src/extract_demo.rs:24:8
[INFO] [stdout]    |
[INFO] [stdout] 24 | struct PLan {
[INFO] [stdout]    |        ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `Action` is never used
[INFO] [stdout]   --> src/extract_demo.rs:30:6
[INFO] [stdout]    |
[INFO] [stdout] 30 | enum Action {
[INFO] [stdout]    |      ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `Obj` is never used
[INFO] [stdout]   --> src/extract_demo.rs:42:6
[INFO] [stdout]    |
[INFO] [stdout] 42 | enum Obj {
[INFO] [stdout]    |      ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Plans` is never constructed
[INFO] [stdout]   --> src/extract_demo.rs:51:8
[INFO] [stdout]    |
[INFO] [stdout] 51 | struct Plans{
[INFO] [stdout]    |        ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `create_client_from_env` is never used
[INFO] [stdout]  --> src/untils.rs:5:8
[INFO] [stdout]   |
[INFO] [stdout] 5 | pub fn create_client_from_env() -> openai::Client {
[INFO] [stdout]   |        ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/cot_demo.rs:17:9
[INFO] [stdout]    |
[INFO] [stdout] 17 |     let mut cot_agent = client.agent("gpt-4")
[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] warning: unused variable: `agent`
[INFO] [stdout]   --> src/cot_demo.rs:21:9
[INFO] [stdout]    |
[INFO] [stdout] 21 |     let agent = client.agent("gpt-4")
[INFO] [stdout]    |         ^^^^^ help: if this is intentional, prefix it with an underscore: `_agent`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/cot_demo.rs:139:9
[INFO] [stdout]     |
[INFO] [stdout] 139 |     let mut cot_agent = client.agent("gpt-4")
[INFO] [stdout]     |         ----^^^^^^^^^
[INFO] [stdout]     |         |
[INFO] [stdout]     |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `mes`
[INFO] [stdout]    --> src/cot_demo.rs:191:9
[INFO] [stdout]     |
[INFO] [stdout] 191 |     let mes = Message {
[INFO] [stdout]     |         ^^^ help: if this is intentional, prefix it with an underscore: `_mes`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `test_CoT` should have a snake case name
[INFO] [stdout]  --> src/cot_demo.rs:9:10
[INFO] [stdout]   |
[INFO] [stdout] 9 | async fn test_CoT() -> Result<(), anyhow::Error> {
[INFO] [stdout]   |          ^^^^^^^^ help: convert the identifier to snake case: `test_co_t`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `test_auto_CoT` should have a snake case name
[INFO] [stdout]    --> src/cot_demo.rs:136:10
[INFO] [stdout]     |
[INFO] [stdout] 136 | async fn test_auto_CoT() -> Result<(), anyhow::Error> {
[INFO] [stdout]     |          ^^^^^^^^^^^^^ help: convert the identifier to snake case: `test_auto_co_t`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 33.47s
[INFO] running `Command { std: "docker" "inspect" "fb4c7a12b07f084f3b5dbd2af2a9137f024137b428a77e49c3b5c983ad4226eb", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "fb4c7a12b07f084f3b5dbd2af2a9137f024137b428a77e49c3b5c983ad4226eb", kill_on_drop: false }`
[INFO] [stdout] fb4c7a12b07f084f3b5dbd2af2a9137f024137b428a77e49c3b5c983ad4226eb
