[INFO] fetching crate rml 0.1.1... [INFO] testing rml-0.1.1 against try#b83b707f97d809763b7861afa7638871f3339a33 for pr-145838-1 [INFO] extracting crate rml 0.1.1 into /workspace/builds/worker-7-tc2/source [INFO] started tweaking crates.io crate rml 0.1.1 [INFO] removed 1 missing examples [INFO] finished tweaking crates.io crate rml 0.1.1 [INFO] tweaked toml for crates.io crate rml 0.1.1 written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate rml 0.1.1 on toolchain b83b707f97d809763b7861afa7638871f3339a33 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate rml 0.1.1 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" "+b83b707f97d809763b7861afa7638871f3339a33" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1261523cded5a3072a35b9605f8261a8b9d49b71c1708250dcad171711debc9e [INFO] running `Command { std: "docker" "start" "-a" "1261523cded5a3072a35b9605f8261a8b9d49b71c1708250dcad171711debc9e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1261523cded5a3072a35b9605f8261a8b9d49b71c1708250dcad171711debc9e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1261523cded5a3072a35b9605f8261a8b9d49b71c1708250dcad171711debc9e", kill_on_drop: false }` [INFO] [stdout] 1261523cded5a3072a35b9605f8261a8b9d49b71c1708250dcad171711debc9e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 48ac488999c37567117691fd8e77bebc12a86987d65eb344ea93b4dda9294fdd [INFO] running `Command { std: "docker" "start" "-a" "48ac488999c37567117691fd8e77bebc12a86987d65eb344ea93b4dda9294fdd", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling crossbeam-utils v0.8.5 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling crossbeam-epoch v0.9.5 [INFO] [stderr] Compiling libc v0.2.100 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling rayon-core v1.9.1 [INFO] [stderr] Compiling serde v1.0.127 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling regex-automata v0.1.10 [INFO] [stderr] Compiling itoa v0.4.7 [INFO] [stderr] Compiling either v1.6.1 [INFO] [stderr] Compiling memoffset v0.6.4 [INFO] [stderr] Compiling rayon v1.5.1 [INFO] [stderr] Compiling crossbeam-channel v0.5.1 [INFO] [stderr] Compiling csv-core v0.1.10 [INFO] [stderr] Compiling crossbeam-deque v0.8.1 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling bstr v0.2.16 [INFO] [stderr] Compiling csv v1.1.6 [INFO] [stderr] Compiling rml v0.1.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> src/math/distance.rs:37:56 [INFO] [stdout] | [INFO] [stdout] 37 | let distance: f64 = q.iter().zip(p).map(|(&q, &p)| (f64::powi(q - p, 2))).sum(); [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] 37 - let distance: f64 = q.iter().zip(p).map(|(&q, &p)| (f64::powi(q - p, 2))).sum(); [INFO] [stdout] 37 + let distance: f64 = q.iter().zip(p).map(|(&q, &p)| f64::powi(q - p, 2)).sum(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.88s [INFO] running `Command { std: "docker" "inspect" "48ac488999c37567117691fd8e77bebc12a86987d65eb344ea93b4dda9294fdd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "48ac488999c37567117691fd8e77bebc12a86987d65eb344ea93b4dda9294fdd", kill_on_drop: false }` [INFO] [stdout] 48ac488999c37567117691fd8e77bebc12a86987d65eb344ea93b4dda9294fdd [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a4860e8a997cb3bd8966d90b810d07a4acdaf5a0de7b58d14d243266036f981b [INFO] running `Command { std: "docker" "start" "-a" "a4860e8a997cb3bd8966d90b810d07a4acdaf5a0de7b58d14d243266036f981b", kill_on_drop: false }` [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> src/math/distance.rs:37:56 [INFO] [stdout] | [INFO] [stdout] 37 | let distance: f64 = q.iter().zip(p).map(|(&q, &p)| (f64::powi(q - p, 2))).sum(); [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] 37 - let distance: f64 = q.iter().zip(p).map(|(&q, &p)| (f64::powi(q - p, 2))).sum(); [INFO] [stdout] 37 + let distance: f64 = q.iter().zip(p).map(|(&q, &p)| f64::powi(q - p, 2)).sum(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling rml v0.1.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> src/math/distance.rs:37:56 [INFO] [stdout] | [INFO] [stdout] 37 | let distance: f64 = q.iter().zip(p).map(|(&q, &p)| (f64::powi(q - p, 2))).sum(); [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] 37 - let distance: f64 = q.iter().zip(p).map(|(&q, &p)| (f64::powi(q - p, 2))).sum(); [INFO] [stdout] 37 + let distance: f64 = q.iter().zip(p).map(|(&q, &p)| f64::powi(q - p, 2)).sum(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.39s [INFO] running `Command { std: "docker" "inspect" "a4860e8a997cb3bd8966d90b810d07a4acdaf5a0de7b58d14d243266036f981b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a4860e8a997cb3bd8966d90b810d07a4acdaf5a0de7b58d14d243266036f981b", kill_on_drop: false }` [INFO] [stdout] a4860e8a997cb3bd8966d90b810d07a4acdaf5a0de7b58d14d243266036f981b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 8ff38ccb0eaa3a805f08f8f6afaf561629b734f52b77fb57c752fb8907cb3e65 [INFO] running `Command { std: "docker" "start" "-a" "8ff38ccb0eaa3a805f08f8f6afaf561629b734f52b77fb57c752fb8907cb3e65", kill_on_drop: false }` [INFO] [stderr] warning: unnecessary parentheses around closure body [INFO] [stderr] --> src/math/distance.rs:37:56 [INFO] [stderr] | [INFO] [stderr] 37 | let distance: f64 = q.iter().zip(p).map(|(&q, &p)| (f64::powi(q - p, 2))).sum(); [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 37 - let distance: f64 = q.iter().zip(p).map(|(&q, &p)| (f64::powi(q - p, 2))).sum(); [INFO] [stderr] 37 + let distance: f64 = q.iter().zip(p).map(|(&q, &p)| f64::powi(q - p, 2)).sum(); [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: `rml` (lib) generated 1 warning (run `cargo fix --lib -p rml` to apply 1 suggestion) [INFO] [stderr] warning: `rml` (lib test) generated 1 warning (1 duplicate) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.02s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/rml-9fd48c0b27896de1) [INFO] [stdout] [INFO] [stdout] running 7 tests [INFO] [stdout] test knn::tests::normalize_data_test ... ok [INFO] [stdout] test math::distance::tests::manhattan_distance_test ... ok [INFO] [stdout] test math::norm::tests::l1_norm_test ... ok [INFO] [stdout] test math::distance::tests::euclidean_distance_test ... ok [INFO] [stdout] test math::norm::tests::normalize_vector_test ... ok [INFO] [stdout] test math::norm::tests::l2_norm_test ... ok [INFO] [stdout] test knn::tests::calculate_distances_test ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 7 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests rml [INFO] [stderr] warning: unnecessary parentheses around closure body [INFO] [stderr] --> src/math/distance.rs:37:56 [INFO] [stderr] | [INFO] [stderr] 37 | let distance: f64 = q.iter().zip(p).map(|(&q, &p)| (f64::powi(q - p, 2))).sum(); [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 37 - let distance: f64 = q.iter().zip(p).map(|(&q, &p)| (f64::powi(q - p, 2))).sum(); [INFO] [stderr] 37 + let distance: f64 = q.iter().zip(p).map(|(&q, &p)| f64::powi(q - p, 2)).sum(); [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: 1 warning emitted [INFO] [stderr] [INFO] [stdout] [INFO] [stdout] running 6 tests [INFO] [stdout] test src/math/norm.rs - math::norm::l1_norm (line 41) ... FAILED [INFO] [stdout] test src/math/norm.rs - math::norm::normalize_vector (line 53) ... FAILED [INFO] [stdout] test src/math/distance.rs - math::distance::euclidean_distance (line 31) ... FAILED [INFO] [stdout] test src/math/norm.rs - math::norm::l2_norm (line 29) ... FAILED [INFO] [stdout] test src/math/distance.rs - math::distance::manhattan_distance (line 48) ... FAILED [INFO] [stdout] test src/knn.rs - knn (line 23) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/math/norm.rs - math::norm::l1_norm (line 41) stdout ---- [INFO] [stdout] error[E0425]: cannot find function `l1_norm` in this scope [INFO] [stdout] --> src/math/norm.rs:43:16 [INFO] [stdout] | [INFO] [stdout] 4 | println!("{}", l1_norm(&p)); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use rml::math::norm::l1_norm; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/math/norm.rs - math::norm::normalize_vector (line 53) stdout ---- [INFO] [stdout] error[E0425]: cannot find function `normalize_vector` in this scope [INFO] [stdout] --> src/math/norm.rs:55:18 [INFO] [stdout] | [INFO] [stdout] 4 | println!("{:?}", normalize_vector(&mut p, &Norm::L2)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use rml::math::norm::normalize_vector; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Norm` [INFO] [stdout] --> src/math/norm.rs:55:44 [INFO] [stdout] | [INFO] [stdout] 4 | println!("{:?}", normalize_vector(&mut p, &Norm::L2)); [INFO] [stdout] | ^^^^ use of undeclared type `Norm` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use rml::math::norm::Norm; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/math/distance.rs - math::distance::euclidean_distance (line 31) stdout ---- [INFO] [stdout] error[E0425]: cannot find function `euclidean_distance` in this scope [INFO] [stdout] --> src/math/distance.rs:34:16 [INFO] [stdout] | [INFO] [stdout] 5 | println!("{}", euclidean_distance(&x, &y)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use rml::math::distance::euclidean_distance; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/math/norm.rs - math::norm::l2_norm (line 29) stdout ---- [INFO] [stdout] error[E0425]: cannot find function `l2_norm` in this scope [INFO] [stdout] --> src/math/norm.rs:31:16 [INFO] [stdout] | [INFO] [stdout] 4 | println!("{}", l2_norm(&p)); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use rml::math::norm::l2_norm; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/math/distance.rs - math::distance::manhattan_distance (line 48) stdout ---- [INFO] [stdout] error[E0425]: cannot find function `manhattan_distance` in this scope [INFO] [stdout] --> src/math/distance.rs:51:16 [INFO] [stdout] | [INFO] [stdout] 5 | println!("{}", manhattan_distance(&x, &y)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use rml::math::distance::manhattan_distance; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/knn.rs - knn (line 23) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `CSVOutput` in this scope [INFO] [stdout] --> src/knn.rs:27:20 [INFO] [stdout] | [INFO] [stdout] 6 | let training_data: CSVOutput = (Vec::new, Vec::new); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `CSVOutput` in this scope [INFO] [stdout] --> src/knn.rs:28:19 [INFO] [stdout] | [INFO] [stdout] 7 | let testing_data: CSVOutput = (Vec::new, Vec::new); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `knn` [INFO] [stdout] --> src/knn.rs:31:11 [INFO] [stdout] | [INFO] [stdout] 10 | let knn = knn::KNN::new( [INFO] [stdout] | ^^^ use of unresolved module or unlinked crate `knn` [INFO] [stdout] | [INFO] [stdout] help: to make use of source file src/knn.rs, use `mod knn` in this file to declare the module [INFO] [stdout] | [INFO] [stdout] 2 + mod knn; [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use rml::knn::KNN; [INFO] [stdout] | [INFO] [stdout] help: if you import `KNN`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 10 - let knn = knn::KNN::new( [INFO] [stdout] 10 + let knn = KNN::new( [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `math` [INFO] [stdout] --> src/knn.rs:36:6 [INFO] [stdout] | [INFO] [stdout] 15 | Some(math::norm::Norm::L2), // L2 Normalization [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `math` [INFO] [stdout] | [INFO] [stdout] help: to make use of source file src/math/mod.rs, use `mod math` in this file to declare the module [INFO] [stdout] | [INFO] [stdout] 2 + mod math; [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use rml::math::norm::Norm; [INFO] [stdout] | [INFO] [stdout] help: if you import `Norm`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 15 - Some(math::norm::Norm::L2), // L2 Normalization [INFO] [stdout] 15 + Some(Norm::L2), // L2 Normalization [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/knn.rs - knn (line 23) [INFO] [stdout] src/math/distance.rs - math::distance::euclidean_distance (line 31) [INFO] [stdout] src/math/distance.rs - math::distance::manhattan_distance (line 48) [INFO] [stdout] src/math/norm.rs - math::norm::l1_norm (line 41) [INFO] [stdout] src/math/norm.rs - math::norm::l2_norm (line 29) [INFO] [stdout] src/math/norm.rs - math::norm::normalize_vector (line 53) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 6 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.06s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "8ff38ccb0eaa3a805f08f8f6afaf561629b734f52b77fb57c752fb8907cb3e65", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8ff38ccb0eaa3a805f08f8f6afaf561629b734f52b77fb57c752fb8907cb3e65", kill_on_drop: false }` [INFO] [stdout] 8ff38ccb0eaa3a805f08f8f6afaf561629b734f52b77fb57c752fb8907cb3e65