[INFO] fetching crate chidori-prompt-format 0.1.36...
[INFO] testing chidori-prompt-format-0.1.36 against master#c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38 for pr-146098-7
[INFO] extracting crate chidori-prompt-format 0.1.36 into /workspace/builds/worker-7-tc1/source
[INFO] started tweaking crates.io crate chidori-prompt-format 0.1.36
[INFO] removed 0 missing tests
[INFO] finished tweaking crates.io crate chidori-prompt-format 0.1.36
[INFO] tweaked toml for crates.io crate chidori-prompt-format 0.1.36 written to /workspace/builds/worker-7-tc1/source/Cargo.toml
[INFO] validating manifest of crates.io crate chidori-prompt-format 0.1.36 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] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]      Locking 61 packages to latest compatible versions
[INFO] [stderr]       Adding indoc v1.0.9 (available: v2.0.7)
[INFO] [stderr]       Adding serde-wasm-bindgen v0.4.5 (available: v0.6.5)
[INFO] [stderr]       Adding serde_json v1.0.128 (available: v1.0.145)
[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]  Downloading crates ...
[INFO] [stderr]   Downloaded wasm-bindgen-test v0.3.55
[INFO] [stderr]   Downloaded indoc v1.0.9
[INFO] [stderr]   Downloaded serde-wasm-bindgen v0.4.5
[INFO] [stderr]   Downloaded wasm-bindgen-test-macro v0.3.55
[INFO] [stderr]   Downloaded generic-array v0.14.9
[INFO] [stderr]   Downloaded pest v2.8.3
[INFO] [stderr]   Downloaded pest_generator v2.8.3
[INFO] [stderr]   Downloaded pest_derive v2.8.3
[INFO] [stderr]   Downloaded minicov v0.3.7
[INFO] [stderr]   Downloaded pest_meta v2.8.3
[INFO] [stderr]   Downloaded thousand_birds_handlebars v5.0.0
[INFO] [stderr]   Downloaded console_error_panic_hook v0.1.7
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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] ef184542d5867ab465f4abf2c5b17f0fabf9eb4bda21936c2c7cf7855cf22502
[INFO] running `Command { std: "docker" "start" "-a" "ef184542d5867ab465f4abf2c5b17f0fabf9eb4bda21936c2c7cf7855cf22502", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "ef184542d5867ab465f4abf2c5b17f0fabf9eb4bda21936c2c7cf7855cf22502", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "ef184542d5867ab465f4abf2c5b17f0fabf9eb4bda21936c2c7cf7855cf22502", kill_on_drop: false }`
[INFO] [stdout] ef184542d5867ab465f4abf2c5b17f0fabf9eb4bda21936c2c7cf7855cf22502
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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] 739b78cbaf3be94177ac4b2b4683709e92b1ea4b0cf784d5c7b1153bb0fc7769
[INFO] running `Command { std: "docker" "start" "-a" "739b78cbaf3be94177ac4b2b4683709e92b1ea4b0cf784d5c7b1153bb0fc7769", kill_on_drop: false }`
[INFO] [stderr]    Compiling unicode-ident v1.0.22
[INFO] [stderr]    Compiling wasm-bindgen-shared v0.2.105
[INFO] [stderr]    Compiling rustversion v1.0.22
[INFO] [stderr]    Compiling bumpalo v3.19.0
[INFO] [stderr]    Compiling ucd-trie v0.1.7
[INFO] [stderr]    Compiling once_cell v1.21.3
[INFO] [stderr]    Compiling serde_json v1.0.128
[INFO] [stderr]    Compiling anyhow v1.0.100
[INFO] [stderr]    Compiling proc-macro2 v1.0.103
[INFO] [stderr]    Compiling pest v2.8.3
[INFO] [stderr]    Compiling hashbrown v0.16.0
[INFO] [stderr]    Compiling equivalent v1.0.2
[INFO] [stderr]    Compiling unsafe-libyaml v0.2.11
[INFO] [stderr]    Compiling indoc v1.0.9
[INFO] [stderr]    Compiling quote v1.0.42
[INFO] [stderr]    Compiling wasm-bindgen v0.2.105
[INFO] [stderr]    Compiling syn v2.0.110
[INFO] [stderr]    Compiling indexmap v2.12.0
[INFO] [stderr]    Compiling pest_meta v2.8.3
[INFO] [stderr]    Compiling wasm-bindgen-macro-support v0.2.105
[INFO] [stderr]    Compiling pest_generator v2.8.3
[INFO] [stderr]    Compiling serde_derive v1.0.228
[INFO] [stderr]    Compiling thiserror-impl v1.0.69
[INFO] [stderr]    Compiling pest_derive v2.8.3
[INFO] [stderr]    Compiling thiserror v1.0.69
[INFO] [stderr]    Compiling wasm-bindgen-macro v0.2.105
[INFO] [stderr]    Compiling serde v1.0.228
[INFO] [stderr]    Compiling js-sys v0.3.82
[INFO] [stderr]    Compiling console_error_panic_hook v0.1.7
[INFO] [stderr]    Compiling serde_yaml v0.9.34+deprecated
[INFO] [stderr]    Compiling thousand_birds_handlebars v5.0.0
[INFO] [stderr]    Compiling serde-wasm-bindgen v0.4.5
[INFO] [stderr]    Compiling chidori-prompt-format v0.1.36 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused imports: `Subexpression` and `TemplateMapping`
[INFO] [stdout]  --> src/templating/templates.rs:4:39
[INFO] [stdout]   |
[INFO] [stdout] 4 | use handlebars::template::{Parameter, Subexpression, TemplateElement, TemplateMapping};
[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: `serde_json::value::Map as JsonMap`
[INFO] [stdout]  --> src/templating/templates.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 7 | use serde_json::value::Map as JsonMap;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Map`
[INFO] [stdout]  --> src/templating/templates.rs:8:18
[INFO] [stdout]   |
[INFO] [stdout] 8 | use serde_json::{Map, Value};
[INFO] [stdout]   |                  ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `wasm_bindgen::JsValue`
[INFO] [stdout]   --> src/templating/templates.rs:11:5
[INFO] [stdout]    |
[INFO] [stdout] 11 | use wasm_bindgen::JsValue;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `handlebars::Template`
[INFO] [stdout]  --> src/lib.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use handlebars::Template;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `lazy_static::lazy_static`
[INFO] [stdout]  --> src/lib.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use lazy_static::lazy_static;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::sync::Mutex`
[INFO] [stdout]  --> src/lib.rs:8:5
[INFO] [stdout]   |
[INFO] [stdout] 8 | use std::sync::Mutex;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `TemplateWithSource`
[INFO] [stdout]   --> src/lib.rs:12:73
[INFO] [stdout]    |
[INFO] [stdout] 12 | use crate::templating::templates::{ChatModelRoles, PromptLibraryRecord, TemplateWithSource};
[INFO] [stdout]    |                                                                         ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `wasm_bindgen::prelude::*`
[INFO] [stdout]   --> src/lib.rs:13:5
[INFO] [stdout]    |
[INFO] [stdout] 13 | use wasm_bindgen::prelude::*;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `current` is never read
[INFO] [stdout]   --> src/templating/templates.rs:83:9
[INFO] [stdout]    |
[INFO] [stdout] 83 | /         current = current.items.entry(el.name).or_insert_with(|| {
[INFO] [stdout] 84 | |             Box::new(SchemaItem {
[INFO] [stdout] 85 | |                 ty: SchemaItemType::String,
[INFO] [stdout] 86 | |                 items: Default::default(),
[INFO] [stdout] 87 | |             })
[INFO] [stdout] 88 | |         });
[INFO] [stdout]    | |__________^
[INFO] [stdout]    |
[INFO] [stdout]    = help: maybe it is overwritten before being read?
[INFO] [stdout]    = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `param_name`
[INFO] [stdout]    --> src/templating/templates.rs:111:25
[INFO] [stdout]     |
[INFO] [stdout] 111 |                     let param_name = extract_vars_from_param(param);
[INFO] [stdout]     |                         ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_param_name`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `s`
[INFO] [stdout]    --> src/templating/templates.rs:131:82
[INFO] [stdout]     |
[INFO] [stdout] 131 |     analyze_referenced_partials_inner(&template, &mut reference_paths, vec![], &|s: &str| {
[INFO] [stdout]     |                                                                                  ^ help: if this is intentional, prefix it with an underscore: `_s`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `decorator_block`
[INFO] [stdout]    --> src/templating/templates.rs:203:50
[INFO] [stdout]     |
[INFO] [stdout] 203 |             TemplateElement::DecoratorExpression(decorator_block) => {}
[INFO] [stdout]     |                                                  ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_decorator_block`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `params`
[INFO] [stdout]    --> src/templating/templates.rs:306:21
[INFO] [stdout]     |
[INFO] [stdout] 306 |                 let params = &deref.params;
[INFO] [stdout]     |                     ^^^^^^ help: if this is intentional, prefix it with an underscore: `_params`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `path`
[INFO] [stdout]    --> src/templating/templates.rs:327:37
[INFO] [stdout]     |
[INFO] [stdout] 327 |                     Parameter::Path(path) => {}
[INFO] [stdout]     |                                     ^^^^ help: if this is intentional, prefix it with an underscore: `_path`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `decorator_block`
[INFO] [stdout]    --> src/templating/templates.rs:347:50
[INFO] [stdout]     |
[INFO] [stdout] 347 |             TemplateElement::DecoratorExpression(decorator_block) => {}
[INFO] [stdout]     |                                                  ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_decorator_block`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `source`
[INFO] [stdout]    --> src/templating/templates.rs:413:21
[INFO] [stdout]     |
[INFO] [stdout] 413 | fn analyze_template(source: &str) -> String {
[INFO] [stdout]     |                     ^^^^^^ help: if this is intentional, prefix it with an underscore: `_source`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/lib.rs:50:9
[INFO] [stdout]    |
[INFO] [stdout] 50 |     let mut role_blocks = crate::templating::templates::extract_roles_from_template(&template);
[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: fields `name` and `params` are never read
[INFO] [stdout]   --> src/templating/templates.rs:25:5
[INFO] [stdout]    |
[INFO] [stdout] 24 | pub struct ContextBlock {
[INFO] [stdout]    |            ------------ fields in this struct
[INFO] [stdout] 25 |     name: Parameter,
[INFO] [stdout]    |     ^^^^
[INFO] [stdout] 26 |     params: Vec<Parameter>,
[INFO] [stdout]    |     ^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `ContextBlock` 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: function `merge` is never used
[INFO] [stdout]    --> src/templating/templates.rs:358:4
[INFO] [stdout]     |
[INFO] [stdout] 358 | fn merge(a: &mut Value, b: Value) {
[INFO] [stdout]     |    ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `analyze_template` is never used
[INFO] [stdout]    --> src/templating/templates.rs:413:4
[INFO] [stdout]     |
[INFO] [stdout] 413 | fn analyze_template(source: &str) -> String {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `set_panic_hook` is never used
[INFO] [stdout]  --> src/utils.rs:1:8
[INFO] [stdout]   |
[INFO] [stdout] 1 | pub fn set_panic_hook() {
[INFO] [stdout]   |        ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 38.75s
[INFO] running `Command { std: "docker" "inspect" "739b78cbaf3be94177ac4b2b4683709e92b1ea4b0cf784d5c7b1153bb0fc7769", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "739b78cbaf3be94177ac4b2b4683709e92b1ea4b0cf784d5c7b1153bb0fc7769", kill_on_drop: false }`
[INFO] [stdout] 739b78cbaf3be94177ac4b2b4683709e92b1ea4b0cf784d5c7b1153bb0fc7769
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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] 76e5f427eb3173830aa52828ef588d09645a8f46e2ca588b90a7ddb3f67e8815
[INFO] running `Command { std: "docker" "start" "-a" "76e5f427eb3173830aa52828ef588d09645a8f46e2ca588b90a7ddb3f67e8815", kill_on_drop: false }`
[INFO] [stderr]    Compiling wasm-bindgen-test-macro v0.3.55
[INFO] [stderr]    Compiling wasm-bindgen-futures v0.4.55
[INFO] [stdout] warning: unused imports: `Subexpression` and `TemplateMapping`
[INFO] [stdout]  --> src/templating/templates.rs:4:39
[INFO] [stdout]   |
[INFO] [stdout] 4 | use handlebars::template::{Parameter, Subexpression, TemplateElement, TemplateMapping};
[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: `serde_json::value::Map as JsonMap`
[INFO] [stdout]  --> src/templating/templates.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 7 | use serde_json::value::Map as JsonMap;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Map`
[INFO] [stdout]  --> src/templating/templates.rs:8:18
[INFO] [stdout]   |
[INFO] [stdout] 8 | use serde_json::{Map, Value};
[INFO] [stdout]   |                  ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `wasm_bindgen::JsValue`
[INFO] [stdout]   --> src/templating/templates.rs:11:5
[INFO] [stdout]    |
[INFO] [stdout] 11 | use wasm_bindgen::JsValue;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `handlebars::Template`
[INFO] [stdout]  --> src/lib.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use handlebars::Template;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `lazy_static::lazy_static`
[INFO] [stdout]  --> src/lib.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use lazy_static::lazy_static;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::sync::Mutex`
[INFO] [stdout]  --> src/lib.rs:8:5
[INFO] [stdout]   |
[INFO] [stdout] 8 | use std::sync::Mutex;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `TemplateWithSource`
[INFO] [stdout]   --> src/lib.rs:12:73
[INFO] [stdout]    |
[INFO] [stdout] 12 | use crate::templating::templates::{ChatModelRoles, PromptLibraryRecord, TemplateWithSource};
[INFO] [stdout]    |                                                                         ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `wasm_bindgen::prelude::*`
[INFO] [stdout]   --> src/lib.rs:13:5
[INFO] [stdout]    |
[INFO] [stdout] 13 | use wasm_bindgen::prelude::*;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `current` is never read
[INFO] [stdout]   --> src/templating/templates.rs:83:9
[INFO] [stdout]    |
[INFO] [stdout] 83 | /         current = current.items.entry(el.name).or_insert_with(|| {
[INFO] [stdout] 84 | |             Box::new(SchemaItem {
[INFO] [stdout] 85 | |                 ty: SchemaItemType::String,
[INFO] [stdout] 86 | |                 items: Default::default(),
[INFO] [stdout] 87 | |             })
[INFO] [stdout] 88 | |         });
[INFO] [stdout]    | |__________^
[INFO] [stdout]    |
[INFO] [stdout]    = help: maybe it is overwritten before being read?
[INFO] [stdout]    = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `param_name`
[INFO] [stdout]    --> src/templating/templates.rs:111:25
[INFO] [stdout]     |
[INFO] [stdout] 111 |                     let param_name = extract_vars_from_param(param);
[INFO] [stdout]     |                         ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_param_name`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `s`
[INFO] [stdout]    --> src/templating/templates.rs:131:82
[INFO] [stdout]     |
[INFO] [stdout] 131 |     analyze_referenced_partials_inner(&template, &mut reference_paths, vec![], &|s: &str| {
[INFO] [stdout]     |                                                                                  ^ help: if this is intentional, prefix it with an underscore: `_s`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `decorator_block`
[INFO] [stdout]    --> src/templating/templates.rs:203:50
[INFO] [stdout]     |
[INFO] [stdout] 203 |             TemplateElement::DecoratorExpression(decorator_block) => {}
[INFO] [stdout]     |                                                  ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_decorator_block`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `params`
[INFO] [stdout]    --> src/templating/templates.rs:306:21
[INFO] [stdout]     |
[INFO] [stdout] 306 |                 let params = &deref.params;
[INFO] [stdout]     |                     ^^^^^^ help: if this is intentional, prefix it with an underscore: `_params`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `path`
[INFO] [stdout]    --> src/templating/templates.rs:327:37
[INFO] [stdout]     |
[INFO] [stdout] 327 |                     Parameter::Path(path) => {}
[INFO] [stdout]     |                                     ^^^^ help: if this is intentional, prefix it with an underscore: `_path`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `decorator_block`
[INFO] [stdout]    --> src/templating/templates.rs:347:50
[INFO] [stdout]     |
[INFO] [stdout] 347 |             TemplateElement::DecoratorExpression(decorator_block) => {}
[INFO] [stdout]     |                                                  ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_decorator_block`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `source`
[INFO] [stdout]    --> src/templating/templates.rs:413:21
[INFO] [stdout]     |
[INFO] [stdout] 413 | fn analyze_template(source: &str) -> String {
[INFO] [stdout]     |                     ^^^^^^ help: if this is intentional, prefix it with an underscore: `_source`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/lib.rs:50:9
[INFO] [stdout]    |
[INFO] [stdout] 50 |     let mut role_blocks = crate::templating::templates::extract_roles_from_template(&template);
[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: fields `name` and `params` are never read
[INFO] [stdout]   --> src/templating/templates.rs:25:5
[INFO] [stdout]    |
[INFO] [stdout] 24 | pub struct ContextBlock {
[INFO] [stdout]    |            ------------ fields in this struct
[INFO] [stdout] 25 |     name: Parameter,
[INFO] [stdout]    |     ^^^^
[INFO] [stdout] 26 |     params: Vec<Parameter>,
[INFO] [stdout]    |     ^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `ContextBlock` 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: function `merge` is never used
[INFO] [stdout]    --> src/templating/templates.rs:358:4
[INFO] [stdout]     |
[INFO] [stdout] 358 | fn merge(a: &mut Value, b: Value) {
[INFO] [stdout]     |    ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `analyze_template` is never used
[INFO] [stdout]    --> src/templating/templates.rs:413:4
[INFO] [stdout]     |
[INFO] [stdout] 413 | fn analyze_template(source: &str) -> String {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `set_panic_hook` is never used
[INFO] [stdout]  --> src/utils.rs:1:8
[INFO] [stdout]   |
[INFO] [stdout] 1 | pub fn set_panic_hook() {
[INFO] [stdout]   |        ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]    Compiling wasm-bindgen-test v0.3.55
[INFO] [stderr]    Compiling chidori-prompt-format v0.1.36 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused imports: `Subexpression` and `TemplateMapping`
[INFO] [stdout]  --> src/templating/templates.rs:4:39
[INFO] [stdout]   |
[INFO] [stdout] 4 | use handlebars::template::{Parameter, Subexpression, TemplateElement, TemplateMapping};
[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: `serde_json::value::Map as JsonMap`
[INFO] [stdout]  --> src/templating/templates.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 7 | use serde_json::value::Map as JsonMap;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Map`
[INFO] [stdout]  --> src/templating/templates.rs:8:18
[INFO] [stdout]   |
[INFO] [stdout] 8 | use serde_json::{Map, Value};
[INFO] [stdout]   |                  ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `wasm_bindgen::JsValue`
[INFO] [stdout]   --> src/templating/templates.rs:11:5
[INFO] [stdout]    |
[INFO] [stdout] 11 | use wasm_bindgen::JsValue;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `handlebars::Template`
[INFO] [stdout]  --> src/lib.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use handlebars::Template;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `lazy_static::lazy_static`
[INFO] [stdout]  --> src/lib.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use lazy_static::lazy_static;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::sync::Mutex`
[INFO] [stdout]  --> src/lib.rs:8:5
[INFO] [stdout]   |
[INFO] [stdout] 8 | use std::sync::Mutex;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `TemplateWithSource`
[INFO] [stdout]   --> src/lib.rs:12:73
[INFO] [stdout]    |
[INFO] [stdout] 12 | use crate::templating::templates::{ChatModelRoles, PromptLibraryRecord, TemplateWithSource};
[INFO] [stdout]    |                                                                         ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `wasm_bindgen::prelude::*`
[INFO] [stdout]   --> src/lib.rs:13:5
[INFO] [stdout]    |
[INFO] [stdout] 13 | use wasm_bindgen::prelude::*;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0369]: binary operation `==` cannot be applied to type `Result<templates::SchemaItem, anyhow::Error>`
[INFO] [stdout]    --> src/templating/templates.rs:537:9
[INFO] [stdout]     |
[INFO] [stdout] 537 | /         assert_eq!(
[INFO] [stdout] 538 | |             schema,
[INFO] [stdout] 539 | |             SchemaItem {
[INFO] [stdout] 540 | |                 ty: SchemaItemType::Object,
[INFO] [stdout] ...   |
[INFO] [stdout] 558 | |         );
[INFO] [stdout]     | |         ^
[INFO] [stdout]     | |         |
[INFO] [stdout]     | |_________Result<templates::SchemaItem, anyhow::Error>
[INFO] [stdout]     |           templates::SchemaItem
[INFO] [stdout]     |
[INFO] [stdout] note: `Result<templates::SchemaItem, anyhow::Error>` does not implement `PartialEq<templates::SchemaItem>`
[INFO] [stdout]    --> /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/core/src/result.rs:557:0
[INFO] [stdout]     |
[INFO] [stdout]     = note: `Result<templates::SchemaItem, anyhow::Error>` is defined in another crate
[INFO] [stdout]     = note: this error originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the trait bound `anyhow::Error: serde::Serialize` is not satisfied
[INFO] [stdout]     --> src/templating/templates.rs:610:48
[INFO] [stdout]      |
[INFO] [stdout]  610 |         let serialized = serde_json::to_string(&result).unwrap();
[INFO] [stdout]      |                          --------------------- ^^^^^^^ the trait `Serialize` is not implemented for `anyhow::Error`
[INFO] [stdout]      |                          |
[INFO] [stdout]      |                          required by a bound introduced by this call
[INFO] [stdout]      |
[INFO] [stdout]      = note: for local types consider adding `#[derive(serde::Serialize)]` to your `anyhow::Error` type
[INFO] [stdout]      = note: for types from other crates check whether the crate offers a `serde` feature flag
[INFO] [stdout]      = help: the following other types implement trait `Serialize`:
[INFO] [stdout]                &'a T
[INFO] [stdout]                &'a mut T
[INFO] [stdout]                ()
[INFO] [stdout]                (T,)
[INFO] [stdout]                (T0, T1)
[INFO] [stdout]                (T0, T1, T2)
[INFO] [stdout]                (T0, T1, T2, T3)
[INFO] [stdout]                (T0, T1, T2, T3, T4)
[INFO] [stdout]              and 76 others
[INFO] [stdout]      = note: required for `Result<templates::SchemaItem, anyhow::Error>` to implement `Serialize`
[INFO] [stdout] note: required by a bound in `serde_json::to_string`
[INFO] [stdout]     --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/serde_json-1.0.128/src/ser.rs:2209:17
[INFO] [stdout]      |
[INFO] [stdout] 2207 | pub fn to_string<T>(value: &T) -> Result<String>
[INFO] [stdout]      |        --------- required by a bound in this function
[INFO] [stdout] 2208 | where
[INFO] [stdout] 2209 |     T: ?Sized + Serialize,
[INFO] [stdout]      |                 ^^^^^^^^^ required by this bound in `to_string`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `current` is never read
[INFO] [stdout]   --> src/templating/templates.rs:83:9
[INFO] [stdout]    |
[INFO] [stdout] 83 | /         current = current.items.entry(el.name).or_insert_with(|| {
[INFO] [stdout] 84 | |             Box::new(SchemaItem {
[INFO] [stdout] 85 | |                 ty: SchemaItemType::String,
[INFO] [stdout] 86 | |                 items: Default::default(),
[INFO] [stdout] 87 | |             })
[INFO] [stdout] 88 | |         });
[INFO] [stdout]    | |__________^
[INFO] [stdout]    |
[INFO] [stdout]    = help: maybe it is overwritten before being read?
[INFO] [stdout]    = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `param_name`
[INFO] [stdout]    --> src/templating/templates.rs:111:25
[INFO] [stdout]     |
[INFO] [stdout] 111 |                     let param_name = extract_vars_from_param(param);
[INFO] [stdout]     |                         ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_param_name`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `s`
[INFO] [stdout]    --> src/templating/templates.rs:131:82
[INFO] [stdout]     |
[INFO] [stdout] 131 |     analyze_referenced_partials_inner(&template, &mut reference_paths, vec![], &|s: &str| {
[INFO] [stdout]     |                                                                                  ^ help: if this is intentional, prefix it with an underscore: `_s`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `decorator_block`
[INFO] [stdout]    --> src/templating/templates.rs:203:50
[INFO] [stdout]     |
[INFO] [stdout] 203 |             TemplateElement::DecoratorExpression(decorator_block) => {}
[INFO] [stdout]     |                                                  ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_decorator_block`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `params`
[INFO] [stdout]    --> src/templating/templates.rs:306:21
[INFO] [stdout]     |
[INFO] [stdout] 306 |                 let params = &deref.params;
[INFO] [stdout]     |                     ^^^^^^ help: if this is intentional, prefix it with an underscore: `_params`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `path`
[INFO] [stdout]    --> src/templating/templates.rs:327:37
[INFO] [stdout]     |
[INFO] [stdout] 327 |                     Parameter::Path(path) => {}
[INFO] [stdout]     |                                     ^^^^ help: if this is intentional, prefix it with an underscore: `_path`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `decorator_block`
[INFO] [stdout]    --> src/templating/templates.rs:347:50
[INFO] [stdout]     |
[INFO] [stdout] 347 |             TemplateElement::DecoratorExpression(decorator_block) => {}
[INFO] [stdout]     |                                                  ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_decorator_block`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `source`
[INFO] [stdout]    --> src/templating/templates.rs:413:21
[INFO] [stdout]     |
[INFO] [stdout] 413 | fn analyze_template(source: &str) -> String {
[INFO] [stdout]     |                     ^^^^^^ help: if this is intentional, prefix it with an underscore: `_source`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `value`
[INFO] [stdout]    --> src/templating/templates.rs:628:13
[INFO] [stdout]     |
[INFO] [stdout] 628 |         let value = json! {
[INFO] [stdout]     |             ^^^^^ help: if this is intentional, prefix it with an underscore: `_value`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/lib.rs:50:9
[INFO] [stdout]    |
[INFO] [stdout] 50 |     let mut role_blocks = crate::templating::templates::extract_roles_from_template(&template);
[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] Some errors have detailed explanations: E0277, E0369.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0277`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `chidori-prompt-format` (lib test) due to 2 previous errors; 19 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "76e5f427eb3173830aa52828ef588d09645a8f46e2ca588b90a7ddb3f67e8815", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "76e5f427eb3173830aa52828ef588d09645a8f46e2ca588b90a7ddb3f67e8815", kill_on_drop: false }`
[INFO] [stdout] 76e5f427eb3173830aa52828ef588d09645a8f46e2ca588b90a7ddb3f67e8815
