[INFO] cloning repository https://github.com/DivyamSamarwal/Vector-Search-Engine-Demo
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/DivyamSamarwal/Vector-Search-Engine-Demo" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDivyamSamarwal%2FVector-Search-Engine-Demo", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDivyamSamarwal%2FVector-Search-Engine-Demo'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] f3f535be9b1a54cd22133a3392f1791d319ce5cc
[INFO] checking DivyamSamarwal/Vector-Search-Engine-Demo against master#da2544bfbe84df7b24d83c029c74299ebf6112c6 for pr-149681
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDivyamSamarwal%2FVector-Search-Engine-Demo" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'...
[INFO] [stderr] done.
[INFO] [stderr] Updating files:  30% (926/3036)
Updating files:  31% (942/3036)
Updating files:  31% (952/3036)
Updating files:  32% (972/3036)
Updating files:  33% (1002/3036)
Updating files:  34% (1033/3036)
Updating files:  34% (1059/3036)
Updating files:  35% (1063/3036)
Updating files:  36% (1093/3036)
Updating files:  37% (1124/3036)
Updating files:  38% (1154/3036)
Updating files:  38% (1179/3036)
Updating files:  39% (1185/3036)
Updating files:  40% (1215/3036)
Updating files:  40% (1217/3036)
Updating files:  41% (1245/3036)
Updating files:  42% (1276/3036)
Updating files:  43% (1306/3036)
Updating files:  43% (1318/3036)
Updating files:  43% (1329/3036)
Updating files:  44% (1336/3036)
Updating files:  45% (1367/3036)
Updating files:  46% (1397/3036)
Updating files:  47% (1427/3036)
Updating files:  47% (1446/3036)
Updating files:  48% (1458/3036)
Updating files:  49% (1488/3036)
Updating files:  50% (1518/3036)
Updating files:  51% (1549/3036)
Updating files:  52% (1579/3036)
Updating files:  53% (1610/3036)
Updating files:  54% (1640/3036)
Updating files:  55% (1670/3036)
Updating files:  56% (1701/3036)
Updating files:  57% (1731/3036)
Updating files:  58% (1761/3036)
Updating files:  59% (1792/3036)
Updating files:  60% (1822/3036)
Updating files:  61% (1852/3036)
Updating files:  62% (1883/3036)
Updating files:  63% (1913/3036)
Updating files:  64% (1944/3036)
Updating files:  65% (1974/3036)
Updating files:  66% (2004/3036)
Updating files:  67% (2035/3036)
Updating files:  68% (2065/3036)
Updating files:  69% (2095/3036)
Updating files:  70% (2126/3036)
Updating files:  71% (2156/3036)
Updating files:  72% (2186/3036)
Updating files:  73% (2217/3036)
Updating files:  74% (2247/3036)
Updating files:  75% (2277/3036)
Updating files:  76% (2308/3036)
Updating files:  77% (2338/3036)
Updating files:  78% (2369/3036)
Updating files:  78% (2373/3036)
Updating files:  79% (2399/3036)
Updating files:  80% (2429/3036)
Updating files:  81% (2460/3036)
Updating files:  82% (2490/3036)
Updating files:  83% (2520/3036)
Updating files:  84% (2551/3036)
Updating files:  85% (2581/3036)
Updating files:  86% (2611/3036)
Updating files:  87% (2642/3036)
Updating files:  88% (2672/3036)
Updating files:  89% (2703/3036)
Updating files:  90% (2733/3036)
Updating files:  91% (2763/3036)
Updating files:  92% (2794/3036)
Updating files:  93% (2824/3036)
Updating files:  94% (2854/3036)
Updating files:  95% (2885/3036)
Updating files:  96% (2915/3036)
Updating files:  97% (2945/3036)
Updating files:  98% (2976/3036)
Updating files:  98% (2994/3036)
Updating files:  99% (3006/3036)
Updating files:  99% (3030/3036)
Updating files: 100% (3036/3036)
Updating files: 100% (3036/3036), done.
[INFO] started tweaking git repo https://github.com/DivyamSamarwal/Vector-Search-Engine-Demo
[INFO] finished tweaking git repo https://github.com/DivyamSamarwal/Vector-Search-Engine-Demo
[INFO] tweaked toml for git repo https://github.com/DivyamSamarwal/Vector-Search-Engine-Demo written to /workspace/builds/worker-5-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/DivyamSamarwal/Vector-Search-Engine-Demo on toolchain da2544bfbe84df7b24d83c029c74299ebf6112c6
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+da2544bfbe84df7b24d83c029c74299ebf6112c6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/DivyamSamarwal/Vector-Search-Engine-Demo 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" "+da2544bfbe84df7b24d83c029c74299ebf6112c6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded tokio-io-timeout v1.2.1
[INFO] [stderr]   Downloaded protoc-bin-vendored v3.2.0
[INFO] [stderr]   Downloaded zerocopy-derive v0.8.28
[INFO] [stderr]   Downloaded zerocopy v0.8.28
[INFO] [stderr]   Downloaded protoc-bin-vendored-macos-aarch_64 v3.2.0
[INFO] [stderr]   Downloaded protoc-bin-vendored-macos-x86_64 v3.2.0
[INFO] [stderr]   Downloaded protoc-bin-vendored-linux-aarch_64 v3.2.0
[INFO] [stderr]   Downloaded protoc-bin-vendored-win32 v3.2.0
[INFO] [stderr]   Downloaded protoc-bin-vendored-linux-x86_64 v3.2.0
[INFO] [stderr]   Downloaded protoc-bin-vendored-linux-ppcle_64 v3.2.0
[INFO] [stderr]   Downloaded protoc-bin-vendored-linux-x86_32 v3.2.0
[INFO] [stderr]   Downloaded protoc-bin-vendored-linux-s390_64 v3.2.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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+da2544bfbe84df7b24d83c029c74299ebf6112c6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 366a92651cb72a1d2ec3dedf6bb2478a72e8a72a0ef4eeae106dc146ce6f51fb
[INFO] running `Command { std: "docker" "start" "-a" "366a92651cb72a1d2ec3dedf6bb2478a72e8a72a0ef4eeae106dc146ce6f51fb", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "366a92651cb72a1d2ec3dedf6bb2478a72e8a72a0ef4eeae106dc146ce6f51fb", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "366a92651cb72a1d2ec3dedf6bb2478a72e8a72a0ef4eeae106dc146ce6f51fb", kill_on_drop: false }`
[INFO] [stdout] 366a92651cb72a1d2ec3dedf6bb2478a72e8a72a0ef4eeae106dc146ce6f51fb
[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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+da2544bfbe84df7b24d83c029c74299ebf6112c6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] cd00ec4ef6570d5037a8295305f7330ab0ac3f477f09202eb8cdaebc13f53dc0
[INFO] running `Command { std: "docker" "start" "-a" "cd00ec4ef6570d5037a8295305f7330ab0ac3f477f09202eb8cdaebc13f53dc0", kill_on_drop: false }`
[INFO] [stderr]    Compiling unicode-ident v1.0.22
[INFO] [stderr]    Compiling libc v0.2.177
[INFO] [stderr]     Checking smallvec v1.15.1
[INFO] [stderr]    Compiling either v1.15.0
[INFO] [stderr]    Compiling anyhow v1.0.100
[INFO] [stderr]    Compiling rustversion v1.0.22
[INFO] [stderr]    Compiling zerocopy v0.8.28
[INFO] [stderr]    Compiling proc-macro2 v1.0.103
[INFO] [stderr]    Compiling itertools v0.12.1
[INFO] [stderr]     Checking futures-task v0.3.31
[INFO] [stderr]     Checking http v0.2.12
[INFO] [stderr]    Compiling rustix v1.1.2
[INFO] [stderr]     Checking futures-util v0.3.31
[INFO] [stderr]    Compiling quote v1.0.42
[INFO] [stderr]    Compiling serde_core v1.0.228
[INFO] [stderr]    Compiling getrandom v0.3.4
[INFO] [stderr]    Compiling serde v1.0.228
[INFO] [stderr]    Compiling syn v2.0.110
[INFO] [stderr]    Compiling bitflags v2.10.0
[INFO] [stderr]    Compiling regex-syntax v0.8.8
[INFO] [stderr]    Compiling bytes v1.11.0
[INFO] [stderr]    Compiling linux-raw-sys v0.11.0
[INFO] [stderr]     Checking parking_lot_core v0.9.12
[INFO] [stderr]     Checking socket2 v0.6.1
[INFO] [stderr]     Checking mio v1.1.0
[INFO] [stderr]     Checking parking_lot v0.12.5
[INFO] [stderr]     Checking signal-hook-registry v1.4.6
[INFO] [stderr]     Checking getrandom v0.2.16
[INFO] [stderr]    Compiling prettyplease v0.2.37
[INFO] [stderr]     Checking ppv-lite86 v0.2.21
[INFO] [stderr]     Checking rand_core v0.6.4
[INFO] [stderr]     Checking http-body v0.4.6
[INFO] [stderr]    Compiling fixedbitset v0.4.2
[INFO] [stderr]     Checking socket2 v0.5.10
[INFO] [stderr]     Checking rand_chacha v0.3.1
[INFO] [stderr]    Compiling petgraph v0.6.5
[INFO] [stderr]    Compiling axum-core v0.3.4
[INFO] [stderr]    Compiling log v0.4.28
[INFO] [stderr]     Checking rand v0.8.5
[INFO] [stderr]    Compiling axum v0.6.20
[INFO] [stderr]    Compiling matrixmultiply v0.3.10
[INFO] [stderr]    Compiling protoc-bin-vendored-win32 v3.2.0
[INFO] [stderr]    Compiling protoc-bin-vendored-linux-aarch_64 v3.2.0
[INFO] [stderr]    Compiling protoc-bin-vendored-macos-aarch_64 v3.2.0
[INFO] [stderr]    Compiling protoc-bin-vendored-macos-x86_64 v3.2.0
[INFO] [stderr]     Checking is_terminal_polyfill v1.70.2
[INFO] [stderr]    Compiling regex-automata v0.4.13
[INFO] [stderr]    Compiling protoc-bin-vendored-linux-x86_64 v3.2.0
[INFO] [stderr]    Compiling protoc-bin-vendored-linux-ppcle_64 v3.2.0
[INFO] [stderr]    Compiling protoc-bin-vendored-linux-s390_64 v3.2.0
[INFO] [stderr]    Compiling protoc-bin-vendored-linux-x86_32 v3.2.0
[INFO] [stderr]     Checking anstyle-query v1.1.5
[INFO] [stderr]     Checking anstream v0.6.21
[INFO] [stderr]    Compiling protoc-bin-vendored v3.2.0
[INFO] [stderr]     Checking clap_lex v0.7.6
[INFO] [stderr]     Checking rawpointer v0.2.1
[INFO] [stderr]     Checking clap_builder v4.5.53
[INFO] [stderr]     Checking num-complex v0.4.6
[INFO] [stderr]    Compiling tempfile v3.23.0
[INFO] [stderr]     Checking num-integer v0.1.46
[INFO] [stderr]     Checking crc32fast v1.5.0
[INFO] [stderr]     Checking memmap2 v0.9.9
[INFO] [stderr]    Compiling regex v1.12.2
[INFO] [stderr]    Compiling tokio-macros v2.6.0
[INFO] [stderr]    Compiling prost-derive v0.12.6
[INFO] [stderr]    Compiling tracing-attributes v0.1.30
[INFO] [stderr]    Compiling serde_derive v1.0.228
[INFO] [stderr]    Compiling pin-project-internal v1.1.10
[INFO] [stderr]    Compiling async-trait v0.1.89
[INFO] [stderr]    Compiling async-stream-impl v0.3.6
[INFO] [stderr]    Compiling clap_derive v4.5.49
[INFO] [stderr]     Checking async-stream v0.3.6
[INFO] [stderr]    Compiling thiserror-impl v1.0.69
[INFO] [stderr]     Checking tokio v1.48.0
[INFO] [stderr]     Checking pin-project v1.1.10
[INFO] [stderr]    Compiling prost v0.12.6
[INFO] [stderr]     Checking tracing v0.1.41
[INFO] [stderr]     Checking clap v4.5.53
[INFO] [stderr]     Checking thiserror v1.0.69
[INFO] [stderr]    Compiling prost-types v0.12.6
[INFO] [stderr]    Compiling prost-build v0.12.6
[INFO] [stderr]     Checking ndarray v0.15.6
[INFO] [stderr]     Checking bincode v1.3.3
[INFO] [stderr]    Compiling tonic-build v0.10.2
[INFO] [stderr]     Checking tokio-util v0.7.17
[INFO] [stderr]     Checking tokio-io-timeout v1.2.1
[INFO] [stderr]     Checking tokio-stream v0.1.17
[INFO] [stderr]    Compiling my_vector_db v0.1.0 (/opt/rustwide/workdir)
[INFO] [stderr]     Checking h2 v0.3.27
[INFO] [stderr]     Checking tower v0.4.13
[INFO] [stderr]     Checking hyper v0.14.32
[INFO] [stderr]     Checking hyper-timeout v0.4.1
[INFO] [stderr]     Checking tonic v0.10.2
[INFO] [stdout] error: cannot find derive macro `Serialize` in this scope
[INFO] [stdout]   --> src/index/hnsw.rs:32:10
[INFO] [stdout]    |
[INFO] [stdout] 32 | #[derive(Serialize, Deserialize)]
[INFO] [stdout]    |          ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this derive macro
[INFO] [stdout]    |
[INFO] [stdout]  3 + use serde::Serialize;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find derive macro `Deserialize` in this scope
[INFO] [stdout]   --> src/index/hnsw.rs:32:21
[INFO] [stdout]    |
[INFO] [stdout] 32 | #[derive(Serialize, Deserialize)]
[INFO] [stdout]    |                     ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this derive macro
[INFO] [stdout]    |
[INFO] [stdout]  3 + use serde::Deserialize;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find derive macro `Serialize` in this scope
[INFO] [stdout]   --> src/index/hnsw.rs:32:10
[INFO] [stdout]    |
[INFO] [stdout] 32 | #[derive(Serialize, Deserialize)]
[INFO] [stdout]    |          ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this derive macro
[INFO] [stdout]    |
[INFO] [stdout]  3 + use serde::Serialize;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find derive macro `Deserialize` in this scope
[INFO] [stdout]   --> src/index/hnsw.rs:32:21
[INFO] [stdout]    |
[INFO] [stdout] 32 | #[derive(Serialize, Deserialize)]
[INFO] [stdout]    |                     ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this derive macro
[INFO] [stdout]    |
[INFO] [stdout]  3 + use serde::Deserialize;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `Ordering` in this scope
[INFO] [stdout]   --> src/index/hnsw.rs:21:51
[INFO] [stdout]    |
[INFO] [stdout] 21 |     fn partial_cmp(&self, other: &Self) -> Option<Ordering> {
[INFO] [stdout]    |                                                   ^^^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing one of these enums
[INFO] [stdout]    |
[INFO] [stdout]  3 + use std::cmp::Ordering;
[INFO] [stdout]    |
[INFO] [stdout]  3 + use std::sync::atomic::Ordering;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `Ordering` in this scope
[INFO] [stdout]   --> src/index/hnsw.rs:27:36
[INFO] [stdout]    |
[INFO] [stdout] 27 |     fn cmp(&self, other: &Self) -> Ordering {
[INFO] [stdout]    |                                    ^^^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing one of these enums
[INFO] [stdout]    |
[INFO] [stdout]  3 + use std::cmp::Ordering;
[INFO] [stdout]    |
[INFO] [stdout]  3 + use std::sync::atomic::Ordering;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ordering`
[INFO] [stdout]   --> src/index/hnsw.rs:28:43
[INFO] [stdout]    |
[INFO] [stdout] 28 |         self.partial_cmp(other).unwrap_or(Ordering::Equal)
[INFO] [stdout]    |                                           ^^^^^^^^ use of undeclared type `Ordering`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing one of these enums
[INFO] [stdout]    |
[INFO] [stdout]  3 + use std::cmp::Ordering;
[INFO] [stdout]    |
[INFO] [stdout]  3 + use std::sync::atomic::Ordering;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `HashMap` in this scope
[INFO] [stdout]   --> src/index/hnsw.rs:34:16
[INFO] [stdout]    |
[INFO] [stdout] 34 |     pub nodes: HashMap<u32, Arc<RwLock<Node>>>,
[INFO] [stdout]    |                ^^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]    |
[INFO] [stdout]  3 + use std::collections::HashMap;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `Arc` in this scope
[INFO] [stdout]   --> src/index/hnsw.rs:34:29
[INFO] [stdout]    |
[INFO] [stdout] 34 |     pub nodes: HashMap<u32, Arc<RwLock<Node>>>,
[INFO] [stdout]    |                             ^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]    |
[INFO] [stdout]  3 + use std::sync::Arc;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `RwLock` in this scope
[INFO] [stdout]   --> src/index/hnsw.rs:34:33
[INFO] [stdout]    |
[INFO] [stdout] 34 |     pub nodes: HashMap<u32, Arc<RwLock<Node>>>,
[INFO] [stdout]    |                                 ^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing one of these structs
[INFO] [stdout]    |
[INFO] [stdout]  3 + use std::sync::RwLock;
[INFO] [stdout]    |
[INFO] [stdout]  3 + use std::sync::nonpoison::RwLock;
[INFO] [stdout]    |
[INFO] [stdout]  3 + use tokio::sync::RwLock;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `Node` in this scope
[INFO] [stdout]   --> src/index/hnsw.rs:34:40
[INFO] [stdout]    |
[INFO] [stdout] 34 |     pub nodes: HashMap<u32, Arc<RwLock<Node>>>,
[INFO] [stdout]    |                                        ^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]    |
[INFO] [stdout] 33 | pub struct Hnsw<Node> {
[INFO] [stdout]    |                ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `HashMap`
[INFO] [stdout]   --> src/index/hnsw.rs:48:20
[INFO] [stdout]    |
[INFO] [stdout] 48 |             nodes: HashMap::new(),
[INFO] [stdout]    |                    ^^^^^^^ use of undeclared type `HashMap`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]    |
[INFO] [stdout]  3 + use std::collections::HashMap;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `io`
[INFO] [stdout]   --> src/index/hnsw.rs:58:48
[INFO] [stdout]    |
[INFO] [stdout] 58 |     pub fn save_snapshot(&self, path: &str) -> io::Result<()> {
[INFO] [stdout]    |                                                ^^ use of unresolved module or unlinked crate `io`
[INFO] [stdout]    |
[INFO] [stdout]    = help: if you wanted to use a crate named `io`, use `cargo add io` to add it to your `Cargo.toml`
[INFO] [stdout] help: a builtin type with a similar name exists
[INFO] [stdout]    |
[INFO] [stdout] 58 -     pub fn save_snapshot(&self, path: &str) -> io::Result<()> {
[INFO] [stdout] 58 +     pub fn save_snapshot(&self, path: &str) -> i8::Result<()> {
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing one of these modules
[INFO] [stdout]    |
[INFO] [stdout]  3 + use std::io;
[INFO] [stdout]    |
[INFO] [stdout]  3 + use tokio::io;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `File`
[INFO] [stdout]   --> src/index/hnsw.rs:59:20
[INFO] [stdout]    |
[INFO] [stdout] 59 |         let file = File::create(path)?;
[INFO] [stdout]    |                    ^^^^ use of undeclared type `File`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing one of these structs
[INFO] [stdout]    |
[INFO] [stdout]  3 + use std::fs::File;
[INFO] [stdout]    |
[INFO] [stdout]  3 + use prost_types::compiler::code_generator_response::File;
[INFO] [stdout]    |
[INFO] [stdout]  3 + use tokio::fs::File;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BufWriter`
[INFO] [stdout]   --> src/index/hnsw.rs:60:22
[INFO] [stdout]    |
[INFO] [stdout] 60 |         let writer = BufWriter::new(file);
[INFO] [stdout]    |                      ^^^^^^^^^ use of undeclared type `BufWriter`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing one of these structs
[INFO] [stdout]    |
[INFO] [stdout]  3 + use std::io::BufWriter;
[INFO] [stdout]    |
[INFO] [stdout]  3 + use tokio::io::BufWriter;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `io`
[INFO] [stdout]   --> src/index/hnsw.rs:61:59
[INFO] [stdout]    |
[INFO] [stdout] 61 |         bincode::serialize_into(writer, self).map_err(|e| io::Error::new(io::ErrorKind::Other, e))?;
[INFO] [stdout]    |                                                           ^^ use of unresolved module or unlinked crate `io`
[INFO] [stdout]    |
[INFO] [stdout]    = help: if you wanted to use a crate named `io`, use `cargo add io` to add it to your `Cargo.toml`
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]    |
[INFO] [stdout]  3 + use std::error::Error;
[INFO] [stdout]    |
[INFO] [stdout]  3 + use std::fmt::Error;
[INFO] [stdout]    |
[INFO] [stdout]  3 + use std::io::Error;
[INFO] [stdout]    |
[INFO] [stdout]  3 + use core::error::Error;
[INFO] [stdout]    |
[INFO] [stdout]    = and 12 other candidates
[INFO] [stdout] help: if you import `Error`, refer to it directly
[INFO] [stdout]    |
[INFO] [stdout] 61 -         bincode::serialize_into(writer, self).map_err(|e| io::Error::new(io::ErrorKind::Other, e))?;
[INFO] [stdout] 61 +         bincode::serialize_into(writer, self).map_err(|e| Error::new(io::ErrorKind::Other, e))?;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `io`
[INFO] [stdout]   --> src/index/hnsw.rs:61:74
[INFO] [stdout]    |
[INFO] [stdout] 61 |         bincode::serialize_into(writer, self).map_err(|e| io::Error::new(io::ErrorKind::Other, e))?;
[INFO] [stdout]    |                                                                          ^^ use of unresolved module or unlinked crate `io`
[INFO] [stdout]    |
[INFO] [stdout]    = help: if you wanted to use a crate named `io`, use `cargo add io` to add it to your `Cargo.toml`
[INFO] [stdout] help: consider importing one of these enums
[INFO] [stdout]    |
[INFO] [stdout]  3 + use std::io::ErrorKind;
[INFO] [stdout]    |
[INFO] [stdout]  3 + use bincode::ErrorKind;
[INFO] [stdout]    |
[INFO] [stdout]  3 + use clap::error::ErrorKind;
[INFO] [stdout]    |
[INFO] [stdout]  3 + use ndarray::ErrorKind;
[INFO] [stdout]    |
[INFO] [stdout]    = and 1 other candidate
[INFO] [stdout] help: if you import `ErrorKind`, refer to it directly
[INFO] [stdout]    |
[INFO] [stdout] 61 -         bincode::serialize_into(writer, self).map_err(|e| io::Error::new(io::ErrorKind::Other, e))?;
[INFO] [stdout] 61 +         bincode::serialize_into(writer, self).map_err(|e| io::Error::new(ErrorKind::Other, e))?;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `io`
[INFO] [stdout]   --> src/index/hnsw.rs:65:41
[INFO] [stdout]    |
[INFO] [stdout] 65 |     pub fn load_snapshot(path: &str) -> io::Result<Self> {
[INFO] [stdout]    |                                         ^^ use of unresolved module or unlinked crate `io`
[INFO] [stdout]    |
[INFO] [stdout]    = help: if you wanted to use a crate named `io`, use `cargo add io` to add it to your `Cargo.toml`
[INFO] [stdout] help: a builtin type with a similar name exists
[INFO] [stdout]    |
[INFO] [stdout] 65 -     pub fn load_snapshot(path: &str) -> io::Result<Self> {
[INFO] [stdout] 65 +     pub fn load_snapshot(path: &str) -> i8::Result<Self> {
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing one of these modules
[INFO] [stdout]    |
[INFO] [stdout]  3 + use std::io;
[INFO] [stdout]    |
[INFO] [stdout]  3 + use tokio::io;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `File`
[INFO] [stdout]   --> src/index/hnsw.rs:66:20
[INFO] [stdout]    |
[INFO] [stdout] 66 |         let file = File::open(path)?;
[INFO] [stdout]    |                    ^^^^ use of undeclared type `File`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing one of these structs
[INFO] [stdout]    |
[INFO] [stdout]  3 + use std::fs::File;
[INFO] [stdout]    |
[INFO] [stdout]  3 + use prost_types::compiler::code_generator_response::File;
[INFO] [stdout]    |
[INFO] [stdout]  3 + use tokio::fs::File;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BufReader`
[INFO] [stdout]   --> src/index/hnsw.rs:67:22
[INFO] [stdout]    |
[INFO] [stdout] 67 |         let reader = BufReader::new(file);
[INFO] [stdout]    |                      ^^^^^^^^^ use of undeclared type `BufReader`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing one of these structs
[INFO] [stdout]    |
[INFO] [stdout]  3 + use std::io::BufReader;
[INFO] [stdout]    |
[INFO] [stdout]  3 + use tokio::io::BufReader;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `io`
[INFO] [stdout]   --> src/index/hnsw.rs:68:72
[INFO] [stdout]    |
[INFO] [stdout] 68 |         let hnsw: Hnsw = bincode::deserialize_from(reader).map_err(|e| io::Error::new(io::ErrorKind::Other, e))?;
[INFO] [stdout]    |                                                                        ^^ use of unresolved module or unlinked crate `io`
[INFO] [stdout]    |
[INFO] [stdout]    = help: if you wanted to use a crate named `io`, use `cargo add io` to add it to your `Cargo.toml`
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]    |
[INFO] [stdout]  3 + use std::error::Error;
[INFO] [stdout]    |
[INFO] [stdout]  3 + use std::fmt::Error;
[INFO] [stdout]    |
[INFO] [stdout]  3 + use std::io::Error;
[INFO] [stdout]    |
[INFO] [stdout]  3 + use core::error::Error;
[INFO] [stdout]    |
[INFO] [stdout]    = and 12 other candidates
[INFO] [stdout] help: if you import `Error`, refer to it directly
[INFO] [stdout]    |
[INFO] [stdout] 68 -         let hnsw: Hnsw = bincode::deserialize_from(reader).map_err(|e| io::Error::new(io::ErrorKind::Other, e))?;
[INFO] [stdout] 68 +         let hnsw: Hnsw = bincode::deserialize_from(reader).map_err(|e| Error::new(io::ErrorKind::Other, e))?;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `io`
[INFO] [stdout]   --> src/index/hnsw.rs:68:87
[INFO] [stdout]    |
[INFO] [stdout] 68 |         let hnsw: Hnsw = bincode::deserialize_from(reader).map_err(|e| io::Error::new(io::ErrorKind::Other, e))?;
[INFO] [stdout]    |                                                                                       ^^ use of unresolved module or unlinked crate `io`
[INFO] [stdout]    |
[INFO] [stdout]    = help: if you wanted to use a crate named `io`, use `cargo add io` to add it to your `Cargo.toml`
[INFO] [stdout] help: consider importing one of these enums
[INFO] [stdout]    |
[INFO] [stdout]  3 + use std::io::ErrorKind;
[INFO] [stdout]    |
[INFO] [stdout]  3 + use bincode::ErrorKind;
[INFO] [stdout]    |
[INFO] [stdout]  3 + use clap::error::ErrorKind;
[INFO] [stdout]    |
[INFO] [stdout]  3 + use ndarray::ErrorKind;
[INFO] [stdout]    |
[INFO] [stdout]    = and 1 other candidate
[INFO] [stdout] help: if you import `ErrorKind`, refer to it directly
[INFO] [stdout]    |
[INFO] [stdout] 68 -         let hnsw: Hnsw = bincode::deserialize_from(reader).map_err(|e| io::Error::new(io::ErrorKind::Other, e))?;
[INFO] [stdout] 68 +         let hnsw: Hnsw = bincode::deserialize_from(reader).map_err(|e| io::Error::new(ErrorKind::Other, e))?;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `ArrayView1` in this scope
[INFO] [stdout]   --> src/index/hnsw.rs:78:25
[INFO] [stdout]    |
[INFO] [stdout] 78 |     fn dist(&self, v1: &ArrayView1<f32>, v2: &ArrayView1<f32>) -> f32 {
[INFO] [stdout]    |                         ^^^^^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout]    = note: type alias `crate::index::distance::tests::ArrayView1` exists but is inaccessible
[INFO] [stdout] help: consider importing this type alias
[INFO] [stdout]    |
[INFO] [stdout]  3 + use ndarray::ArrayView1;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `ArrayView1` in this scope
[INFO] [stdout]   --> src/index/hnsw.rs:78:47
[INFO] [stdout]    |
[INFO] [stdout] 78 |     fn dist(&self, v1: &ArrayView1<f32>, v2: &ArrayView1<f32>) -> f32 {
[INFO] [stdout]    |                                               ^^^^^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout]    = note: type alias `crate::index::distance::tests::ArrayView1` exists but is inaccessible
[INFO] [stdout] help: consider importing this type alias
[INFO] [stdout]    |
[INFO] [stdout]  3 + use ndarray::ArrayView1;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `euclidean_distance` in this scope
[INFO] [stdout]   --> src/index/hnsw.rs:79:9
[INFO] [stdout]    |
[INFO] [stdout] 79 |         euclidean_distance(v1, v2)
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this function
[INFO] [stdout]    |
[INFO] [stdout]  3 + use crate::index::distance::euclidean_distance;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `Array1` in this scope
[INFO] [stdout]   --> src/index/hnsw.rs:82:47
[INFO] [stdout]    |
[INFO] [stdout] 82 |     pub fn insert(&mut self, id: u32, vector: Array1<f32>) {
[INFO] [stdout]    |                                               ^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout]    = note: type alias `crate::index::distance::tests::Array1` exists but is inaccessible
[INFO] [stdout] help: consider importing this type alias
[INFO] [stdout]    |
[INFO] [stdout]  3 + use ndarray::Array1;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Arc`
[INFO] [stdout]   --> src/index/hnsw.rs:84:24
[INFO] [stdout]    |
[INFO] [stdout] 84 |         let new_node = Arc::new(RwLock::new(Node {
[INFO] [stdout]    |                        ^^^ use of undeclared type `Arc`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]    |
[INFO] [stdout]  3 + use std::sync::Arc;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RwLock`
[INFO] [stdout]   --> src/index/hnsw.rs:84:33
[INFO] [stdout]    |
[INFO] [stdout] 84 |         let new_node = Arc::new(RwLock::new(Node {
[INFO] [stdout]    |                                 ^^^^^^ use of undeclared type `RwLock`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing one of these structs
[INFO] [stdout]    |
[INFO] [stdout]  3 + use std::sync::RwLock;
[INFO] [stdout]    |
[INFO] [stdout]  3 + use std::sync::nonpoison::RwLock;
[INFO] [stdout]    |
[INFO] [stdout]  3 + use tokio::sync::RwLock;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Node` in this scope
[INFO] [stdout]   --> src/index/hnsw.rs:84:45
[INFO] [stdout]    |
[INFO] [stdout] 84 |         let new_node = Arc::new(RwLock::new(Node {
[INFO] [stdout]    |                                             ^^^^ help: a variant with a similar name exists: `None`
[INFO] [stdout]    |
[INFO] [stdout]   --> /rustc/da2544bfbe84df7b24d83c029c74299ebf6112c6/library/core/src/option.rs:604:4
[INFO] [stdout]    |
[INFO] [stdout]    = note: similarly named variant `None` defined here
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `ArrayView1` in this scope
[INFO] [stdout]    --> src/index/hnsw.rs:190:34
[INFO] [stdout]     |
[INFO] [stdout] 190 |     pub fn search(&self, query: &ArrayView1<f32>, k: usize) -> Vec<(u32, f32)> {
[INFO] [stdout]     |                                  ^^^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout]     = note: type alias `crate::index::distance::tests::ArrayView1` exists but is inaccessible
[INFO] [stdout] help: consider importing this type alias
[INFO] [stdout]     |
[INFO] [stdout]   3 + use ndarray::ArrayView1;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `ArrayView1` in this scope
[INFO] [stdout]    --> src/index/hnsw.rs:235:36
[INFO] [stdout]     |
[INFO] [stdout] 235 |     fn search_layer(&self, query: &ArrayView1<f32>, entry_point: u32, ef: usize, layer: usize) -> BinaryHeap<Candidate> {
[INFO] [stdout]     |                                    ^^^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout]     = note: type alias `crate::index::distance::tests::ArrayView1` exists but is inaccessible
[INFO] [stdout] help: consider importing this type alias
[INFO] [stdout]     |
[INFO] [stdout]   3 + use ndarray::ArrayView1;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `HashSet`
[INFO] [stdout]    --> src/index/hnsw.rs:236:27
[INFO] [stdout]     |
[INFO] [stdout] 236 |         let mut visited = HashSet::new();
[INFO] [stdout]     |                           ^^^^^^^ use of undeclared type `HashSet`
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]     |
[INFO] [stdout]   3 + use std::collections::HashSet;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Reverse` in this scope
[INFO] [stdout]    --> src/index/hnsw.rs:244:25
[INFO] [stdout]     |
[INFO] [stdout] 244 |         candidates.push(Reverse(entry_cand));
[INFO] [stdout]     |                         ^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this tuple struct
[INFO] [stdout]     |
[INFO] [stdout]   3 + use std::cmp::Reverse;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0531]: cannot find tuple struct or tuple variant `Reverse` in this scope
[INFO] [stdout]    --> src/index/hnsw.rs:247:24
[INFO] [stdout]     |
[INFO] [stdout] 247 |         while let Some(Reverse(curr)) = candidates.pop() {
[INFO] [stdout]     |                        ^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this tuple struct
[INFO] [stdout]     |
[INFO] [stdout]   3 + use std::cmp::Reverse;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Reverse` in this scope
[INFO] [stdout]    --> src/index/hnsw.rs:269:41
[INFO] [stdout]     |
[INFO] [stdout] 269 |                         candidates.push(Reverse(neighbor_cand));
[INFO] [stdout]     |                                         ^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this tuple struct
[INFO] [stdout]     |
[INFO] [stdout]   3 + use std::cmp::Reverse;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `SeekFrom` and `Seek`
[INFO] [stdout]  --> src/wal.rs:2:49
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::io::{self, BufReader, BufWriter, Read, Seek, SeekFrom, Write};
[INFO] [stdout]   |                                                 ^^^^  ^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::path::Path`
[INFO] [stdout]  --> src/wal.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::path::Path;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Array1`
[INFO] [stdout]  --> src/index/distance.rs:1:27
[INFO] [stdout]   |
[INFO] [stdout] 1 | use ndarray::{ArrayView1, Array1};
[INFO] [stdout]   |                           ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `Ordering` in this scope
[INFO] [stdout]   --> src/index/hnsw.rs:21:51
[INFO] [stdout]    |
[INFO] [stdout] 21 |     fn partial_cmp(&self, other: &Self) -> Option<Ordering> {
[INFO] [stdout]    |                                                   ^^^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing one of these enums
[INFO] [stdout]    |
[INFO] [stdout]  3 + use std::cmp::Ordering;
[INFO] [stdout]    |
[INFO] [stdout]  3 + use std::sync::atomic::Ordering;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `Ordering` in this scope
[INFO] [stdout]   --> src/index/hnsw.rs:27:36
[INFO] [stdout]    |
[INFO] [stdout] 27 |     fn cmp(&self, other: &Self) -> Ordering {
[INFO] [stdout]    |                                    ^^^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing one of these enums
[INFO] [stdout]    |
[INFO] [stdout]  3 + use std::cmp::Ordering;
[INFO] [stdout]    |
[INFO] [stdout]  3 + use std::sync::atomic::Ordering;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ordering`
[INFO] [stdout]   --> src/index/hnsw.rs:28:43
[INFO] [stdout]    |
[INFO] [stdout] 28 |         self.partial_cmp(other).unwrap_or(Ordering::Equal)
[INFO] [stdout]    |                                           ^^^^^^^^ use of undeclared type `Ordering`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing one of these enums
[INFO] [stdout]    |
[INFO] [stdout]  3 + use std::cmp::Ordering;
[INFO] [stdout]    |
[INFO] [stdout]  3 + use std::sync::atomic::Ordering;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `HashMap` in this scope
[INFO] [stdout]   --> src/index/hnsw.rs:34:16
[INFO] [stdout]    |
[INFO] [stdout] 34 |     pub nodes: HashMap<u32, Arc<RwLock<Node>>>,
[INFO] [stdout]    |                ^^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]    |
[INFO] [stdout]  3 + use std::collections::HashMap;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `Arc` in this scope
[INFO] [stdout]   --> src/index/hnsw.rs:34:29
[INFO] [stdout]    |
[INFO] [stdout] 34 |     pub nodes: HashMap<u32, Arc<RwLock<Node>>>,
[INFO] [stdout]    |                             ^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]    |
[INFO] [stdout]  3 + use std::sync::Arc;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `RwLock` in this scope
[INFO] [stdout]   --> src/index/hnsw.rs:34:33
[INFO] [stdout]    |
[INFO] [stdout] 34 |     pub nodes: HashMap<u32, Arc<RwLock<Node>>>,
[INFO] [stdout]    |                                 ^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing one of these structs
[INFO] [stdout]    |
[INFO] [stdout]  3 + use std::sync::RwLock;
[INFO] [stdout]    |
[INFO] [stdout]  3 + use std::sync::nonpoison::RwLock;
[INFO] [stdout]    |
[INFO] [stdout]  3 + use tokio::sync::RwLock;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `Node` in this scope
[INFO] [stdout]   --> src/index/hnsw.rs:34:40
[INFO] [stdout]    |
[INFO] [stdout] 34 |     pub nodes: HashMap<u32, Arc<RwLock<Node>>>,
[INFO] [stdout]    |                                        ^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]    |
[INFO] [stdout] 33 | pub struct Hnsw<Node> {
[INFO] [stdout]    |                ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `HashMap`
[INFO] [stdout]   --> src/index/hnsw.rs:48:20
[INFO] [stdout]    |
[INFO] [stdout] 48 |             nodes: HashMap::new(),
[INFO] [stdout]    |                    ^^^^^^^ use of undeclared type `HashMap`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]    |
[INFO] [stdout]  3 + use std::collections::HashMap;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `io`
[INFO] [stdout]   --> src/index/hnsw.rs:58:48
[INFO] [stdout]    |
[INFO] [stdout] 58 |     pub fn save_snapshot(&self, path: &str) -> io::Result<()> {
[INFO] [stdout]    |                                                ^^ use of unresolved module or unlinked crate `io`
[INFO] [stdout]    |
[INFO] [stdout]    = help: if you wanted to use a crate named `io`, use `cargo add io` to add it to your `Cargo.toml`
[INFO] [stdout] help: a builtin type with a similar name exists
[INFO] [stdout]    |
[INFO] [stdout] 58 -     pub fn save_snapshot(&self, path: &str) -> io::Result<()> {
[INFO] [stdout] 58 +     pub fn save_snapshot(&self, path: &str) -> i8::Result<()> {
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing one of these modules
[INFO] [stdout]    |
[INFO] [stdout]  3 + use std::io;
[INFO] [stdout]    |
[INFO] [stdout]  3 + use tokio::io;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `File`
[INFO] [stdout]   --> src/index/hnsw.rs:59:20
[INFO] [stdout]    |
[INFO] [stdout] 59 |         let file = File::create(path)?;
[INFO] [stdout]    |                    ^^^^ use of undeclared type `File`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing one of these structs
[INFO] [stdout]    |
[INFO] [stdout]  3 + use std::fs::File;
[INFO] [stdout]    |
[INFO] [stdout]  3 + use prost_types::compiler::code_generator_response::File;
[INFO] [stdout]    |
[INFO] [stdout]  3 + use tokio::fs::File;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BufWriter`
[INFO] [stdout]   --> src/index/hnsw.rs:60:22
[INFO] [stdout]    |
[INFO] [stdout] 60 |         let writer = BufWriter::new(file);
[INFO] [stdout]    |                      ^^^^^^^^^ use of undeclared type `BufWriter`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing one of these structs
[INFO] [stdout]    |
[INFO] [stdout]  3 + use std::io::BufWriter;
[INFO] [stdout]    |
[INFO] [stdout]  3 + use tokio::io::BufWriter;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `io`
[INFO] [stdout]   --> src/index/hnsw.rs:61:59
[INFO] [stdout]    |
[INFO] [stdout] 61 |         bincode::serialize_into(writer, self).map_err(|e| io::Error::new(io::ErrorKind::Other, e))?;
[INFO] [stdout]    |                                                           ^^ use of unresolved module or unlinked crate `io`
[INFO] [stdout]    |
[INFO] [stdout]    = help: if you wanted to use a crate named `io`, use `cargo add io` to add it to your `Cargo.toml`
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]    |
[INFO] [stdout]  3 + use std::error::Error;
[INFO] [stdout]    |
[INFO] [stdout]  3 + use std::fmt::Error;
[INFO] [stdout]    |
[INFO] [stdout]  3 + use std::io::Error;
[INFO] [stdout]    |
[INFO] [stdout]  3 + use core::error::Error;
[INFO] [stdout]    |
[INFO] [stdout]    = and 12 other candidates
[INFO] [stdout] help: if you import `Error`, refer to it directly
[INFO] [stdout]    |
[INFO] [stdout] 61 -         bincode::serialize_into(writer, self).map_err(|e| io::Error::new(io::ErrorKind::Other, e))?;
[INFO] [stdout] 61 +         bincode::serialize_into(writer, self).map_err(|e| Error::new(io::ErrorKind::Other, e))?;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `io`
[INFO] [stdout]   --> src/index/hnsw.rs:61:74
[INFO] [stdout]    |
[INFO] [stdout] 61 |         bincode::serialize_into(writer, self).map_err(|e| io::Error::new(io::ErrorKind::Other, e))?;
[INFO] [stdout]    |                                                                          ^^ use of unresolved module or unlinked crate `io`
[INFO] [stdout]    |
[INFO] [stdout]    = help: if you wanted to use a crate named `io`, use `cargo add io` to add it to your `Cargo.toml`
[INFO] [stdout] help: consider importing one of these enums
[INFO] [stdout]    |
[INFO] [stdout]  3 + use std::io::ErrorKind;
[INFO] [stdout]    |
[INFO] [stdout]  3 + use bincode::ErrorKind;
[INFO] [stdout]    |
[INFO] [stdout]  3 + use clap::error::ErrorKind;
[INFO] [stdout]    |
[INFO] [stdout]  3 + use ndarray::ErrorKind;
[INFO] [stdout]    |
[INFO] [stdout]    = and 1 other candidate
[INFO] [stdout] help: if you import `ErrorKind`, refer to it directly
[INFO] [stdout]    |
[INFO] [stdout] 61 -         bincode::serialize_into(writer, self).map_err(|e| io::Error::new(io::ErrorKind::Other, e))?;
[INFO] [stdout] 61 +         bincode::serialize_into(writer, self).map_err(|e| io::Error::new(ErrorKind::Other, e))?;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `io`
[INFO] [stdout]   --> src/index/hnsw.rs:65:41
[INFO] [stdout]    |
[INFO] [stdout] 65 |     pub fn load_snapshot(path: &str) -> io::Result<Self> {
[INFO] [stdout]    |                                         ^^ use of unresolved module or unlinked crate `io`
[INFO] [stdout]    |
[INFO] [stdout]    = help: if you wanted to use a crate named `io`, use `cargo add io` to add it to your `Cargo.toml`
[INFO] [stdout] help: a builtin type with a similar name exists
[INFO] [stdout]    |
[INFO] [stdout] 65 -     pub fn load_snapshot(path: &str) -> io::Result<Self> {
[INFO] [stdout] 65 +     pub fn load_snapshot(path: &str) -> i8::Result<Self> {
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing one of these modules
[INFO] [stdout]    |
[INFO] [stdout]  3 + use std::io;
[INFO] [stdout]    |
[INFO] [stdout]  3 + use tokio::io;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `File`
[INFO] [stdout]   --> src/index/hnsw.rs:66:20
[INFO] [stdout]    |
[INFO] [stdout] 66 |         let file = File::open(path)?;
[INFO] [stdout]    |                    ^^^^ use of undeclared type `File`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing one of these structs
[INFO] [stdout]    |
[INFO] [stdout]  3 + use std::fs::File;
[INFO] [stdout]    |
[INFO] [stdout]  3 + use prost_types::compiler::code_generator_response::File;
[INFO] [stdout]    |
[INFO] [stdout]  3 + use tokio::fs::File;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BufReader`
[INFO] [stdout]   --> src/index/hnsw.rs:67:22
[INFO] [stdout]    |
[INFO] [stdout] 67 |         let reader = BufReader::new(file);
[INFO] [stdout]    |                      ^^^^^^^^^ use of undeclared type `BufReader`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing one of these structs
[INFO] [stdout]    |
[INFO] [stdout]  3 + use std::io::BufReader;
[INFO] [stdout]    |
[INFO] [stdout]  3 + use tokio::io::BufReader;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `io`
[INFO] [stdout]   --> src/index/hnsw.rs:68:72
[INFO] [stdout]    |
[INFO] [stdout] 68 |         let hnsw: Hnsw = bincode::deserialize_from(reader).map_err(|e| io::Error::new(io::ErrorKind::Other, e))?;
[INFO] [stdout]    |                                                                        ^^ use of unresolved module or unlinked crate `io`
[INFO] [stdout]    |
[INFO] [stdout]    = help: if you wanted to use a crate named `io`, use `cargo add io` to add it to your `Cargo.toml`
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]    |
[INFO] [stdout]  3 + use std::error::Error;
[INFO] [stdout]    |
[INFO] [stdout]  3 + use std::fmt::Error;
[INFO] [stdout]    |
[INFO] [stdout]  3 + use std::io::Error;
[INFO] [stdout]    |
[INFO] [stdout]  3 + use core::error::Error;
[INFO] [stdout]    |
[INFO] [stdout]    = and 12 other candidates
[INFO] [stdout] help: if you import `Error`, refer to it directly
[INFO] [stdout]    |
[INFO] [stdout] 68 -         let hnsw: Hnsw = bincode::deserialize_from(reader).map_err(|e| io::Error::new(io::ErrorKind::Other, e))?;
[INFO] [stdout] 68 +         let hnsw: Hnsw = bincode::deserialize_from(reader).map_err(|e| Error::new(io::ErrorKind::Other, e))?;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `io`
[INFO] [stdout]   --> src/index/hnsw.rs:68:87
[INFO] [stdout]    |
[INFO] [stdout] 68 |         let hnsw: Hnsw = bincode::deserialize_from(reader).map_err(|e| io::Error::new(io::ErrorKind::Other, e))?;
[INFO] [stdout]    |                                                                                       ^^ use of unresolved module or unlinked crate `io`
[INFO] [stdout]    |
[INFO] [stdout]    = help: if you wanted to use a crate named `io`, use `cargo add io` to add it to your `Cargo.toml`
[INFO] [stdout] help: consider importing one of these enums
[INFO] [stdout]    |
[INFO] [stdout]  3 + use std::io::ErrorKind;
[INFO] [stdout]    |
[INFO] [stdout]  3 + use bincode::ErrorKind;
[INFO] [stdout]    |
[INFO] [stdout]  3 + use clap::error::ErrorKind;
[INFO] [stdout]    |
[INFO] [stdout]  3 + use ndarray::ErrorKind;
[INFO] [stdout]    |
[INFO] [stdout]    = and 1 other candidate
[INFO] [stdout] help: if you import `ErrorKind`, refer to it directly
[INFO] [stdout]    |
[INFO] [stdout] 68 -         let hnsw: Hnsw = bincode::deserialize_from(reader).map_err(|e| io::Error::new(io::ErrorKind::Other, e))?;
[INFO] [stdout] 68 +         let hnsw: Hnsw = bincode::deserialize_from(reader).map_err(|e| io::Error::new(ErrorKind::Other, e))?;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `ArrayView1` in this scope
[INFO] [stdout]   --> src/index/hnsw.rs:78:25
[INFO] [stdout]    |
[INFO] [stdout] 78 |     fn dist(&self, v1: &ArrayView1<f32>, v2: &ArrayView1<f32>) -> f32 {
[INFO] [stdout]    |                         ^^^^^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this type alias
[INFO] [stdout]    |
[INFO] [stdout]  3 + use ndarray::ArrayView1;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `ArrayView1` in this scope
[INFO] [stdout]   --> src/index/hnsw.rs:78:47
[INFO] [stdout]    |
[INFO] [stdout] 78 |     fn dist(&self, v1: &ArrayView1<f32>, v2: &ArrayView1<f32>) -> f32 {
[INFO] [stdout]    |                                               ^^^^^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this type alias
[INFO] [stdout]    |
[INFO] [stdout]  3 + use ndarray::ArrayView1;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `euclidean_distance` in this scope
[INFO] [stdout]   --> src/index/hnsw.rs:79:9
[INFO] [stdout]    |
[INFO] [stdout] 79 |         euclidean_distance(v1, v2)
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this function
[INFO] [stdout]    |
[INFO] [stdout]  3 + use crate::index::distance::euclidean_distance;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `Array1` in this scope
[INFO] [stdout]   --> src/index/hnsw.rs:82:47
[INFO] [stdout]    |
[INFO] [stdout] 82 |     pub fn insert(&mut self, id: u32, vector: Array1<f32>) {
[INFO] [stdout]    |                                               ^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this type alias
[INFO] [stdout]    |
[INFO] [stdout]  3 + use ndarray::Array1;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Arc`
[INFO] [stdout]   --> src/index/hnsw.rs:84:24
[INFO] [stdout]    |
[INFO] [stdout] 84 |         let new_node = Arc::new(RwLock::new(Node {
[INFO] [stdout]    |                        ^^^ use of undeclared type `Arc`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]    |
[INFO] [stdout]  3 + use std::sync::Arc;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RwLock`
[INFO] [stdout]   --> src/index/hnsw.rs:84:33
[INFO] [stdout]    |
[INFO] [stdout] 84 |         let new_node = Arc::new(RwLock::new(Node {
[INFO] [stdout]    |                                 ^^^^^^ use of undeclared type `RwLock`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing one of these structs
[INFO] [stdout]    |
[INFO] [stdout]  3 + use std::sync::RwLock;
[INFO] [stdout]    |
[INFO] [stdout]  3 + use std::sync::nonpoison::RwLock;
[INFO] [stdout]    |
[INFO] [stdout]  3 + use tokio::sync::RwLock;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Node` in this scope
[INFO] [stdout]   --> src/index/hnsw.rs:84:45
[INFO] [stdout]    |
[INFO] [stdout] 84 |         let new_node = Arc::new(RwLock::new(Node {
[INFO] [stdout]    |                                             ^^^^ help: a variant with a similar name exists: `None`
[INFO] [stdout]    |
[INFO] [stdout]   --> /rustc/da2544bfbe84df7b24d83c029c74299ebf6112c6/library/core/src/option.rs:604:4
[INFO] [stdout]    |
[INFO] [stdout]    = note: similarly named variant `None` defined here
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `ArrayView1` in this scope
[INFO] [stdout]    --> src/index/hnsw.rs:190:34
[INFO] [stdout]     |
[INFO] [stdout] 190 |     pub fn search(&self, query: &ArrayView1<f32>, k: usize) -> Vec<(u32, f32)> {
[INFO] [stdout]     |                                  ^^^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this type alias
[INFO] [stdout]     |
[INFO] [stdout]   3 + use ndarray::ArrayView1;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `ArrayView1` in this scope
[INFO] [stdout]    --> src/index/hnsw.rs:235:36
[INFO] [stdout]     |
[INFO] [stdout] 235 |     fn search_layer(&self, query: &ArrayView1<f32>, entry_point: u32, ef: usize, layer: usize) -> BinaryHeap<Candidate> {
[INFO] [stdout]     |                                    ^^^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this type alias
[INFO] [stdout]     |
[INFO] [stdout]   3 + use ndarray::ArrayView1;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `HashSet`
[INFO] [stdout]    --> src/index/hnsw.rs:236:27
[INFO] [stdout]     |
[INFO] [stdout] 236 |         let mut visited = HashSet::new();
[INFO] [stdout]     |                           ^^^^^^^ use of undeclared type `HashSet`
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]     |
[INFO] [stdout]   3 + use std::collections::HashSet;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Reverse` in this scope
[INFO] [stdout]    --> src/index/hnsw.rs:244:25
[INFO] [stdout]     |
[INFO] [stdout] 244 |         candidates.push(Reverse(entry_cand));
[INFO] [stdout]     |                         ^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this tuple struct
[INFO] [stdout]     |
[INFO] [stdout]   3 + use std::cmp::Reverse;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0531]: cannot find tuple struct or tuple variant `Reverse` in this scope
[INFO] [stdout]    --> src/index/hnsw.rs:247:24
[INFO] [stdout]     |
[INFO] [stdout] 247 |         while let Some(Reverse(curr)) = candidates.pop() {
[INFO] [stdout]     |                        ^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this tuple struct
[INFO] [stdout]     |
[INFO] [stdout]   3 + use std::cmp::Reverse;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Reverse` in this scope
[INFO] [stdout]    --> src/index/hnsw.rs:269:41
[INFO] [stdout]     |
[INFO] [stdout] 269 |                         candidates.push(Reverse(neighbor_cand));
[INFO] [stdout]     |                                         ^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this tuple struct
[INFO] [stdout]     |
[INFO] [stdout]   3 + use std::cmp::Reverse;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `SeekFrom` and `Seek`
[INFO] [stdout]  --> src/wal.rs:2:49
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::io::{self, BufReader, BufWriter, Read, Seek, SeekFrom, Write};
[INFO] [stdout]   |                                                 ^^^^  ^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::path::Path`
[INFO] [stdout]  --> src/wal.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::path::Path;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Array1`
[INFO] [stdout]  --> src/index/distance.rs:1:27
[INFO] [stdout]   |
[INFO] [stdout] 1 | use ndarray::{ArrayView1, Array1};
[INFO] [stdout]   |                           ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the trait bound `Hnsw: serde::Serialize` is not satisfied
[INFO] [stdout]   --> src/index/hnsw.rs:61:41
[INFO] [stdout]    |
[INFO] [stdout] 61 |         bincode::serialize_into(writer, self).map_err(|e| io::Error::new(io::ErrorKind::Other, e))?;
[INFO] [stdout]    |         -----------------------         ^^^^ unsatisfied trait bound
[INFO] [stdout]    |         |
[INFO] [stdout]    |         required by a bound introduced by this call
[INFO] [stdout]    |
[INFO] [stdout] help: the trait `Serialize` is not implemented for `Hnsw`
[INFO] [stdout]   --> src/index/hnsw.rs:33:1
[INFO] [stdout]    |
[INFO] [stdout] 33 | pub struct Hnsw {
[INFO] [stdout]    | ^^^^^^^^^^^^^^^
[INFO] [stdout]    = note: for local types consider adding `#[derive(serde::Serialize)]` to your `Hnsw` type
[INFO] [stdout]    = note: for types from other crates check whether the crate offers a `serde` feature flag
[INFO] [stdout]    = help: the following other types implement trait `Serialize`:
[INFO] [stdout]              &'a T
[INFO] [stdout]              &'a mut T
[INFO] [stdout]              ()
[INFO] [stdout]              (T,)
[INFO] [stdout]              (T0, T1)
[INFO] [stdout]              (T0, T1, T2)
[INFO] [stdout]              (T0, T1, T2, T3)
[INFO] [stdout]              (T0, T1, T2, T3, T4)
[INFO] [stdout]            and 131 others
[INFO] [stdout] note: required by a bound in `bincode::serialize_into`
[INFO] [stdout]   --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/bincode-1.3.3/src/lib.rs:93:8
[INFO] [stdout]    |
[INFO] [stdout] 90 | pub fn serialize_into<W, T: ?Sized>(writer: W, value: &T) -> Result<()>
[INFO] [stdout]    |        -------------- required by a bound in this function
[INFO] [stdout] ...
[INFO] [stdout] 93 |     T: serde::Serialize,
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^ required by this bound in `serialize_into`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `gen` found for struct `ThreadRng` in the current scope
[INFO] [stdout]   --> src/index/hnsw.rs:74:26
[INFO] [stdout]    |
[INFO] [stdout] 74 |         let r: f64 = rng.gen();
[INFO] [stdout]    |                          ^^^ method not found in `ThreadRng`
[INFO] [stdout]    |
[INFO] [stdout]   ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/rand-0.8.5/src/rng.rs:93:8
[INFO] [stdout]    |
[INFO] [stdout] 93 |     fn gen<T>(&mut self) -> T
[INFO] [stdout]    |        --- the method is available for `ThreadRng` here
[INFO] [stdout]    |
[INFO] [stdout]    = help: items from traits can only be used if the trait is in scope
[INFO] [stdout] help: trait `Rng` which provides `gen` is implemented but not in scope; perhaps you want to import it
[INFO] [stdout]    |
[INFO] [stdout]  3 + use rand::Rng;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the trait bound `Hnsw: serde::Serialize` is not satisfied
[INFO] [stdout]   --> src/index/hnsw.rs:61:41
[INFO] [stdout]    |
[INFO] [stdout] 61 |         bincode::serialize_into(writer, self).map_err(|e| io::Error::new(io::ErrorKind::Other, e))?;
[INFO] [stdout]    |         -----------------------         ^^^^ unsatisfied trait bound
[INFO] [stdout]    |         |
[INFO] [stdout]    |         required by a bound introduced by this call
[INFO] [stdout]    |
[INFO] [stdout] help: the trait `Serialize` is not implemented for `Hnsw`
[INFO] [stdout]   --> src/index/hnsw.rs:33:1
[INFO] [stdout]    |
[INFO] [stdout] 33 | pub struct Hnsw {
[INFO] [stdout]    | ^^^^^^^^^^^^^^^
[INFO] [stdout]    = note: for local types consider adding `#[derive(serde::Serialize)]` to your `Hnsw` type
[INFO] [stdout]    = note: for types from other crates check whether the crate offers a `serde` feature flag
[INFO] [stdout]    = help: the following other types implement trait `Serialize`:
[INFO] [stdout]              &'a T
[INFO] [stdout]              &'a mut T
[INFO] [stdout]              ()
[INFO] [stdout]              (T,)
[INFO] [stdout]              (T0, T1)
[INFO] [stdout]              (T0, T1, T2)
[INFO] [stdout]              (T0, T1, T2, T3)
[INFO] [stdout]              (T0, T1, T2, T3, T4)
[INFO] [stdout]            and 131 others
[INFO] [stdout] note: required by a bound in `bincode::serialize_into`
[INFO] [stdout]   --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/bincode-1.3.3/src/lib.rs:93:8
[INFO] [stdout]    |
[INFO] [stdout] 90 | pub fn serialize_into<W, T: ?Sized>(writer: W, value: &T) -> Result<()>
[INFO] [stdout]    |        -------------- required by a bound in this function
[INFO] [stdout] ...
[INFO] [stdout] 93 |     T: serde::Serialize,
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^ required by this bound in `serialize_into`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `gen` found for struct `ThreadRng` in the current scope
[INFO] [stdout]   --> src/index/hnsw.rs:74:26
[INFO] [stdout]    |
[INFO] [stdout] 74 |         let r: f64 = rng.gen();
[INFO] [stdout]    |                          ^^^ method not found in `ThreadRng`
[INFO] [stdout]    |
[INFO] [stdout]   ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/rand-0.8.5/src/rng.rs:93:8
[INFO] [stdout]    |
[INFO] [stdout] 93 |     fn gen<T>(&mut self) -> T
[INFO] [stdout]    |        --- the method is available for `ThreadRng` here
[INFO] [stdout]    |
[INFO] [stdout]    = help: items from traits can only be used if the trait is in scope
[INFO] [stdout] help: trait `Rng` which provides `gen` is implemented but not in scope; perhaps you want to import it
[INFO] [stdout]    |
[INFO] [stdout]  3 + use rand::Rng;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0277, E0422, E0425, E0433, E0531, E0599.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0277`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `my_vector_db` (lib test) due to 35 previous errors; 3 warnings emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] Some errors have detailed explanations: E0277, E0422, E0425, E0433, E0531, E0599.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0277`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `my_vector_db` (lib) due to 35 previous errors; 3 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "cd00ec4ef6570d5037a8295305f7330ab0ac3f477f09202eb8cdaebc13f53dc0", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "cd00ec4ef6570d5037a8295305f7330ab0ac3f477f09202eb8cdaebc13f53dc0", kill_on_drop: false }`
[INFO] [stdout] cd00ec4ef6570d5037a8295305f7330ab0ac3f477f09202eb8cdaebc13f53dc0
