[INFO] cloning repository https://github.com/ADOzog/referenced_based_similarity
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ADOzog/referenced_based_similarity" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FADOzog%2Freferenced_based_similarity", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FADOzog%2Freferenced_based_similarity'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] c7e538ca28bb1f93a805a60f5ffd7a154a40e84d
[INFO] checking ADOzog/referenced_based_similarity against 3154cc1a3e6424e44f438a95007d043ed5ceaaf6+rustflags=-Znext-solver=coherence for pr-133502-30
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FADOzog%2Freferenced_based_similarity" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/ADOzog/referenced_based_similarity
[INFO] finished tweaking git repo https://github.com/ADOzog/referenced_based_similarity
[INFO] tweaked toml for git repo https://github.com/ADOzog/referenced_based_similarity written to /workspace/builds/worker-5-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/ADOzog/referenced_based_similarity on toolchain 3154cc1a3e6424e44f438a95007d043ed5ceaaf6
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+3154cc1a3e6424e44f438a95007d043ed5ceaaf6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/ADOzog/referenced_based_similarity 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" "+3154cc1a3e6424e44f438a95007d043ed5ceaaf6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded schemars v1.2.1
[INFO] [stderr]   Downloaded schemars_derive v1.2.1
[INFO] [stderr]   Downloaded wasm-bindgen-futures v0.4.72
[INFO] [stderr]   Downloaded ollama-rs v0.3.4
[INFO] [stderr]   Downloaded bitflags v2.12.1
[INFO] [stderr]   Downloaded openssl-sys v0.9.116
[INFO] [stderr]   Downloaded http v1.4.1
[INFO] [stderr]   Downloaded rustls-pki-types v1.14.1
[INFO] [stderr]   Downloaded hf-hub v0.5.0
[INFO] [stderr]   Downloaded hyper v1.10.1
[INFO] [stderr]   Downloaded h2 v0.4.14
[INFO] [stderr]   Downloaded openssl v0.10.80
[INFO] [stderr]   Downloaded rustls v0.23.40
[INFO] [stderr]   Downloaded webpki-roots v1.0.7
[INFO] [stderr]   Downloaded web-sys v0.3.99
[INFO] [stderr]   Downloaded libredox v0.1.17
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:77db811e55d90add9212f6832c23229e3de5f1c1f9905e8cb07319ea15df73ac" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] adb528123a940a32d0ad998311f2b2fd77293cb734e14a2b4a3f10cfc4059c87
[INFO] running `Command { std: "docker" "start" "adb528123a940a32d0ad998311f2b2fd77293cb734e14a2b4a3f10cfc4059c87", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "adb528123a940a32d0ad998311f2b2fd77293cb734e14a2b4a3f10cfc4059c87", 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" "adb528123a940a32d0ad998311f2b2fd77293cb734e14a2b4a3f10cfc4059c87" "/opt/rustwide/cargo-home/bin/cargo" "+3154cc1a3e6424e44f438a95007d043ed5ceaaf6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "adb528123a940a32d0ad998311f2b2fd77293cb734e14a2b4a3f10cfc4059c87", 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 -Znext-solver=coherence" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-w" "/opt/rustwide/workdir" "--user" "0:0" "adb528123a940a32d0ad998311f2b2fd77293cb734e14a2b4a3f10cfc4059c87" "/opt/rustwide/cargo-home/bin/cargo" "+3154cc1a3e6424e44f438a95007d043ed5ceaaf6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]     Checking futures-core v0.3.32
[INFO] [stderr]     Checking futures-sink v0.3.32
[INFO] [stderr]     Checking memchr v2.8.1
[INFO] [stderr]    Compiling cc v1.2.63
[INFO] [stderr]     Checking http v1.4.1
[INFO] [stderr]     Checking smallvec v1.15.1
[INFO] [stderr]     Checking zeroize v1.8.2
[INFO] [stderr]    Compiling syn v2.0.117
[INFO] [stderr]     Checking mio v1.2.1
[INFO] [stderr]     Checking socket2 v0.6.4
[INFO] [stderr]     Checking futures-io v0.3.32
[INFO] [stderr]     Checking log v0.4.32
[INFO] [stderr]     Checking bitflags v2.12.1
[INFO] [stderr]    Compiling openssl v0.10.80
[INFO] [stderr]    Compiling native-tls v0.2.18
[INFO] [stderr]     Checking tracing v0.1.44
[INFO] [stderr]    Compiling serde_json v1.0.150
[INFO] [stderr]     Checking futures-channel v0.3.32
[INFO] [stderr]    Compiling zerocopy v0.8.50
[INFO] [stderr]    Compiling crossbeam-utils v0.8.21
[INFO] [stderr]     Checking sync_wrapper v1.0.2
[INFO] [stderr]     Checking rustls-pki-types v1.14.1
[INFO] [stderr]     Checking simd-adler32 v0.3.9
[INFO] [stderr]     Checking base64ct v1.8.3
[INFO] [stderr]    Compiling portable-atomic v1.13.1
[INFO] [stderr]    Compiling ref-cast v1.0.25
[INFO] [stderr]    Compiling rustls v0.23.40
[INFO] [stderr]     Checking encoding_rs v0.8.35
[INFO] [stderr]     Checking option-ext v0.2.0
[INFO] [stderr]     Checking console v0.16.3
[INFO] [stderr]     Checking dirs-sys v0.5.0
[INFO] [stderr]     Checking socks v0.3.4
[INFO] [stderr]     Checking webpki-root-certs v1.0.7
[INFO] [stderr]     Checking webpki-roots v1.0.7
[INFO] [stderr]     Checking miniz_oxide v0.8.9
[INFO] [stderr]     Checking dyn-clone v1.0.20
[INFO] [stderr]     Checking dirs v6.0.0
[INFO] [stderr]     Checking pem-rfc7468 v1.0.0
[INFO] [stderr]     Checking num_cpus v1.17.0
[INFO] [stderr]     Checking either v1.16.0
[INFO] [stderr]     Checking der v0.8.0
[INFO] [stderr]     Checking flate2 v1.1.9
[INFO] [stderr]     Checking crossbeam-epoch v0.9.18
[INFO] [stderr]     Checking crossbeam-deque v0.8.6
[INFO] [stderr]     Checking indicatif v0.18.4
[INFO] [stderr]     Checking http-body v1.0.1
[INFO] [stderr]     Checking ureq-proto v0.6.0
[INFO] [stderr]     Checking rayon-core v1.13.0
[INFO] [stderr]     Checking http-body-util v0.1.3
[INFO] [stderr]     Checking rayon v1.12.0
[INFO] [stderr]    Compiling openssl-sys v0.9.116
[INFO] [stderr]    Compiling ring v0.17.14
[INFO] [stderr]     Checking ppv-lite86 v0.2.21
[INFO] [stderr]     Checking rand_chacha v0.9.0
[INFO] [stderr]    Compiling synstructure v0.13.2
[INFO] [stderr]    Compiling serde_derive_internals v0.29.1
[INFO] [stderr]     Checking rand v0.9.4
[INFO] [stderr]     Checking rustls-webpki v0.103.13
[INFO] [stderr]    Compiling zerofrom-derive v0.1.7
[INFO] [stderr]    Compiling yoke-derive v0.8.2
[INFO] [stderr]    Compiling zerovec-derive v0.11.3
[INFO] [stderr]    Compiling displaydoc v0.2.6
[INFO] [stderr]    Compiling tokio-macros v2.7.0
[INFO] [stderr]    Compiling futures-macro v0.3.32
[INFO] [stderr]    Compiling openssl-macros v0.1.1
[INFO] [stderr]    Compiling serde_derive v1.0.228
[INFO] [stderr]    Compiling thiserror-impl v2.0.18
[INFO] [stderr]    Compiling ref-cast-impl v1.0.25
[INFO] [stderr]    Compiling schemars_derive v1.2.1
[INFO] [stderr]    Compiling async-stream-impl v0.3.6
[INFO] [stderr]     Checking async-stream v0.3.6
[INFO] [stderr]     Checking zerofrom v0.1.8
[INFO] [stderr]     Checking tokio v1.52.3
[INFO] [stderr]     Checking yoke v0.8.3
[INFO] [stderr]     Checking futures-util v0.3.32
[INFO] [stderr]     Checking zerovec v0.11.6
[INFO] [stderr]     Checking zerotrie v0.2.4
[INFO] [stderr]     Checking thiserror v2.0.18
[INFO] [stderr]     Checking tinystr v0.8.3
[INFO] [stderr]     Checking potential_utf v0.1.5
[INFO] [stderr]     Checking icu_collections v2.2.0
[INFO] [stderr]     Checking icu_locale_core v2.2.0
[INFO] [stderr]     Checking icu_provider v2.2.0
[INFO] [stderr]     Checking serde v1.0.228
[INFO] [stderr]     Checking icu_properties v2.2.0
[INFO] [stderr]     Checking icu_normalizer v2.2.0
[INFO] [stderr]     Checking futures-executor v0.3.32
[INFO] [stderr]     Checking futures v0.3.32
[INFO] [stderr]     Checking serde_urlencoded v0.7.1
[INFO] [stderr]     Checking schemars v1.2.1
[INFO] [stderr]     Checking ureq v3.3.0
[INFO] [stderr]     Checking idna_adapter v1.2.2
[INFO] [stderr]     Checking idna v1.1.0
[INFO] [stderr]     Checking tokio-util v0.7.18
[INFO] [stderr]     Checking tower v0.5.3
[INFO] [stderr]     Checking tokio-native-tls v0.3.1
[INFO] [stderr]     Checking url v2.5.8
[INFO] [stderr]     Checking h2 v0.4.14
[INFO] [stderr]     Checking tower-http v0.6.11
[INFO] [stderr]     Checking hyper v1.10.1
[INFO] [stderr]     Checking hyper-util v0.1.20
[INFO] [stderr]     Checking hyper-tls v0.6.0
[INFO] [stderr]     Checking reqwest v0.12.28
[INFO] [stderr]     Checking ollama-rs v0.3.4
[INFO] [stderr]     Checking hf-hub v0.5.0
[INFO] [stderr]     Checking referenced_based_similarity v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] error[E0726]: implicit elided lifetime not allowed here
[INFO] [stdout]    --> src/lib.rs:199:24
[INFO] [stdout]     |
[INFO] [stdout] 199 |     embs_set: &HashMap<DocModelKey, EmbMaybeLabel>,
[INFO] [stdout]     |                        ^^^^^^^^^^^ expected lifetime parameter
[INFO] [stdout]     |
[INFO] [stdout] help: indicate the anonymous lifetime
[INFO] [stdout]     |
[INFO] [stdout] 199 |     embs_set: &HashMap<DocModelKey<'_>, EmbMaybeLabel>,
[INFO] [stdout]     |                                   ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0726]: implicit elided lifetime not allowed here
[INFO] [stdout]    --> src/lib.rs:199:37
[INFO] [stdout]     |
[INFO] [stdout] 199 |     embs_set: &HashMap<DocModelKey, EmbMaybeLabel>,
[INFO] [stdout]     |                                     ^^^^^^^^^^^^^ expected lifetime parameter
[INFO] [stdout]     |
[INFO] [stdout] help: indicate the anonymous lifetime
[INFO] [stdout]     |
[INFO] [stdout] 199 |     embs_set: &HashMap<DocModelKey, EmbMaybeLabel<'_>>,
[INFO] [stdout]     |                                                  ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0726]: implicit elided lifetime not allowed here
[INFO] [stdout]    --> src/lib.rs:227:24
[INFO] [stdout]     |
[INFO] [stdout] 227 |     embs_set: &HashMap<DocModelKey, EmbMaybeLabel>,
[INFO] [stdout]     |                        ^^^^^^^^^^^ expected lifetime parameter
[INFO] [stdout]     |
[INFO] [stdout] help: indicate the anonymous lifetime
[INFO] [stdout]     |
[INFO] [stdout] 227 |     embs_set: &HashMap<DocModelKey<'_>, EmbMaybeLabel>,
[INFO] [stdout]     |                                   ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0726]: implicit elided lifetime not allowed here
[INFO] [stdout]    --> src/lib.rs:227:37
[INFO] [stdout]     |
[INFO] [stdout] 227 |     embs_set: &HashMap<DocModelKey, EmbMaybeLabel>,
[INFO] [stdout]     |                                     ^^^^^^^^^^^^^ expected lifetime parameter
[INFO] [stdout]     |
[INFO] [stdout] help: indicate the anonymous lifetime
[INFO] [stdout]     |
[INFO] [stdout] 227 |     embs_set: &HashMap<DocModelKey, EmbMaybeLabel<'_>>,
[INFO] [stdout]     |                                                  ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0726]: implicit elided lifetime not allowed here
[INFO] [stdout]    --> src/lib.rs:246:36
[INFO] [stdout]     |
[INFO] [stdout] 246 |     given_data_set: Option<HashMap<DocModelKey, EmbMaybeLabel>>, // Re-think this type to fit what-ever
[INFO] [stdout]     |                                    ^^^^^^^^^^^ expected lifetime parameter
[INFO] [stdout]     |
[INFO] [stdout] help: indicate the anonymous lifetime
[INFO] [stdout]     |
[INFO] [stdout] 246 |     given_data_set: Option<HashMap<DocModelKey<'_>, EmbMaybeLabel>>, // Re-think this type to fit what-ever
[INFO] [stdout]     |                                               ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0726]: implicit elided lifetime not allowed here
[INFO] [stdout]    --> src/lib.rs:246:49
[INFO] [stdout]     |
[INFO] [stdout] 246 |     given_data_set: Option<HashMap<DocModelKey, EmbMaybeLabel>>, // Re-think this type to fit what-ever
[INFO] [stdout]     |                                                 ^^^^^^^^^^^^^ expected lifetime parameter
[INFO] [stdout]     |
[INFO] [stdout] help: indicate the anonymous lifetime
[INFO] [stdout]     |
[INFO] [stdout] 246 |     given_data_set: Option<HashMap<DocModelKey, EmbMaybeLabel<'_>>>, // Re-think this type to fit what-ever
[INFO] [stdout]     |                                                              ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0726]: implicit elided lifetime not allowed here
[INFO] [stdout]    --> src/lib.rs:199:24
[INFO] [stdout]     |
[INFO] [stdout] 199 |     embs_set: &HashMap<DocModelKey, EmbMaybeLabel>,
[INFO] [stdout]     |                        ^^^^^^^^^^^ expected lifetime parameter
[INFO] [stdout]     |
[INFO] [stdout] help: indicate the anonymous lifetime
[INFO] [stdout]     |
[INFO] [stdout] 199 |     embs_set: &HashMap<DocModelKey<'_>, EmbMaybeLabel>,
[INFO] [stdout]     |                                   ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0726]: implicit elided lifetime not allowed here
[INFO] [stdout]    --> src/lib.rs:199:37
[INFO] [stdout]     |
[INFO] [stdout] 199 |     embs_set: &HashMap<DocModelKey, EmbMaybeLabel>,
[INFO] [stdout]     |                                     ^^^^^^^^^^^^^ expected lifetime parameter
[INFO] [stdout]     |
[INFO] [stdout] help: indicate the anonymous lifetime
[INFO] [stdout]     |
[INFO] [stdout] 199 |     embs_set: &HashMap<DocModelKey, EmbMaybeLabel<'_>>,
[INFO] [stdout]     |                                                  ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0726]: implicit elided lifetime not allowed here
[INFO] [stdout]    --> src/lib.rs:227:24
[INFO] [stdout]     |
[INFO] [stdout] 227 |     embs_set: &HashMap<DocModelKey, EmbMaybeLabel>,
[INFO] [stdout]     |                        ^^^^^^^^^^^ expected lifetime parameter
[INFO] [stdout]     |
[INFO] [stdout] help: indicate the anonymous lifetime
[INFO] [stdout]     |
[INFO] [stdout] 227 |     embs_set: &HashMap<DocModelKey<'_>, EmbMaybeLabel>,
[INFO] [stdout]     |                                   ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0726]: implicit elided lifetime not allowed here
[INFO] [stdout]    --> src/lib.rs:227:37
[INFO] [stdout]     |
[INFO] [stdout] 227 |     embs_set: &HashMap<DocModelKey, EmbMaybeLabel>,
[INFO] [stdout]     |                                     ^^^^^^^^^^^^^ expected lifetime parameter
[INFO] [stdout]     |
[INFO] [stdout] help: indicate the anonymous lifetime
[INFO] [stdout]     |
[INFO] [stdout] 227 |     embs_set: &HashMap<DocModelKey, EmbMaybeLabel<'_>>,
[INFO] [stdout]     |                                                  ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0726]: implicit elided lifetime not allowed here
[INFO] [stdout]    --> src/lib.rs:246:36
[INFO] [stdout]     |
[INFO] [stdout] 246 |     given_data_set: Option<HashMap<DocModelKey, EmbMaybeLabel>>, // Re-think this type to fit what-ever
[INFO] [stdout]     |                                    ^^^^^^^^^^^ expected lifetime parameter
[INFO] [stdout]     |
[INFO] [stdout] help: indicate the anonymous lifetime
[INFO] [stdout]     |
[INFO] [stdout] 246 |     given_data_set: Option<HashMap<DocModelKey<'_>, EmbMaybeLabel>>, // Re-think this type to fit what-ever
[INFO] [stdout]     |                                               ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0726]: implicit elided lifetime not allowed here
[INFO] [stdout]    --> src/lib.rs:246:49
[INFO] [stdout]     |
[INFO] [stdout] 246 |     given_data_set: Option<HashMap<DocModelKey, EmbMaybeLabel>>, // Re-think this type to fit what-ever
[INFO] [stdout]     |                                                 ^^^^^^^^^^^^^ expected lifetime parameter
[INFO] [stdout]     |
[INFO] [stdout] help: indicate the anonymous lifetime
[INFO] [stdout]     |
[INFO] [stdout] 246 |     given_data_set: Option<HashMap<DocModelKey, EmbMaybeLabel<'_>>>, // Re-think this type to fit what-ever
[INFO] [stdout]     |                                                              ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0597]: `labs` does not live long enough
[INFO] [stdout]    --> src/lib.rs:190:33
[INFO] [stdout]     |
[INFO] [stdout] 164 |     embedding_model_list: &[String],
[INFO] [stdout]     |                           - let's call the lifetime of this reference `'1`
[INFO] [stdout] ...
[INFO] [stdout] 187 |     let labs = labels.into_iter().take(n).collect::<Vec<_>>();
[INFO] [stdout]     |         ---- binding `labs` declared here
[INFO] [stdout] ...
[INFO] [stdout] 190 |     let label_refs: Vec<&str> = labs.iter().map(|s| s.as_str()).collect();
[INFO] [stdout]     |                                 ^^^^                ---------- returning this value requires that `labs` is borrowed for `'1`
[INFO] [stdout]     |                                 |
[INFO] [stdout]     |                                 borrowed value does not live long enough
[INFO] [stdout] ...
[INFO] [stdout] 193 | }
[INFO] [stdout]     | - `labs` dropped here while still borrowed
[INFO] [stdout]     |
[INFO] [stdout] note: requirements that the value outlives `'1` introduced here
[INFO] [stdout]    --> /rustc/3154cc1a3e6424e44f438a95007d043ed5ceaaf6/library/core/src/iter/traits/iterator.rs:848:11
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0597]: `docs` does not live long enough
[INFO] [stdout]    --> src/lib.rs:192:35
[INFO] [stdout]     |
[INFO] [stdout] 164 |     embedding_model_list: &[String],
[INFO] [stdout]     |                           - let's call the lifetime of this reference `'1`
[INFO] [stdout] ...
[INFO] [stdout] 186 |     let docs = documents.into_iter().take(n).collect::<Vec<_>>();
[INFO] [stdout]     |         ---- binding `docs` declared here
[INFO] [stdout] ...
[INFO] [stdout] 192 |     build_embeddings(&ollama_cli, &docs, embedding_model_list, Some(&label_refs)).await
[INFO] [stdout]     |     ------------------------------^^^^^------------------------------------------
[INFO] [stdout]     |     |                             |
[INFO] [stdout]     |     |                             borrowed value does not live long enough
[INFO] [stdout]     |     argument requires that `docs` is borrowed for `'1`
[INFO] [stdout] 193 | }
[INFO] [stdout]     | - `docs` dropped here while still borrowed
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0597]: `label_refs` does not live long enough
[INFO] [stdout]    --> src/lib.rs:192:69
[INFO] [stdout]     |
[INFO] [stdout] 164 |     embedding_model_list: &[String],
[INFO] [stdout]     |                           - let's call the lifetime of this reference `'1`
[INFO] [stdout] ...
[INFO] [stdout] 190 |     let label_refs: Vec<&str> = labs.iter().map(|s| s.as_str()).collect();
[INFO] [stdout]     |         ---------- binding `label_refs` declared here
[INFO] [stdout] 191 |
[INFO] [stdout] 192 |     build_embeddings(&ollama_cli, &docs, embedding_model_list, Some(&label_refs)).await
[INFO] [stdout]     |     ----------------------------------------------------------------^^^^^^^^^^^--
[INFO] [stdout]     |     |                                                               |
[INFO] [stdout]     |     |                                                               borrowed value does not live long enough
[INFO] [stdout]     |     argument requires that `label_refs` is borrowed for `'1`
[INFO] [stdout] 193 | }
[INFO] [stdout]     | - `label_refs` dropped here while still borrowed
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0597]: `labs` does not live long enough
[INFO] [stdout]    --> src/lib.rs:190:33
[INFO] [stdout]     |
[INFO] [stdout] 164 |     embedding_model_list: &[String],
[INFO] [stdout]     |                           - let's call the lifetime of this reference `'1`
[INFO] [stdout] ...
[INFO] [stdout] 187 |     let labs = labels.into_iter().take(n).collect::<Vec<_>>();
[INFO] [stdout]     |         ---- binding `labs` declared here
[INFO] [stdout] ...
[INFO] [stdout] 190 |     let label_refs: Vec<&str> = labs.iter().map(|s| s.as_str()).collect();
[INFO] [stdout]     |                                 ^^^^                ---------- returning this value requires that `labs` is borrowed for `'1`
[INFO] [stdout]     |                                 |
[INFO] [stdout]     |                                 borrowed value does not live long enough
[INFO] [stdout] ...
[INFO] [stdout] 193 | }
[INFO] [stdout]     | - `labs` dropped here while still borrowed
[INFO] [stdout]     |
[INFO] [stdout] note: requirements that the value outlives `'1` introduced here
[INFO] [stdout]    --> /rustc/3154cc1a3e6424e44f438a95007d043ed5ceaaf6/library/core/src/iter/traits/iterator.rs:848:11
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0597]: `docs` does not live long enough
[INFO] [stdout]    --> src/lib.rs:192:35
[INFO] [stdout]     |
[INFO] [stdout] 164 |     embedding_model_list: &[String],
[INFO] [stdout]     |                           - let's call the lifetime of this reference `'1`
[INFO] [stdout] ...
[INFO] [stdout] 186 |     let docs = documents.into_iter().take(n).collect::<Vec<_>>();
[INFO] [stdout]     |         ---- binding `docs` declared here
[INFO] [stdout] ...
[INFO] [stdout] 192 |     build_embeddings(&ollama_cli, &docs, embedding_model_list, Some(&label_refs)).await
[INFO] [stdout]     |     ------------------------------^^^^^------------------------------------------
[INFO] [stdout]     |     |                             |
[INFO] [stdout]     |     |                             borrowed value does not live long enough
[INFO] [stdout]     |     argument requires that `docs` is borrowed for `'1`
[INFO] [stdout] 193 | }
[INFO] [stdout]     | - `docs` dropped here while still borrowed
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0597]: `label_refs` does not live long enough
[INFO] [stdout]    --> src/lib.rs:192:69
[INFO] [stdout]     |
[INFO] [stdout] 164 |     embedding_model_list: &[String],
[INFO] [stdout]     |                           - let's call the lifetime of this reference `'1`
[INFO] [stdout] ...
[INFO] [stdout] 190 |     let label_refs: Vec<&str> = labs.iter().map(|s| s.as_str()).collect();
[INFO] [stdout]     |         ---------- binding `label_refs` declared here
[INFO] [stdout] 191 |
[INFO] [stdout] 192 |     build_embeddings(&ollama_cli, &docs, embedding_model_list, Some(&label_refs)).await
[INFO] [stdout]     |     ----------------------------------------------------------------^^^^^^^^^^^--
[INFO] [stdout]     |     |                                                               |
[INFO] [stdout]     |     |                                                               borrowed value does not live long enough
[INFO] [stdout]     |     argument requires that `label_refs` is borrowed for `'1`
[INFO] [stdout] 193 | }
[INFO] [stdout]     | - `label_refs` dropped here while still borrowed
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `deref` found for reference `&std::string::String` in the current scope
[INFO] [stdout]    --> src/lib.rs:213:82
[INFO] [stdout]     |
[INFO] [stdout] 213 |                 if label == doc_label_hash.get(&f_doc).unwrap_or(&String::new()).deref() {
[INFO] [stdout]     |                                                                                  ^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is in scope
[INFO] [stdout] help: trait `Deref` which provides `deref` is implemented but not in scope; perhaps you want to import it
[INFO] [stdout]     |
[INFO] [stdout]   1 + use std::ops::Deref;
[INFO] [stdout]     |
[INFO] [stdout] help: there is a method `deref_mut` with a similar name
[INFO] [stdout]     |
[INFO] [stdout] 213 |                 if label == doc_label_hash.get(&f_doc).unwrap_or(&String::new()).deref_mut() {
[INFO] [stdout]     |                                                                                       ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `deref` found for reference `&std::string::String` in the current scope
[INFO] [stdout]    --> src/lib.rs:213:82
[INFO] [stdout]     |
[INFO] [stdout] 213 |                 if label == doc_label_hash.get(&f_doc).unwrap_or(&String::new()).deref() {
[INFO] [stdout]     |                                                                                  ^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is in scope
[INFO] [stdout] help: trait `Deref` which provides `deref` is implemented but not in scope; perhaps you want to import it
[INFO] [stdout]     |
[INFO] [stdout]   1 + use std::ops::Deref;
[INFO] [stdout]     |
[INFO] [stdout] help: there is a method `deref_mut` with a similar name
[INFO] [stdout]     |
[INFO] [stdout] 213 |                 if label == doc_label_hash.get(&f_doc).unwrap_or(&String::new()).deref_mut() {
[INFO] [stdout]     |                                                                                       ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0597, E0599, E0726.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0597`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `referenced_based_similarity` (lib) due to 10 previous errors
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] Some errors have detailed explanations: E0597, E0599, E0726.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0597`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `referenced_based_similarity` (lib test) due to 10 previous errors
[INFO] running `Command { std: "docker" "inspect" "adb528123a940a32d0ad998311f2b2fd77293cb734e14a2b4a3f10cfc4059c87", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "adb528123a940a32d0ad998311f2b2fd77293cb734e14a2b4a3f10cfc4059c87", kill_on_drop: false }`
[INFO] [stdout] adb528123a940a32d0ad998311f2b2fd77293cb734e14a2b4a3f10cfc4059c87
