[INFO] fetching crate markhor_core 0.1.0-alpha.0.2... [INFO] testing markhor_core-0.1.0-alpha.0.2 against try#c2e32f1c9652b13ed99608599c1e855462f421f3 for pr-146098-8 [INFO] extracting crate markhor_core 0.1.0-alpha.0.2 into /workspace/builds/worker-0-tc2/source [INFO] started tweaking crates.io crate markhor_core 0.1.0-alpha.0.2 [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate markhor_core 0.1.0-alpha.0.2 [INFO] tweaked toml for crates.io crate markhor_core 0.1.0-alpha.0.2 written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate markhor_core 0.1.0-alpha.0.2 on toolchain c2e32f1c9652b13ed99608599c1e855462f421f3 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate markhor_core 0.1.0-alpha.0.2 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" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/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" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] af7045bb1af33594a1e7fb7ae863244dbc4b8b345f190a2eed3eb6aa33993756 [INFO] running `Command { std: "docker" "start" "-a" "af7045bb1af33594a1e7fb7ae863244dbc4b8b345f190a2eed3eb6aa33993756", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "af7045bb1af33594a1e7fb7ae863244dbc4b8b345f190a2eed3eb6aa33993756", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "af7045bb1af33594a1e7fb7ae863244dbc4b8b345f190a2eed3eb6aa33993756", kill_on_drop: false }` [INFO] [stdout] af7045bb1af33594a1e7fb7ae863244dbc4b8b345f190a2eed3eb6aa33993756 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/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" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d695e0b69610557a0e42cc201aa4ab6e9dd0c780e977632828d29f4b17b35efb [INFO] running `Command { std: "docker" "start" "-a" "d695e0b69610557a0e42cc201aa4ab6e9dd0c780e977632828d29f4b17b35efb", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.94 [INFO] [stderr] Compiling libc v0.2.171 [INFO] [stderr] Compiling bytes v1.10.1 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Compiling once_cell v1.21.3 [INFO] [stderr] Compiling pkg-config v0.3.32 [INFO] [stderr] Compiling itoa v1.0.15 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Compiling icu_locid_transform_data v1.5.1 [INFO] [stderr] Compiling cc v1.2.17 [INFO] [stderr] Compiling litemap v0.7.5 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling smallvec v1.14.0 [INFO] [stderr] Compiling futures-io v0.3.31 [INFO] [stderr] Compiling icu_properties_data v1.5.1 [INFO] [stderr] Compiling icu_normalizer_data v1.5.1 [INFO] [stderr] Compiling tracing-core v0.1.33 [INFO] [stderr] Compiling http v1.3.1 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling mio v1.0.3 [INFO] [stderr] Compiling socket2 v0.5.9 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling syn v2.0.100 [INFO] [stderr] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Compiling openssl v0.10.71 [INFO] [stderr] Compiling httparse v1.10.1 [INFO] [stderr] Compiling indexmap v2.8.0 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Compiling atomic-waker v1.1.2 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling bitflags v2.9.0 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Compiling log v0.4.27 [INFO] [stderr] Compiling openssl-probe v0.1.6 [INFO] [stderr] Compiling ryu v1.0.20 [INFO] [stderr] Compiling getrandom v0.3.2 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling sync_wrapper v1.0.2 [INFO] [stderr] Compiling openssl-sys v0.9.106 [INFO] [stderr] Compiling http-body v1.0.1 [INFO] [stderr] Compiling rustls-pki-types v1.11.0 [INFO] [stderr] Compiling http-body-util v0.1.3 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Compiling clap_builder v4.5.35 [INFO] [stderr] Compiling crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling rustls-pemfile v2.2.0 [INFO] [stderr] Compiling encoding_rs v0.8.35 [INFO] [stderr] Compiling ipnet v2.11.0 [INFO] [stderr] Compiling base64 v0.22.1 [INFO] [stderr] Compiling crossbeam-skiplist v0.1.3 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling clap v4.5.35 [INFO] [stderr] Compiling synstructure v0.13.1 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.7.5 [INFO] [stderr] Compiling zerovec-derive v0.10.3 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling icu_provider_macros v1.5.0 [INFO] [stderr] Compiling tracing-attributes v0.1.28 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling tokio v1.44.2 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling trait-variant v0.1.2 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling yoke v0.7.5 [INFO] [stderr] Compiling dynosaur_derive v0.2.0 [INFO] [stderr] Compiling zerovec v0.10.4 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling dynosaur v0.2.0 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling tinystr v0.7.6 [INFO] [stderr] Compiling icu_collections v1.5.0 [INFO] [stderr] Compiling async-trait v0.1.88 [INFO] [stderr] Compiling icu_locid v1.5.0 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling icu_provider v1.5.0 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling icu_locid_transform v1.5.0 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling icu_properties v1.5.1 [INFO] [stderr] Compiling tokio-util v0.7.14 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling h2 v0.4.8 [INFO] [stderr] Compiling icu_normalizer v1.5.0 [INFO] [stderr] Compiling idna_adapter v1.2.0 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling uuid v1.16.0 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling hyper v1.6.0 [INFO] [stderr] Compiling hyper-util v0.1.11 [INFO] [stderr] Compiling hyper-tls v0.6.0 [INFO] [stderr] Compiling reqwest v0.12.15 [INFO] [stderr] Compiling markhor_core v0.1.0-alpha.0.2 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `ops::Range`, `path::PathBuf`, and `sync::Arc` [INFO] [stdout] --> src/embedding/vector_store.rs:1:33 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashMap, ops::Range, path::PathBuf, sync::Arc}; [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: `error` [INFO] [stdout] --> src/embedding/vector_store.rs:3:22 [INFO] [stdout] | [INFO] [stdout] 3 | use tracing::{debug, error, instrument}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Chunk` [INFO] [stdout] --> src/embedding/vector_store.rs:6:24 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::{chunking::{Chunk, ChunkData, Chunker}, extension::F11y, storage::Document}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Weak` [INFO] [stdout] --> src/storage/workspace.rs:5:22 [INFO] [stdout] | [INFO] [stdout] 5 | use std::sync::{Arc, Weak}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `MutexGuard` [INFO] [stdout] --> src/storage/workspace.rs:7:26 [INFO] [stdout] | [INFO] [stdout] 7 | use tokio::sync::{Mutex, MutexGuard}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sync::Arc` [INFO] [stdout] --> src/storage/file.rs:1:34 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{path::{Path, PathBuf}, sync::Arc}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::fs::File` [INFO] [stdout] --> src/storage/file.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use tokio::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `extension` [INFO] [stdout] --> src/storage/file.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::{extension, storage::{Error, Result}}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Workspace` and `document` [INFO] [stdout] --> src/storage/file.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | use super::{document, Document, Workspace}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `hash_map::Entry` and `ops::Range` [INFO] [stdout] --> src/storage/metadata/mod.rs:3:25 [INFO] [stdout] | [INFO] [stdout] 3 | use std::{collections::{hash_map::Entry, HashMap}, ops::Range}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Range` [INFO] [stdout] --> src/storage/metadata/extension_data.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::ops::Range; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::fs` [INFO] [stdout] --> src/storage/mod.rs:131:5 [INFO] [stdout] | [INFO] [stdout] 131 | use tokio::fs; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Mutex` [INFO] [stdout] --> src/storage/mod.rs:132:19 [INFO] [stdout] | [INFO] [stdout] 132 | use tokio::sync::{Mutex, RwLock}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `debug` and `instrument` [INFO] [stdout] --> src/storage/mod.rs:133:15 [INFO] [stdout] | [INFO] [stdout] 133 | use tracing::{debug, instrument}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `WorkspaceEvents`, `WorkspaceMetadata`, `read_workspace_metadata`, and `write_workspace_metadata` [INFO] [stdout] --> src/storage/mod.rs:134:17 [INFO] [stdout] | [INFO] [stdout] 134 | use workspace::{read_workspace_metadata, write_workspace_metadata, WorkspaceEvents, WorkspaceMetadata}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `task::JoinHandle` [INFO] [stdout] --> src/job/mod.rs:6:96 [INFO] [stdout] | [INFO] [stdout] 6 | use tokio::{io::AsyncRead, sync::mpsc::{error::SendError, UnboundedReceiver, UnboundedSender}, task::JoinHandle}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::sync::mpsc::Sender` [INFO] [stdout] --> src/job/chat.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use tokio::sync::mpsc::Sender; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SearchResults` [INFO] [stdout] --> src/job/chat.rs:5:34 [INFO] [stdout] | [INFO] [stdout] 5 | use super::{search::{search_job, SearchResults}, Assets, Job, RunJobError}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/storage/workspace.rs:179:13 [INFO] [stdout] | [INFO] [stdout] 179 | let mut arc = Arc::new(Workspace { [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: variable does not need to be mutable [INFO] [stdout] --> src/job/chat.rs:116:13 [INFO] [stdout] | [INFO] [stdout] 116 | let mut messages = vec![ [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/job/chat.rs:98:74 [INFO] [stdout] | [INFO] [stdout] 98 | pub fn simple_rag(prompt: &str, limit: usize, mut on_message: F) -> Job, impl AsyncFnOnce(&m... [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Converter` [INFO] [stdout] --> src/job/mod.rs:3:113 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::{chat::{chat::ChatApi, prompter::Prompter, ChatError}, chunking::Chunker, convert::{ConversionError, Converter}, embedding... [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Extension` [INFO] [stdout] --> src/job/mod.rs:3:193 [INFO] [stdout] | [INFO] [stdout] 3 | ...g::{Embedder, EmbeddingError}, extension::{ActiveExtension, Extension, F11y, UseExtensionError}, storage::{self, Content, Document... [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/storage/metadata/mod.rs:67:13 [INFO] [stdout] | [INFO] [stdout] 65 | Some(ExtensionData::Embeddings(embeddings)) => Some(embeddings), [INFO] [stdout] | ------------------------------------------- matches all the relevant values [INFO] [stdout] 66 | None => None, [INFO] [stdout] 67 | Some(unexpected_data) => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ no value can reach this [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/storage/metadata/mod.rs:87:13 [INFO] [stdout] | [INFO] [stdout] 86 | ExtensionData::Embeddings(embeddings) => embeddings, [INFO] [stdout] | ------------------------------------- matches all the relevant values [INFO] [stdout] 87 | _ => unreachable!(), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/storage/metadata/mod.rs:78:17 [INFO] [stdout] | [INFO] [stdout] 77 | ExtensionData::Embeddings(_) => {}, [INFO] [stdout] | ---------------------------- matches all the relevant values [INFO] [stdout] 78 | _ => { [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `config` is never used [INFO] [stdout] --> src/extension/active_extension.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 20 | impl ActiveExtension { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 31 | fn config(&self) -> &ExtensionConfig { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `callback` is never read [INFO] [stdout] --> src/event.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 24 | struct ListenerEntry { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 25 | // Use Weak pointer to avoid cycles and allow listeners to be dropped automatically. [INFO] [stdout] 26 | callback: Weak E::HandlerReturnType + Send + Sync>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ListenerEntry` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `dispatch` and `dummy_handler` are never used [INFO] [stdout] --> src/event.rs:84:19 [INFO] [stdout] | [INFO] [stdout] 64 | impl ListenerList { [INFO] [stdout] | ---------------------------------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 84 | pub(crate) fn dispatch(&self, event: &mut E) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 119 | fn dummy_handler(_: &E) -> E::HandlerReturnType { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/storage/mod.rs:229:19 [INFO] [stdout] | [INFO] [stdout] 228 | impl DocumentMoved { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] 229 | pub(crate) fn new(document: Document, from: PathBuf) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `folder` and `tags` are never read [INFO] [stdout] --> src/storage/folder.rs:156:5 [INFO] [stdout] | [INFO] [stdout] 155 | pub struct Scope { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 156 | folder: Folder, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 157 | tags: Vec, // TODO - tags don't exist yet [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Scope` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `internal_dir` is never read [INFO] [stdout] --> src/storage/workspace.rs:24:16 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct Workspace { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 24 | pub(crate) internal_dir: PathBuf, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Workspace` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `internal_dir_path` is never used [INFO] [stdout] --> src/storage/workspace.rs:96:19 [INFO] [stdout] | [INFO] [stdout] 34 | impl Workspace { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 96 | pub(crate) fn internal_dir_path(&self) -> &Path { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/storage/document.rs:157:33 [INFO] [stdout] | [INFO] [stdout] 157 | async fn lock_metadata_file(&self) -> MutexGuard<()> { [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] 157 | async fn lock_metadata_file(&self) -> MutexGuard<'_, ()> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/storage/document.rs:255:23 [INFO] [stdout] | [INFO] [stdout] 255 | pub async fn file(&self, file_name: &str) -> Result { [INFO] [stdout] | ^^^^^ the lifetime is elided here ^^^^^^^^^^^ the same lifetime is hidden 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] 255 | pub async fn file(&self, file_name: &str) -> Result> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/storage/document.rs:266:24 [INFO] [stdout] | [INFO] [stdout] 266 | pub async fn files(&self) -> Result> { [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 266 | pub async fn files(&self) -> Result>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/storage/document.rs:273:37 [INFO] [stdout] | [INFO] [stdout] 273 | pub async fn files_by_extension(&self, extension: &str) -> Result> { [INFO] [stdout] | ^^^^^ the lifetime is elided here ^^^^^^^^^^^ the same lifetime is hidden 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] 273 | pub async fn files_by_extension(&self, extension: &str) -> Result>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/storage/document.rs:281:40 [INFO] [stdout] | [INFO] [stdout] 281 | pub async fn primary_content_files(&self) -> Result> { [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 281 | pub async fn primary_content_files(&self) -> Result>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/storage/document.rs:288:58 [INFO] [stdout] | [INFO] [stdout] 288 | pub async fn add_file(&self, extension: &str, content: &mut R) -> Result { [INFO] [stdout] | ^^^^^ the lifetime is elided here ^^^^^^^^^^^ the same lifetime is hidden 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] 288 | pub async fn add_file(&self, extension: &str, content: &mut R) -> Result> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/storage/document.rs:314:70 [INFO] [stdout] | [INFO] [stdout] 314 | ...+ ?Sized>(&self, extension: &str, suffix: u32, content: &mut R) -> Result { [INFO] [stdout] | ^^^^^ the lifetime is elided here ^^^^^^^^^^^ the same lifetime is hidden 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] 314 | pub async fn add_file_with_suffix(&self, extension: &str, suffix: u32, content: &mut R) -> Result> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/storage/document.rs:318:63 [INFO] [stdout] | [INFO] [stdout] 318 | ...ized>(&self, extension: &str, suffix: Option, content: &mut R) -> Result { [INFO] [stdout] | ^^^^^ the lifetime is elided here ^^^^^^^^^^^ the same lifetime is hidden 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] 318 | async fn add_file_internal(&self, extension: &str, suffix: Option, content: &mut R) -> Result> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/storage/document.rs:348:42 [INFO] [stdout] | [INFO] [stdout] 348 | async fn list_content_files_internal(&self, extension_filter: Option<&str>) -> Result> { [INFO] [stdout] | ^^^^^ the lifetime is elided here ^^^^^^^^^^^ the same lifetime is hidden 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] 348 | async fn list_content_files_internal(&self, extension_filter: Option<&str>) -> Result>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/job/search.rs:49:22 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn documents(&self) -> Documents { [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 49 | pub fn documents(&self) -> Documents<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/job/search.rs:176:18 [INFO] [stdout] | [INFO] [stdout] 176 | pub fn chunk(&self) -> Chunk { [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 176 | pub fn chunk(&self) -> Chunk<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 50s [INFO] running `Command { std: "docker" "inspect" "d695e0b69610557a0e42cc201aa4ab6e9dd0c780e977632828d29f4b17b35efb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d695e0b69610557a0e42cc201aa4ab6e9dd0c780e977632828d29f4b17b35efb", kill_on_drop: false }` [INFO] [stdout] d695e0b69610557a0e42cc201aa4ab6e9dd0c780e977632828d29f4b17b35efb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/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" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6ac47c0e8c57986af482ba266300a451df892aac8bcd5218669d6f8cd176faa3 [INFO] running `Command { std: "docker" "start" "-a" "6ac47c0e8c57986af482ba266300a451df892aac8bcd5218669d6f8cd176faa3", kill_on_drop: false }` [INFO] [stderr] Compiling bitflags v2.9.0 [INFO] [stderr] Compiling rustix v1.0.3 [INFO] [stderr] Compiling linux-raw-sys v0.9.3 [INFO] [stderr] Compiling fastrand v2.3.0 [INFO] [stderr] Compiling openssl v0.10.71 [INFO] [stderr] Compiling tempfile v3.19.1 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling hyper-tls v0.6.0 [INFO] [stderr] Compiling reqwest v0.12.15 [INFO] [stderr] Compiling markhor_core v0.1.0-alpha.0.2 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `ops::Range`, `path::PathBuf`, and `sync::Arc` [INFO] [stdout] --> src/embedding/vector_store.rs:1:33 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashMap, ops::Range, path::PathBuf, sync::Arc}; [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: `error` [INFO] [stdout] --> src/embedding/vector_store.rs:3:22 [INFO] [stdout] | [INFO] [stdout] 3 | use tracing::{debug, error, instrument}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Chunk` [INFO] [stdout] --> src/embedding/vector_store.rs:6:24 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::{chunking::{Chunk, ChunkData, Chunker}, extension::F11y, storage::Document}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Weak` [INFO] [stdout] --> src/storage/workspace.rs:5:22 [INFO] [stdout] | [INFO] [stdout] 5 | use std::sync::{Arc, Weak}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `MutexGuard` [INFO] [stdout] --> src/storage/workspace.rs:7:26 [INFO] [stdout] | [INFO] [stdout] 7 | use tokio::sync::{Mutex, MutexGuard}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sync::Arc` [INFO] [stdout] --> src/storage/file.rs:1:34 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{path::{Path, PathBuf}, sync::Arc}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::fs::File` [INFO] [stdout] --> src/storage/file.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use tokio::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `extension` [INFO] [stdout] --> src/storage/file.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::{extension, storage::{Error, Result}}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Workspace` and `document` [INFO] [stdout] --> src/storage/file.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | use super::{document, Document, Workspace}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `hash_map::Entry` and `ops::Range` [INFO] [stdout] --> src/storage/metadata/mod.rs:3:25 [INFO] [stdout] | [INFO] [stdout] 3 | use std::{collections::{hash_map::Entry, HashMap}, ops::Range}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Range` [INFO] [stdout] --> src/storage/metadata/extension_data.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::ops::Range; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::fs` [INFO] [stdout] --> src/storage/mod.rs:131:5 [INFO] [stdout] | [INFO] [stdout] 131 | use tokio::fs; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Mutex` [INFO] [stdout] --> src/storage/mod.rs:132:19 [INFO] [stdout] | [INFO] [stdout] 132 | use tokio::sync::{Mutex, RwLock}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `debug` and `instrument` [INFO] [stdout] --> src/storage/mod.rs:133:15 [INFO] [stdout] | [INFO] [stdout] 133 | use tracing::{debug, instrument}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `WorkspaceEvents`, `WorkspaceMetadata`, `read_workspace_metadata`, and `write_workspace_metadata` [INFO] [stdout] --> src/storage/mod.rs:134:17 [INFO] [stdout] | [INFO] [stdout] 134 | use workspace::{read_workspace_metadata, write_workspace_metadata, WorkspaceEvents, WorkspaceMetadata}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `task::JoinHandle` [INFO] [stdout] --> src/job/mod.rs:6:96 [INFO] [stdout] | [INFO] [stdout] 6 | use tokio::{io::AsyncRead, sync::mpsc::{error::SendError, UnboundedReceiver, UnboundedSender}, task::JoinHandle}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::sync::mpsc::Sender` [INFO] [stdout] --> src/job/chat.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use tokio::sync::mpsc::Sender; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SearchResults` [INFO] [stdout] --> src/job/chat.rs:5:34 [INFO] [stdout] | [INFO] [stdout] 5 | use super::{search::{search_job, SearchResults}, Assets, Job, RunJobError}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/storage/workspace.rs:179:13 [INFO] [stdout] | [INFO] [stdout] 179 | let mut arc = Arc::new(Workspace { [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: variable does not need to be mutable [INFO] [stdout] --> src/job/chat.rs:116:13 [INFO] [stdout] | [INFO] [stdout] 116 | let mut messages = vec![ [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/job/chat.rs:98:74 [INFO] [stdout] | [INFO] [stdout] 98 | pub fn simple_rag(prompt: &str, limit: usize, mut on_message: F) -> Job, impl AsyncFnOnce(&m... [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Converter` [INFO] [stdout] --> src/job/mod.rs:3:113 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::{chat::{chat::ChatApi, prompter::Prompter, ChatError}, chunking::Chunker, convert::{ConversionError, Converter}, embedding... [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Extension` [INFO] [stdout] --> src/job/mod.rs:3:193 [INFO] [stdout] | [INFO] [stdout] 3 | ...g::{Embedder, EmbeddingError}, extension::{ActiveExtension, Extension, F11y, UseExtensionError}, storage::{self, Content, Document... [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ops::Range`, `path::PathBuf`, and `sync::Arc` [INFO] [stdout] --> src/embedding/vector_store.rs:1:33 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashMap, ops::Range, path::PathBuf, sync::Arc}; [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: `error` [INFO] [stdout] --> src/embedding/vector_store.rs:3:22 [INFO] [stdout] | [INFO] [stdout] 3 | use tracing::{debug, error, instrument}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Chunk` [INFO] [stdout] --> src/embedding/vector_store.rs:6:24 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::{chunking::{Chunk, ChunkData, Chunker}, extension::F11y, storage::Document}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cell::RefCell` [INFO] [stdout] --> src/event.rs:222:15 [INFO] [stdout] | [INFO] [stdout] 222 | use std::{cell::RefCell, sync::Mutex}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tempfile::tempdir` [INFO] [stdout] --> src/storage/document.rs:620:9 [INFO] [stdout] | [INFO] [stdout] 620 | use tempfile::tempdir; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Weak` [INFO] [stdout] --> src/storage/workspace.rs:5:22 [INFO] [stdout] | [INFO] [stdout] 5 | use std::sync::{Arc, Weak}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `MutexGuard` [INFO] [stdout] --> src/storage/workspace.rs:7:26 [INFO] [stdout] | [INFO] [stdout] 7 | use tokio::sync::{Mutex, MutexGuard}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sync::Arc` [INFO] [stdout] --> src/storage/file.rs:1:34 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{path::{Path, PathBuf}, sync::Arc}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::fs::File` [INFO] [stdout] --> src/storage/file.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use tokio::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `extension` [INFO] [stdout] --> src/storage/file.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::{extension, storage::{Error, Result}}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Workspace` and `document` [INFO] [stdout] --> src/storage/file.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | use super::{document, Document, Workspace}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `hash_map::Entry` and `ops::Range` [INFO] [stdout] --> src/storage/metadata/mod.rs:3:25 [INFO] [stdout] | [INFO] [stdout] 3 | use std::{collections::{hash_map::Entry, HashMap}, ops::Range}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Range` [INFO] [stdout] --> src/storage/metadata/extension_data.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::ops::Range; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::fs` [INFO] [stdout] --> src/storage/mod.rs:131:5 [INFO] [stdout] | [INFO] [stdout] 131 | use tokio::fs; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Mutex` [INFO] [stdout] --> src/storage/mod.rs:132:19 [INFO] [stdout] | [INFO] [stdout] 132 | use tokio::sync::{Mutex, RwLock}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `debug` and `instrument` [INFO] [stdout] --> src/storage/mod.rs:133:15 [INFO] [stdout] | [INFO] [stdout] 133 | use tracing::{debug, instrument}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `WorkspaceEvents`, `WorkspaceMetadata`, `read_workspace_metadata`, and `write_workspace_metadata` [INFO] [stdout] --> src/storage/mod.rs:134:17 [INFO] [stdout] | [INFO] [stdout] 134 | use workspace::{read_workspace_metadata, write_workspace_metadata, WorkspaceEvents, WorkspaceMetadata}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `task::JoinHandle` [INFO] [stdout] --> src/job/mod.rs:6:96 [INFO] [stdout] | [INFO] [stdout] 6 | use tokio::{io::AsyncRead, sync::mpsc::{error::SendError, UnboundedReceiver, UnboundedSender}, task::JoinHandle}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::sync::mpsc::Sender` [INFO] [stdout] --> src/job/chat.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use tokio::sync::mpsc::Sender; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SearchResults` [INFO] [stdout] --> src/job/chat.rs:5:34 [INFO] [stdout] | [INFO] [stdout] 5 | use super::{search::{search_job, SearchResults}, Assets, Job, RunJobError}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/storage/metadata/mod.rs:67:13 [INFO] [stdout] | [INFO] [stdout] 65 | Some(ExtensionData::Embeddings(embeddings)) => Some(embeddings), [INFO] [stdout] | ------------------------------------------- matches all the relevant values [INFO] [stdout] 66 | None => None, [INFO] [stdout] 67 | Some(unexpected_data) => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ no value can reach this [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/storage/metadata/mod.rs:87:13 [INFO] [stdout] | [INFO] [stdout] 86 | ExtensionData::Embeddings(embeddings) => embeddings, [INFO] [stdout] | ------------------------------------- matches all the relevant values [INFO] [stdout] 87 | _ => unreachable!(), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/storage/metadata/mod.rs:78:17 [INFO] [stdout] | [INFO] [stdout] 77 | ExtensionData::Embeddings(_) => {}, [INFO] [stdout] | ---------------------------- matches all the relevant values [INFO] [stdout] 78 | _ => { [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/storage/workspace.rs:179:13 [INFO] [stdout] | [INFO] [stdout] 179 | let mut arc = Arc::new(Workspace { [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: method `config` is never used [INFO] [stdout] --> src/extension/active_extension.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 20 | impl ActiveExtension { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 31 | fn config(&self) -> &ExtensionConfig { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `callback` is never read [INFO] [stdout] --> src/event.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 24 | struct ListenerEntry { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 25 | // Use Weak pointer to avoid cycles and allow listeners to be dropped automatically. [INFO] [stdout] 26 | callback: Weak E::HandlerReturnType + Send + Sync>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ListenerEntry` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `dispatch` and `dummy_handler` are never used [INFO] [stdout] --> src/event.rs:84:19 [INFO] [stdout] | [INFO] [stdout] 64 | impl ListenerList { [INFO] [stdout] | ---------------------------------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 84 | pub(crate) fn dispatch(&self, event: &mut E) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 119 | fn dummy_handler(_: &E) -> E::HandlerReturnType { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/storage/mod.rs:229:19 [INFO] [stdout] | [INFO] [stdout] 228 | impl DocumentMoved { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] 229 | pub(crate) fn new(document: Document, from: PathBuf) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `folder` and `tags` are never read [INFO] [stdout] --> src/storage/folder.rs:156:5 [INFO] [stdout] | [INFO] [stdout] 155 | pub struct Scope { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 156 | folder: Folder, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 157 | tags: Vec, // TODO - tags don't exist yet [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Scope` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `internal_dir` is never read [INFO] [stdout] --> src/storage/workspace.rs:24:16 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct Workspace { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 24 | pub(crate) internal_dir: PathBuf, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Workspace` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `internal_dir_path` is never used [INFO] [stdout] --> src/storage/workspace.rs:96:19 [INFO] [stdout] | [INFO] [stdout] 34 | impl Workspace { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 96 | pub(crate) fn internal_dir_path(&self) -> &Path { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/storage/document.rs:157:33 [INFO] [stdout] | [INFO] [stdout] 157 | async fn lock_metadata_file(&self) -> MutexGuard<()> { [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] 157 | async fn lock_metadata_file(&self) -> MutexGuard<'_, ()> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/storage/document.rs:255:23 [INFO] [stdout] | [INFO] [stdout] 255 | pub async fn file(&self, file_name: &str) -> Result { [INFO] [stdout] | ^^^^^ the lifetime is elided here ^^^^^^^^^^^ the same lifetime is hidden 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] 255 | pub async fn file(&self, file_name: &str) -> Result> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/storage/document.rs:266:24 [INFO] [stdout] | [INFO] [stdout] 266 | pub async fn files(&self) -> Result> { [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 266 | pub async fn files(&self) -> Result>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/storage/document.rs:273:37 [INFO] [stdout] | [INFO] [stdout] 273 | pub async fn files_by_extension(&self, extension: &str) -> Result> { [INFO] [stdout] | ^^^^^ the lifetime is elided here ^^^^^^^^^^^ the same lifetime is hidden 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] 273 | pub async fn files_by_extension(&self, extension: &str) -> Result>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/storage/document.rs:281:40 [INFO] [stdout] | [INFO] [stdout] 281 | pub async fn primary_content_files(&self) -> Result> { [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 281 | pub async fn primary_content_files(&self) -> Result>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/storage/document.rs:288:58 [INFO] [stdout] | [INFO] [stdout] 288 | pub async fn add_file(&self, extension: &str, content: &mut R) -> Result { [INFO] [stdout] | ^^^^^ the lifetime is elided here ^^^^^^^^^^^ the same lifetime is hidden 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] 288 | pub async fn add_file(&self, extension: &str, content: &mut R) -> Result> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/storage/document.rs:314:70 [INFO] [stdout] | [INFO] [stdout] 314 | ...+ ?Sized>(&self, extension: &str, suffix: u32, content: &mut R) -> Result { [INFO] [stdout] | ^^^^^ the lifetime is elided here ^^^^^^^^^^^ the same lifetime is hidden 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] 314 | pub async fn add_file_with_suffix(&self, extension: &str, suffix: u32, content: &mut R) -> Result> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/storage/document.rs:318:63 [INFO] [stdout] | [INFO] [stdout] 318 | ...ized>(&self, extension: &str, suffix: Option, content: &mut R) -> Result { [INFO] [stdout] | ^^^^^ the lifetime is elided here ^^^^^^^^^^^ the same lifetime is hidden 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] 318 | async fn add_file_internal(&self, extension: &str, suffix: Option, content: &mut R) -> Result> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/storage/document.rs:348:42 [INFO] [stdout] | [INFO] [stdout] 348 | async fn list_content_files_internal(&self, extension_filter: Option<&str>) -> Result> { [INFO] [stdout] | ^^^^^ the lifetime is elided here ^^^^^^^^^^^ the same lifetime is hidden 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] 348 | async fn list_content_files_internal(&self, extension_filter: Option<&str>) -> Result>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/job/search.rs:49:22 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn documents(&self) -> Documents { [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 49 | pub fn documents(&self) -> Documents<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/job/search.rs:176:18 [INFO] [stdout] | [INFO] [stdout] 176 | pub fn chunk(&self) -> Chunk { [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 176 | pub fn chunk(&self) -> Chunk<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/job/chat.rs:116:13 [INFO] [stdout] | [INFO] [stdout] 116 | let mut messages = vec![ [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/job/chat.rs:98:74 [INFO] [stdout] | [INFO] [stdout] 98 | pub fn simple_rag(prompt: &str, limit: usize, mut on_message: F) -> Job, impl AsyncFnOnce(&m... [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Arc` and `collections::HashMap` [INFO] [stdout] --> tests/chat_model.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashMap, sync::{atomic::{AtomicUsize, Ordering}, Arc}}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Document`, `Folder`, `MARKHOR_EXTENSION`, and `self` [INFO] [stdout] --> tests/workspace_integration.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | self, ConflictError, Document, Error, Folder, Storage, Workspace, INTERNAL_DIR_NAME, MARKHOR_EXTENSION [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: `Converter` [INFO] [stdout] --> src/job/mod.rs:3:113 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::{chat::{chat::ChatApi, prompter::Prompter, ChatError}, chunking::Chunker, convert::{ConversionError, Converter}, embedding... [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Extension` [INFO] [stdout] --> src/job/mod.rs:3:193 [INFO] [stdout] | [INFO] [stdout] 3 | ...g::{Embedder, EmbeddingError}, extension::{ActiveExtension, Extension, F11y, UseExtensionError}, storage::{self, Content, Document... [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `messages` [INFO] [stdout] --> tests/chat_model.rs:45:30 [INFO] [stdout] | [INFO] [stdout] 45 | async fn generate(&self, messages: &[Message], options: &ChatOptions) -> Result { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_messages` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `options` [INFO] [stdout] --> tests/chat_model.rs:45:52 [INFO] [stdout] | [INFO] [stdout] 45 | async fn generate(&self, messages: &[Message], options: &ChatOptions) -> Result { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_options` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `messages` [INFO] [stdout] --> tests/chat_model.rs:59:37 [INFO] [stdout] | [INFO] [stdout] 59 | async fn generate_stream(&self, messages: &[Message], options: &ChatOptions) -> Result { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_messages` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `options` [INFO] [stdout] --> tests/chat_model.rs:59:59 [INFO] [stdout] | [INFO] [stdout] 59 | async fn generate_stream(&self, messages: &[Message], options: &ChatOptions) -> Result { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_options` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ShakespeareChatExtension` is never constructed [INFO] [stdout] --> tests/chat_model.rs:65:8 [INFO] [stdout] | [INFO] [stdout] 65 | struct ShakespeareChatExtension; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> tests/chat_model.rs:68:8 [INFO] [stdout] | [INFO] [stdout] 67 | impl ShakespeareChatExtension { [INFO] [stdout] | ----------------------------- associated function in this implementation [INFO] [stdout] 68 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/storage/metadata/mod.rs:67:13 [INFO] [stdout] | [INFO] [stdout] 65 | Some(ExtensionData::Embeddings(embeddings)) => Some(embeddings), [INFO] [stdout] | ------------------------------------------- matches all the relevant values [INFO] [stdout] 66 | None => None, [INFO] [stdout] 67 | Some(unexpected_data) => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ no value can reach this [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/storage/metadata/mod.rs:87:13 [INFO] [stdout] | [INFO] [stdout] 86 | ExtensionData::Embeddings(embeddings) => embeddings, [INFO] [stdout] | ------------------------------------- matches all the relevant values [INFO] [stdout] 87 | _ => unreachable!(), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/storage/metadata/mod.rs:78:17 [INFO] [stdout] | [INFO] [stdout] 77 | ExtensionData::Embeddings(_) => {}, [INFO] [stdout] | ---------------------------- matches all the relevant values [INFO] [stdout] 78 | _ => { [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `config` is never used [INFO] [stdout] --> src/extension/active_extension.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 20 | impl ActiveExtension { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 31 | fn config(&self) -> &ExtensionConfig { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/storage/mod.rs:229:19 [INFO] [stdout] | [INFO] [stdout] 228 | impl DocumentMoved { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] 229 | pub(crate) fn new(document: Document, from: PathBuf) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_dummy_file` is never used [INFO] [stdout] --> src/storage/document.rs:623:14 [INFO] [stdout] | [INFO] [stdout] 623 | async fn create_dummy_file(path: &Path) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `folder` and `tags` are never read [INFO] [stdout] --> src/storage/folder.rs:156:5 [INFO] [stdout] | [INFO] [stdout] 155 | pub struct Scope { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 156 | folder: Folder, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 157 | tags: Vec, // TODO - tags don't exist yet [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Scope` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/storage/document.rs:157:33 [INFO] [stdout] | [INFO] [stdout] 157 | async fn lock_metadata_file(&self) -> MutexGuard<()> { [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] 157 | async fn lock_metadata_file(&self) -> MutexGuard<'_, ()> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/storage/document.rs:255:23 [INFO] [stdout] | [INFO] [stdout] 255 | pub async fn file(&self, file_name: &str) -> Result { [INFO] [stdout] | ^^^^^ the lifetime is elided here ^^^^^^^^^^^ the same lifetime is hidden 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] 255 | pub async fn file(&self, file_name: &str) -> Result> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/storage/document.rs:266:24 [INFO] [stdout] | [INFO] [stdout] 266 | pub async fn files(&self) -> Result> { [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 266 | pub async fn files(&self) -> Result>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/storage/document.rs:273:37 [INFO] [stdout] | [INFO] [stdout] 273 | pub async fn files_by_extension(&self, extension: &str) -> Result> { [INFO] [stdout] | ^^^^^ the lifetime is elided here ^^^^^^^^^^^ the same lifetime is hidden 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] 273 | pub async fn files_by_extension(&self, extension: &str) -> Result>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/storage/document.rs:281:40 [INFO] [stdout] | [INFO] [stdout] 281 | pub async fn primary_content_files(&self) -> Result> { [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 281 | pub async fn primary_content_files(&self) -> Result>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/storage/document.rs:288:58 [INFO] [stdout] | [INFO] [stdout] 288 | pub async fn add_file(&self, extension: &str, content: &mut R) -> Result { [INFO] [stdout] | ^^^^^ the lifetime is elided here ^^^^^^^^^^^ the same lifetime is hidden 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] 288 | pub async fn add_file(&self, extension: &str, content: &mut R) -> Result> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/storage/document.rs:314:70 [INFO] [stdout] | [INFO] [stdout] 314 | ...+ ?Sized>(&self, extension: &str, suffix: u32, content: &mut R) -> Result { [INFO] [stdout] | ^^^^^ the lifetime is elided here ^^^^^^^^^^^ the same lifetime is hidden 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] 314 | pub async fn add_file_with_suffix(&self, extension: &str, suffix: u32, content: &mut R) -> Result> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/storage/document.rs:318:63 [INFO] [stdout] | [INFO] [stdout] 318 | ...ized>(&self, extension: &str, suffix: Option, content: &mut R) -> Result { [INFO] [stdout] | ^^^^^ the lifetime is elided here ^^^^^^^^^^^ the same lifetime is hidden 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] 318 | async fn add_file_internal(&self, extension: &str, suffix: Option, content: &mut R) -> Result> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/storage/document.rs:348:42 [INFO] [stdout] | [INFO] [stdout] 348 | async fn list_content_files_internal(&self, extension_filter: Option<&str>) -> Result> { [INFO] [stdout] | ^^^^^ the lifetime is elided here ^^^^^^^^^^^ the same lifetime is hidden 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] 348 | async fn list_content_files_internal(&self, extension_filter: Option<&str>) -> Result>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/job/search.rs:49:22 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn documents(&self) -> Documents { [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 49 | pub fn documents(&self) -> Documents<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/job/search.rs:176:18 [INFO] [stdout] | [INFO] [stdout] 176 | pub fn chunk(&self) -> Chunk { [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 176 | pub fn chunk(&self) -> Chunk<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 28.63s [INFO] running `Command { std: "docker" "inspect" "6ac47c0e8c57986af482ba266300a451df892aac8bcd5218669d6f8cd176faa3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6ac47c0e8c57986af482ba266300a451df892aac8bcd5218669d6f8cd176faa3", kill_on_drop: false }` [INFO] [stdout] 6ac47c0e8c57986af482ba266300a451df892aac8bcd5218669d6f8cd176faa3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/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" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 42e32b88b89aff444543960b9bfb9abfef89950d01146215081a76911d2687d9 [INFO] running `Command { std: "docker" "start" "-a" "42e32b88b89aff444543960b9bfb9abfef89950d01146215081a76911d2687d9", kill_on_drop: false }` [INFO] [stderr] warning: unused imports: `ops::Range`, `path::PathBuf`, and `sync::Arc` [INFO] [stderr] --> src/embedding/vector_store.rs:1:33 [INFO] [stderr] | [INFO] [stderr] 1 | use std::{collections::HashMap, ops::Range, path::PathBuf, sync::Arc}; [INFO] [stderr] | ^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `error` [INFO] [stderr] --> src/embedding/vector_store.rs:3:22 [INFO] [stderr] | [INFO] [stderr] 3 | use tracing::{debug, error, instrument}; [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Chunk` [INFO] [stderr] --> src/embedding/vector_store.rs:6:24 [INFO] [stderr] | [INFO] [stderr] 6 | use crate::{chunking::{Chunk, ChunkData, Chunker}, extension::F11y, storage::Document}; [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Weak` [INFO] [stderr] --> src/storage/workspace.rs:5:22 [INFO] [stderr] | [INFO] [stderr] 5 | use std::sync::{Arc, Weak}; [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `MutexGuard` [INFO] [stderr] --> src/storage/workspace.rs:7:26 [INFO] [stderr] | [INFO] [stderr] 7 | use tokio::sync::{Mutex, MutexGuard}; [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `sync::Arc` [INFO] [stderr] --> src/storage/file.rs:1:34 [INFO] [stderr] | [INFO] [stderr] 1 | use std::{path::{Path, PathBuf}, sync::Arc}; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `tokio::fs::File` [INFO] [stderr] --> src/storage/file.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use tokio::fs::File; [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `extension` [INFO] [stderr] --> src/storage/file.rs:4:13 [INFO] [stderr] | [INFO] [stderr] 4 | use crate::{extension, storage::{Error, Result}}; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Workspace` and `document` [INFO] [stderr] --> src/storage/file.rs:6:13 [INFO] [stderr] | [INFO] [stderr] 6 | use super::{document, Document, Workspace}; [INFO] [stderr] | ^^^^^^^^ ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `hash_map::Entry` and `ops::Range` [INFO] [stderr] --> src/storage/metadata/mod.rs:3:25 [INFO] [stderr] | [INFO] [stderr] 3 | use std::{collections::{hash_map::Entry, HashMap}, ops::Range}; [INFO] [stderr] | ^^^^^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::ops::Range` [INFO] [stderr] --> src/storage/metadata/extension_data.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use std::ops::Range; [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `tokio::fs` [INFO] [stderr] --> src/storage/mod.rs:131:5 [INFO] [stderr] | [INFO] [stderr] 131 | use tokio::fs; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Mutex` [INFO] [stderr] --> src/storage/mod.rs:132:19 [INFO] [stderr] | [INFO] [stderr] 132 | use tokio::sync::{Mutex, RwLock}; [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `debug` and `instrument` [INFO] [stderr] --> src/storage/mod.rs:133:15 [INFO] [stderr] | [INFO] [stderr] 133 | use tracing::{debug, instrument}; [INFO] [stderr] | ^^^^^ ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `WorkspaceEvents`, `WorkspaceMetadata`, `read_workspace_metadata`, and `write_workspace_metadata` [INFO] [stderr] --> src/storage/mod.rs:134:17 [INFO] [stderr] | [INFO] [stderr] 134 | use workspace::{read_workspace_metadata, write_workspace_metadata, WorkspaceEvents, WorkspaceMetadata}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `task::JoinHandle` [INFO] [stderr] --> src/job/mod.rs:6:96 [INFO] [stderr] | [INFO] [stderr] 6 | use tokio::{io::AsyncRead, sync::mpsc::{error::SendError, UnboundedReceiver, UnboundedSender}, task::JoinHandle}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `tokio::sync::mpsc::Sender` [INFO] [stderr] --> src/job/chat.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use tokio::sync::mpsc::Sender; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `SearchResults` [INFO] [stderr] --> src/job/chat.rs:5:34 [INFO] [stderr] | [INFO] [stderr] 5 | use super::{search::{search_job, SearchResults}, Assets, Job, RunJobError}; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/storage/workspace.rs:179:13 [INFO] [stderr] | [INFO] [stderr] 179 | let mut arc = Arc::new(Workspace { [INFO] [stderr] | ----^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/job/chat.rs:116:13 [INFO] [stderr] | [INFO] [stderr] 116 | let mut messages = vec![ [INFO] [stderr] | ----^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/job/chat.rs:98:74 [INFO] [stderr] | [INFO] [stderr] 98 | pub fn simple_rag(prompt: &str, limit: usize, mut on_message: F) -> Job, impl AsyncFnOnce(&m... [INFO] [stderr] | ----^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: unused import: `Converter` [INFO] [stderr] --> src/job/mod.rs:3:113 [INFO] [stderr] | [INFO] [stderr] 3 | use crate::{chat::{chat::ChatApi, prompter::Prompter, ChatError}, chunking::Chunker, convert::{ConversionError, Converter}, embedding... [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Extension` [INFO] [stderr] --> src/job/mod.rs:3:193 [INFO] [stderr] | [INFO] [stderr] 3 | ...g::{Embedder, EmbeddingError}, extension::{ActiveExtension, Extension, F11y, UseExtensionError}, storage::{self, Content, Document... [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unreachable pattern [INFO] [stderr] --> src/storage/metadata/mod.rs:67:13 [INFO] [stderr] | [INFO] [stderr] 65 | Some(ExtensionData::Embeddings(embeddings)) => Some(embeddings), [INFO] [stderr] | ------------------------------------------- matches all the relevant values [INFO] [stderr] 66 | None => None, [INFO] [stderr] 67 | Some(unexpected_data) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ no value can reach this [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unreachable pattern [INFO] [stderr] --> src/storage/metadata/mod.rs:87:13 [INFO] [stderr] | [INFO] [stderr] 86 | ExtensionData::Embeddings(embeddings) => embeddings, [INFO] [stderr] | ------------------------------------- matches all the relevant values [INFO] [stderr] 87 | _ => unreachable!(), [INFO] [stderr] | ^ no value can reach this [INFO] [stderr] [INFO] [stderr] warning: unreachable pattern [INFO] [stderr] --> src/storage/metadata/mod.rs:78:17 [INFO] [stderr] | [INFO] [stderr] 77 | ExtensionData::Embeddings(_) => {}, [INFO] [stderr] | ---------------------------- matches all the relevant values [INFO] [stderr] 78 | _ => { [INFO] [stderr] | ^ no value can reach this [INFO] [stderr] [INFO] [stderr] warning: method `config` is never used [INFO] [stderr] --> src/extension/active_extension.rs:31:8 [INFO] [stderr] | [INFO] [stderr] 20 | impl ActiveExtension { [INFO] [stderr] | -------------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 31 | fn config(&self) -> &ExtensionConfig { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: field `callback` is never read [INFO] [stderr] --> src/event.rs:26:5 [INFO] [stderr] | [INFO] [stderr] 24 | struct ListenerEntry { [INFO] [stderr] | ------------- field in this struct [INFO] [stderr] 25 | // Use Weak pointer to avoid cycles and allow listeners to be dropped automatically. [INFO] [stderr] 26 | callback: Weak E::HandlerReturnType + Send + Sync>, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `ListenerEntry` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: associated items `dispatch` and `dummy_handler` are never used [INFO] [stderr] --> src/event.rs:84:19 [INFO] [stderr] | [INFO] [stderr] 64 | impl ListenerList { [INFO] [stderr] | ---------------------------------------- associated items in this implementation [INFO] [stderr] ... [INFO] [stderr] 84 | pub(crate) fn dispatch(&self, event: &mut E) { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 119 | fn dummy_handler(_: &E) -> E::HandlerReturnType { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `new` is never used [INFO] [stderr] --> src/storage/mod.rs:229:19 [INFO] [stderr] | [INFO] [stderr] 228 | impl DocumentMoved { [INFO] [stderr] | ------------------ associated function in this implementation [INFO] [stderr] 229 | pub(crate) fn new(document: Document, from: PathBuf) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `folder` and `tags` are never read [INFO] [stderr] --> src/storage/folder.rs:156:5 [INFO] [stderr] | [INFO] [stderr] 155 | pub struct Scope { [INFO] [stderr] | ----- fields in this struct [INFO] [stderr] 156 | folder: Folder, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] 157 | tags: Vec, // TODO - tags don't exist yet [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Scope` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: field `internal_dir` is never read [INFO] [stderr] --> src/storage/workspace.rs:24:16 [INFO] [stderr] | [INFO] [stderr] 20 | pub struct Workspace { [INFO] [stderr] | --------- field in this struct [INFO] [stderr] ... [INFO] [stderr] 24 | pub(crate) internal_dir: PathBuf, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Workspace` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: method `internal_dir_path` is never used [INFO] [stderr] --> src/storage/workspace.rs:96:19 [INFO] [stderr] | [INFO] [stderr] 34 | impl Workspace { [INFO] [stderr] | -------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 96 | pub(crate) fn internal_dir_path(&self) -> &Path { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/storage/document.rs:157:33 [INFO] [stderr] | [INFO] [stderr] 157 | async fn lock_metadata_file(&self) -> MutexGuard<()> { [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] 157 | async fn lock_metadata_file(&self) -> MutexGuard<'_, ()> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/storage/document.rs:255:23 [INFO] [stderr] | [INFO] [stderr] 255 | pub async fn file(&self, file_name: &str) -> Result { [INFO] [stderr] | ^^^^^ the lifetime is elided here ^^^^^^^^^^^ the same lifetime is hidden 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] 255 | pub async fn file(&self, file_name: &str) -> Result> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/storage/document.rs:266:24 [INFO] [stderr] | [INFO] [stderr] 266 | pub async fn files(&self) -> Result> { [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] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 266 | pub async fn files(&self) -> Result>> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/storage/document.rs:273:37 [INFO] [stderr] | [INFO] [stderr] 273 | pub async fn files_by_extension(&self, extension: &str) -> Result> { [INFO] [stderr] | ^^^^^ the lifetime is elided here ^^^^^^^^^^^ the same lifetime is hidden 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] 273 | pub async fn files_by_extension(&self, extension: &str) -> Result>> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/storage/document.rs:281:40 [INFO] [stderr] | [INFO] [stderr] 281 | pub async fn primary_content_files(&self) -> Result> { [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] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 281 | pub async fn primary_content_files(&self) -> Result>> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/storage/document.rs:288:58 [INFO] [stderr] | [INFO] [stderr] 288 | pub async fn add_file(&self, extension: &str, content: &mut R) -> Result { [INFO] [stderr] | ^^^^^ the lifetime is elided here ^^^^^^^^^^^ the same lifetime is hidden 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] 288 | pub async fn add_file(&self, extension: &str, content: &mut R) -> Result> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/storage/document.rs:314:70 [INFO] [stderr] | [INFO] [stderr] 314 | ...+ ?Sized>(&self, extension: &str, suffix: u32, content: &mut R) -> Result { [INFO] [stderr] | ^^^^^ the lifetime is elided here ^^^^^^^^^^^ the same lifetime is hidden 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] 314 | pub async fn add_file_with_suffix(&self, extension: &str, suffix: u32, content: &mut R) -> Result> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/storage/document.rs:318:63 [INFO] [stderr] | [INFO] [stderr] 318 | ...ized>(&self, extension: &str, suffix: Option, content: &mut R) -> Result { [INFO] [stderr] | ^^^^^ the lifetime is elided here ^^^^^^^^^^^ the same lifetime is hidden 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] 318 | async fn add_file_internal(&self, extension: &str, suffix: Option, content: &mut R) -> Result> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/storage/document.rs:348:42 [INFO] [stderr] | [INFO] [stderr] 348 | async fn list_content_files_internal(&self, extension_filter: Option<&str>) -> Result> { [INFO] [stderr] | ^^^^^ the lifetime is elided here ^^^^^^^^^^^ the same lifetime is hidden 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] 348 | async fn list_content_files_internal(&self, extension_filter: Option<&str>) -> Result>> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/job/search.rs:49:22 [INFO] [stderr] | [INFO] [stderr] 49 | pub fn documents(&self) -> Documents { [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] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 49 | pub fn documents(&self) -> Documents<'_> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/job/search.rs:176:18 [INFO] [stderr] | [INFO] [stderr] 176 | pub fn chunk(&self) -> Chunk { [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] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 176 | pub fn chunk(&self) -> Chunk<'_> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: `markhor_core` (lib) generated 44 warnings (run `cargo fix --lib -p markhor_core` to apply 32 suggestions) [INFO] [stderr] warning: unused imports: `Document`, `Folder`, `MARKHOR_EXTENSION`, and `self` [INFO] [stderr] --> tests/workspace_integration.rs:7:5 [INFO] [stderr] | [INFO] [stderr] 7 | self, ConflictError, Document, Error, Folder, Storage, Workspace, INTERNAL_DIR_NAME, MARKHOR_EXTENSION [INFO] [stderr] | ^^^^ ^^^^^^^^ ^^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `cell::RefCell` [INFO] [stderr] --> src/event.rs:222:15 [INFO] [stderr] | [INFO] [stderr] 222 | use std::{cell::RefCell, sync::Mutex}; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `tempfile::tempdir` [INFO] [stderr] --> src/storage/document.rs:620:9 [INFO] [stderr] | [INFO] [stderr] 620 | use tempfile::tempdir; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `create_dummy_file` is never used [INFO] [stderr] --> src/storage/document.rs:623:14 [INFO] [stderr] | [INFO] [stderr] 623 | async fn create_dummy_file(path: &Path) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Arc` and `collections::HashMap` [INFO] [stderr] --> tests/chat_model.rs:1:11 [INFO] [stderr] | [INFO] [stderr] 1 | use std::{collections::HashMap, sync::{atomic::{AtomicUsize, Ordering}, Arc}}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ ^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `messages` [INFO] [stderr] --> tests/chat_model.rs:45:30 [INFO] [stderr] | [INFO] [stderr] 45 | async fn generate(&self, messages: &[Message], options: &ChatOptions) -> Result { [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_messages` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `options` [INFO] [stderr] --> tests/chat_model.rs:45:52 [INFO] [stderr] | [INFO] [stderr] 45 | async fn generate(&self, messages: &[Message], options: &ChatOptions) -> Result { [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_options` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `messages` [INFO] [stderr] --> tests/chat_model.rs:59:37 [INFO] [stderr] | [INFO] [stderr] 59 | async fn generate_stream(&self, messages: &[Message], options: &ChatOptions) -> Result { [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_messages` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `options` [INFO] [stderr] --> tests/chat_model.rs:59:59 [INFO] [stderr] | [INFO] [stderr] 59 | async fn generate_stream(&self, messages: &[Message], options: &ChatOptions) -> Result { [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_options` [INFO] [stderr] [INFO] [stderr] warning: struct `ShakespeareChatExtension` is never constructed [INFO] [stderr] --> tests/chat_model.rs:65:8 [INFO] [stderr] | [INFO] [stderr] 65 | struct ShakespeareChatExtension; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: associated function `new` is never used [INFO] [stderr] --> tests/chat_model.rs:68:8 [INFO] [stderr] | [INFO] [stderr] 67 | impl ShakespeareChatExtension { [INFO] [stderr] | ----------------------------- associated function in this implementation [INFO] [stderr] 68 | fn new() -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: `markhor_core` (test "workspace_integration") generated 1 warning (run `cargo fix --test "workspace_integration" -p markhor_core` to apply 1 suggestion) [INFO] [stderr] warning: `markhor_core` (lib test) generated 43 warnings (40 duplicates) (run `cargo fix --lib -p markhor_core --tests` to apply 2 suggestions) [INFO] [stderr] warning: `markhor_core` (test "chat_model") generated 7 warnings (run `cargo fix --test "chat_model" -p markhor_core` to apply 5 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.39s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/markhor_core-ad468a81fdcf742f) [INFO] [stdout] [INFO] [stdout] running 17 tests [INFO] [stdout] test event::tests::test_listener_cleanup_on_drop ... ok [INFO] [stdout] test event::tests::test_listener_registration_and_dispatch ... ok [INFO] [stdout] test event::tests::test_listener_order ... ok [INFO] [stdout] test storage::document::tests::test_is_potential_content_file_logic ... ok [INFO] [stdout] test storage::workspace::tests::test_workspace_create_fails_if_file ... ok [INFO] [stdout] test storage::workspace::tests::test_workspace_create_fails_if_internal_dir_exists ... ok [INFO] [stdout] test storage::workspace::tests::test_workspace_create_fails_if_non_empty ... ok [INFO] [stdout] test storage::workspace::tests::test_workspace_open_fails_if_config_missing ... ok [INFO] [stdout] test storage::workspace::tests::test_workspace_open_fails_if_no_internal_dir ... ok [INFO] [stdout] test storage::workspace::tests::test_workspace_open_fails_if_config_malformed ... ok [INFO] [stdout] test storage::workspace::tests::test_workspace_create_new ... ok [INFO] [stdout] test tests::it_works ... ok [INFO] [stdout] test storage::workspace::tests::test_workspace_create_in_empty_dir ... ok [INFO] [stdout] test storage::workspace::tests::test_workspace_open_fails_if_not_dir ... ok [INFO] [stdout] test storage::workspace::tests::test_workspace_open_fails_if_internal_is_file ... ok [INFO] [stdout] test storage::workspace::tests::test_workspace_open_ok ... ok [INFO] [stderr] Running tests/chat_model.rs (/opt/rustwide/target/debug/deps/chat_model-aef6a2326b5a1187) [INFO] [stdout] test storage::document::tests::test_parse_basename_logic ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 17 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.02s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stderr] Running tests/workspace_integration.rs (/opt/rustwide/target/debug/deps/workspace_integration-277bcc95afee6d95) [INFO] [stdout] test shakespeare_chat_model ... 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] [stdout] [INFO] [stdout] running 6 tests [INFO] [stdout] test integration_create_and_open_workspace ... ok [INFO] [stdout] test integration_move_adopts_orphan_conflict ... ok [INFO] [stdout] test integration_folders_and_nested_docs ... ok [INFO] [stdout] test integration_create_document_causes_conflict ... ok [INFO] [stdout] test integration_move_document_between_folders ... ok [INFO] [stdout] test integration_move_document_causes_conflict ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- integration_move_document_causes_conflict stdout ---- [INFO] [stdout] [INFO] [stdout] thread 'integration_move_document_causes_conflict' (59) panicked at tests/workspace_integration.rs:232:5: [INFO] [stdout] assertion failed: matches!(move_result_2, [INFO] [stdout] Err(Error::Conflict(ConflictError::MarkhorFileExists(p))) if p == [INFO] [stdout] doc2_path) [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x55cc44cd25b2 - std::backtrace_rs::backtrace::libunwind::trace::h9ea1e07ac77a25d7 [INFO] [stdout] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x55cc44cd25b2 - std::backtrace_rs::backtrace::trace_unsynchronized::h72b75eb83b53d15a [INFO] [stdout] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x55cc44cd25b2 - std::sys::backtrace::_print_fmt::h255777b7ec902439 [INFO] [stdout] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/sys/backtrace.rs:66:9 [INFO] [stdout] 3: 0x55cc44cd25b2 - ::fmt::h8a1ac49fcd7ee8ce [INFO] [stdout] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/sys/backtrace.rs:39:26 [INFO] [stdout] 4: 0x55cc44ce476f - core::fmt::rt::Argument::fmt::h635cbf3c6754cc90 [INFO] [stdout] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/core/src/fmt/rt.rs:173:76 [INFO] [stdout] 5: 0x55cc44ce476f - core::fmt::write::hbdcc0ec4f1bab1db [INFO] [stdout] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/core/src/fmt/mod.rs:1469:25 [INFO] [stdout] 6: 0x55cc44c9e153 - std::io::default_write_fmt::h2580ece0d4b58e51 [INFO] [stdout] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x55cc44c9e153 - std::io::Write::write_fmt::hac9e42858f273b87 [INFO] [stdout] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/io/mod.rs:1954:13 [INFO] [stdout] 8: 0x55cc44cab1c2 - std::sys::backtrace::BacktraceLock::print::h052febbd86f7bf07 [INFO] [stdout] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/sys/backtrace.rs:42:9 [INFO] [stdout] 9: 0x55cc44cb035f - std::panicking::default_hook::{{closure}}::h66aeee20dd470abb [INFO] [stdout] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/panicking.rs:301:27 [INFO] [stdout] 10: 0x55cc44cb01f1 - std::panicking::default_hook::h9d66b9642014ce48 [INFO] [stdout] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/panicking.rs:325:9 [INFO] [stdout] 11: 0x55cc44928d4e - as core::ops::function::Fn>::call::h8c698701e444e564 [INFO] [stdout] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/alloc/src/boxed.rs:2099:9 [INFO] [stdout] 12: 0x55cc44928d4e - test::test_main_with_exit_callback::{{closure}}::ha1c98e7b69c4defb [INFO] [stdout] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/test/src/lib.rs:145:21 [INFO] [stdout] 13: 0x55cc44cb096f - as core::ops::function::Fn>::call::hc4f222a8a57c637a [INFO] [stdout] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/alloc/src/boxed.rs:2099:9 [INFO] [stdout] 14: 0x55cc44cb096f - std::panicking::panic_with_hook::h6d5921a1a1fa5a8e [INFO] [stdout] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/panicking.rs:842:13 [INFO] [stdout] 15: 0x55cc44cb0796 - std::panicking::panic_handler::{{closure}}::hafeef6f707d43542 [INFO] [stdout] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/panicking.rs:700:13 [INFO] [stdout] 16: 0x55cc44cab2f9 - std::sys::backtrace::__rust_end_short_backtrace::h08cbc3319a3d0120 [INFO] [stdout] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/sys/backtrace.rs:174:18 [INFO] [stdout] 17: 0x55cc44c91b2d - __rustc[ce5c411ff86ab1b2]::rust_begin_unwind [INFO] [stdout] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/panicking.rs:698:5 [INFO] [stdout] 18: 0x55cc44ced570 - core::panicking::panic_fmt::h774fb860369a0f7b [INFO] [stdout] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/core/src/panicking.rs:80:14 [INFO] [stdout] 19: 0x55cc44ced54c - core::panicking::panic::h2a6fe4ac012a7582 [INFO] [stdout] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/core/src/panicking.rs:150:5 [INFO] [stdout] 20: 0x55cc448d0afb - workspace_integration::integration_move_document_causes_conflict::{{closure}}::h8223e6b3032a5179 [INFO] [stdout] at /opt/rustwide/workdir/tests/workspace_integration.rs:232:5 [INFO] [stdout] 21: 0x55cc448ab922 - as core::future::future::Future>::poll::h21bb818f7530c2f8 [INFO] [stdout] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/core/src/future/future.rs:133:9 [INFO] [stdout] 22: 0x55cc448ab95d - as core::future::future::Future>::poll::h41172b1752fe149b [INFO] [stdout] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/core/src/future/future.rs:133:9 [INFO] [stdout] 23: 0x55cc4489745d - tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}::h676cfc7f952d5465 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:70 [INFO] [stdout] 24: 0x55cc4489721b - tokio::task::coop::with_budget::h8b9c7a65a54b54ef [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:167:5 [INFO] [stdout] 25: 0x55cc4489721b - tokio::task::coop::budget::hddb21755a2caf880 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/task/coop/mod.rs:133:5 [INFO] [stdout] 26: 0x55cc4489721b - tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::h5b04d837fc501558 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733:25 [INFO] [stdout] 27: 0x55cc44894230 - tokio::runtime::scheduler::current_thread::Context::enter::h16a3181601916539 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:432:19 [INFO] [stdout] 28: 0x55cc44895e3d - tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::h33636004088a6fc5 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:732:44 [INFO] [stdout] 29: 0x55cc44895ae4 - tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}::h1e51fbb9acf67e89 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:68 [INFO] [stdout] 30: 0x55cc4488106b - tokio::runtime::context::scoped::Scoped::set::h3e4b2afb3b295389 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/scoped.rs:40:9 [INFO] [stdout] 31: 0x55cc4488db49 - tokio::runtime::context::set_scheduler::{{closure}}::h4e0d6b6a5306cdbc [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:38 [INFO] [stdout] 32: 0x55cc4487ea22 - std::thread::local::LocalKey::try_with::h0b7d85192f4603c0 [INFO] [stdout] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/thread/local.rs:508:12 [INFO] [stdout] 33: 0x55cc4487e68e - std::thread::local::LocalKey::with::h6798ec9a4352faef [INFO] [stdout] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/thread/local.rs:472:20 [INFO] [stdout] 34: 0x55cc4488dafd - tokio::runtime::context::set_scheduler::h8bf6cf900ad782bf [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context.rs:180:17 [INFO] [stdout] 35: 0x55cc44895890 - tokio::runtime::scheduler::current_thread::CoreGuard::enter::h822a6c9acd0521bb [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820:27 [INFO] [stdout] 36: 0x55cc44895b23 - tokio::runtime::scheduler::current_thread::CoreGuard::block_on::h537e56ff32eec393 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:720:24 [INFO] [stdout] 37: 0x55cc44893ab3 - tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}::h6668deb633a6acd9 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:200:33 [INFO] [stdout] 38: 0x55cc448b14d0 - tokio::runtime::context::runtime::enter_runtime::h3fef65c8333ad0da [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/context/runtime.rs:65:16 [INFO] [stdout] 39: 0x55cc448937b1 - tokio::runtime::scheduler::current_thread::CurrentThread::block_on::h17403758ec7dd0e6 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:188:9 [INFO] [stdout] 40: 0x55cc4488de64 - tokio::runtime::runtime::Runtime::block_on_inner::h4c2cd698be867a01 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:368:52 [INFO] [stdout] 41: 0x55cc4488e137 - tokio::runtime::runtime::Runtime::block_on::h1050a9634aa62a5b [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/runtime.rs:342:18 [INFO] [stdout] 42: 0x55cc448cee11 - workspace_integration::integration_move_document_causes_conflict::hb0e5c384f4bc5006 [INFO] [stdout] at /opt/rustwide/workdir/tests/workspace_integration.rs:232:114 [INFO] [stdout] 43: 0x55cc448d1007 - workspace_integration::integration_move_document_causes_conflict::{{closure}}::hb07c56011d9d3770 [INFO] [stdout] at /opt/rustwide/workdir/tests/workspace_integration.rs:208:53 [INFO] [stdout] 44: 0x55cc4484a6f6 - core::ops::function::FnOnce::call_once::h00ceb4264d60e2cf [INFO] [stdout] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 45: 0x55cc44928b9b - core::ops::function::FnOnce::call_once::h4f6eabe90cccb47d [INFO] [stdout] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 46: 0x55cc44928b9b - test::__rust_begin_short_backtrace::h94208530f2b4c8c7 [INFO] [stdout] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/test/src/lib.rs:663:18 [INFO] [stdout] 47: 0x55cc4493cbad - test::run_test_in_process::{{closure}}::hbdc6a45a78c46404 [INFO] [stdout] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/test/src/lib.rs:686:74 [INFO] [stdout] 48: 0x55cc4493cbad - as core::ops::function::FnOnce<()>>::call_once::h7f9d8efc7eedd165 [INFO] [stdout] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 49: 0x55cc4493cbad - std::panicking::catch_unwind::do_call::he5edbaf126c13b99 [INFO] [stdout] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/panicking.rs:590:40 [INFO] [stdout] 50: 0x55cc4493cbad - std::panicking::catch_unwind::h3d6a8652eceeabce [INFO] [stdout] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/panicking.rs:553:19 [INFO] [stdout] 51: 0x55cc4493cbad - std::panic::catch_unwind::hbef0c501dd7bb498 [INFO] [stdout] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/panic.rs:359:14 [INFO] [stdout] 52: 0x55cc4493cbad - test::run_test_in_process::h400008a46a5006a0 [INFO] [stdout] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/test/src/lib.rs:686:27 [INFO] [stdout] 53: 0x55cc4493cbad - test::run_test::{{closure}}::h9a131655b31d9427 [INFO] [stdout] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/test/src/lib.rs:607:43 [INFO] [stdout] 54: 0x55cc449160f4 - test::run_test::{{closure}}::he4a7177c216308c0 [INFO] [stdout] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/test/src/lib.rs:637:41 [INFO] [stdout] 55: 0x55cc449160f4 - std::sys::backtrace::__rust_begin_short_backtrace::hd3980e9c55d6c539 [INFO] [stdout] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/sys/backtrace.rs:158:18 [INFO] [stdout] 56: 0x55cc44919a2a - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h18552df67c7aa9b8 [INFO] [stdout] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/thread/mod.rs:562:17 [INFO] [stdout] 57: 0x55cc44919a2a - as core::ops::function::FnOnce<()>>::call_once::h3d7b285234641a08 [INFO] [stdout] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 58: 0x55cc44919a2a - std::panicking::catch_unwind::do_call::h5a2b5cf36528a5b2 [INFO] [stdout] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/panicking.rs:590:40 [INFO] [stdout] 59: 0x55cc44919a2a - std::panicking::catch_unwind::h7e8b531bbda77d20 [INFO] [stdout] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/panicking.rs:553:19 [INFO] [stdout] 60: 0x55cc44919a2a - std::panic::catch_unwind::hf9bbb2040b4f1e6c [INFO] [stdout] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/panic.rs:359:14 [INFO] [stdout] 61: 0x55cc44919a2a - std::thread::Builder::spawn_unchecked_::{{closure}}::h600f92cf68549574 [INFO] [stdout] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/thread/mod.rs:560:30 [INFO] [stdout] 62: 0x55cc44919a2a - core::ops::function::FnOnce::call_once{{vtable.shim}}::hb6607307df8a1847 [INFO] [stdout] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 63: 0x55cc44ca66ff - as core::ops::function::FnOnce>::call_once::h6891ad53a5ed6f52 [INFO] [stdout] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/alloc/src/boxed.rs:2085:9 [INFO] [stdout] 64: 0x55cc44ca66ff - std::sys::thread::unix::Thread::new::thread_start::h7f3e77fa86df70af [INFO] [stdout] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/sys/thread/unix.rs:124:17 [INFO] [stdout] 65: 0x72939fc4eaa4 - [INFO] [stdout] 66: 0x72939fcdba64 - clone [INFO] [stdout] 67: 0x0 - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] integration_move_document_causes_conflict [INFO] [stdout] [INFO] [stdout] test result: FAILED. 5 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.06s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass `--test workspace_integration` [INFO] running `Command { std: "docker" "inspect" "42e32b88b89aff444543960b9bfb9abfef89950d01146215081a76911d2687d9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "42e32b88b89aff444543960b9bfb9abfef89950d01146215081a76911d2687d9", kill_on_drop: false }` [INFO] [stdout] 42e32b88b89aff444543960b9bfb9abfef89950d01146215081a76911d2687d9