[INFO] fetching crate llm-shield-scanners 0.1.0... [INFO] testing llm-shield-scanners-0.1.0 against master#c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38 for pr-146098-8 [INFO] extracting crate llm-shield-scanners 0.1.0 into /workspace/builds/worker-1-tc1/source [INFO] started tweaking crates.io crate llm-shield-scanners 0.1.0 [INFO] finished tweaking crates.io crate llm-shield-scanners 0.1.0 [INFO] tweaked toml for crates.io crate llm-shield-scanners 0.1.0 written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate llm-shield-scanners 0.1.0 on toolchain c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate llm-shield-scanners 0.1.0 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" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded llm-shield-core v0.1.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4ffcce38f0242a42933a8a17dbd92f3f284963479c4d58577ba76d38ef2468b7 [INFO] running `Command { std: "docker" "start" "-a" "4ffcce38f0242a42933a8a17dbd92f3f284963479c4d58577ba76d38ef2468b7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4ffcce38f0242a42933a8a17dbd92f3f284963479c4d58577ba76d38ef2468b7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4ffcce38f0242a42933a8a17dbd92f3f284963479c4d58577ba76d38ef2468b7", kill_on_drop: false }` [INFO] [stdout] 4ffcce38f0242a42933a8a17dbd92f3f284963479c4d58577ba76d38ef2468b7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6b9cb95761b703a7890db5ab300adc46382befd02ccea96bd17af24a4de7f12d [INFO] running `Command { std: "docker" "start" "-a" "6b9cb95761b703a7890db5ab300adc46382befd02ccea96bd17af24a4de7f12d", kill_on_drop: false }` [INFO] [stderr] Compiling futures-sink v0.3.31 [INFO] [stderr] Compiling futures-core v0.3.31 [INFO] [stderr] Compiling tracing-core v0.1.34 [INFO] [stderr] Compiling quote v1.0.41 [INFO] [stderr] Compiling aho-corasick v1.1.4 [INFO] [stderr] Compiling thread_local v1.1.9 [INFO] [stderr] Compiling percent-encoding v2.3.2 [INFO] [stderr] Compiling nu-ansi-term v0.50.3 [INFO] [stderr] Compiling tinyvec v1.10.0 [INFO] [stderr] Compiling mio v1.1.0 [INFO] [stderr] Compiling form_urlencoded v1.2.2 [INFO] [stderr] Compiling syn v2.0.108 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling tracing-log v0.2.0 [INFO] [stderr] Compiling unicode-normalization v0.1.25 [INFO] [stderr] Compiling tracing-subscriber v0.3.20 [INFO] [stderr] Compiling regex-automata v0.4.13 [INFO] [stderr] Compiling regex v1.12.2 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling zerovec-derive v0.11.2 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling tracing-attributes v0.1.30 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Compiling tokio-macros v2.6.0 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.1 [INFO] [stderr] Compiling tokio v1.48.0 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling yoke v0.8.1 [INFO] [stderr] Compiling zerovec v0.11.5 [INFO] [stderr] Compiling zerotrie v0.2.3 [INFO] [stderr] Compiling tinystr v0.8.2 [INFO] [stderr] Compiling potential_utf v0.1.4 [INFO] [stderr] Compiling icu_collections v2.1.1 [INFO] [stderr] Compiling icu_locale_core v2.1.1 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling icu_provider v2.1.1 [INFO] [stderr] Compiling icu_normalizer v2.1.1 [INFO] [stderr] Compiling icu_properties v2.1.1 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling llm-shield-core v0.1.0 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling url v2.5.7 [INFO] [stderr] Compiling llm-shield-scanners v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Error` [INFO] [stdout] --> src/input/secrets.rs:15:26 [INFO] [stdout] | [INFO] [stdout] 15 | async_trait, Entity, Error, Result, RiskFactor, ScanResult, Scanner, ScannerType, Severity, [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: `std::sync::Arc` [INFO] [stdout] --> src/input/prompt_injection.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/output/url_reachability.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/input/ban_substrings.rs:166:13 [INFO] [stdout] | [INFO] [stdout] 166 | let mut offset = 0i32; [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: `pattern` [INFO] [stdout] --> src/input/ban_competitors.rs:128:17 [INFO] [stdout] | [INFO] [stdout] 128 | let pattern = &self.patterns[mat.pattern().as_usize()]; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pattern` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cache` [INFO] [stdout] --> src/common.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | let cache = CACHE.get_or_init(|| std::collections::HashMap::new()); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_cache` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `matched_text` is never read [INFO] [stdout] --> src/input/secrets.rs:576:5 [INFO] [stdout] | [INFO] [stdout] 570 | struct SecretMatch { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 576 | matched_text: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SecretMatch` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `topic_idx` is never read [INFO] [stdout] --> src/output/ban_topics.rs:321:5 [INFO] [stdout] | [INFO] [stdout] 320 | struct TopicMatchBuilder { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] 321 | topic_idx: usize, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TopicMatchBuilder` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 29.72s [INFO] running `Command { std: "docker" "inspect" "6b9cb95761b703a7890db5ab300adc46382befd02ccea96bd17af24a4de7f12d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6b9cb95761b703a7890db5ab300adc46382befd02ccea96bd17af24a4de7f12d", kill_on_drop: false }` [INFO] [stdout] 6b9cb95761b703a7890db5ab300adc46382befd02ccea96bd17af24a4de7f12d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1d473113902c4f5d75f6bed6625d068856815e8b3556ae2ea4e7ea11eb05787e [INFO] running `Command { std: "docker" "start" "-a" "1d473113902c4f5d75f6bed6625d068856815e8b3556ae2ea4e7ea11eb05787e", kill_on_drop: false }` [INFO] [stderr] Compiling zerocopy-derive v0.8.27 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling anstyle v1.0.13 [INFO] [stderr] Compiling clap_lex v0.7.6 [INFO] [stderr] Compiling is-terminal v0.4.17 [INFO] [stderr] Compiling clap_builder v4.5.51 [INFO] [stderr] Compiling url v2.5.7 [INFO] [stderr] Compiling tinytemplate v1.2.1 [INFO] [stderr] Compiling llm-shield-core v0.1.0 [INFO] [stderr] Compiling zerocopy v0.8.27 [INFO] [stderr] Compiling llm-shield-scanners v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Error` [INFO] [stdout] --> src/input/secrets.rs:15:26 [INFO] [stdout] | [INFO] [stdout] 15 | async_trait, Entity, Error, Result, RiskFactor, ScanResult, Scanner, ScannerType, Severity, [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: `std::sync::Arc` [INFO] [stdout] --> src/input/prompt_injection.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/output/url_reachability.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling clap v4.5.51 [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/input/ban_substrings.rs:166:13 [INFO] [stdout] | [INFO] [stdout] 166 | let mut offset = 0i32; [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: `pattern` [INFO] [stdout] --> src/input/ban_competitors.rs:128:17 [INFO] [stdout] | [INFO] [stdout] 128 | let pattern = &self.patterns[mat.pattern().as_usize()]; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pattern` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling half v2.7.1 [INFO] [stdout] warning: unused variable: `cache` [INFO] [stdout] --> src/common.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | let cache = CACHE.get_or_init(|| std::collections::HashMap::new()); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_cache` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `matched_text` is never read [INFO] [stdout] --> src/input/secrets.rs:576:5 [INFO] [stdout] | [INFO] [stdout] 570 | struct SecretMatch { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 576 | matched_text: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SecretMatch` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `topic_idx` is never read [INFO] [stdout] --> src/output/ban_topics.rs:321:5 [INFO] [stdout] | [INFO] [stdout] 320 | struct TopicMatchBuilder { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] 321 | topic_idx: usize, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TopicMatchBuilder` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling ciborium-ll v0.2.2 [INFO] [stderr] Compiling ciborium v0.2.2 [INFO] [stderr] Compiling criterion v0.5.1 [INFO] [stdout] warning: unused import: `Error` [INFO] [stdout] --> src/input/secrets.rs:15:26 [INFO] [stdout] | [INFO] [stdout] 15 | async_trait, Entity, Error, Result, RiskFactor, ScanResult, Scanner, ScannerType, Severity, [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: `std::sync::Arc` [INFO] [stdout] --> src/input/prompt_injection.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/output/url_reachability.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `sanitized_input` on type `ScanResult` [INFO] [stdout] --> src/output/sensitive.rs:582:24 [INFO] [stdout] | [INFO] [stdout] 582 | assert!(result.sanitized_input.contains("[REDACTED]")); [INFO] [stdout] | ^^^^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] help: a field with a similar name exists [INFO] [stdout] | [INFO] [stdout] 582 - assert!(result.sanitized_input.contains("[REDACTED]")); [INFO] [stdout] 582 + assert!(result.sanitized_text.contains("[REDACTED]")); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `sanitized_input` on type `ScanResult` [INFO] [stdout] --> src/output/sensitive.rs:583:25 [INFO] [stdout] | [INFO] [stdout] 583 | assert!(!result.sanitized_input.contains("test@example.com")); [INFO] [stdout] | ^^^^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] help: a field with a similar name exists [INFO] [stdout] | [INFO] [stdout] 583 - assert!(!result.sanitized_input.contains("test@example.com")); [INFO] [stdout] 583 + assert!(!result.sanitized_text.contains("test@example.com")); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `sanitized_input` on type `ScanResult` [INFO] [stdout] --> src/output/sensitive.rs:669:24 [INFO] [stdout] | [INFO] [stdout] 669 | assert!(result.sanitized_input.contains("***")); [INFO] [stdout] | ^^^^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] help: a field with a similar name exists [INFO] [stdout] | [INFO] [stdout] 669 - assert!(result.sanitized_input.contains("***")); [INFO] [stdout] 669 + assert!(result.sanitized_text.contains("***")); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `sanitized_input` on type `ScanResult` [INFO] [stdout] --> src/output/sensitive.rs:670:25 [INFO] [stdout] | [INFO] [stdout] 670 | assert!(!result.sanitized_input.contains("[REDACTED]")); [INFO] [stdout] | ^^^^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] help: a field with a similar name exists [INFO] [stdout] | [INFO] [stdout] 670 - assert!(!result.sanitized_input.contains("[REDACTED]")); [INFO] [stdout] 670 + assert!(!result.sanitized_text.contains("[REDACTED]")); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/output/reading_time.rs:309:46 [INFO] [stdout] | [INFO] [stdout] 309 | let result = scanner.scan_output("", response, &vault).await.unwrap(); [INFO] [stdout] | ----------- ^^^^^^^^ expected `&str`, found `String` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/output/reading_time.rs:140:18 [INFO] [stdout] | [INFO] [stdout] 140 | pub async fn scan_output( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 143 | output: &str, [INFO] [stdout] | ------------ [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 309 | let result = scanner.scan_output("", &response, &vault).await.unwrap(); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/output/reading_time.rs:328:46 [INFO] [stdout] | [INFO] [stdout] 328 | let result = scanner.scan_output("", response, &vault).await.unwrap(); [INFO] [stdout] | ----------- ^^^^^^^^ expected `&str`, found `String` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/output/reading_time.rs:140:18 [INFO] [stdout] | [INFO] [stdout] 140 | pub async fn scan_output( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 143 | output: &str, [INFO] [stdout] | ------------ [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 328 | let result = scanner.scan_output("", &response, &vault).await.unwrap(); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `parse` found for reference `&serde_json::value::Value` in the current scope [INFO] [stdout] --> src/output/reading_time.rs:332:81 [INFO] [stdout] | [INFO] [stdout] 332 | let reading_time = result.metadata.get("reading_time_seconds").unwrap().parse::().unwrap(); [INFO] [stdout] | ^^^^^ method not found in `&serde_json::value::Value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/output/reading_time.rs:399:46 [INFO] [stdout] | [INFO] [stdout] 399 | let result = scanner.scan_output("", response, &vault).await.unwrap(); [INFO] [stdout] | ----------- ^^^^^^^^ expected `&str`, found `String` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/output/reading_time.rs:140:18 [INFO] [stdout] | [INFO] [stdout] 140 | pub async fn scan_output( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 143 | output: &str, [INFO] [stdout] | ------------ [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 399 | let result = scanner.scan_output("", &response, &vault).await.unwrap(); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `parse` found for reference `&serde_json::value::Value` in the current scope [INFO] [stdout] --> src/output/factuality.rs:306:80 [INFO] [stdout] | [INFO] [stdout] 306 | let confidence: f32 = result.metadata.get("confidence_score").unwrap().parse().unwrap(); [INFO] [stdout] | ^^^^^ method not found in `&serde_json::value::Value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `parse` found for reference `&serde_json::value::Value` in the current scope [INFO] [stdout] --> src/output/factuality.rs:410:80 [INFO] [stdout] | [INFO] [stdout] 410 | let confidence: f32 = result.metadata.get("confidence_score").unwrap().parse().unwrap(); [INFO] [stdout] | ^^^^^ method not found in `&serde_json::value::Value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `parse` found for reference `&serde_json::value::Value` in the current scope [INFO] [stdout] --> src/output/factuality.rs:434:80 [INFO] [stdout] | [INFO] [stdout] 434 | let confidence: f32 = result.metadata.get("confidence_score").unwrap().parse().unwrap(); [INFO] [stdout] | ^^^^^ method not found in `&serde_json::value::Value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/input/ban_substrings.rs:166:13 [INFO] [stdout] | [INFO] [stdout] 166 | let mut offset = 0i32; [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: `pattern` [INFO] [stdout] --> src/input/ban_competitors.rs:128:17 [INFO] [stdout] | [INFO] [stdout] 128 | let pattern = &self.patterns[mat.pattern().as_usize()]; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pattern` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cache` [INFO] [stdout] --> src/common.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | let cache = CACHE.get_or_init(|| std::collections::HashMap::new()); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_cache` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0599, E0609. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `llm-shield-scanners` (lib test) due to 11 previous errors; 6 warnings emitted [INFO] running `Command { std: "docker" "inspect" "1d473113902c4f5d75f6bed6625d068856815e8b3556ae2ea4e7ea11eb05787e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1d473113902c4f5d75f6bed6625d068856815e8b3556ae2ea4e7ea11eb05787e", kill_on_drop: false }` [INFO] [stdout] 1d473113902c4f5d75f6bed6625d068856815e8b3556ae2ea4e7ea11eb05787e