[INFO] cloning repository https://github.com/prasetyowira/IC-RAG-Vector [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/prasetyowira/IC-RAG-Vector" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fprasetyowira%2FIC-RAG-Vector", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fprasetyowira%2FIC-RAG-Vector'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1b67f61aefd8cb88fe372186b2e9b48733c2f651 [INFO] building prasetyowira/IC-RAG-Vector against master#ad85bc524b1ad696e42061ad8338d382dffbdbe5 for pr-146237-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fprasetyowira%2FIC-RAG-Vector" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] removed /workspace/builds/worker-5-tc1/source/.cargo/config.toml [INFO] removed /workspace/builds/worker-5-tc1/source/rust-toolchain.toml [INFO] started tweaking git repo https://github.com/prasetyowira/IC-RAG-Vector [INFO] finished tweaking git repo https://github.com/prasetyowira/IC-RAG-Vector [INFO] tweaked toml for git repo https://github.com/prasetyowira/IC-RAG-Vector written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/prasetyowira/IC-RAG-Vector on toolchain ad85bc524b1ad696e42061ad8338d382dffbdbe5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/prasetyowira/IC-RAG-Vector 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" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Updating git repository `https://github.com/elna-ai/instant-distance` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded serde-big-array v0.5.1 [INFO] [stderr] Downloaded half v2.5.0 [INFO] [stderr] Downloaded psm v0.1.25 [INFO] [stderr] Downloaded stacker v0.1.20 [INFO] [stderr] Downloaded ic-stable-structures v0.6.8 [INFO] [stderr] Downloaded lopdf v0.34.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1f35c8922df75aa23a01a476d85fe44accd9f752fbd319428f9bae476e8ad98c [INFO] running `Command { std: "docker" "start" "-a" "1f35c8922df75aa23a01a476d85fe44accd9f752fbd319428f9bae476e8ad98c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1f35c8922df75aa23a01a476d85fe44accd9f752fbd319428f9bae476e8ad98c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1f35c8922df75aa23a01a476d85fe44accd9f752fbd319428f9bae476e8ad98c", kill_on_drop: false }` [INFO] [stdout] 1f35c8922df75aa23a01a476d85fe44accd9f752fbd319428f9bae476e8ad98c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 824956d34a9a2d58aef9d05c334bede69a1ce23b714906fb84feb6ccfba1e18e [INFO] running `Command { std: "docker" "start" "-a" "824956d34a9a2d58aef9d05c334bede69a1ce23b714906fb84feb6ccfba1e18e", kill_on_drop: false }` [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling cc v1.2.17 [INFO] [stderr] Compiling rustversion v1.0.20 [INFO] [stderr] Compiling data-encoding v2.8.0 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling typed-arena v2.0.2 [INFO] [stderr] Compiling arrayvec v0.5.2 [INFO] [stderr] Compiling rayon-core v1.12.1 [INFO] [stderr] Compiling candid_derive v0.6.6 [INFO] [stderr] Compiling leb128 v0.2.5 [INFO] [stderr] Compiling pretty v0.12.4 [INFO] [stderr] Compiling bytemuck v1.22.0 [INFO] [stderr] Compiling matrixmultiply v0.3.9 [INFO] [stderr] Compiling crossbeam-deque v0.8.6 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling safe_arch v0.7.4 [INFO] [stderr] Compiling smallvec v1.14.0 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling deranged v0.4.1 [INFO] [stderr] Compiling wide v0.7.32 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling rayon v1.10.0 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling rand_pcg v0.2.1 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling half v2.5.0 [INFO] [stderr] Compiling ciborium-io v0.2.2 [INFO] [stderr] Compiling rawpointer v0.2.1 [INFO] [stderr] Compiling iana-time-zone v0.1.62 [INFO] [stderr] Compiling time v0.3.41 [INFO] [stderr] Compiling ciborium-ll v0.2.2 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling indexmap v2.8.0 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling psm v0.1.25 [INFO] [stderr] Compiling stacker v0.1.20 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Compiling num_cpus v1.16.0 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling weezl v0.1.8 [INFO] [stderr] Compiling approx v0.5.1 [INFO] [stderr] Compiling ordered-float v4.6.0 [INFO] [stderr] Compiling chrono v0.4.40 [INFO] [stderr] Compiling ic0 v0.23.0 [INFO] [stderr] Compiling rangemap v1.5.1 [INFO] [stderr] Compiling log v0.4.27 [INFO] [stderr] Compiling num-rational v0.4.2 [INFO] [stderr] Compiling ic_principal v0.1.1 [INFO] [stderr] Compiling serde_bytes v0.11.17 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling serde_tokenstream v0.2.2 [INFO] [stderr] Compiling lopdf v0.34.0 [INFO] [stderr] Compiling num-complex v0.4.6 [INFO] [stderr] Compiling serde-big-array v0.5.1 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling ciborium v0.2.2 [INFO] [stderr] Compiling instant-distance v0.6.1 (https://github.com/elna-ai/instant-distance#f65c8986) [INFO] [stderr] Compiling ic-stable-structures v0.6.8 [INFO] [stderr] Compiling simba v0.8.1 [INFO] [stderr] Compiling binread_derive v2.1.0 [INFO] [stderr] Compiling binread v2.2.0 [INFO] [stderr] Compiling candid v0.10.13 [INFO] [stderr] Compiling ic-cdk-macros v0.17.1 [INFO] [stderr] Compiling ic-cdk v0.17.1 [INFO] [stderr] Compiling nalgebra v0.32.6 [INFO] [stderr] Compiling backend v0.1.0 (/opt/rustwide/workdir/backend) [INFO] [stdout] warning: unused import: `std::env::args` [INFO] [stdout] --> backend/lib.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::env::args; [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: `crate::vdb::error::Error` [INFO] [stdout] --> backend/client.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use crate::vdb::error::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `ipv4-support` [INFO] [stdout] --> backend/client.rs:30:24 [INFO] [stdout] | [INFO] [stdout] 30 | let support = cfg!(feature = "ipv4-support"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `ipv4-support` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ic_stable_structures::Storable` [INFO] [stdout] --> backend/lib.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use ic_stable_structures::Storable; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CollectionQuery` is never constructed [INFO] [stdout] --> backend/vdb/collection.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 37 | pub struct CollectionQuery { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `find` and `query` are never used [INFO] [stdout] --> backend/vdb/collection.rs:76:12 [INFO] [stdout] | [INFO] [stdout] 60 | impl Collection { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 76 | pub fn find(&self, query: CollectionQuery) -> Vec<&DocMetadata> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 130 | pub fn query(&self, key: &Vector, search: &mut Search, limit: i32) -> Vec<(f32, String)> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `query`, `delete_collection`, `get_all_collections`, and `get_docs_by_query` are never used [INFO] [stdout] --> backend/vdb/db.rs:69:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl Database { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 69 | pub fn query( [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 91 | pub fn delete_collection(&mut self, name: &String) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | pub fn get_all_collections(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 116 | pub fn get_docs_by_query(&mut self, name: &String, query: CollectionQuery) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `cos_sim` is never used [INFO] [stdout] --> backend/vdb/index.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 37 | impl Vector { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] 38 | pub fn cos_sim(&self, other: &Vector) -> f32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `STABLE_BTREE` is never used [INFO] [stdout] --> backend/vdb/memory.rs:11:7 [INFO] [stdout] | [INFO] [stdout] 11 | const STABLE_BTREE: MemoryId = MemoryId::new(1); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `set_owner` is never used [INFO] [stdout] --> backend/vdb/memory.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn set_owner(owner: Principal) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_stable_btree_memory` is never used [INFO] [stdout] --> backend/vdb/memory.rs:54:8 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn get_stable_btree_memory() -> Memory { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get` is never used [INFO] [stdout] --> backend/client.rs:61:12 [INFO] [stdout] | [INFO] [stdout] 41 | impl CanisterHttpRequest { [INFO] [stdout] | ------------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 61 | pub fn get(self, url: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> backend/vdb/collection.rs:46:17 [INFO] [stdout] | [INFO] [stdout] 46 | fn to_bytes(&self) -> std::borrow::Cow<[u8]> { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 46 | fn to_bytes(&self) -> std::borrow::Cow<'_, [u8]> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> backend/vdb/db.rs:134:9 [INFO] [stdout] | [INFO] [stdout] 134 | collection.remove(file_name); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 134 | let _ = collection.remove(file_name); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 56.90s [INFO] running `Command { std: "docker" "inspect" "824956d34a9a2d58aef9d05c334bede69a1ce23b714906fb84feb6ccfba1e18e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "824956d34a9a2d58aef9d05c334bede69a1ce23b714906fb84feb6ccfba1e18e", kill_on_drop: false }` [INFO] [stdout] 824956d34a9a2d58aef9d05c334bede69a1ce23b714906fb84feb6ccfba1e18e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 66d7b45d51204a25f121a65e23802c77c26effb0349729ad4f5db47674557bb8 [INFO] running `Command { std: "docker" "start" "-a" "66d7b45d51204a25f121a65e23802c77c26effb0349729ad4f5db47674557bb8", kill_on_drop: false }` [INFO] [stderr] Compiling backend v0.1.0 (/opt/rustwide/workdir/backend) [INFO] [stdout] warning: unused import: `std::env::args` [INFO] [stdout] --> backend/lib.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::env::args; [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: `crate::vdb::error::Error` [INFO] [stdout] --> backend/client.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use crate::vdb::error::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `ipv4-support` [INFO] [stdout] --> backend/client.rs:30:24 [INFO] [stdout] | [INFO] [stdout] 30 | let support = cfg!(feature = "ipv4-support"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `ipv4-support` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ic_stable_structures::Storable` [INFO] [stdout] --> backend/lib.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use ic_stable_structures::Storable; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `query` is never used [INFO] [stdout] --> backend/vdb/collection.rs:130:12 [INFO] [stdout] | [INFO] [stdout] 60 | impl Collection { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 130 | pub fn query(&self, key: &Vector, search: &mut Search, limit: i32) -> Vec<(f32, String)> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `query` and `get_all_collections` are never used [INFO] [stdout] --> backend/vdb/db.rs:69:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl Database { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 69 | pub fn query( [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | pub fn get_all_collections(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `cos_sim` is never used [INFO] [stdout] --> backend/vdb/index.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 37 | impl Vector { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] 38 | pub fn cos_sim(&self, other: &Vector) -> f32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `STABLE_BTREE` is never used [INFO] [stdout] --> backend/vdb/memory.rs:11:7 [INFO] [stdout] | [INFO] [stdout] 11 | const STABLE_BTREE: MemoryId = MemoryId::new(1); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `set_owner` is never used [INFO] [stdout] --> backend/vdb/memory.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn set_owner(owner: Principal) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_stable_btree_memory` is never used [INFO] [stdout] --> backend/vdb/memory.rs:54:8 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn get_stable_btree_memory() -> Memory { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get` is never used [INFO] [stdout] --> backend/client.rs:61:12 [INFO] [stdout] | [INFO] [stdout] 41 | impl CanisterHttpRequest { [INFO] [stdout] | ------------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 61 | pub fn get(self, url: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> backend/vdb/collection.rs:46:17 [INFO] [stdout] | [INFO] [stdout] 46 | fn to_bytes(&self) -> std::borrow::Cow<[u8]> { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 46 | fn to_bytes(&self) -> std::borrow::Cow<'_, [u8]> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> backend/vdb/db.rs:134:9 [INFO] [stdout] | [INFO] [stdout] 134 | collection.remove(file_name); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 134 | let _ = collection.remove(file_name); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 2.37s [INFO] running `Command { std: "docker" "inspect" "66d7b45d51204a25f121a65e23802c77c26effb0349729ad4f5db47674557bb8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "66d7b45d51204a25f121a65e23802c77c26effb0349729ad4f5db47674557bb8", kill_on_drop: false }` [INFO] [stdout] 66d7b45d51204a25f121a65e23802c77c26effb0349729ad4f5db47674557bb8