[INFO] cloning repository https://github.com/Darktrop/hnsw-rs
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Darktrop/hnsw-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDarktrop%2Fhnsw-rs", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDarktrop%2Fhnsw-rs'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 37e6f41d1ee265e3f9a7371e0b246675a38802fc
[INFO] checking Darktrop/hnsw-rs against master#485ec3fbcc12fa14ef6596dabb125ad710499c9e for pr-157710
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDarktrop%2Fhnsw-rs" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/Darktrop/hnsw-rs
[INFO] finished tweaking git repo https://github.com/Darktrop/hnsw-rs
[INFO] tweaked toml for git repo https://github.com/Darktrop/hnsw-rs written to /workspace/builds/worker-3-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/Darktrop/hnsw-rs on toolchain 485ec3fbcc12fa14ef6596dabb125ad710499c9e
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+485ec3fbcc12fa14ef6596dabb125ad710499c9e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/Darktrop/hnsw-rs 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" "+485ec3fbcc12fa14ef6596dabb125ad710499c9e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr] warning: hnsw_rs/Cargo.toml: unused manifest key: build
[INFO] [stderr] help: build is a valid .cargo/config.toml key
[INFO] [stderr] warning: `hnsw_rs` (manifest) generated 1 warning
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded clang-sys v0.28.0
[INFO] [stderr]   Downloaded cexpr v0.3.5
[INFO] [stderr]   Downloaded csv-core v0.1.5
[INFO] [stderr]   Downloaded bindgen v0.49.2
[INFO] [stderr]   Downloaded nom v4.2.3
[INFO] [stderr]   Downloaded csv v1.0.7
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3a6becf2bc8dde7f3fa57ede90e4f284e72d296796fc446bbb1e2c7cc0530151" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] 56199feb7bcdc6923e9b8a8d4ae39cecd644bcf1a79f9e4c882e1e0299b05fde
[INFO] running `Command { std: "docker" "start" "56199feb7bcdc6923e9b8a8d4ae39cecd644bcf1a79f9e4c882e1e0299b05fde", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "56199feb7bcdc6923e9b8a8d4ae39cecd644bcf1a79f9e4c882e1e0299b05fde" "/opt/rustwide/cargo-home/bin/cargo" "+485ec3fbcc12fa14ef6596dabb125ad710499c9e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "56199feb7bcdc6923e9b8a8d4ae39cecd644bcf1a79f9e4c882e1e0299b05fde", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-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" "-w" "/opt/rustwide/workdir" "--user" "0:0" "56199feb7bcdc6923e9b8a8d4ae39cecd644bcf1a79f9e4c882e1e0299b05fde" "/opt/rustwide/cargo-home/bin/cargo" "+485ec3fbcc12fa14ef6596dabb125ad710499c9e" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr] warning: hnsw_rs/Cargo.toml: unused manifest key: build
[INFO] [stderr] help: build is a valid .cargo/config.toml key
[INFO] [stderr] warning: `hnsw_rs` (manifest) generated 1 warning
[INFO] [stderr]    Compiling libc v0.2.55
[INFO] [stderr]    Compiling memchr v2.2.0
[INFO] [stderr]    Compiling glob v0.2.11
[INFO] [stderr]    Compiling version_check v0.1.5
[INFO] [stderr]    Compiling cc v1.0.37
[INFO] [stderr]    Compiling lazy_static v1.3.0
[INFO] [stderr]    Compiling ucd-util v0.1.3
[INFO] [stderr]    Compiling quick-error v1.2.2
[INFO] [stderr]    Compiling utf8-ranges v1.0.2
[INFO] [stderr]    Compiling regex v1.1.6
[INFO] [stderr]    Compiling unicode-width v0.1.5
[INFO] [stderr]    Compiling serde v1.0.91
[INFO] [stderr]     Checking crossbeam-utils v0.2.2
[INFO] [stderr]    Compiling log v0.4.6
[INFO] [stderr]    Compiling byteorder v1.3.1
[INFO] [stderr]    Compiling strsim v0.8.0
[INFO] [stderr]    Compiling vec_map v0.8.1
[INFO] [stderr]    Compiling textwrap v0.11.0
[INFO] [stderr]    Compiling thread_local v0.3.6
[INFO] [stderr]    Compiling humantime v1.2.0
[INFO] [stderr]    Compiling termcolor v1.0.4
[INFO] [stderr]    Compiling regex-syntax v0.6.6
[INFO] [stderr]    Compiling bindgen v0.49.2
[INFO] [stderr]    Compiling ansi_term v0.11.0
[INFO] [stderr]    Compiling fxhash v0.2.1
[INFO] [stderr]    Compiling nom v4.2.3
[INFO] [stderr]     Checking crossbeam-epoch v0.3.1
[INFO] [stderr]    Compiling peeking_take_while v0.1.2
[INFO] [stderr]    Compiling shlex v0.1.1
[INFO] [stderr]    Compiling num-complex v0.2.1
[INFO] [stderr]     Checking itertools v0.7.11
[INFO] [stderr]     Checking criterion-plot v0.3.1
[INFO] [stderr]    Compiling clang-sys v0.28.0
[INFO] [stderr]     Checking rand_xoshiro v0.1.0
[INFO] [stderr]    Compiling serde_derive v1.0.91
[INFO] [stderr]     Checking knn v0.1.0 (/opt/rustwide/workdir/knn)
[INFO] [stderr]     Checking crossbeam-deque v0.2.0
[INFO] [stderr]    Compiling atty v0.2.11
[INFO] [stderr]    Compiling which v1.0.5
[INFO] [stderr]    Compiling clap v2.33.0
[INFO] [stderr]     Checking num_cpus v1.10.0
[INFO] [stderr]     Checking rand_os v0.1.3
[INFO] [stderr]    Compiling libloading v0.5.0
[INFO] [stderr]     Checking rayon-core v1.4.1
[INFO] [stderr]     Checking csv-core v0.1.5
[INFO] [stderr]    Compiling aho-corasick v0.7.3
[INFO] [stderr]     Checking rayon v1.0.3
[INFO] [stderr]     Checking ndarray v0.12.1
[INFO] [stderr]    Compiling cexpr v0.3.5
[INFO] [stderr]     Checking serde_json v1.0.39
[INFO] [stderr]     Checking csv v1.0.7
[INFO] [stderr]    Compiling env_logger v0.6.1
[INFO] [stderr]     Checking tinytemplate v1.0.2
[INFO] [stderr]     Checking criterion v0.2.11
[INFO] [stderr]    Compiling hnsw_rs v0.1.0 (/opt/rustwide/workdir/hnsw_rs)
[INFO] [stdout] warning: unused import: `std::env`
[INFO] [stdout]  --> hnsw_rs/build.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::env;
[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::PathBuf`
[INFO] [stdout]  --> hnsw_rs/build.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use std::path::PathBuf;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] warning: hnsw_rs@0.1.0: In file included from src_cpp/hnswlib.h:75,
[INFO] [stderr] warning: hnsw_rs@0.1.0:                  from src_cpp/hnswindex.h:6,
[INFO] [stderr] warning: hnsw_rs@0.1.0:                  from src_cpp/knn_api.cpp:1:
[INFO] [stderr] warning: hnsw_rs@0.1.0: src_cpp/hnswalg.h: In instantiation of 'std::priority_queue<std::pair<dist_t, long unsigned int> > hnswlib::HierarchicalNSW<dist_t>::searchKnn(const void*, size_t) const [with dist_t = float; typename std::vector<std::pair<dist_t, long unsigned int>, std::allocator<std::pair<dist_t, long unsigned int> > >::value_type = std::pair<float, long unsigned int>; size_t = long unsigned int]':
[INFO] [stderr] warning: hnsw_rs@0.1.0: src_cpp/hnswindex.h:106:97:   required from 'size_t Index<dist_t, data_t>::knnQuery(dist_t*, size_t*, dist_t*, size_t) [with dist_t = float; data_t = float; size_t = long unsigned int]'
[INFO] [stderr] warning: hnsw_rs@0.1.0: src_cpp/knn_api.cpp:48:33:   required from here
[INFO] [stderr] warning: hnsw_rs@0.1.0: src_cpp/hnswalg.h:770:34: warning: comparison of unsigned expression in '< 0' is always false [-Wtype-limits]
[INFO] [stderr] warning: hnsw_rs@0.1.0:   770 |                         if (cand < 0 || cand > max_elements_)
[INFO] [stderr] warning: hnsw_rs@0.1.0:       |                             ~~~~~^~~
[INFO] [stderr] warning: hnsw_rs@0.1.0: src_cpp/hnswalg.h: In instantiation of 'hnswlib::tableint hnswlib::HierarchicalNSW<dist_t>::addPoint(void*, hnswlib::labeltype, int) [with dist_t = float; hnswlib::tableint = unsigned int; hnswlib::labeltype = long unsigned int]':
[INFO] [stderr] warning: hnsw_rs@0.1.0: src_cpp/hnswalg.h:658:21:   required from 'void hnswlib::HierarchicalNSW<dist_t>::addPoint(void*, hnswlib::labeltype) [with dist_t = float; hnswlib::labeltype = long unsigned int]'
[INFO] [stderr] warning: hnsw_rs@0.1.0: src_cpp/hnswindex.h:74:27:   required from 'void Index<dist_t, data_t>::addItem(dist_t*, size_t) [with dist_t = float; data_t = float; size_t = long unsigned int]'
[INFO] [stderr] warning: hnsw_rs@0.1.0: src_cpp/knn_api.cpp:52:32:   required from here
[INFO] [stderr] warning: hnsw_rs@0.1.0: src_cpp/hnswalg.h:718:42: warning: comparison of unsigned expression in '< 0' is always false [-Wtype-limits]
[INFO] [stderr] warning: hnsw_rs@0.1.0:   718 |                                 if (cand < 0 || cand > max_elements_)
[INFO] [stderr] warning: hnsw_rs@0.1.0:       |                                     ~~~~~^~~
[INFO] [stdout] warning: unnecessary parentheses around assigned value
[INFO] [stdout]   --> hnsw_rs/src/knnservice.rs:80:24
[INFO] [stdout]    |
[INFO] [stdout] 80 |         user_vector /= (count as f32);
[INFO] [stdout]    |                        ^            ^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 80 -         user_vector /= (count as f32);
[INFO] [stdout] 80 +         user_vector /= count as f32 ;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type `rust_hnsw_index_t` should have an upper camel case name
[INFO] [stdout]  --> hnsw_rs/src/native.rs:6:10
[INFO] [stdout]   |
[INFO] [stdout] 6 | pub type rust_hnsw_index_t = u64;
[INFO] [stdout]   |          ^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `RustHnswIndexT`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around assigned value
[INFO] [stdout]   --> hnsw_rs/src/knnservice.rs:80:24
[INFO] [stdout]    |
[INFO] [stdout] 80 |         user_vector /= (count as f32);
[INFO] [stdout]    |                        ^            ^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 80 -         user_vector /= (count as f32);
[INFO] [stdout] 80 +         user_vector /= count as f32 ;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `test::Bencher`
[INFO] [stdout]    --> hnsw_rs/src/knnservice.rs:115:9
[INFO] [stdout]     |
[INFO] [stdout] 115 |     use test::Bencher;
[INFO] [stdout]     |         ^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type `rust_hnsw_index_t` should have an upper camel case name
[INFO] [stdout]  --> hnsw_rs/src/native.rs:6:10
[INFO] [stdout]   |
[INFO] [stdout] 6 | pub type rust_hnsw_index_t = u64;
[INFO] [stdout]   |          ^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `RustHnswIndexT`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `a`
[INFO] [stdout]    --> hnsw_rs/src/knnservice.rs:119:13
[INFO] [stdout]     |
[INFO] [stdout] 119 |         let a = KnnService::new(Distance::Euclidean, 100, 10);
[INFO] [stdout]     |             ^ help: if this is intentional, prefix it with an underscore: `_a`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `ParameterizedBenchmark`
[INFO] [stdout]  --> hnsw_rs/benches/bench.rs:5:28
[INFO] [stdout]   |
[INFO] [stdout] 5 | use criterion::{Criterion, ParameterizedBenchmark};
[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: `Path`
[INFO] [stdout]  --> hnsw_rs/benches/bench.rs:9:17
[INFO] [stdout]   |
[INFO] [stdout] 9 | use std::path::{Path, PathBuf};
[INFO] [stdout]   |                 ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::fs::File`
[INFO] [stdout]   --> hnsw_rs/benches/bench.rs:10:5
[INFO] [stdout]    |
[INFO] [stdout] 10 | use std::fs::File;
[INFO] [stdout]    |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 28.45s
[INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: cexpr v0.3.5, criterion v0.2.11, nom v4.2.3
[INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 5`
[INFO] running `Command { std: "docker" "inspect" "56199feb7bcdc6923e9b8a8d4ae39cecd644bcf1a79f9e4c882e1e0299b05fde", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "56199feb7bcdc6923e9b8a8d4ae39cecd644bcf1a79f9e4c882e1e0299b05fde", kill_on_drop: false }`
[INFO] [stdout] 56199feb7bcdc6923e9b8a8d4ae39cecd644bcf1a79f9e4c882e1e0299b05fde
