[INFO] fetching crate aio-cli 0.9.0... [INFO] testing aio-cli-0.9.0 against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] extracting crate aio-cli 0.9.0 into /workspace/builds/worker-0-tc1/source [INFO] removed /workspace/builds/worker-0-tc1/source/.cargo/config.toml [INFO] started tweaking crates.io crate aio-cli 0.9.0 [INFO] finished tweaking crates.io crate aio-cli 0.9.0 [INFO] tweaked toml for crates.io crate aio-cli 0.9.0 written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate aio-cli 0.9.0 on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate aio-cli 0.9.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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded aio-cargo-info v0.1.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9b7c63d8608f90949759976eeaf235825daf53622b4a7c720ba42cfa3374758f [INFO] running `Command { std: "docker" "start" "-a" "9b7c63d8608f90949759976eeaf235825daf53622b4a7c720ba42cfa3374758f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9b7c63d8608f90949759976eeaf235825daf53622b4a7c720ba42cfa3374758f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9b7c63d8608f90949759976eeaf235825daf53622b4a7c720ba42cfa3374758f", kill_on_drop: false }` [INFO] [stdout] 9b7c63d8608f90949759976eeaf235825daf53622b4a7c720ba42cfa3374758f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e29cec114bee912855272b32e0fcfeb63ec566fe2d5805001857187d45a3fe7b [INFO] running `Command { std: "docker" "start" "-a" "e29cec114bee912855272b32e0fcfeb63ec566fe2d5805001857187d45a3fe7b", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.79 [INFO] [stderr] Compiling log v0.4.20 [INFO] [stderr] Compiling bitflags v2.4.0 [INFO] [stderr] Compiling smallvec v1.11.1 [INFO] [stderr] Compiling memchr v2.6.3 [INFO] [stderr] Compiling serde v1.0.188 [INFO] [stderr] Compiling futures-sink v0.3.30 [INFO] [stderr] Compiling linux-raw-sys v0.4.7 [INFO] [stderr] Compiling prettyplease v0.2.17 [INFO] [stderr] Compiling rustix v0.38.14 [INFO] [stderr] Compiling jobserver v0.1.29 [INFO] [stderr] Compiling signal-hook-registry v1.4.1 [INFO] [stderr] Compiling socket2 v0.5.6 [INFO] [stderr] Compiling num_cpus v1.16.0 [INFO] [stderr] Compiling tracing-core v0.1.32 [INFO] [stderr] Compiling regex-syntax v0.7.5 [INFO] [stderr] Compiling futures-channel v0.3.30 [INFO] [stderr] Compiling mio v0.8.11 [INFO] [stderr] Compiling parking_lot_core v0.9.8 [INFO] [stderr] Compiling openssl v0.10.57 [INFO] [stderr] Compiling bindgen v0.69.4 [INFO] [stderr] Compiling cc v1.0.83 [INFO] [stderr] Compiling parking_lot v0.12.1 [INFO] [stderr] Compiling http v0.2.9 [INFO] [stderr] Compiling itertools v0.12.1 [INFO] [stderr] Compiling alloc-no-stdlib v2.0.4 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling hashbrown v0.14.0 [INFO] [stderr] Compiling signal-hook v0.3.17 [INFO] [stderr] Compiling miniz_oxide v0.7.1 [INFO] [stderr] Compiling anstyle-parse v0.2.1 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling alloc-stdlib v0.2.2 [INFO] [stderr] Compiling socket2 v0.4.9 [INFO] [stderr] Compiling winnow v0.5.15 [INFO] [stderr] Compiling anstyle-query v1.0.0 [INFO] [stderr] Compiling brotli-decompressor v2.3.4 [INFO] [stderr] Compiling serde_json v1.0.107 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Compiling time-core v0.1.2 [INFO] [stderr] Compiling openssl-src v300.1.5+3.1.3 [INFO] [stderr] Compiling syn v2.0.57 [INFO] [stderr] Compiling regex-automata v0.3.8 [INFO] [stderr] Compiling thiserror v1.0.58 [INFO] [stderr] Compiling anstyle v1.0.3 [INFO] [stderr] Compiling indexmap v2.0.0 [INFO] [stderr] Compiling smartstring v1.0.1 [INFO] [stderr] Compiling anstream v0.5.0 [INFO] [stderr] Compiling flate2 v1.0.27 [INFO] [stderr] Compiling time-macros v0.2.18 [INFO] [stderr] Compiling http-body v0.4.5 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling openssl-sys v0.9.93 [INFO] [stderr] Compiling link-cplusplus v1.0.9 [INFO] [stderr] Compiling deranged v0.3.11 [INFO] [stderr] Compiling aho-corasick v1.1.1 [INFO] [stderr] Compiling num-traits v0.2.16 [INFO] [stderr] Compiling async-trait v0.1.73 [INFO] [stderr] Compiling num_threads v0.1.7 [INFO] [stderr] Compiling clap_lex v0.5.1 [INFO] [stderr] Compiling brotli v3.3.4 [INFO] [stderr] Compiling anyhow v1.0.75 [INFO] [stderr] Compiling clap_builder v4.4.4 [INFO] [stderr] Compiling signal-hook-mio v0.2.3 [INFO] [stderr] Compiling url v2.4.1 [INFO] [stderr] Compiling which v4.4.2 [INFO] [stderr] Compiling encoding_rs v0.8.33 [INFO] [stderr] Compiling fastrand v2.0.0 [INFO] [stderr] Compiling base64 v0.21.4 [INFO] [stderr] Compiling time v0.3.36 [INFO] [stderr] Compiling unsafe-libyaml v0.2.9 [INFO] [stderr] Compiling regex v1.9.5 [INFO] [stderr] Compiling cexpr v0.6.0 [INFO] [stderr] Compiling crossterm v0.27.0 [INFO] [stderr] Compiling simplelog v0.12.2 [INFO] [stderr] Compiling tempfile v3.8.0 [INFO] [stderr] Compiling derive_more v0.99.17 [INFO] [stderr] Compiling serde_derive v1.0.188 [INFO] [stderr] Compiling tokio-macros v2.2.0 [INFO] [stderr] Compiling futures-macro v0.3.30 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling thiserror-impl v1.0.58 [INFO] [stderr] Compiling clap_derive v4.4.2 [INFO] [stderr] Compiling pin-project-internal v1.1.3 [INFO] [stderr] Compiling tokio v1.37.0 [INFO] [stderr] Compiling futures-util v0.3.30 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling pin-project v1.1.3 [INFO] [stderr] Compiling clap v4.4.4 [INFO] [stderr] Compiling futures-executor v0.3.30 [INFO] [stderr] Compiling futures v0.3.30 [INFO] [stderr] Compiling tokio-util v0.7.9 [INFO] [stderr] Compiling async-compression v0.4.3 [INFO] [stderr] Compiling tokio-stream v0.1.14 [INFO] [stderr] Compiling h2 v0.3.21 [INFO] [stderr] Compiling llama_cpp_sys v0.3.2 [INFO] [stderr] Compiling serde_spanned v0.6.3 [INFO] [stderr] Compiling toml_datetime v0.6.3 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling serde_yaml v0.9.25 [INFO] [stderr] Compiling toml_edit v0.19.15 [INFO] [stderr] Compiling hyper v0.14.27 [INFO] [stderr] Compiling toml v0.7.8 [INFO] [stderr] Compiling aio-cargo-info v0.1.0 [INFO] [stderr] Compiling llama_cpp v0.3.2 [INFO] [stderr] Compiling native-tls v0.2.11 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling reqwest v0.11.20 [INFO] [stderr] Compiling aio-cli v0.9.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Renderer` [INFO] [stdout] --> src/formatters/markdown/mod.rs:6:20 [INFO] [stdout] | [INFO] [stdout] 6 | pub use renderer::{Renderer, TerminalRenderer}; [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::collections::HashMap` [INFO] [stdout] --> src/generators/openai/config.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> src/generators/openai/config.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::ChatRequestParameters` [INFO] [stdout] --> src/generators/openai/config.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use super::ChatRequestParameters; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Message` and `Role` [INFO] [stdout] --> src/generators/openai/config.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | use super::{Message, Role}; [INFO] [stdout] | ^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `debug` [INFO] [stdout] --> src/generators/openai/mod.rs:141:25 [INFO] [stdout] | [INFO] [stdout] 141 | if cfg!(feature = "debug") { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `default`, `llama_cpp`, `local-llm`, and `openai` [INFO] [stdout] = help: consider adding `debug` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `LlamaParams` [INFO] [stdout] --> src/generators/llama/mod.rs:8:52 [INFO] [stdout] | [INFO] [stdout] 8 | standard_sampler::StandardSampler, LlamaModel, LlamaParams, SessionParams, TokensToStrings [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::pin::Pin` [INFO] [stdout] --> src/utils/flatten_stream.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::pin::Pin; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SplitBytes` [INFO] [stdout] --> src/utils/mod.rs:4:23 [INFO] [stdout] | [INFO] [stdout] 4 | pub use split_bytes::{SplitBytes, SplitBytesFactory}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `StopTokenState` is more private than the item `StopTokenInspector::<'a, 'b>::check` [INFO] [stdout] --> src/generators/llama/stop.rs:105:5 [INFO] [stdout] | [INFO] [stdout] 105 | pub fn check(&mut self, text: &str) -> StopTokenState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `StopTokenInspector::<'a, 'b>::check` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `StopTokenState` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/generators/llama/stop.rs:31:1 [INFO] [stdout] | [INFO] [stdout] 31 | enum StopTokenState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `format_contents` and `format_contents_as_ref` are never used [INFO] [stdout] --> src/config/prompt.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl Prompts { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] 9 | pub fn format_contents(mut self, args: &HashMap) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 13 | pub fn format_contents_as_ref(&mut self, args: &HashMap) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `format_contents_as_ref` is never used [INFO] [stdout] --> src/config/prompt.rs:97:12 [INFO] [stdout] | [INFO] [stdout] 82 | impl Prompt { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 97 | pub fn format_contents_as_ref(&mut self, args: &HashMap) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `lowercase` is never used [INFO] [stdout] --> src/config/prompt.rs:124:12 [INFO] [stdout] | [INFO] [stdout] 123 | impl Role { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] 124 | pub fn lowercase(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `name` is never used [INFO] [stdout] --> src/generators/llama/template.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 28 | impl PromptTemplate { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] 29 | pub fn name(&self) -> &str { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `from_tokens` and `inspect` are never used [INFO] [stdout] --> src/generators/llama/stop.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl StopToken { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn from_tokens(model: Model, tokens: &[Token]) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn inspect(&self) -> StopTokenInspector { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `NotFound` is never constructed [INFO] [stdout] --> src/generators/llama/stop.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 31 | enum StopTokenState { [INFO] [stdout] | -------------- variant in this enum [INFO] [stdout] 32 | NotFound, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `reset` are never used [INFO] [stdout] --> src/generators/llama/stop.rs:96:12 [INFO] [stdout] | [INFO] [stdout] 95 | impl<'a, 'b> StopTokenInspector<'a, 'b> { [INFO] [stdout] | --------------------------------------- associated items in this implementation [INFO] [stdout] 96 | pub fn new(stop: &'a StopToken) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 102 | pub fn reset(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `add_stop` is never used [INFO] [stdout] --> src/generators/llama/stop.rs:131:12 [INFO] [stdout] | [INFO] [stdout] 125 | impl StopManager { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 131 | pub fn add_stop(&mut self, stop: StopToken) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `from_yaml_memory`, `from_json_memory`, and `from_json_file` are never used [INFO] [stdout] --> src/serde_io.rs:34:8 [INFO] [stdout] | [INFO] [stdout] 33 | pub trait DeserializeExt: serde::de::DeserializeOwned { [INFO] [stdout] | -------------- associated functions in this trait [INFO] [stdout] 34 | fn from_yaml_memory(memory: T) -> Result [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | fn from_json_memory(memory: T) -> Result [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | fn from_json_file(filepath: T) -> Result [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `append_to_vec` is never used [INFO] [stdout] --> src/utils/mod.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn append_to_vec(vec: &mut Vec, other: &[T]) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `flatten_iter` is never used [INFO] [stdout] --> src/utils/flatten_stream.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub trait FlattenTrait: Stream [INFO] [stdout] | ------------ method in this trait [INFO] [stdout] 5 | { [INFO] [stdout] 6 | fn flatten_iter(self) -> Flatten::Item>> [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/filesystem.rs:46:27 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn resolve_path(path: &str) -> Cow { [INFO] [stdout] | ^^^^ ^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 46 | pub fn resolve_path(path: &str) -> Cow<'_, str> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/generators/llama/stop.rs:26:20 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn inspect(&self) -> StopTokenInspector { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is hidden here [INFO] [stdout] | | the same lifetime is hidden here [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 26 | pub fn inspect(&self) -> StopTokenInspector<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3m 04s [INFO] running `Command { std: "docker" "inspect" "e29cec114bee912855272b32e0fcfeb63ec566fe2d5805001857187d45a3fe7b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e29cec114bee912855272b32e0fcfeb63ec566fe2d5805001857187d45a3fe7b", kill_on_drop: false }` [INFO] [stdout] e29cec114bee912855272b32e0fcfeb63ec566fe2d5805001857187d45a3fe7b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 83303ef7dfec156639506687de1a98d57cd2a0bde31c3df8acd1fe8dbd5d95ca [INFO] running `Command { std: "docker" "start" "-a" "83303ef7dfec156639506687de1a98d57cd2a0bde31c3df8acd1fe8dbd5d95ca", kill_on_drop: false }` [INFO] [stderr] Compiling aio-cli v0.9.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Renderer` [INFO] [stdout] --> src/formatters/markdown/mod.rs:6:20 [INFO] [stdout] | [INFO] [stdout] 6 | pub use renderer::{Renderer, TerminalRenderer}; [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::collections::HashMap` [INFO] [stdout] --> src/generators/openai/config.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> src/generators/openai/config.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::ChatRequestParameters` [INFO] [stdout] --> src/generators/openai/config.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use super::ChatRequestParameters; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Message` and `Role` [INFO] [stdout] --> src/generators/openai/config.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | use super::{Message, Role}; [INFO] [stdout] | ^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `debug` [INFO] [stdout] --> src/generators/openai/mod.rs:141:25 [INFO] [stdout] | [INFO] [stdout] 141 | if cfg!(feature = "debug") { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `default`, `llama_cpp`, `local-llm`, and `openai` [INFO] [stdout] = help: consider adding `debug` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `LlamaParams` [INFO] [stdout] --> src/generators/llama/mod.rs:8:52 [INFO] [stdout] | [INFO] [stdout] 8 | standard_sampler::StandardSampler, LlamaModel, LlamaParams, SessionParams, TokensToStrings [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::pin::Pin` [INFO] [stdout] --> src/utils/flatten_stream.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::pin::Pin; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SplitBytes` [INFO] [stdout] --> src/utils/mod.rs:4:23 [INFO] [stdout] | [INFO] [stdout] 4 | pub use split_bytes::{SplitBytes, SplitBytesFactory}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `StopTokenState` is more private than the item `StopTokenInspector::<'a, 'b>::check` [INFO] [stdout] --> src/generators/llama/stop.rs:105:5 [INFO] [stdout] | [INFO] [stdout] 105 | pub fn check(&mut self, text: &str) -> StopTokenState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `StopTokenInspector::<'a, 'b>::check` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `StopTokenState` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/generators/llama/stop.rs:31:1 [INFO] [stdout] | [INFO] [stdout] 31 | enum StopTokenState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `format_contents` and `format_contents_as_ref` are never used [INFO] [stdout] --> src/config/prompt.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl Prompts { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] 9 | pub fn format_contents(mut self, args: &HashMap) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 13 | pub fn format_contents_as_ref(&mut self, args: &HashMap) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `format_contents_as_ref` is never used [INFO] [stdout] --> src/config/prompt.rs:97:12 [INFO] [stdout] | [INFO] [stdout] 82 | impl Prompt { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 97 | pub fn format_contents_as_ref(&mut self, args: &HashMap) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `lowercase` is never used [INFO] [stdout] --> src/config/prompt.rs:124:12 [INFO] [stdout] | [INFO] [stdout] 123 | impl Role { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] 124 | pub fn lowercase(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `name` is never used [INFO] [stdout] --> src/generators/llama/template.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 28 | impl PromptTemplate { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] 29 | pub fn name(&self) -> &str { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `from_tokens` and `inspect` are never used [INFO] [stdout] --> src/generators/llama/stop.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl StopToken { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn from_tokens(model: Model, tokens: &[Token]) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn inspect(&self) -> StopTokenInspector { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `NotFound` is never constructed [INFO] [stdout] --> src/generators/llama/stop.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 31 | enum StopTokenState { [INFO] [stdout] | -------------- variant in this enum [INFO] [stdout] 32 | NotFound, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `reset` are never used [INFO] [stdout] --> src/generators/llama/stop.rs:96:12 [INFO] [stdout] | [INFO] [stdout] 95 | impl<'a, 'b> StopTokenInspector<'a, 'b> { [INFO] [stdout] | --------------------------------------- associated items in this implementation [INFO] [stdout] 96 | pub fn new(stop: &'a StopToken) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 102 | pub fn reset(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `add_stop` is never used [INFO] [stdout] --> src/generators/llama/stop.rs:131:12 [INFO] [stdout] | [INFO] [stdout] 125 | impl StopManager { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 131 | pub fn add_stop(&mut self, stop: StopToken) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `from_yaml_memory`, `from_json_memory`, and `from_json_file` are never used [INFO] [stdout] --> src/serde_io.rs:34:8 [INFO] [stdout] | [INFO] [stdout] 33 | pub trait DeserializeExt: serde::de::DeserializeOwned { [INFO] [stdout] | -------------- associated functions in this trait [INFO] [stdout] 34 | fn from_yaml_memory(memory: T) -> Result [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | fn from_json_memory(memory: T) -> Result [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | fn from_json_file(filepath: T) -> Result [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `append_to_vec` is never used [INFO] [stdout] --> src/utils/mod.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn append_to_vec(vec: &mut Vec, other: &[T]) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `flatten_iter` is never used [INFO] [stdout] --> src/utils/flatten_stream.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub trait FlattenTrait: Stream [INFO] [stdout] | ------------ method in this trait [INFO] [stdout] 5 | { [INFO] [stdout] 6 | fn flatten_iter(self) -> Flatten::Item>> [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/filesystem.rs:46:27 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn resolve_path(path: &str) -> Cow { [INFO] [stdout] | ^^^^ ^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 46 | pub fn resolve_path(path: &str) -> Cow<'_, str> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/generators/llama/stop.rs:26:20 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn inspect(&self) -> StopTokenInspector { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is hidden here [INFO] [stdout] | | the same lifetime is hidden here [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 26 | pub fn inspect(&self) -> StopTokenInspector<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 2.77s [INFO] running `Command { std: "docker" "inspect" "83303ef7dfec156639506687de1a98d57cd2a0bde31c3df8acd1fe8dbd5d95ca", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "83303ef7dfec156639506687de1a98d57cd2a0bde31c3df8acd1fe8dbd5d95ca", kill_on_drop: false }` [INFO] [stdout] 83303ef7dfec156639506687de1a98d57cd2a0bde31c3df8acd1fe8dbd5d95ca [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 9aad9debce26f28c11a893a7bc44b44d6d2a2b2f178808d9ddbd2585caf0436f [INFO] running `Command { std: "docker" "start" "-a" "9aad9debce26f28c11a893a7bc44b44d6d2a2b2f178808d9ddbd2585caf0436f", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `Renderer` [INFO] [stderr] --> src/formatters/markdown/mod.rs:6:20 [INFO] [stderr] | [INFO] [stderr] 6 | pub use renderer::{Renderer, TerminalRenderer}; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::collections::HashMap` [INFO] [stderr] --> src/generators/openai/config.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use std::collections::HashMap; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stderr] --> src/generators/openai/config.rs:3:13 [INFO] [stderr] | [INFO] [stderr] 3 | use serde::{Deserialize, Serialize}; [INFO] [stderr] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `super::ChatRequestParameters` [INFO] [stderr] --> src/generators/openai/config.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use super::ChatRequestParameters; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Message` and `Role` [INFO] [stderr] --> src/generators/openai/config.rs:5:13 [INFO] [stderr] | [INFO] [stderr] 5 | use super::{Message, Role}; [INFO] [stderr] | ^^^^^^^ ^^^^ [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition value: `debug` [INFO] [stderr] --> src/generators/openai/mod.rs:141:25 [INFO] [stderr] | [INFO] [stderr] 141 | if cfg!(feature = "debug") { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: expected values for `feature` are: `default`, `llama_cpp`, `local-llm`, and `openai` [INFO] [stderr] = help: consider adding `debug` as a feature in `Cargo.toml` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `LlamaParams` [INFO] [stderr] --> src/generators/llama/mod.rs:8:52 [INFO] [stderr] | [INFO] [stderr] 8 | standard_sampler::StandardSampler, LlamaModel, LlamaParams, SessionParams, TokensToStrings [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::pin::Pin` [INFO] [stderr] --> src/utils/flatten_stream.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use std::pin::Pin; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `SplitBytes` [INFO] [stderr] --> src/utils/mod.rs:4:23 [INFO] [stderr] | [INFO] [stderr] 4 | pub use split_bytes::{SplitBytes, SplitBytesFactory}; [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type `StopTokenState` is more private than the item `StopTokenInspector::<'a, 'b>::check` [INFO] [stderr] --> src/generators/llama/stop.rs:105:5 [INFO] [stderr] | [INFO] [stderr] 105 | pub fn check(&mut self, text: &str) -> StopTokenState { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `StopTokenInspector::<'a, 'b>::check` is reachable at visibility `pub(crate)` [INFO] [stderr] | [INFO] [stderr] note: but type `StopTokenState` is only usable at visibility `pub(self)` [INFO] [stderr] --> src/generators/llama/stop.rs:31:1 [INFO] [stderr] | [INFO] [stderr] 31 | enum StopTokenState { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = note: `#[warn(private_interfaces)]` on by default [INFO] [stderr] [INFO] [stderr] warning: methods `format_contents` and `format_contents_as_ref` are never used [INFO] [stderr] --> src/config/prompt.rs:9:12 [INFO] [stderr] | [INFO] [stderr] 8 | impl Prompts { [INFO] [stderr] | ------------ methods in this implementation [INFO] [stderr] 9 | pub fn format_contents(mut self, args: &HashMap) -> Self { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 13 | pub fn format_contents_as_ref(&mut self, args: &HashMap) -> &mut Self { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: method `format_contents_as_ref` is never used [INFO] [stderr] --> src/config/prompt.rs:97:12 [INFO] [stderr] | [INFO] [stderr] 82 | impl Prompt { [INFO] [stderr] | ----------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 97 | pub fn format_contents_as_ref(&mut self, args: &HashMap) -> &mut Self { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `lowercase` is never used [INFO] [stderr] --> src/config/prompt.rs:124:12 [INFO] [stderr] | [INFO] [stderr] 123 | impl Role { [INFO] [stderr] | --------- method in this implementation [INFO] [stderr] 124 | pub fn lowercase(&self) -> &str { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `name` is never used [INFO] [stderr] --> src/generators/llama/template.rs:29:12 [INFO] [stderr] | [INFO] [stderr] 28 | impl PromptTemplate { [INFO] [stderr] | ------------------- method in this implementation [INFO] [stderr] 29 | pub fn name(&self) -> &str { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated items `from_tokens` and `inspect` are never used [INFO] [stderr] --> src/generators/llama/stop.rs:23:12 [INFO] [stderr] | [INFO] [stderr] 19 | impl StopToken { [INFO] [stderr] | -------------- associated items in this implementation [INFO] [stderr] ... [INFO] [stderr] 23 | pub fn from_tokens(model: Model, tokens: &[Token]) -> Self { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 26 | pub fn inspect(&self) -> StopTokenInspector { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variant `NotFound` is never constructed [INFO] [stderr] --> src/generators/llama/stop.rs:32:5 [INFO] [stderr] | [INFO] [stderr] 31 | enum StopTokenState { [INFO] [stderr] | -------------- variant in this enum [INFO] [stderr] 32 | NotFound, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated items `new` and `reset` are never used [INFO] [stderr] --> src/generators/llama/stop.rs:96:12 [INFO] [stderr] | [INFO] [stderr] 95 | impl<'a, 'b> StopTokenInspector<'a, 'b> { [INFO] [stderr] | --------------------------------------- associated items in this implementation [INFO] [stderr] 96 | pub fn new(stop: &'a StopToken) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 102 | pub fn reset(&mut self) { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `add_stop` is never used [INFO] [stderr] --> src/generators/llama/stop.rs:131:12 [INFO] [stderr] | [INFO] [stderr] 125 | impl StopManager { [INFO] [stderr] | ---------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 131 | pub fn add_stop(&mut self, stop: StopToken) { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated functions `from_yaml_memory`, `from_json_memory`, and `from_json_file` are never used [INFO] [stderr] --> src/serde_io.rs:34:8 [INFO] [stderr] | [INFO] [stderr] 33 | pub trait DeserializeExt: serde::de::DeserializeOwned { [INFO] [stderr] | -------------- associated functions in this trait [INFO] [stderr] 34 | fn from_yaml_memory(memory: T) -> Result [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 51 | fn from_json_memory(memory: T) -> Result [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 57 | fn from_json_file(filepath: T) -> Result [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `append_to_vec` is never used [INFO] [stderr] --> src/utils/mod.rs:17:8 [INFO] [stderr] | [INFO] [stderr] 17 | pub fn append_to_vec(vec: &mut Vec, other: &[T]) { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `flatten_iter` is never used [INFO] [stderr] --> src/utils/flatten_stream.rs:6:8 [INFO] [stderr] | [INFO] [stderr] 4 | pub trait FlattenTrait: Stream [INFO] [stderr] | ------------ method in this trait [INFO] [stderr] 5 | { [INFO] [stderr] 6 | fn flatten_iter(self) -> Flatten::Item>> [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/filesystem.rs:46:27 [INFO] [stderr] | [INFO] [stderr] 46 | pub fn resolve_path(path: &str) -> Cow { [INFO] [stderr] | ^^^^ ^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 46 | pub fn resolve_path(path: &str) -> Cow<'_, str> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/generators/llama/stop.rs:26:20 [INFO] [stderr] | [INFO] [stderr] 26 | pub fn inspect(&self) -> StopTokenInspector { [INFO] [stderr] | ^^^^^ ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | | | [INFO] [stderr] | | the same lifetime is hidden here [INFO] [stderr] | | the same lifetime is hidden here [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 26 | pub fn inspect(&self) -> StopTokenInspector<'_> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: `aio-cli` (bin "aio" test) generated 23 warnings (run `cargo fix --bin "aio" --tests` to apply 10 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.23s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/aio-26f70db08c6de9b4) [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stdout] test tests::stops ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "9aad9debce26f28c11a893a7bc44b44d6d2a2b2f178808d9ddbd2585caf0436f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9aad9debce26f28c11a893a7bc44b44d6d2a2b2f178808d9ddbd2585caf0436f", kill_on_drop: false }` [INFO] [stdout] 9aad9debce26f28c11a893a7bc44b44d6d2a2b2f178808d9ddbd2585caf0436f