[INFO] cloning repository https://github.com/ademinn/ml [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ademinn/ml" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fademinn%2Fml", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fademinn%2Fml'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 322a469c4595060d6045e25b3e16646129e375f5 [INFO] checking ademinn/ml against master#a609fb45efad59dfd459c76e50899be9f0583b5a for pr-80579 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fademinn%2Fml" "/workspace/builds/worker-2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ademinn/ml on toolchain a609fb45efad59dfd459c76e50899be9f0583b5a [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ademinn/ml [INFO] removed path dependency common from git repo https://github.com/ademinn/ml [INFO] finished tweaking git repo https://github.com/ademinn/ml [INFO] tweaked toml for git repo https://github.com/ademinn/ml written to /workspace/builds/worker-2/source/Cargo.toml [INFO] crate git repo https://github.com/ademinn/ml already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: dependency (common) specified without providing a local path, Git repository, or version to use. This will be considered an error in future versions [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] error: the lock file /workspace/builds/worker-2/source/Cargo.lock needs to be updated but --locked was passed to prevent this [INFO] [stderr] If you want to try to generate the lock file without accessing the network, use the --offline flag. [INFO] the lockfile is outdated, regenerating it [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating git repository `https://github.com/GuillaumeGomez/rust-GSL.git` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: dependency (common) specified without providing a local path, Git repository, or version to use. This will be considered an error in future versions [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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" "rustops/crates-build-env@sha256:c8ac004eab7d63a0ad09a2dde3d3353ba464f767bee4de425dc8f74c46a1905e" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] eef293ad0e176dbf71064cb39f33830b44da3d1d46e3f3de6b82aa0c8234f595 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "eef293ad0e176dbf71064cb39f33830b44da3d1d46e3f3de6b82aa0c8234f595", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "eef293ad0e176dbf71064cb39f33830b44da3d1d46e3f3de6b82aa0c8234f595", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "eef293ad0e176dbf71064cb39f33830b44da3d1d46e3f3de6b82aa0c8234f595", kill_on_drop: false }` [INFO] [stdout] eef293ad0e176dbf71064cb39f33830b44da3d1d46e3f3de6b82aa0c8234f595 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:c8ac004eab7d63a0ad09a2dde3d3353ba464f767bee4de425dc8f74c46a1905e" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 890927bad59cd536916cc112fee1b6e8efa79943415f4f6011dad7262961d562 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "890927bad59cd536916cc112fee1b6e8efa79943415f4f6011dad7262961d562", kill_on_drop: false }` [INFO] [stderr] warning: dependency (common) specified without providing a local path, Git repository, or version to use. This will be considered an error in future versions [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling serde v1.0.118 [INFO] [stderr] Compiling syn v1.0.57 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Compiling typenum v1.12.0 [INFO] [stderr] Compiling libc v0.2.81 [INFO] [stderr] Compiling serde_derive v1.0.118 [INFO] [stderr] Checking bs58 v0.2.5 [INFO] [stderr] Compiling paste v1.0.4 [INFO] [stderr] Compiling GSL-sys v2.0.1 (https://github.com/GuillaumeGomez/rust-GSL.git#689d1bf2) [INFO] [stderr] Compiling quote v1.0.8 [INFO] [stderr] Checking GSL v3.0.0 (https://github.com/GuillaumeGomez/rust-GSL.git#689d1bf2) [INFO] [stderr] Checking generic-array v0.12.3 [INFO] [stderr] Checking bincode v1.3.1 [INFO] [stderr] Checking common v0.1.0 [INFO] [stderr] Checking ml v0.0.1 (/opt/rustwide/workdir) [INFO] [stdout] error: expected type, found `|` [INFO] [stdout] --> src/knn/main.rs:26:70 [INFO] [stdout] | [INFO] [stdout] 26 | fn solve(points: &vec::Vec>, point: &Point, dist: |&Point, &Point| -> f64, k: uint) -> i32 { [INFO] [stdout] | ^ expected type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected parameter name, found `->` [INFO] [stdout] --> src/knn/main.rs:26:87 [INFO] [stdout] | [INFO] [stdout] 26 | fn solve(points: &vec::Vec>, point: &Point, dist: |&Point, &Point| -> f64, k: uint) -> i32 { [INFO] [stdout] | ------ ^^ expected parameter name [INFO] [stdout] | | [INFO] [stdout] | while parsing this or-pattern starting here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: invalid suffix `u` for number literal [INFO] [stdout] --> src/knn/main.rs:38:55 [INFO] [stdout] | [INFO] [stdout] 38 | Some(x) => { counter.insert(*cluster, x + 1u); } [INFO] [stdout] | ^^ invalid suffix `u` [INFO] [stdout] | [INFO] [stdout] = help: the suffix must be one of the numeric types (`u32`, `isize`, `f32`, etc.) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: invalid suffix `u` for number literal [INFO] [stdout] --> src/knn/main.rs:39:48 [INFO] [stdout] | [INFO] [stdout] 39 | None => { counter.insert(*cluster, 1u); } [INFO] [stdout] | ^^ invalid suffix `u` [INFO] [stdout] | [INFO] [stdout] = help: the suffix must be one of the numeric types (`u32`, `isize`, `f32`, etc.) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: invalid suffix `u` for number literal [INFO] [stdout] --> src/knn/main.rs:59:29 [INFO] [stdout] | [INFO] [stdout] 59 | let mut success_count = 0u; [INFO] [stdout] | ^^ invalid suffix `u` [INFO] [stdout] | [INFO] [stdout] = help: the suffix must be one of the numeric types (`u32`, `isize`, `f32`, etc.) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: invalid suffix `u` for number literal [INFO] [stdout] --> src/knn/main.rs:60:20 [INFO] [stdout] | [INFO] [stdout] 60 | for i in range(0u, mut_points.len()) { [INFO] [stdout] | ^^ invalid suffix `u` [INFO] [stdout] | [INFO] [stdout] = help: the suffix must be one of the numeric types (`u32`, `isize`, `f32`, etc.) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: invalid suffix `u` for number literal [INFO] [stdout] --> src/knn/main.rs:91:20 [INFO] [stdout] | [INFO] [stdout] 91 | for k in range(1u, points.len()) { [INFO] [stdout] | ^^ invalid suffix `u` [INFO] [stdout] | [INFO] [stdout] = help: the suffix must be one of the numeric types (`u32`, `isize`, `f32`, etc.) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::io::BufferedReader` [INFO] [stdout] --> src/knn/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::BufferedReader; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ no `BufferedReader` in `io` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::io::File` [INFO] [stdout] --> src/knn/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::File; [INFO] [stdout] | ^^^^^^^^^^^^^ no `File` in `io` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::num::Float` [INFO] [stdout] --> src/knn/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::num::Float; [INFO] [stdout] | ^^^^^^^^^^^^^^^ no `Float` in `num` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::uint` [INFO] [stdout] --> src/knn/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::uint; [INFO] [stdout] | ^^^^^---- [INFO] [stdout] | | | [INFO] [stdout] | | help: a similar name exists in the module: `hint` [INFO] [stdout] | no `uint` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::rand` [INFO] [stdout] --> src/linear/main.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | use std::rand::{task_rng, Rng}; [INFO] [stdout] | ^^^^ could not find `rand` in `std` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::io::BufferedReader` [INFO] [stdout] --> src/linear/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::io::BufferedReader; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ no `BufferedReader` in `io` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::io::File` [INFO] [stdout] --> src/linear/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::io::File; [INFO] [stdout] | ^^^^^^^^^^^^^ no `File` in `io` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::num::Float` [INFO] [stdout] --> src/linear/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::num::Float; [INFO] [stdout] | ^^^^^^^^^^^^^^^ no `Float` in `num` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::rand` [INFO] [stdout] --> src/linear/main.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | use std::rand::{task_rng, Rng}; [INFO] [stdout] | ^^^^ could not find `rand` in `std` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::io::BufferedReader` [INFO] [stdout] --> src/linear/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::io::BufferedReader; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ no `BufferedReader` in `io` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `rgsl::cblas::Transpose` [INFO] [stdout] --> src/linear/main.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use rgsl::cblas::Transpose; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ no `Transpose` in `cblas` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::io::File` [INFO] [stdout] --> src/linear/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::io::File; [INFO] [stdout] | ^^^^^^^^^^^^^ no `File` in `io` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `common::gradient_descent` [INFO] [stdout] --> src/linear/main.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use common::gradient_descent; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ no `gradient_descent` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::num::Float` [INFO] [stdout] --> src/linear/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::num::Float; [INFO] [stdout] | ^^^^^^^^^^^^^^^ no `Float` in `num` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `rgsl::cblas::Transpose` [INFO] [stdout] --> src/linear/main.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use rgsl::cblas::Transpose; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ no `Transpose` in `cblas` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `common::gradient_descent` [INFO] [stdout] --> src/linear/main.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use common::gradient_descent; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ no `gradient_descent` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected type, found `|` [INFO] [stdout] --> src/knn/main.rs:26:70 [INFO] [stdout] | [INFO] [stdout] 26 | fn solve(points: &vec::Vec>, point: &Point, dist: |&Point, &Point| -> f64, k: uint) -> i32 { [INFO] [stdout] | ^ expected type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected parameter name, found `->` [INFO] [stdout] --> src/knn/main.rs:26:87 [INFO] [stdout] | [INFO] [stdout] 26 | fn solve(points: &vec::Vec>, point: &Point, dist: |&Point, &Point| -> f64, k: uint) -> i32 { [INFO] [stdout] | ------ ^^ expected parameter name [INFO] [stdout] | | [INFO] [stdout] | while parsing this or-pattern starting here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: invalid suffix `u` for number literal [INFO] [stdout] --> src/knn/main.rs:38:55 [INFO] [stdout] | [INFO] [stdout] 38 | Some(x) => { counter.insert(*cluster, x + 1u); } [INFO] [stdout] | ^^ invalid suffix `u` [INFO] [stdout] | [INFO] [stdout] = help: the suffix must be one of the numeric types (`u32`, `isize`, `f32`, etc.) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: invalid suffix `u` for number literal [INFO] [stdout] --> src/knn/main.rs:39:48 [INFO] [stdout] | [INFO] [stdout] 39 | None => { counter.insert(*cluster, 1u); } [INFO] [stdout] | ^^ invalid suffix `u` [INFO] [stdout] | [INFO] [stdout] = help: the suffix must be one of the numeric types (`u32`, `isize`, `f32`, etc.) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: invalid suffix `u` for number literal [INFO] [stdout] --> src/knn/main.rs:59:29 [INFO] [stdout] | [INFO] [stdout] 59 | let mut success_count = 0u; [INFO] [stdout] | ^^ invalid suffix `u` [INFO] [stdout] | [INFO] [stdout] = help: the suffix must be one of the numeric types (`u32`, `isize`, `f32`, etc.) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: invalid suffix `u` for number literal [INFO] [stdout] --> src/knn/main.rs:60:20 [INFO] [stdout] | [INFO] [stdout] 60 | for i in range(0u, mut_points.len()) { [INFO] [stdout] | ^^ invalid suffix `u` [INFO] [stdout] | [INFO] [stdout] = help: the suffix must be one of the numeric types (`u32`, `isize`, `f32`, etc.) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: invalid suffix `u` for number literal [INFO] [stdout] --> src/knn/main.rs:91:20 [INFO] [stdout] | [INFO] [stdout] 91 | for k in range(1u, points.len()) { [INFO] [stdout] | ^^ invalid suffix `u` [INFO] [stdout] | [INFO] [stdout] = help: the suffix must be one of the numeric types (`u32`, `isize`, `f32`, etc.) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `deriving` in this scope [INFO] [stdout] --> src/knn/main.rs:10:3 [INFO] [stdout] | [INFO] [stdout] 10 | #[deriving(Show)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `deriving` in this scope [INFO] [stdout] --> src/knn/main.rs:16:3 [INFO] [stdout] | [INFO] [stdout] 16 | #[deriving(Show)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::io::BufferedReader` [INFO] [stdout] --> src/knn/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::BufferedReader; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ no `BufferedReader` in `io` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::io::File` [INFO] [stdout] --> src/knn/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::File; [INFO] [stdout] | ^^^^^^^^^^^^^ no `File` in `io` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::num::Float` [INFO] [stdout] --> src/knn/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::num::Float; [INFO] [stdout] | ^^^^^^^^^^^^^^^ no `Float` in `num` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::uint` [INFO] [stdout] --> src/knn/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::uint; [INFO] [stdout] | ^^^^^---- [INFO] [stdout] | | | [INFO] [stdout] | | help: a similar name exists in the module: `hint` [INFO] [stdout] | no `uint` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `range` in this scope [INFO] [stdout] --> src/linear/main.rs:27:14 [INFO] [stdout] | [INFO] [stdout] 27 | for i in range(0, v.len()) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `args` in module `os` [INFO] [stdout] --> src/linear/main.rs:47:20 [INFO] [stdout] | [INFO] [stdout] 47 | let args = os::args(); [INFO] [stdout] | ^^^^ not found in `os` [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 4 | use std::env::args; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Path` [INFO] [stdout] --> src/linear/main.rs:49:16 [INFO] [stdout] | [INFO] [stdout] 49 | let path = Path::new(args[1].clone()); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 4 | use std::path::Path; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: invalid suffix `u` for number literal [INFO] [stdout] --> src/logistic/main.rs:110:29 [INFO] [stdout] | [INFO] [stdout] 110 | let mut success_count = 0u; [INFO] [stdout] | ^^ invalid suffix `u` [INFO] [stdout] | [INFO] [stdout] = help: the suffix must be one of the numeric types (`u32`, `isize`, `f32`, etc.) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `from_str` in this scope [INFO] [stdout] --> src/linear/main.rs:62:23 [INFO] [stdout] | [INFO] [stdout] 62 | let x1_elem = from_str::(elems[0]).unwrap(); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `from_str` in this scope [INFO] [stdout] --> src/linear/main.rs:63:23 [INFO] [stdout] | [INFO] [stdout] 63 | let x2_elem = from_str::(elems[1]).unwrap(); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: invalid suffix `u` for number literal [INFO] [stdout] --> src/logistic/main.rs:113:30 [INFO] [stdout] | [INFO] [stdout] 113 | success_count += 1u; [INFO] [stdout] | ^^ invalid suffix `u` [INFO] [stdout] | [INFO] [stdout] = help: the suffix must be one of the numeric types (`u32`, `isize`, `f32`, etc.) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `from_str` in this scope [INFO] [stdout] --> src/linear/main.rs:64:22 [INFO] [stdout] | [INFO] [stdout] 64 | let y_elem = from_str::(elems[2].trim()).unwrap(); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `uint` in this scope [INFO] [stdout] --> src/linear/main.rs:76:62 [INFO] [stdout] | [INFO] [stdout] 76 | let (teach, validate) = data_slice.split_at(teach_len as uint); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `range` in this scope [INFO] [stdout] --> src/linear/main.rs:90:18 [INFO] [stdout] | [INFO] [stdout] 90 | for i in range(0, dim) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `range` in this scope [INFO] [stdout] --> src/linear/main.rs:106:14 [INFO] [stdout] | [INFO] [stdout] 106 | for i in range(0, validate_len) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Ordering` in this scope [INFO] [stdout] --> src/knn/main.rs:28:40 [INFO] [stdout] | [INFO] [stdout] 28 | sorted.sort_by(|ref p1, ref p2| -> Ordering { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use std::cmp::Ordering; [INFO] [stdout] | [INFO] [stdout] 1 | use std::sync::atomic::Ordering; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `dist` in this scope [INFO] [stdout] --> src/knn/main.rs:29:15 [INFO] [stdout] | [INFO] [stdout] 29 | match dist(&p1.point, point).partial_cmp(&dist(&p2.point, point)) { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `dist` in this scope [INFO] [stdout] --> src/knn/main.rs:29:51 [INFO] [stdout] | [INFO] [stdout] 29 | match dist(&p1.point, point).partial_cmp(&dist(&p2.point, point)) { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `range` in this scope [INFO] [stdout] --> src/knn/main.rs:60:14 [INFO] [stdout] | [INFO] [stdout] 60 | for i in range(0u, mut_points.len()) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `args` in module `os` [INFO] [stdout] --> src/knn/main.rs:72:20 [INFO] [stdout] | [INFO] [stdout] 72 | let args = os::args(); [INFO] [stdout] | ^^^^ not found in `os` [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use std::env::args; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Path` [INFO] [stdout] --> src/knn/main.rs:74:16 [INFO] [stdout] | [INFO] [stdout] 74 | let path = Path::new(args[1].clone()); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use std::path::Path; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `from_str` in this scope [INFO] [stdout] --> src/knn/main.rs:83:17 [INFO] [stdout] | [INFO] [stdout] 83 | let x = from_str::(elems[0]).unwrap(); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `from_str` in this scope [INFO] [stdout] --> src/knn/main.rs:84:17 [INFO] [stdout] | [INFO] [stdout] 84 | let y = from_str::(elems[1]).unwrap(); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `from_str` in this scope [INFO] [stdout] --> src/knn/main.rs:85:23 [INFO] [stdout] | [INFO] [stdout] 85 | let cluster = from_str::(elems[2].trim()).unwrap(); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `range` in this scope [INFO] [stdout] --> src/knn/main.rs:91:14 [INFO] [stdout] | [INFO] [stdout] 91 | for k in range(1u, points.len()) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/linear/main.rs:34:29 [INFO] [stdout] | [INFO] [stdout] 34 | let x0 = VectorF64::new(data.len() as u64).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ expected `usize`, found `u64` [INFO] [stdout] | [INFO] [stdout] help: you can convert a `u64` to a `usize` and panic if the converted value doesn't fit [INFO] [stdout] | [INFO] [stdout] 34 | let x0 = VectorF64::new((data.len() as u64).try_into().unwrap()).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: invalid suffix `u` for number literal [INFO] [stdout] --> src/logistic/main.rs:110:29 [INFO] [stdout] | [INFO] [stdout] 110 | let mut success_count = 0u; [INFO] [stdout] | ^^ invalid suffix `u` [INFO] [stdout] | [INFO] [stdout] = help: the suffix must be one of the numeric types (`u32`, `isize`, `f32`, etc.) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: invalid suffix `u` for number literal [INFO] [stdout] --> src/logistic/main.rs:113:30 [INFO] [stdout] | [INFO] [stdout] 113 | success_count += 1u; [INFO] [stdout] | ^^ invalid suffix `u` [INFO] [stdout] | [INFO] [stdout] = help: the suffix must be one of the numeric types (`u32`, `isize`, `f32`, etc.) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/linear/main.rs:39:28 [INFO] [stdout] | [INFO] [stdout] 39 | let f = MatrixF64::new(data.len() as u64, 3).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ expected `usize`, found `u64` [INFO] [stdout] | [INFO] [stdout] help: you can convert a `u64` to a `usize` and panic if the converted value doesn't fit [INFO] [stdout] | [INFO] [stdout] 39 | let f = MatrixF64::new((data.len() as u64).try_into().unwrap(), 3).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `deriving` in this scope [INFO] [stdout] --> src/knn/main.rs:10:3 [INFO] [stdout] | [INFO] [stdout] 10 | #[deriving(Show)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `deriving` in this scope [INFO] [stdout] --> src/knn/main.rs:16:3 [INFO] [stdout] | [INFO] [stdout] 16 | #[deriving(Show)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `range` in this scope [INFO] [stdout] --> src/linear/main.rs:27:14 [INFO] [stdout] | [INFO] [stdout] 27 | for i in range(0, v.len()) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `args` in module `os` [INFO] [stdout] --> src/linear/main.rs:47:20 [INFO] [stdout] | [INFO] [stdout] 47 | let args = os::args(); [INFO] [stdout] | ^^^^ not found in `os` [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 4 | use std::env::args; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Path` [INFO] [stdout] --> src/linear/main.rs:49:16 [INFO] [stdout] | [INFO] [stdout] 49 | let path = Path::new(args[1].clone()); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 4 | use std::path::Path; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `from_str` in this scope [INFO] [stdout] --> src/linear/main.rs:62:23 [INFO] [stdout] | [INFO] [stdout] 62 | let x1_elem = from_str::(elems[0]).unwrap(); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `from_str` in this scope [INFO] [stdout] --> src/linear/main.rs:63:23 [INFO] [stdout] | [INFO] [stdout] 63 | let x2_elem = from_str::(elems[1]).unwrap(); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `from_str` in this scope [INFO] [stdout] --> src/linear/main.rs:64:22 [INFO] [stdout] | [INFO] [stdout] 64 | let y_elem = from_str::(elems[2].trim()).unwrap(); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `uint` in this scope [INFO] [stdout] --> src/linear/main.rs:76:62 [INFO] [stdout] | [INFO] [stdout] 76 | let (teach, validate) = data_slice.split_at(teach_len as uint); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `range` in this scope [INFO] [stdout] --> src/linear/main.rs:90:18 [INFO] [stdout] | [INFO] [stdout] 90 | for i in range(0, dim) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `range` in this scope [INFO] [stdout] --> src/linear/main.rs:106:14 [INFO] [stdout] | [INFO] [stdout] 106 | for i in range(0, validate_len) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::rand` [INFO] [stdout] --> src/logistic/main.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | use std::rand::{task_rng, Rng}; [INFO] [stdout] | ^^^^ could not find `rand` in `std` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::io::BufferedReader` [INFO] [stdout] --> src/logistic/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::io::BufferedReader; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ no `BufferedReader` in `io` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::io::File` [INFO] [stdout] --> src/logistic/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::io::File; [INFO] [stdout] | ^^^^^^^^^^^^^ no `File` in `io` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::num::Float` [INFO] [stdout] --> src/logistic/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::num::Float; [INFO] [stdout] | ^^^^^^^^^^^^^^^ no `Float` in `num` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `rgsl::cblas::Transpose` [INFO] [stdout] --> src/logistic/main.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use rgsl::cblas::Transpose; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ no `Transpose` in `cblas` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `common::gradient_descent` [INFO] [stdout] --> src/logistic/main.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use common::gradient_descent; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ no `gradient_descent` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/linear/main.rs:34:29 [INFO] [stdout] | [INFO] [stdout] 34 | let x0 = VectorF64::new(data.len() as u64).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ expected `usize`, found `u64` [INFO] [stdout] | [INFO] [stdout] help: you can convert a `u64` to a `usize` and panic if the converted value doesn't fit [INFO] [stdout] | [INFO] [stdout] 34 | let x0 = VectorF64::new((data.len() as u64).try_into().unwrap()).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/linear/main.rs:39:28 [INFO] [stdout] | [INFO] [stdout] 39 | let f = MatrixF64::new(data.len() as u64, 3).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ expected `usize`, found `u64` [INFO] [stdout] | [INFO] [stdout] help: you can convert a `u64` to a `usize` and panic if the converted value doesn't fit [INFO] [stdout] | [INFO] [stdout] 39 | let f = MatrixF64::new((data.len() as u64).try_into().unwrap(), 3).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::rand` [INFO] [stdout] --> src/logistic/main.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | use std::rand::{task_rng, Rng}; [INFO] [stdout] | ^^^^ could not find `rand` in `std` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::io::BufferedReader` [INFO] [stdout] --> src/logistic/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::io::BufferedReader; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ no `BufferedReader` in `io` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::io::File` [INFO] [stdout] --> src/logistic/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::io::File; [INFO] [stdout] | ^^^^^^^^^^^^^ no `File` in `io` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::num::Float` [INFO] [stdout] --> src/logistic/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::num::Float; [INFO] [stdout] | ^^^^^^^^^^^^^^^ no `Float` in `num` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `rgsl::cblas::Transpose` [INFO] [stdout] --> src/logistic/main.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use rgsl::cblas::Transpose; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ no `Transpose` in `cblas` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `common::gradient_descent` [INFO] [stdout] --> src/logistic/main.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use common::gradient_descent; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ no `gradient_descent` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `args` in module `os` [INFO] [stdout] --> src/logistic/main.rs:42:20 [INFO] [stdout] | [INFO] [stdout] 42 | let args = os::args(); [INFO] [stdout] | ^^^^ not found in `os` [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 4 | use std::env::args; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Path` [INFO] [stdout] --> src/logistic/main.rs:44:16 [INFO] [stdout] | [INFO] [stdout] 44 | let path = Path::new(args[1].clone()); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 4 | use std::path::Path; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `from_str` in this scope [INFO] [stdout] --> src/logistic/main.rs:57:23 [INFO] [stdout] | [INFO] [stdout] 57 | let x1_elem = from_str::(elems[0]).unwrap(); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `from_str` in this scope [INFO] [stdout] --> src/logistic/main.rs:58:23 [INFO] [stdout] | [INFO] [stdout] 58 | let x2_elem = from_str::(elems[1]).unwrap(); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `from_str` in this scope [INFO] [stdout] --> src/logistic/main.rs:59:22 [INFO] [stdout] | [INFO] [stdout] 59 | let y_elem = from_str::(elems[2].trim()).unwrap(); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `uint` in this scope [INFO] [stdout] --> src/logistic/main.rs:71:62 [INFO] [stdout] | [INFO] [stdout] 71 | let (teach, validate) = data_slice.split_at(teach_len as uint); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `range` in this scope [INFO] [stdout] --> src/logistic/main.rs:82:18 [INFO] [stdout] | [INFO] [stdout] 82 | for i in range(0, res_v.len()) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `range` in this scope [INFO] [stdout] --> src/logistic/main.rs:93:18 [INFO] [stdout] | [INFO] [stdout] 93 | for i in range(0, res_v.len()) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `range` in this scope [INFO] [stdout] --> src/logistic/main.rs:96:22 [INFO] [stdout] | [INFO] [stdout] 96 | for j in range(0, dim) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `range` in this scope [INFO] [stdout] --> src/logistic/main.rs:111:14 [INFO] [stdout] | [INFO] [stdout] 111 | for i in range(0, validate_len) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Ordering` in this scope [INFO] [stdout] --> src/knn/main.rs:28:40 [INFO] [stdout] | [INFO] [stdout] 28 | sorted.sort_by(|ref p1, ref p2| -> Ordering { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use std::cmp::Ordering; [INFO] [stdout] | [INFO] [stdout] 1 | use std::sync::atomic::Ordering; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `dist` in this scope [INFO] [stdout] --> src/knn/main.rs:29:15 [INFO] [stdout] | [INFO] [stdout] 29 | match dist(&p1.point, point).partial_cmp(&dist(&p2.point, point)) { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `dist` in this scope [INFO] [stdout] --> src/knn/main.rs:29:51 [INFO] [stdout] | [INFO] [stdout] 29 | match dist(&p1.point, point).partial_cmp(&dist(&p2.point, point)) { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `range` in this scope [INFO] [stdout] --> src/knn/main.rs:60:14 [INFO] [stdout] | [INFO] [stdout] 60 | for i in range(0u, mut_points.len()) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `args` in module `os` [INFO] [stdout] --> src/knn/main.rs:72:20 [INFO] [stdout] | [INFO] [stdout] 72 | let args = os::args(); [INFO] [stdout] | ^^^^ not found in `os` [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use std::env::args; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Path` [INFO] [stdout] --> src/knn/main.rs:74:16 [INFO] [stdout] | [INFO] [stdout] 74 | let path = Path::new(args[1].clone()); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use std::path::Path; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `from_str` in this scope [INFO] [stdout] --> src/knn/main.rs:83:17 [INFO] [stdout] | [INFO] [stdout] 83 | let x = from_str::(elems[0]).unwrap(); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `from_str` in this scope [INFO] [stdout] --> src/knn/main.rs:84:17 [INFO] [stdout] | [INFO] [stdout] 84 | let y = from_str::(elems[1]).unwrap(); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `from_str` in this scope [INFO] [stdout] --> src/knn/main.rs:85:23 [INFO] [stdout] | [INFO] [stdout] 85 | let cluster = from_str::(elems[2].trim()).unwrap(); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `range` in this scope [INFO] [stdout] --> src/knn/main.rs:91:14 [INFO] [stdout] | [INFO] [stdout] 91 | for k in range(1u, points.len()) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `mul` found for enum `Value` in the current scope [INFO] [stdout] --> src/linear/main.rs:92:19 [INFO] [stdout] | [INFO] [stdout] 92 | f_col.mul(&tmp); [INFO] [stdout] | ^^^ method not found in `Value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/logistic/main.rs:20:29 [INFO] [stdout] | [INFO] [stdout] 20 | let x0 = VectorF64::new(n).unwrap(); [INFO] [stdout] | ^ expected `usize`, found `u64` [INFO] [stdout] | [INFO] [stdout] help: you can convert a `u64` to a `usize` and panic if the converted value doesn't fit [INFO] [stdout] | [INFO] [stdout] 20 | let x0 = VectorF64::new(n.try_into().unwrap()).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/logistic/main.rs:31:28 [INFO] [stdout] | [INFO] [stdout] 31 | let f = MatrixF64::new(n, 6).unwrap(); [INFO] [stdout] | ^ expected `usize`, found `u64` [INFO] [stdout] | [INFO] [stdout] help: you can convert a `u64` to a `usize` and panic if the converted value doesn't fit [INFO] [stdout] | [INFO] [stdout] 31 | let f = MatrixF64::new(n.try_into().unwrap(), 6).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/logistic/main.rs:77:40 [INFO] [stdout] | [INFO] [stdout] 77 | let mut res_v = VectorF64::new(teach_len).unwrap(); [INFO] [stdout] | ^^^^^^^^^ expected `usize`, found `u64` [INFO] [stdout] | [INFO] [stdout] help: you can convert a `u64` to a `usize` and panic if the converted value doesn't fit [INFO] [stdout] | [INFO] [stdout] 77 | let mut res_v = VectorF64::new(teach_len.try_into().unwrap()).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `args` in module `os` [INFO] [stdout] --> src/logistic/main.rs:42:20 [INFO] [stdout] | [INFO] [stdout] 42 | let args = os::args(); [INFO] [stdout] | ^^^^ not found in `os` [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 4 | use std::env::args; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/logistic/main.rs:88:40 [INFO] [stdout] | [INFO] [stdout] 88 | let mut res_v = VectorF64::new(teach_len).unwrap(); [INFO] [stdout] | ^^^^^^^^^ expected `usize`, found `u64` [INFO] [stdout] | [INFO] [stdout] help: you can convert a `u64` to a `usize` and panic if the converted value doesn't fit [INFO] [stdout] | [INFO] [stdout] 88 | let mut res_v = VectorF64::new(teach_len.try_into().unwrap()).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Path` [INFO] [stdout] --> src/logistic/main.rs:44:16 [INFO] [stdout] | [INFO] [stdout] 44 | let path = Path::new(args[1].clone()); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 4 | use std::path::Path; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `from_str` in this scope [INFO] [stdout] --> src/logistic/main.rs:57:23 [INFO] [stdout] | [INFO] [stdout] 57 | let x1_elem = from_str::(elems[0]).unwrap(); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `from_str` in this scope [INFO] [stdout] --> src/logistic/main.rs:58:23 [INFO] [stdout] | [INFO] [stdout] 58 | let x2_elem = from_str::(elems[1]).unwrap(); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `from_str` in this scope [INFO] [stdout] --> src/logistic/main.rs:59:22 [INFO] [stdout] | [INFO] [stdout] 59 | let y_elem = from_str::(elems[2].trim()).unwrap(); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `uint` in this scope [INFO] [stdout] --> src/logistic/main.rs:71:62 [INFO] [stdout] | [INFO] [stdout] 71 | let (teach, validate) = data_slice.split_at(teach_len as uint); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `range` in this scope [INFO] [stdout] --> src/logistic/main.rs:82:18 [INFO] [stdout] | [INFO] [stdout] 82 | for i in range(0, res_v.len()) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `range` in this scope [INFO] [stdout] --> src/logistic/main.rs:93:18 [INFO] [stdout] | [INFO] [stdout] 93 | for i in range(0, res_v.len()) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `range` in this scope [INFO] [stdout] --> src/logistic/main.rs:96:22 [INFO] [stdout] | [INFO] [stdout] 96 | for j in range(0, dim) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `range` in this scope [INFO] [stdout] --> src/logistic/main.rs:111:14 [INFO] [stdout] | [INFO] [stdout] 111 | for i in range(0, validate_len) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/logistic/main.rs:106:40 [INFO] [stdout] | [INFO] [stdout] 106 | let mut y_predict = VectorF64::new(validate_len).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ expected `usize`, found `u64` [INFO] [stdout] | [INFO] [stdout] help: you can convert a `u64` to a `usize` and panic if the converted value doesn't fit [INFO] [stdout] | [INFO] [stdout] 106 | let mut y_predict = VectorF64::new(validate_len.try_into().unwrap()).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/logistic/main.rs:20:29 [INFO] [stdout] | [INFO] [stdout] 20 | let x0 = VectorF64::new(n).unwrap(); [INFO] [stdout] | ^ expected `usize`, found `u64` [INFO] [stdout] | [INFO] [stdout] help: you can convert a `u64` to a `usize` and panic if the converted value doesn't fit [INFO] [stdout] | [INFO] [stdout] 20 | let x0 = VectorF64::new(n.try_into().unwrap()).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/logistic/main.rs:31:28 [INFO] [stdout] | [INFO] [stdout] 31 | let f = MatrixF64::new(n, 6).unwrap(); [INFO] [stdout] | ^ expected `usize`, found `u64` [INFO] [stdout] | [INFO] [stdout] help: you can convert a `u64` to a `usize` and panic if the converted value doesn't fit [INFO] [stdout] | [INFO] [stdout] 31 | let f = MatrixF64::new(n.try_into().unwrap(), 6).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/linear/main.rs:93:32 [INFO] [stdout] | [INFO] [stdout] 93 | res.set(i, sum_vec(&f_col)); [INFO] [stdout] | ^^^^^^ expected struct `VectorF64`, found enum `Value` [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&VectorF64` [INFO] [stdout] found reference `&Value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/linear/main.rs:100:40 [INFO] [stdout] | [INFO] [stdout] 100 | let mut y_predict = VectorF64::new(validate_len).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ expected `usize`, found `u64` [INFO] [stdout] | [INFO] [stdout] help: you can convert a `u64` to a `usize` and panic if the converted value doesn't fit [INFO] [stdout] | [INFO] [stdout] 100 | let mut y_predict = VectorF64::new(validate_len.try_into().unwrap()).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `VectorF64` doesn't implement `std::fmt::Display` [INFO] [stdout] --> src/linear/main.rs:99:30 [INFO] [stdout] | [INFO] [stdout] 99 | println!("alpha = {}\n", alpha); [INFO] [stdout] | ^^^^^ `VectorF64` cannot be formatted with the default formatter [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::fmt::Display` is not implemented for `VectorF64` [INFO] [stdout] = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead [INFO] [stdout] = note: required by `std::fmt::Display::fmt` [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/logistic/main.rs:77:40 [INFO] [stdout] | [INFO] [stdout] 77 | let mut res_v = VectorF64::new(teach_len).unwrap(); [INFO] [stdout] | ^^^^^^^^^ expected `usize`, found `u64` [INFO] [stdout] | [INFO] [stdout] help: you can convert a `u64` to a `usize` and panic if the converted value doesn't fit [INFO] [stdout] | [INFO] [stdout] 77 | let mut res_v = VectorF64::new(teach_len.try_into().unwrap()).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/logistic/main.rs:88:40 [INFO] [stdout] | [INFO] [stdout] 88 | let mut res_v = VectorF64::new(teach_len).unwrap(); [INFO] [stdout] | ^^^^^^^^^ expected `usize`, found `u64` [INFO] [stdout] | [INFO] [stdout] help: you can convert a `u64` to a `usize` and panic if the converted value doesn't fit [INFO] [stdout] | [INFO] [stdout] 88 | let mut res_v = VectorF64::new(teach_len.try_into().unwrap()).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/logistic/main.rs:106:40 [INFO] [stdout] | [INFO] [stdout] 106 | let mut y_predict = VectorF64::new(validate_len).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ expected `usize`, found `u64` [INFO] [stdout] | [INFO] [stdout] help: you can convert a `u64` to a `usize` and panic if the converted value doesn't fit [INFO] [stdout] | [INFO] [stdout] 106 | let mut y_predict = VectorF64::new(validate_len.try_into().unwrap()).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 21 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0412, E0425, E0432, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `ml` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0599]: no method named `mul` found for enum `Value` in the current scope [INFO] [stdout] --> src/linear/main.rs:92:19 [INFO] [stdout] | [INFO] [stdout] 92 | f_col.mul(&tmp); [INFO] [stdout] | ^^^ method not found in `Value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `unwrap` found for struct `Rc` in the current scope [INFO] [stdout] --> src/knn/main.rs:61:38 [INFO] [stdout] | [INFO] [stdout] 61 | let p = mut_points.remove(i).unwrap(); [INFO] [stdout] | ^^^^^^ method not found in `Rc` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `unwrap`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `rgsl::complex::CFFI` [INFO] [stdout] candidate #2: `rgsl::complex::FFFI` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 5 arguments but 4 arguments were supplied [INFO] [stdout] --> src/knn/main.rs:62:12 [INFO] [stdout] | [INFO] [stdout] 62 | if solve(&mut_points, &p.point, distance, k) == p.cluster { [INFO] [stdout] | ^^^^^ ----------- -------- -------- - supplied 4 arguments [INFO] [stdout] | | [INFO] [stdout] | expected 5 arguments [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/knn/main.rs:26:4 [INFO] [stdout] | [INFO] [stdout] 26 | fn solve(points: &vec::Vec>, point: &Point, dist: |&Point, &Point| -> f64, k: uint) -> i32 { [INFO] [stdout] | ^^^^^ ------------------------------------- ------------- --------- -------- ------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/linear/main.rs:93:32 [INFO] [stdout] | [INFO] [stdout] 93 | res.set(i, sum_vec(&f_col)); [INFO] [stdout] | ^^^^^^ expected struct `VectorF64`, found enum `Value` [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&VectorF64` [INFO] [stdout] found reference `&Value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/linear/main.rs:100:40 [INFO] [stdout] | [INFO] [stdout] 100 | let mut y_predict = VectorF64::new(validate_len).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ expected `usize`, found `u64` [INFO] [stdout] | [INFO] [stdout] help: you can convert a `u64` to a `usize` and panic if the converted value doesn't fit [INFO] [stdout] | [INFO] [stdout] 100 | let mut y_predict = VectorF64::new(validate_len.try_into().unwrap()).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 25 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0412, E0425, E0432, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stdout] error[E0277]: `VectorF64` doesn't implement `std::fmt::Display` [INFO] [stdout] --> src/linear/main.rs:99:30 [INFO] [stdout] | [INFO] [stdout] 99 | println!("alpha = {}\n", alpha); [INFO] [stdout] | ^^^^^ `VectorF64` cannot be formatted with the default formatter [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::fmt::Display` is not implemented for `VectorF64` [INFO] [stdout] = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead [INFO] [stdout] = note: required by `std::fmt::Display::fmt` [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 21 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0412, E0425, E0432, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] error[E0277]: `VectorF64` doesn't implement `std::fmt::Display` [INFO] [stdout] --> src/logistic/main.rs:105:30 [INFO] [stdout] | [INFO] [stdout] 105 | println!("alpha = {}\n", alpha); [INFO] [stdout] | ^^^^^ `VectorF64` cannot be formatted with the default formatter [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::fmt::Display` is not implemented for `VectorF64` [INFO] [stdout] = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead [INFO] [stdout] = note: required by `std::fmt::Display::fmt` [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 24 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0412, E0425, E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] error[E0277]: `VectorF64` doesn't implement `std::fmt::Display` [INFO] [stdout] --> src/logistic/main.rs:105:30 [INFO] [stdout] | [INFO] [stdout] 105 | println!("alpha = {}\n", alpha); [INFO] [stdout] | ^^^^^ `VectorF64` cannot be formatted with the default formatter [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::fmt::Display` is not implemented for `VectorF64` [INFO] [stdout] = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead [INFO] [stdout] = note: required by `std::fmt::Display::fmt` [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 24 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0412, E0425, E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `unwrap` found for struct `Rc` in the current scope [INFO] [stdout] --> src/knn/main.rs:61:38 [INFO] [stdout] | [INFO] [stdout] 61 | let p = mut_points.remove(i).unwrap(); [INFO] [stdout] | ^^^^^^ method not found in `Rc` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `unwrap`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `rgsl::complex::CFFI` [INFO] [stdout] candidate #2: `rgsl::complex::FFFI` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 5 arguments but 4 arguments were supplied [INFO] [stdout] --> src/knn/main.rs:62:12 [INFO] [stdout] | [INFO] [stdout] 62 | if solve(&mut_points, &p.point, distance, k) == p.cluster { [INFO] [stdout] | ^^^^^ ----------- -------- -------- - supplied 4 arguments [INFO] [stdout] | | [INFO] [stdout] | expected 5 arguments [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/knn/main.rs:26:4 [INFO] [stdout] | [INFO] [stdout] 26 | fn solve(points: &vec::Vec>, point: &Point, dist: |&Point, &Point| -> f64, k: uint) -> i32 { [INFO] [stdout] | ^^^^^ ------------------------------------- ------------- --------- -------- ------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 25 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0412, E0425, E0432, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "890927bad59cd536916cc112fee1b6e8efa79943415f4f6011dad7262961d562", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "890927bad59cd536916cc112fee1b6e8efa79943415f4f6011dad7262961d562", kill_on_drop: false }` [INFO] [stdout] 890927bad59cd536916cc112fee1b6e8efa79943415f4f6011dad7262961d562