[INFO] fetching crate rml 0.1.1... [INFO] testing rml-0.1.1 against master#caccb4d0368bd918ef6668af8e13834d07040417 for pr-146098-1 [INFO] extracting crate rml 0.1.1 into /workspace/builds/worker-7-tc1/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-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate rml 0.1.1 on toolchain caccb4d0368bd918ef6668af8e13834d07040417 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "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" "+caccb4d0368bd918ef6668af8e13834d07040417" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded crossbeam-deque v0.8.1 [INFO] [stderr] Downloaded serde v1.0.127 [INFO] [stderr] Downloaded bstr v0.2.16 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3d4c23a610d7f1635c105a570816bf2911263d0245a43850377040f2233cb94b [INFO] running `Command { std: "docker" "start" "-a" "3d4c23a610d7f1635c105a570816bf2911263d0245a43850377040f2233cb94b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3d4c23a610d7f1635c105a570816bf2911263d0245a43850377040f2233cb94b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3d4c23a610d7f1635c105a570816bf2911263d0245a43850377040f2233cb94b", kill_on_drop: false }` [INFO] [stdout] 3d4c23a610d7f1635c105a570816bf2911263d0245a43850377040f2233cb94b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6660be63f39facdf87cb2d15612c2bea1fb086cbed9defbcee217553609da577 [INFO] running `Command { std: "docker" "start" "-a" "6660be63f39facdf87cb2d15612c2bea1fb086cbed9defbcee217553609da577", kill_on_drop: false }` [INFO] [stderr] Compiling crossbeam-utils v0.8.5 [INFO] [stderr] Compiling memoffset v0.6.4 [INFO] [stderr] Compiling libc v0.2.100 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling crossbeam-epoch v0.9.5 [INFO] [stderr] Compiling serde v1.0.127 [INFO] [stderr] Compiling rayon-core v1.9.1 [INFO] [stderr] Compiling rayon v1.5.1 [INFO] [stderr] Compiling regex-automata v0.1.10 [INFO] [stderr] Compiling either v1.6.1 [INFO] [stderr] Compiling crossbeam-channel v0.5.1 [INFO] [stderr] Compiling csv-core v0.1.10 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling crossbeam-deque v0.8.1 [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 7.04s [INFO] running `Command { std: "docker" "inspect" "6660be63f39facdf87cb2d15612c2bea1fb086cbed9defbcee217553609da577", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6660be63f39facdf87cb2d15612c2bea1fb086cbed9defbcee217553609da577", kill_on_drop: false }` [INFO] [stdout] 6660be63f39facdf87cb2d15612c2bea1fb086cbed9defbcee217553609da577 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3fd7b321c6541814c5235411a2f5ca10c0e70ea829af9008deaddb340dc48adf [INFO] running `Command { std: "docker" "start" "-a" "3fd7b321c6541814c5235411a2f5ca10c0e70ea829af9008deaddb340dc48adf", 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.58s [INFO] running `Command { std: "docker" "inspect" "3fd7b321c6541814c5235411a2f5ca10c0e70ea829af9008deaddb340dc48adf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3fd7b321c6541814c5235411a2f5ca10c0e70ea829af9008deaddb340dc48adf", kill_on_drop: false }` [INFO] [stdout] 3fd7b321c6541814c5235411a2f5ca10c0e70ea829af9008deaddb340dc48adf [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 576f1a67cbb73bff0955377f19b396515f737c2e34fb7155655a8ca3bbe7b9fa [INFO] running `Command { std: "docker" "start" "-a" "576f1a67cbb73bff0955377f19b396515f737c2e34fb7155655a8ca3bbe7b9fa", kill_on_drop: false }` [INFO] [stderr] warning: unnecessary parentheses around closure body [INFO] [stdout] [INFO] [stderr] --> src/math/distance.rs:37:56 [INFO] [stdout] running 7 tests [INFO] [stderr] | [INFO] [stdout] test math::distance::tests::euclidean_distance_test ... ok [INFO] [stderr] 37 | let distance: f64 = q.iter().zip(p).map(|(&q, &p)| (f64::powi(q - p, 2))).sum(); [INFO] [stdout] test math::norm::tests::l1_norm_test ... ok [INFO] [stderr] | ^ ^ [INFO] [stdout] test math::norm::tests::normalize_vector_test ... ok [INFO] [stderr] | [INFO] [stdout] test math::distance::tests::manhattan_distance_test ... ok [INFO] [stderr] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] test knn::tests::normalize_data_test ... ok [INFO] [stderr] help: remove these parentheses [INFO] [stdout] test math::norm::tests::l2_norm_test ... ok [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.03s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/rml-9fd48c0b27896de1) [INFO] [stderr] Doc-tests rml [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.01s [INFO] [stdout] [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/distance.rs - math::distance::manhattan_distance (line 48) ... 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/knn.rs - knn (line 23) ... FAILED [INFO] [stdout] test src/math/norm.rs - math::norm::l1_norm (line 41) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [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/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/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] ---- 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] [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.25s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "576f1a67cbb73bff0955377f19b396515f737c2e34fb7155655a8ca3bbe7b9fa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "576f1a67cbb73bff0955377f19b396515f737c2e34fb7155655a8ca3bbe7b9fa", kill_on_drop: false }` [INFO] [stdout] 576f1a67cbb73bff0955377f19b396515f737c2e34fb7155655a8ca3bbe7b9fa