[INFO] cloning repository https://github.com/zicotjia/nanofrann [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/zicotjia/nanofrann" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzicotjia%2Fnanofrann", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzicotjia%2Fnanofrann'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 9bc96b9266c801c0b1da54fe3e58fa653dff56e4 [INFO] checking zicotjia/nanofrann against master#5337252b9952fdd9482ed6a4add17254e5bd2c40 for pr-138785 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzicotjia%2Fnanofrann" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/zicotjia/nanofrann on toolchain 5337252b9952fdd9482ed6a4add17254e5bd2c40 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+5337252b9952fdd9482ed6a4add17254e5bd2c40" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/zicotjia/nanofrann [INFO] finished tweaking git repo https://github.com/zicotjia/nanofrann [INFO] tweaked toml for git repo https://github.com/zicotjia/nanofrann written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/zicotjia/nanofrann 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" "+5337252b9952fdd9482ed6a4add17254e5bd2c40" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded sorted-vec v0.8.4 [INFO] [stderr] Downloaded generator v0.8.3 [INFO] [stderr] Downloaded kiddo v4.2.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+5337252b9952fdd9482ed6a4add17254e5bd2c40" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a6c78bafa521c9a2b98c56b8ed6cd5b4c74e698070823042249abe56643f1dc7 [INFO] running `Command { std: "docker" "start" "-a" "a6c78bafa521c9a2b98c56b8ed6cd5b4c74e698070823042249abe56643f1dc7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a6c78bafa521c9a2b98c56b8ed6cd5b4c74e698070823042249abe56643f1dc7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a6c78bafa521c9a2b98c56b8ed6cd5b4c74e698070823042249abe56643f1dc7", kill_on_drop: false }` [INFO] [stdout] a6c78bafa521c9a2b98c56b8ed6cd5b4c74e698070823042249abe56643f1dc7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+5337252b9952fdd9482ed6a4add17254e5bd2c40" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 099b36096534124516b73db0a6d634f9a6ddcb0a5dc01ff6a1d801ae3d8c1679 [INFO] running `Command { std: "docker" "start" "-a" "099b36096534124516b73db0a6d634f9a6ddcb0a5dc01ff6a1d801ae3d8c1679", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.88 [INFO] [stderr] Compiling unicode-ident v1.0.13 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling serde v1.0.215 [INFO] [stderr] Compiling libc v0.2.161 [INFO] [stderr] Compiling rustix v0.38.40 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling serde_json v1.0.132 [INFO] [stderr] Compiling bitflags v2.6.0 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Checking once_cell v1.20.2 [INFO] [stderr] Compiling semver v1.0.23 [INFO] [stderr] Compiling camino v1.1.9 [INFO] [stderr] Compiling crossbeam-utils v0.8.20 [INFO] [stderr] Compiling ryu v1.0.18 [INFO] [stderr] Compiling linux-raw-sys v0.4.14 [INFO] [stderr] Compiling itoa v1.0.11 [INFO] [stderr] Compiling rustversion v1.0.18 [INFO] [stderr] Checking either v1.13.0 [INFO] [stderr] Compiling pulldown-cmark v0.9.6 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Checking half v2.4.1 [INFO] [stderr] Compiling unicase v2.8.0 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Compiling fastrand v2.2.0 [INFO] [stderr] Compiling same-file v1.0.6 [INFO] [stderr] Checking tracing-core v0.1.32 [INFO] [stderr] Compiling walkdir v2.5.0 [INFO] [stderr] Compiling error-chain v0.12.4 [INFO] [stderr] Checking log v0.4.22 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Checking crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling az v1.2.1 [INFO] [stderr] Compiling glob v0.3.1 [INFO] [stderr] Compiling bytecount v0.6.8 [INFO] [stderr] Compiling syn v2.0.82 [INFO] [stderr] Compiling rayon-core v1.12.1 [INFO] [stderr] Compiling doc-comment v0.3.3 [INFO] [stderr] Checking ciborium-io v0.2.2 [INFO] [stderr] Compiling peg-runtime v0.6.3 [INFO] [stderr] Checking clap_lex v0.7.3 [INFO] [stderr] Checking regex-syntax v0.8.5 [INFO] [stderr] Compiling fixed v1.28.0 [INFO] [stderr] Checking crossbeam-deque v0.8.5 [INFO] [stderr] Compiling paste v1.0.15 [INFO] [stderr] Checking anstyle v1.0.10 [INFO] [stderr] Checking plotters-backend v0.3.7 [INFO] [stderr] Checking lazy_static v1.5.0 [INFO] [stderr] Compiling generator v0.8.3 [INFO] [stderr] Checking overload v0.1.1 [INFO] [stderr] Checking sharded-slab v0.1.7 [INFO] [stderr] Checking nu-ansi-term v0.46.0 [INFO] [stderr] Compiling peg-macros v0.6.3 [INFO] [stderr] Checking clap_builder v4.5.21 [INFO] [stderr] Checking ciborium-ll v0.2.2 [INFO] [stderr] Checking tracing-log v0.2.0 [INFO] [stderr] Checking itertools v0.10.5 [INFO] [stderr] Checking thread_local v1.1.8 [INFO] [stderr] Checking pin-project-lite v0.2.14 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Checking plotters-svg v0.3.7 [INFO] [stderr] Checking cast v0.3.0 [INFO] [stderr] Checking bytemuck v1.19.0 [INFO] [stderr] Checking rayon v1.10.0 [INFO] [stderr] Checking tracing-subscriber v0.3.18 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking is-terminal v0.4.13 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking ordered-float v4.4.0 [INFO] [stderr] Checking num-complex v0.4.6 [INFO] [stderr] Checking plotters v0.3.7 [INFO] [stderr] Checking itertools v0.13.0 [INFO] [stderr] Compiling tempfile v3.14.0 [INFO] [stderr] Checking regex-automata v0.4.9 [INFO] [stderr] Checking num-bigint v0.4.6 [INFO] [stderr] Checking num-iter v0.1.45 [INFO] [stderr] Checking elapsed v0.1.2 [INFO] [stderr] Checking anes v0.1.6 [INFO] [stderr] Checking linked-hash-map v0.5.6 [INFO] [stderr] Checking divrem v1.0.0 [INFO] [stderr] Checking init_with v1.1.0 [INFO] [stderr] Checking sorted-vec v0.8.4 [INFO] [stderr] Checking oorandom v11.1.4 [INFO] [stderr] Checking ubyte v0.10.4 [INFO] [stderr] Checking kd-tree v0.6.0 [INFO] [stderr] Checking approx v0.5.1 [INFO] [stderr] Checking criterion-plot v0.5.0 [INFO] [stderr] Checking peg v0.6.3 [INFO] [stderr] Checking regex v1.11.1 [INFO] [stderr] Checking num-rational v0.4.2 [INFO] [stderr] Checking clap v4.5.21 [INFO] [stderr] Checking num v0.4.3 [INFO] [stderr] Compiling serde_derive v1.0.215 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Checking rand_core v0.9.0-alpha.2 [INFO] [stderr] Checking ppv-lite86 v0.2.20 [INFO] [stderr] Checking rand_chacha v0.9.0-alpha.2 [INFO] [stderr] Checking rand v0.9.0-alpha.2 [INFO] [stderr] Checking ciborium v0.2.2 [INFO] [stderr] Checking kiddo v4.2.1 [INFO] [stderr] Compiling cargo-platform v0.1.8 [INFO] [stderr] Checking tinytemplate v1.2.1 [INFO] [stderr] Checking criterion v0.5.1 [INFO] [stderr] Compiling cargo_metadata v0.14.2 [INFO] [stderr] Compiling skeptic v0.13.7 [INFO] [stderr] Compiling ply-rs v0.1.3 [INFO] [stderr] Checking nanofrann v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> src/tree/nanofrann_float.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> src/tree/nanofrann_float.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> src/tree/nanofrann_flat.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> src/tree/nanofrann_flat.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `indices` [INFO] [stdout] --> src/common/common.rs:161:24 [INFO] [stdout] | [INFO] [stdout] 161 | fn init(&mut self, indices: &mut Vec, dists: &mut Vec) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_indices` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dists` [INFO] [stdout] --> src/common/common.rs:161:50 [INFO] [stdout] | [INFO] [stdout] 161 | fn init(&mut self, indices: &mut Vec, dists: &mut Vec) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_dists` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `indices` [INFO] [stdout] --> src/common/common.rs:161:24 [INFO] [stdout] | [INFO] [stdout] 161 | fn init(&mut self, indices: &mut Vec, dists: &mut Vec) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_indices` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tree/nanofrann_float.rs:60:13 [INFO] [stdout] | [INFO] [stdout] 60 | let mut tree = Self { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dists` [INFO] [stdout] --> src/common/common.rs:161:50 [INFO] [stdout] | [INFO] [stdout] 161 | fn init(&mut self, indices: &mut Vec, dists: &mut Vec) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_dists` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tree/nanofrann_flat.rs:61:13 [INFO] [stdout] | [INFO] [stdout] 61 | let mut tree = Self { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tree/nanofrann_float.rs:60:13 [INFO] [stdout] | [INFO] [stdout] 60 | let mut tree = Self { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `num_closest` [INFO] [stdout] --> src/tree/nanofrann_flat.rs:349:63 [INFO] [stdout] | [INFO] [stdout] 349 | pub(crate) fn knn_search(&self, point: &Point, num_closest: usize, result: &mut dyn ResultSet) { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_num_closest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tree/nanofrann_flat.rs:61:13 [INFO] [stdout] | [INFO] [stdout] 61 | let mut tree = Self { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `common::common::BoundingBox` is more private than the item `KDTreeSingleIndex::<'a, FloatType>::divide_tree` [INFO] [stdout] --> src/tree/nanofrann_float.rs:102:5 [INFO] [stdout] | [INFO] [stdout] 102 | pub fn divide_tree(&mut self, left: usize, right: usize, bounding_box: &mut BoundingBox) -> Node { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `KDTreeSingleIndex::<'a, FloatType>::divide_tree` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `common::common::BoundingBox` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/common/common.rs:304:1 [INFO] [stdout] | [INFO] [stdout] 304 | pub(crate) struct BoundingBox { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Node` is more private than the item `KDTreeSingleIndex::<'a, FloatType>::divide_tree` [INFO] [stdout] --> src/tree/nanofrann_float.rs:102:5 [INFO] [stdout] | [INFO] [stdout] 102 | pub fn divide_tree(&mut self, left: usize, right: usize, bounding_box: &mut BoundingBox) -> Node { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `KDTreeSingleIndex::<'a, FloatType>::divide_tree` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `Node` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/tree/nanofrann_float.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | pub(crate) struct Node { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SearchParams` is never constructed [INFO] [stdout] --> src/common/common.rs:197:19 [INFO] [stdout] | [INFO] [stdout] 197 | pub(crate) struct SearchParams { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/common/common.rs:205:12 [INFO] [stdout] | [INFO] [stdout] 203 | / impl SearchParams [INFO] [stdout] 204 | | where T : MinMax { [INFO] [stdout] | |________________- associated function in this implementation [INFO] [stdout] 205 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `size_at_index_build` is never read [INFO] [stdout] --> src/tree/nanofrann_float.rs:40:16 [INFO] [stdout] | [INFO] [stdout] 33 | pub struct KDTreeSingleIndex<'a, DistType> { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 40 | pub(crate) size_at_index_build: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `KDTreeSingleIndex` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `dataset_get` is never used [INFO] [stdout] --> src/tree/nanofrann_float.rs:351:8 [INFO] [stdout] | [INFO] [stdout] 45 | / impl<'a, FloatType> KDTreeSingleIndex<'a, FloatType> [INFO] [stdout] 46 | | where FloatType: Float + MinMax + AddAssign + Copy { [INFO] [stdout] | |__________________________________________________- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 351 | fn dataset_get(&self, index: usize, dim: usize) -> FloatType { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LeafNode` is never constructed [INFO] [stdout] --> src/tree/nanofrann_flat.rs:16:19 [INFO] [stdout] | [INFO] [stdout] 16 | pub(crate) struct LeafNode { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SplitNode` is never constructed [INFO] [stdout] --> src/tree/nanofrann_flat.rs:22:19 [INFO] [stdout] | [INFO] [stdout] 22 | pub(crate) struct SplitNode { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `KDTreeSingleIndexFlat` is never constructed [INFO] [stdout] --> src/tree/nanofrann_flat.rs:31:19 [INFO] [stdout] | [INFO] [stdout] 31 | pub(crate) struct KDTreeSingleIndexFlat<'a, DistType> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/tree/nanofrann_flat.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 46 | / impl<'a, FloatType> KDTreeSingleIndexFlat<'a, FloatType> [INFO] [stdout] 47 | | where FloatType: Float + MinMax + AddAssign + Copy { [INFO] [stdout] | |__________________________________________________- associated items in this implementation [INFO] [stdout] 48 | #[inline] [INFO] [stdout] 49 | pub fn new(dataset: &'a DataSource, params: KDTreeSingleIndexParams) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 78 | pub fn build_index(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 86 | pub fn compute_bounding_box(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 106 | pub fn divide_tree(&mut self, left: usize, right: usize, bounding_box: &mut BoundingBox) -> usize { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 161 | fn middle_split(&mut self, ind: usize, count: usize, index: &mut usize, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 212 | fn compute_min_max(&self, ind: usize, count: usize, cut_feat: usize, min_element: &mut FloatType, max_element: &mut FloatType) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 235 | fn plane_split(&mut self, ind: usize, count: usize, cut_feat: usize, cut_val: &mut FloatType, lim1: &mut usize, lim2: &mut usize) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 279 | fn accum_dist(a: FloatType, b: FloatType) -> FloatType { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 286 | fn compute_initial_distance(&self, point: &Point, dists: &mut Vec) -> FloatType { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 302 | fn search_level(&self, result: &mut dyn ResultSet, point: &Point, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 349 | pub(crate) fn knn_search(&self, point: &Point, num_closest: usize, result: &mut dyn ResultSet) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 356 | fn dataset_get(&self, index: usize, dim: usize) -> FloatType { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `num_closest` [INFO] [stdout] --> src/tree/nanofrann_flat.rs:349:63 [INFO] [stdout] | [INFO] [stdout] 349 | pub(crate) fn knn_search(&self, point: &Point, num_closest: usize, result: &mut dyn ResultSet) { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_num_closest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `common::common::BoundingBox` is more private than the item `KDTreeSingleIndex::<'a, FloatType>::divide_tree` [INFO] [stdout] --> src/tree/nanofrann_float.rs:102:5 [INFO] [stdout] | [INFO] [stdout] 102 | pub fn divide_tree(&mut self, left: usize, right: usize, bounding_box: &mut BoundingBox) -> Node { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `KDTreeSingleIndex::<'a, FloatType>::divide_tree` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `common::common::BoundingBox` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/common/common.rs:304:1 [INFO] [stdout] | [INFO] [stdout] 304 | pub(crate) struct BoundingBox { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Node` is more private than the item `KDTreeSingleIndex::<'a, FloatType>::divide_tree` [INFO] [stdout] --> src/tree/nanofrann_float.rs:102:5 [INFO] [stdout] | [INFO] [stdout] 102 | pub fn divide_tree(&mut self, left: usize, right: usize, bounding_box: &mut BoundingBox) -> Node { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `KDTreeSingleIndex::<'a, FloatType>::divide_tree` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `Node` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/tree/nanofrann_float.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | pub(crate) struct Node { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SearchParams` is never constructed [INFO] [stdout] --> src/common/common.rs:197:19 [INFO] [stdout] | [INFO] [stdout] 197 | pub(crate) struct SearchParams { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/common/common.rs:205:12 [INFO] [stdout] | [INFO] [stdout] 203 | / impl SearchParams [INFO] [stdout] 204 | | where T : MinMax { [INFO] [stdout] | |________________- associated function in this implementation [INFO] [stdout] 205 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `size_at_index_build` is never read [INFO] [stdout] --> src/tree/nanofrann_float.rs:40:16 [INFO] [stdout] | [INFO] [stdout] 33 | pub struct KDTreeSingleIndex<'a, DistType> { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 40 | pub(crate) size_at_index_build: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `KDTreeSingleIndex` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `dataset_get` is never used [INFO] [stdout] --> src/tree/nanofrann_float.rs:351:8 [INFO] [stdout] | [INFO] [stdout] 45 | / impl<'a, FloatType> KDTreeSingleIndex<'a, FloatType> [INFO] [stdout] 46 | | where FloatType: Float + MinMax + AddAssign + Copy { [INFO] [stdout] | |__________________________________________________- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 351 | fn dataset_get(&self, index: usize, dim: usize) -> FloatType { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LeafNode` is never constructed [INFO] [stdout] --> src/tree/nanofrann_flat.rs:16:19 [INFO] [stdout] | [INFO] [stdout] 16 | pub(crate) struct LeafNode { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SplitNode` is never constructed [INFO] [stdout] --> src/tree/nanofrann_flat.rs:22:19 [INFO] [stdout] | [INFO] [stdout] 22 | pub(crate) struct SplitNode { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `KDTreeSingleIndexFlat` is never constructed [INFO] [stdout] --> src/tree/nanofrann_flat.rs:31:19 [INFO] [stdout] | [INFO] [stdout] 31 | pub(crate) struct KDTreeSingleIndexFlat<'a, DistType> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/tree/nanofrann_flat.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 46 | / impl<'a, FloatType> KDTreeSingleIndexFlat<'a, FloatType> [INFO] [stdout] 47 | | where FloatType: Float + MinMax + AddAssign + Copy { [INFO] [stdout] | |__________________________________________________- associated items in this implementation [INFO] [stdout] 48 | #[inline] [INFO] [stdout] 49 | pub fn new(dataset: &'a DataSource, params: KDTreeSingleIndexParams) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 78 | pub fn build_index(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 86 | pub fn compute_bounding_box(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 106 | pub fn divide_tree(&mut self, left: usize, right: usize, bounding_box: &mut BoundingBox) -> usize { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 161 | fn middle_split(&mut self, ind: usize, count: usize, index: &mut usize, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 212 | fn compute_min_max(&self, ind: usize, count: usize, cut_feat: usize, min_element: &mut FloatType, max_element: &mut FloatType) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 235 | fn plane_split(&mut self, ind: usize, count: usize, cut_feat: usize, cut_val: &mut FloatType, lim1: &mut usize, lim2: &mut usize) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 279 | fn accum_dist(a: FloatType, b: FloatType) -> FloatType { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 286 | fn compute_initial_distance(&self, point: &Point, dists: &mut Vec) -> FloatType { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 302 | fn search_level(&self, result: &mut dyn ResultSet, point: &Point, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 349 | pub(crate) fn knn_search(&self, point: &Point, num_closest: usize, result: &mut dyn ResultSet) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 356 | fn dataset_get(&self, index: usize, dim: usize) -> FloatType { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `Relative::::eq` that must be used [INFO] [stdout] --> src/common/common.rs:360:9 [INFO] [stdout] | [INFO] [stdout] 360 | relative_eq!(sut.worst_dist(), 10.0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this warning originates in the macro `relative_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `Relative::::eq` that must be used [INFO] [stdout] --> src/common/common.rs:373:9 [INFO] [stdout] | [INFO] [stdout] 373 | relative_eq!(sut.radius, 10.0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `relative_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `Relative::::eq` that must be used [INFO] [stdout] --> src/common/common.rs:385:9 [INFO] [stdout] | [INFO] [stdout] 385 | relative_eq!(sut.indices_dists[0].1, 1.0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `relative_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `Relative::::eq` that must be used [INFO] [stdout] --> src/common/common.rs:386:9 [INFO] [stdout] | [INFO] [stdout] 386 | relative_eq!(sut.indices_dists[1].1, 2.0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `relative_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `Relative::::eq` that must be used [INFO] [stdout] --> src/common/common.rs:387:9 [INFO] [stdout] | [INFO] [stdout] 387 | relative_eq!(sut.indices_dists[2].1, 3.0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `relative_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `Relative::::eq` that must be used [INFO] [stdout] --> src/common/common.rs:388:9 [INFO] [stdout] | [INFO] [stdout] 388 | relative_eq!(sut.indices_dists[3].1, 4.0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `relative_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `Relative::::eq` that must be used [INFO] [stdout] --> src/common/common.rs:430:9 [INFO] [stdout] | [INFO] [stdout] 430 | relative_eq!(sut.radius, 10.0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `relative_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `Relative::::eq` that must be used [INFO] [stdout] --> src/common/common.rs:442:9 [INFO] [stdout] | [INFO] [stdout] 442 | relative_eq!(sut.worst_item().1, 10.0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `relative_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> benches/nearest_neighbours.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | let mut parser = parser::Parser::::new(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> benches/nearest_neighbours.rs:82:9 [INFO] [stdout] | [INFO] [stdout] 82 | let mut kd_tree = kd_tree::KdTree::build_by_ordered_float(kd_tree_data.clone()); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `setup_dataset_for_kiddo` is never used [INFO] [stdout] --> benches/nearest_neighbours.rs:60:4 [INFO] [stdout] | [INFO] [stdout] 60 | fn setup_dataset_for_kiddo(vertices: Vec) -> Vec<[f64; 3]> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 29.92s [INFO] running `Command { std: "docker" "inspect" "099b36096534124516b73db0a6d634f9a6ddcb0a5dc01ff6a1d801ae3d8c1679", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "099b36096534124516b73db0a6d634f9a6ddcb0a5dc01ff6a1d801ae3d8c1679", kill_on_drop: false }` [INFO] [stdout] 099b36096534124516b73db0a6d634f9a6ddcb0a5dc01ff6a1d801ae3d8c1679