[INFO] cloning repository https://github.com/SuleymanSuleymanzade/vector_database [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/SuleymanSuleymanzade/vector_database" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSuleymanSuleymanzade%2Fvector_database", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSuleymanSuleymanzade%2Fvector_database'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c923debcff8470a6d40d80835c75ca79961d5a9e [INFO] checking SuleymanSuleymanzade/vector_database/c923debcff8470a6d40d80835c75ca79961d5a9e against try#4d98531622e1718ae0bc3c7a1ab9cd8938428452+rustflags=-Dtail_expr_drop_order for pr-129604 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSuleymanSuleymanzade%2Fvector_database" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/SuleymanSuleymanzade/vector_database on toolchain 4d98531622e1718ae0bc3c7a1ab9cd8938428452 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/SuleymanSuleymanzade/vector_database [INFO] finished tweaking git repo https://github.com/SuleymanSuleymanzade/vector_database [INFO] tweaked toml for git repo https://github.com/SuleymanSuleymanzade/vector_database written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/SuleymanSuleymanzade/vector_database 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" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 22391adb26303e93f047dac6ee657522c8e8fa03fa3429f87f4c56d678abb257 [INFO] running `Command { std: "docker" "start" "-a" "22391adb26303e93f047dac6ee657522c8e8fa03fa3429f87f4c56d678abb257", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "22391adb26303e93f047dac6ee657522c8e8fa03fa3429f87f4c56d678abb257", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "22391adb26303e93f047dac6ee657522c8e8fa03fa3429f87f4c56d678abb257", kill_on_drop: false }` [INFO] [stdout] 22391adb26303e93f047dac6ee657522c8e8fa03fa3429f87f4c56d678abb257 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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 -Dtail_expr_drop_order" "-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9f264c9206796aa574dcec109610c96c4dd452849cbcdfa0eb2598bb2501f39d [INFO] running `Command { std: "docker" "start" "-a" "9f264c9206796aa574dcec109610c96c4dd452849cbcdfa0eb2598bb2501f39d", kill_on_drop: false }` [INFO] [stderr] Compiling target-lexicon v0.12.14 [INFO] [stderr] Compiling libc v0.2.155 [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling once_cell v1.19.0 [INFO] [stderr] Compiling libm v0.2.8 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling matrixmultiply v0.3.8 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling memoffset v0.9.1 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Compiling portable-atomic v1.6.0 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Checking ppv-lite86 v0.2.17 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Checking rawpointer v0.2.1 [INFO] [stderr] Compiling serde v1.0.203 [INFO] [stderr] Compiling indoc v2.0.5 [INFO] [stderr] Compiling serde_json v1.0.120 [INFO] [stderr] Checking unindent v0.2.3 [INFO] [stderr] Checking ryu v1.0.18 [INFO] [stderr] Checking itoa v1.0.11 [INFO] [stderr] Checking rustc-hash v1.1.0 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling syn v2.0.68 [INFO] [stderr] Compiling pyo3-build-config v0.21.2 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking num-complex v0.4.6 [INFO] [stderr] Checking ndarray v0.15.6 [INFO] [stderr] Compiling pyo3-ffi v0.21.2 [INFO] [stderr] Compiling pyo3 v0.21.2 [INFO] [stderr] Checking rand_distr v0.4.3 [INFO] [stderr] Compiling pyo3-macros-backend v0.21.2 [INFO] [stderr] Compiling serde_derive v1.0.203 [INFO] [stderr] Checking ndarray-rand v0.14.0 [INFO] [stderr] Compiling pyo3-macros v0.21.2 [INFO] [stderr] Checking numpy v0.21.0 [INFO] [stderr] Checking vector_database v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::algorithms::fast_search as fast_search` [INFO] [stdout] --> src/algorithms/kdtree.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::algorithms::fast_search as fast_search; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Deserializer` [INFO] [stdout] --> src/algorithms/kdtree.rs:5:37 [INFO] [stdout] | [INFO] [stdout] 5 | use serde::{Serialize, Deserialize, Deserializer}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `SeqAccess` and `Visitor` [INFO] [stdout] --> src/algorithms/locality_sensitive_hashing.rs:6:17 [INFO] [stdout] | [INFO] [stdout] 6 | use serde::de::{Visitor, SeqAccess}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json` [INFO] [stdout] --> src/algorithms/locality_sensitive_hashing.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use serde_json; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::Error as SerdeError` [INFO] [stdout] --> src/state_manager/local_saver.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use serde_json::Error as SerdeError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `algorithms::locality_sensitive_hashing::HashGenerator` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use algorithms::locality_sensitive_hashing::HashGenerator; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Array1` and `Array2` [INFO] [stdout] --> src/main.rs:9:15 [INFO] [stdout] | [INFO] [stdout] 9 | use ndarray::{Array1, Array2, arr1}; [INFO] [stdout] | ^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `state_manager::local_saver::LocalSaver` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use state_manager::local_saver::LocalSaver; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `algorithms::kdtree as kdtree` [INFO] [stdout] --> src/main.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use algorithms::kdtree as kdtree; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::algorithms::fast_search::FastSearch` [INFO] [stdout] --> src/main.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use crate::algorithms::fast_search::FastSearch; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::algorithms::fast_search as fast_search` [INFO] [stdout] --> src/algorithms/kdtree.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::algorithms::fast_search as fast_search; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Deserializer` [INFO] [stdout] --> src/algorithms/kdtree.rs:5:37 [INFO] [stdout] | [INFO] [stdout] 5 | use serde::{Serialize, Deserialize, Deserializer}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `SeqAccess` and `Visitor` [INFO] [stdout] --> src/algorithms/locality_sensitive_hashing.rs:6:17 [INFO] [stdout] | [INFO] [stdout] 6 | use serde::de::{Visitor, SeqAccess}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json` [INFO] [stdout] --> src/algorithms/locality_sensitive_hashing.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use serde_json; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Array1` and `Array2` [INFO] [stdout] --> src/algorithms/locality_sensitive_hashing.rs:146:23 [INFO] [stdout] | [INFO] [stdout] 146 | use ndarray::{Array1, Array2, arr1}; [INFO] [stdout] | ^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::Error as SerdeError` [INFO] [stdout] --> src/state_manager/local_saver.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use serde_json::Error as SerdeError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `algorithms::locality_sensitive_hashing::HashGenerator` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use algorithms::locality_sensitive_hashing::HashGenerator; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Array1` and `Array2` [INFO] [stdout] --> src/main.rs:9:15 [INFO] [stdout] | [INFO] [stdout] 9 | use ndarray::{Array1, Array2, arr1}; [INFO] [stdout] | ^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `state_manager::local_saver::LocalSaver` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use state_manager::local_saver::LocalSaver; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `algorithms::kdtree as kdtree` [INFO] [stdout] --> src/main.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use algorithms::kdtree as kdtree; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::algorithms::fast_search::FastSearch` [INFO] [stdout] --> src/main.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use crate::algorithms::fast_search::FastSearch; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pyo3::methods` [INFO] [stdout] --> src/lib.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use pyo3::methods; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pyo3::wrap_pyfunction` [INFO] [stdout] --> src/lib.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use pyo3::wrap_pyfunction; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/lib.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::algorithms::fast_search as fast_search` [INFO] [stdout] --> src/algorithms/kdtree.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::algorithms::fast_search as fast_search; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Deserializer` [INFO] [stdout] --> src/algorithms/kdtree.rs:5:37 [INFO] [stdout] | [INFO] [stdout] 5 | use serde::{Serialize, Deserialize, Deserializer}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `SeqAccess` and `Visitor` [INFO] [stdout] --> src/algorithms/locality_sensitive_hashing.rs:6:17 [INFO] [stdout] | [INFO] [stdout] 6 | use serde::de::{Visitor, SeqAccess}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json` [INFO] [stdout] --> src/algorithms/locality_sensitive_hashing.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use serde_json; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `algorithms::kdtree as kdtree` [INFO] [stdout] --> src/lib.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use algorithms::kdtree as kdtree; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::algorithms::fast_search::FastSearch` [INFO] [stdout] --> src/lib.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use crate::algorithms::fast_search::FastSearch; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Array1` and `Array2` [INFO] [stdout] --> src/lib.rs:15:15 [INFO] [stdout] | [INFO] [stdout] 15 | use ndarray::{Array1, Array2}; [INFO] [stdout] | ^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `algorithms::locality_sensitive_hashing::HashGenerator` [INFO] [stdout] --> src/lib.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use algorithms::locality_sensitive_hashing::HashGenerator; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pyo3::methods` [INFO] [stdout] --> src/lib.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use pyo3::methods; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pyo3::wrap_pyfunction` [INFO] [stdout] --> src/lib.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use pyo3::wrap_pyfunction; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/lib.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::algorithms::fast_search as fast_search` [INFO] [stdout] --> src/algorithms/kdtree.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::algorithms::fast_search as fast_search; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Deserializer` [INFO] [stdout] --> src/algorithms/kdtree.rs:5:37 [INFO] [stdout] | [INFO] [stdout] 5 | use serde::{Serialize, Deserialize, Deserializer}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `SeqAccess` and `Visitor` [INFO] [stdout] --> src/algorithms/locality_sensitive_hashing.rs:6:17 [INFO] [stdout] | [INFO] [stdout] 6 | use serde::de::{Visitor, SeqAccess}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json` [INFO] [stdout] --> src/algorithms/locality_sensitive_hashing.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use serde_json; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Array1` and `Array2` [INFO] [stdout] --> src/algorithms/locality_sensitive_hashing.rs:146:23 [INFO] [stdout] | [INFO] [stdout] 146 | use ndarray::{Array1, Array2, arr1}; [INFO] [stdout] | ^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `algorithms::kdtree as kdtree` [INFO] [stdout] --> src/lib.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use algorithms::kdtree as kdtree; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::algorithms::fast_search::FastSearch` [INFO] [stdout] --> src/lib.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use crate::algorithms::fast_search::FastSearch; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Array1` and `Array2` [INFO] [stdout] --> src/lib.rs:15:15 [INFO] [stdout] | [INFO] [stdout] 15 | use ndarray::{Array1, Array2}; [INFO] [stdout] | ^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `algorithms::locality_sensitive_hashing::HashGenerator` [INFO] [stdout] --> src/lib.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use algorithms::locality_sensitive_hashing::HashGenerator; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/algorithms/locality_sensitive_hashing.rs:108:13 [INFO] [stdout] | [INFO] [stdout] 108 | for i in 0..num_tables{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `build`, `insert_recursive`, and `insert` are never used [INFO] [stdout] --> src/algorithms/kdtree.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl KDTree{ [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 30 | [INFO] [stdout] 31 | pub fn new(points: Vec, state: HashMap) -> Self{ [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | pub fn build(points: Vec, depth: usize) -> KDTreeNode { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 97 | fn insert_recursive(&self, node: KDTreeNode, point: vector_db::Vector, depth: usize) -> KDTreeNode { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 123 | pub fn insert(&mut self, point: vector_db::Vector) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `add_vector`, `get_vector`, and `find_closest` are never used [INFO] [stdout] --> src/algorithms/vector_db.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl VectorDB { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 10 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 14 | pub fn add_vector(&mut self, vector: Vector) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn get_vector(&self, index: usize) -> Option<&Vector> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn find_closest(&self, query: Vector) -> Option<&Vector> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `nearest_neighbor`, `get_state`, and `set_state` are never used [INFO] [stdout] --> src/algorithms/fast_search.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait FastSearch{ [INFO] [stdout] | ---------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 6 | fn nearest_neighbor(&self, query:&vector_db::Vector) -> Option<&vector_db::Vector>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 7 | fn get_state(&self) -> serde_json::Result; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 8 | fn set_state(&mut self, serialized_state: &str) -> serde_json::Result<()>; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LocalSaver` is never constructed [INFO] [stdout] --> src/state_manager/local_saver.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct LocalSaver; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `save_state` and `load_state` are never used [INFO] [stdout] --> src/state_manager/local_saver.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl LocalSaver { [INFO] [stdout] | --------------- associated functions in this implementation [INFO] [stdout] 10 | pub fn save_state(fast_search: &T, file_path: &str) -> Result<(), io::Error> [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | pub fn load_state(fast_search: &mut T, file_path: &str) -> Result<(), io::Error> [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/algorithms/locality_sensitive_hashing.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 36 | fn deserialize(deserializer: D) -> Result [INFO] [stdout] | --------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 49 | let projections = Array2::from_shape_vec((helper.hash_size, helper.dimention_size), helper.projections) [INFO] [stdout] | ----------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 52 | let hash_map: HashMap> = helper.hash_map.into_iter() [INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 56 | Ok(HashGenerator { [INFO] [stdout] | ____________^ [INFO] [stdout] 57 | | hash_size: helper.hash_size, [INFO] [stdout] 58 | | dimention_size: helper.dimention_size, [INFO] [stdout] 59 | | projections, [INFO] [stdout] 60 | | hash_map, [INFO] [stdout] 61 | | }) [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |_________these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/algorithms/locality_sensitive_hashing.rs:53:31 [INFO] [stdout] | [INFO] [stdout] 53 | .map(|(k, v)| (k, Array1::from(v))) [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/algorithms/locality_sensitive_hashing.rs:75:23 [INFO] [stdout] | [INFO] [stdout] 68 | let projections = Array2::from_shape_fn( [INFO] [stdout] | ----------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 75 | hash_map: HashMap::new(), [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors; 18 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `vector_database` (bin "vector_database" test) due to 4 previous errors; 18 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: use of deprecated method `numpy::ToPyArray::to_pyarray`: will be replaced by `ToPyArray::to_pyarray_bound` in the future [INFO] [stdout] --> src/lib.rs:50:39 [INFO] [stdout] | [INFO] [stdout] 50 | nearest.into_iter().map(|v| v.to_pyarray(py).to_owned()).collect() [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `numpy::PyArray::::to_owned`: use Bound::unbind() instead [INFO] [stdout] --> src/lib.rs:50:54 [INFO] [stdout] | [INFO] [stdout] 50 | nearest.into_iter().map(|v| v.to_pyarray(py).to_owned()).collect() [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `pyo3::deprecations::GilRefs::::function_arg`: use `&Bound<'_, T>` instead for this function argument [INFO] [stdout] --> src/lib.rs:42:50 [INFO] [stdout] | [INFO] [stdout] 42 | fn insert(&mut self, py: Python, inp_vector: &PyArray1) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `pyo3::deprecations::GilRefs::::function_arg`: use `&Bound<'_, T>` instead for this function argument [INFO] [stdout] --> src/lib.rs:47:47 [INFO] [stdout] | [INFO] [stdout] 47 | fn nearest(&self, py: Python, inp_vector: &PyArray1) -> Vec>> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `pyo3::deprecations::GilRefs::::function_arg`: use `&Bound<'_, T>` instead for this function argument [INFO] [stdout] --> src/lib.rs:55:26 [INFO] [stdout] | [INFO] [stdout] 55 | fn vectordb(_py: Python, m: &PyModule) -> PyResult<()> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `numpy::ToPyArray::to_pyarray`: will be replaced by `ToPyArray::to_pyarray_bound` in the future [INFO] [stdout] --> src/lib.rs:50:39 [INFO] [stdout] | [INFO] [stdout] 50 | nearest.into_iter().map(|v| v.to_pyarray(py).to_owned()).collect() [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `numpy::PyArray::::to_owned`: use Bound::unbind() instead [INFO] [stdout] --> src/lib.rs:50:54 [INFO] [stdout] | [INFO] [stdout] 50 | nearest.into_iter().map(|v| v.to_pyarray(py).to_owned()).collect() [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `pyo3::deprecations::GilRefs::::function_arg`: use `&Bound<'_, T>` instead for this function argument [INFO] [stdout] --> src/lib.rs:42:50 [INFO] [stdout] | [INFO] [stdout] 42 | fn insert(&mut self, py: Python, inp_vector: &PyArray1) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `pyo3::deprecations::GilRefs::::function_arg`: use `&Bound<'_, T>` instead for this function argument [INFO] [stdout] --> src/lib.rs:47:47 [INFO] [stdout] | [INFO] [stdout] 47 | fn nearest(&self, py: Python, inp_vector: &PyArray1) -> Vec>> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `pyo3::deprecations::GilRefs::::function_arg`: use `&Bound<'_, T>` instead for this function argument [INFO] [stdout] --> src/lib.rs:55:26 [INFO] [stdout] | [INFO] [stdout] 55 | fn vectordb(_py: Python, m: &PyModule) -> PyResult<()> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/algorithms/locality_sensitive_hashing.rs:108:13 [INFO] [stdout] | [INFO] [stdout] 108 | for i in 0..num_tables{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `build`, `insert_recursive`, and `insert` are never used [INFO] [stdout] --> src/algorithms/kdtree.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl KDTree{ [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 30 | [INFO] [stdout] 31 | pub fn new(points: Vec, state: HashMap) -> Self{ [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | pub fn build(points: Vec, depth: usize) -> KDTreeNode { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 97 | fn insert_recursive(&self, node: KDTreeNode, point: vector_db::Vector, depth: usize) -> KDTreeNode { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 123 | pub fn insert(&mut self, point: vector_db::Vector) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `add_vector`, `get_vector`, and `find_closest` are never used [INFO] [stdout] --> src/algorithms/vector_db.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl VectorDB { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 10 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 14 | pub fn add_vector(&mut self, vector: Vector) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn get_vector(&self, index: usize) -> Option<&Vector> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn find_closest(&self, query: Vector) -> Option<&Vector> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `nearest_neighbor`, `get_state`, and `set_state` are never used [INFO] [stdout] --> src/algorithms/fast_search.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait FastSearch{ [INFO] [stdout] | ---------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 6 | fn nearest_neighbor(&self, query:&vector_db::Vector) -> Option<&vector_db::Vector>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 7 | fn get_state(&self) -> serde_json::Result; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 8 | fn set_state(&mut self, serialized_state: &str) -> serde_json::Result<()>; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LocalSaver` is never constructed [INFO] [stdout] --> src/state_manager/local_saver.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct LocalSaver; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `save_state` and `load_state` are never used [INFO] [stdout] --> src/state_manager/local_saver.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl LocalSaver { [INFO] [stdout] | --------------- associated functions in this implementation [INFO] [stdout] 10 | pub fn save_state(fast_search: &T, file_path: &str) -> Result<(), io::Error> [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | pub fn load_state(fast_search: &mut T, file_path: &str) -> Result<(), io::Error> [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/algorithms/locality_sensitive_hashing.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 36 | fn deserialize(deserializer: D) -> Result [INFO] [stdout] | --------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 49 | let projections = Array2::from_shape_vec((helper.hash_size, helper.dimention_size), helper.projections) [INFO] [stdout] | ----------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 52 | let hash_map: HashMap> = helper.hash_map.into_iter() [INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 56 | Ok(HashGenerator { [INFO] [stdout] | ____________^ [INFO] [stdout] 57 | | hash_size: helper.hash_size, [INFO] [stdout] 58 | | dimention_size: helper.dimention_size, [INFO] [stdout] 59 | | projections, [INFO] [stdout] 60 | | hash_map, [INFO] [stdout] 61 | | }) [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |_________these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/algorithms/locality_sensitive_hashing.rs:53:31 [INFO] [stdout] | [INFO] [stdout] 53 | .map(|(k, v)| (k, Array1::from(v))) [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/algorithms/locality_sensitive_hashing.rs:75:23 [INFO] [stdout] | [INFO] [stdout] 68 | let projections = Array2::from_shape_fn( [INFO] [stdout] | ----------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 75 | hash_map: HashMap::new(), [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors; 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `vector_database` (bin "vector_database") due to 4 previous errors; 17 warnings emitted [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/algorithms/locality_sensitive_hashing.rs:108:13 [INFO] [stdout] | [INFO] [stdout] 108 | for i in 0..num_tables{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `py` [INFO] [stdout] --> src/lib.rs:42:26 [INFO] [stdout] | [INFO] [stdout] 42 | fn insert(&mut self, py: Python, inp_vector: &PyArray1) { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_py` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `build`, `insert_recursive`, and `insert` are never used [INFO] [stdout] --> src/algorithms/kdtree.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl KDTree{ [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 30 | [INFO] [stdout] 31 | pub fn new(points: Vec, state: HashMap) -> Self{ [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | pub fn build(points: Vec, depth: usize) -> KDTreeNode { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 97 | fn insert_recursive(&self, node: KDTreeNode, point: vector_db::Vector, depth: usize) -> KDTreeNode { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 123 | pub fn insert(&mut self, point: vector_db::Vector) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `add_vector`, `get_vector`, and `find_closest` are never used [INFO] [stdout] --> src/algorithms/vector_db.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl VectorDB { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 10 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 14 | pub fn add_vector(&mut self, vector: Vector) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn get_vector(&self, index: usize) -> Option<&Vector> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn find_closest(&self, query: Vector) -> Option<&Vector> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `nearest_neighbor`, `get_state`, and `set_state` are never used [INFO] [stdout] --> src/algorithms/fast_search.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait FastSearch{ [INFO] [stdout] | ---------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 6 | fn nearest_neighbor(&self, query:&vector_db::Vector) -> Option<&vector_db::Vector>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 7 | fn get_state(&self) -> serde_json::Result; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 8 | fn set_state(&mut self, serialized_state: &str) -> serde_json::Result<()>; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/lib.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 48 | let vector = inp_vector.to_owned_array(); [INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 49 | let nearest = self.lsh.nearest(&vector); [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 50 | nearest.into_iter().map(|v| v.to_pyarray(py).to_owned()).collect() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/algorithms/locality_sensitive_hashing.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 36 | fn deserialize(deserializer: D) -> Result [INFO] [stdout] | --------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 49 | let projections = Array2::from_shape_vec((helper.hash_size, helper.dimention_size), helper.projections) [INFO] [stdout] | ----------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 52 | let hash_map: HashMap> = helper.hash_map.into_iter() [INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 56 | Ok(HashGenerator { [INFO] [stdout] | ____________^ [INFO] [stdout] 57 | | hash_size: helper.hash_size, [INFO] [stdout] 58 | | dimention_size: helper.dimention_size, [INFO] [stdout] 59 | | projections, [INFO] [stdout] 60 | | hash_map, [INFO] [stdout] 61 | | }) [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |_________these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/algorithms/locality_sensitive_hashing.rs:53:31 [INFO] [stdout] | [INFO] [stdout] 53 | .map(|(k, v)| (k, Array1::from(v))) [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/algorithms/locality_sensitive_hashing.rs:75:23 [INFO] [stdout] | [INFO] [stdout] 68 | let projections = Array2::from_shape_fn( [INFO] [stdout] | ----------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 75 | hash_map: HashMap::new(), [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors; 22 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/algorithms/locality_sensitive_hashing.rs:108:13 [INFO] [stdout] | [INFO] [stdout] 108 | for i in 0..num_tables{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `py` [INFO] [stdout] --> src/lib.rs:42:26 [INFO] [stdout] | [INFO] [stdout] 42 | fn insert(&mut self, py: Python, inp_vector: &PyArray1) { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_py` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `vector_database` (lib test) due to 5 previous errors; 22 warnings emitted [INFO] [stdout] warning: associated items `new`, `build`, `insert_recursive`, and `insert` are never used [INFO] [stdout] --> src/algorithms/kdtree.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl KDTree{ [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 30 | [INFO] [stdout] 31 | pub fn new(points: Vec, state: HashMap) -> Self{ [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | pub fn build(points: Vec, depth: usize) -> KDTreeNode { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 97 | fn insert_recursive(&self, node: KDTreeNode, point: vector_db::Vector, depth: usize) -> KDTreeNode { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 123 | pub fn insert(&mut self, point: vector_db::Vector) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `add_vector`, `get_vector`, and `find_closest` are never used [INFO] [stdout] --> src/algorithms/vector_db.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl VectorDB { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 10 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 14 | pub fn add_vector(&mut self, vector: Vector) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn get_vector(&self, index: usize) -> Option<&Vector> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn find_closest(&self, query: Vector) -> Option<&Vector> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `nearest_neighbor`, `get_state`, and `set_state` are never used [INFO] [stdout] --> src/algorithms/fast_search.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait FastSearch{ [INFO] [stdout] | ---------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 6 | fn nearest_neighbor(&self, query:&vector_db::Vector) -> Option<&vector_db::Vector>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 7 | fn get_state(&self) -> serde_json::Result; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 8 | fn set_state(&mut self, serialized_state: &str) -> serde_json::Result<()>; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/lib.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 48 | let vector = inp_vector.to_owned_array(); [INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 49 | let nearest = self.lsh.nearest(&vector); [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 50 | nearest.into_iter().map(|v| v.to_pyarray(py).to_owned()).collect() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/algorithms/locality_sensitive_hashing.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 36 | fn deserialize(deserializer: D) -> Result [INFO] [stdout] | --------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 49 | let projections = Array2::from_shape_vec((helper.hash_size, helper.dimention_size), helper.projections) [INFO] [stdout] | ----------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 52 | let hash_map: HashMap> = helper.hash_map.into_iter() [INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 56 | Ok(HashGenerator { [INFO] [stdout] | ____________^ [INFO] [stdout] 57 | | hash_size: helper.hash_size, [INFO] [stdout] 58 | | dimention_size: helper.dimention_size, [INFO] [stdout] 59 | | projections, [INFO] [stdout] 60 | | hash_map, [INFO] [stdout] 61 | | }) [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |_________these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/algorithms/locality_sensitive_hashing.rs:53:31 [INFO] [stdout] | [INFO] [stdout] 53 | .map(|(k, v)| (k, Array1::from(v))) [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/algorithms/locality_sensitive_hashing.rs:75:23 [INFO] [stdout] | [INFO] [stdout] 68 | let projections = Array2::from_shape_fn( [INFO] [stdout] | ----------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 75 | hash_map: HashMap::new(), [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors; 21 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `vector_database` (lib) due to 5 previous errors; 21 warnings emitted [INFO] running `Command { std: "docker" "inspect" "9f264c9206796aa574dcec109610c96c4dd452849cbcdfa0eb2598bb2501f39d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9f264c9206796aa574dcec109610c96c4dd452849cbcdfa0eb2598bb2501f39d", kill_on_drop: false }` [INFO] [stdout] 9f264c9206796aa574dcec109610c96c4dd452849cbcdfa0eb2598bb2501f39d