[INFO] cloning repository https://github.com/seifhaider/ds210finalproject [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/seifhaider/ds210finalproject" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fseifhaider%2Fds210finalproject", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fseifhaider%2Fds210finalproject'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 068c307d92dd9a1fcd1a773f86bd1ec466ec5668 [INFO] testing seifhaider/ds210finalproject/068c307d92dd9a1fcd1a773f86bd1ec466ec5668 against master#e9385f9eea0221ef295a188d49d16f8f5189abf1 for pr-146098 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fseifhaider%2Fds210finalproject" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/seifhaider/ds210finalproject [INFO] finished tweaking git repo https://github.com/seifhaider/ds210finalproject [INFO] tweaked toml for git repo https://github.com/seifhaider/ds210finalproject written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/seifhaider/ds210finalproject on toolchain e9385f9eea0221ef295a188d49d16f8f5189abf1 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+e9385f9eea0221ef295a188d49d16f8f5189abf1" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/seifhaider/ds210finalproject 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" "+e9385f9eea0221ef295a188d49d16f8f5189abf1" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded assert_approx_eq v1.1.0 [INFO] [stderr] Downloaded ndarray-rand v0.14.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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" "+e9385f9eea0221ef295a188d49d16f8f5189abf1" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ebede7a6ad937c78170b07b3b84f893bd2efe827f64ab9ef3b4f914a564a1b43 [INFO] running `Command { std: "docker" "start" "-a" "ebede7a6ad937c78170b07b3b84f893bd2efe827f64ab9ef3b4f914a564a1b43", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ebede7a6ad937c78170b07b3b84f893bd2efe827f64ab9ef3b4f914a564a1b43", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ebede7a6ad937c78170b07b3b84f893bd2efe827f64ab9ef3b4f914a564a1b43", kill_on_drop: false }` [INFO] [stdout] ebede7a6ad937c78170b07b3b84f893bd2efe827f64ab9ef3b4f914a564a1b43 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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" "+e9385f9eea0221ef295a188d49d16f8f5189abf1" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 07c53f67b48599dbe94cfd16c2552c359759d0d7245ec8ba1ab9e495b92b33a7 [INFO] running `Command { std: "docker" "start" "-a" "07c53f67b48599dbe94cfd16c2552c359759d0d7245ec8ba1ab9e495b92b33a7", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.172 [INFO] [stderr] Compiling smallvec v1.15.0 [INFO] [stderr] Compiling cc v1.2.20 [INFO] [stderr] Compiling libm v0.2.13 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling syn v2.0.101 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling phf_shared v0.10.0 [INFO] [stderr] Compiling tokio v1.44.2 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling matrixmultiply v0.3.9 [INFO] [stderr] Compiling dtoa v1.0.10 [INFO] [stderr] Compiling phf v0.10.1 [INFO] [stderr] Compiling nodrop v0.1.14 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling thin-slice v0.1.1 [INFO] [stderr] Compiling dtoa-short v0.3.5 [INFO] [stderr] Compiling servo_arc v0.1.1 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling getopts v0.2.21 [INFO] [stderr] Compiling csv-core v0.1.12 [INFO] [stderr] Compiling ego-tree v0.6.3 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling openssl-sys v0.9.107 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling rand_pcg v0.2.1 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling openssl v0.10.72 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling num-complex v0.4.6 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling rand_distr v0.4.3 [INFO] [stderr] Compiling phf_generator v0.8.0 [INFO] [stderr] Compiling phf_generator v0.10.0 [INFO] [stderr] Compiling phf_generator v0.11.3 [INFO] [stderr] Compiling phf_codegen v0.8.0 [INFO] [stderr] Compiling phf_codegen v0.10.0 [INFO] [stderr] Compiling string_cache_codegen v0.5.4 [INFO] [stderr] Compiling selectors v0.22.0 [INFO] [stderr] Compiling ndarray v0.15.6 [INFO] [stderr] Compiling markup5ever v0.11.0 [INFO] [stderr] Compiling tokio-util v0.7.15 [INFO] [stderr] Compiling phf_macros v0.8.0 [INFO] [stderr] Compiling cssparser v0.27.2 [INFO] [stderr] Compiling html5ever v0.26.0 [INFO] [stderr] Compiling synstructure v0.13.1 [INFO] [stderr] Compiling h2 v0.3.26 [INFO] [stderr] Compiling rustls v0.21.12 [INFO] [stderr] Compiling phf v0.8.0 [INFO] [stderr] Compiling zerovec-derive v0.10.3 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling icu_provider_macros v1.5.0 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling cssparser-macros v0.6.1 [INFO] [stderr] Compiling derive_more v0.99.20 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.7.5 [INFO] [stderr] Compiling ndarray-rand v0.14.0 [INFO] [stderr] Compiling sct v0.7.1 [INFO] [stderr] Compiling rustls-webpki v0.101.7 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling yoke v0.7.5 [INFO] [stderr] Compiling zerovec v0.10.4 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling hyper v0.14.32 [INFO] [stderr] Compiling tinystr v0.7.6 [INFO] [stderr] Compiling icu_collections v1.5.0 [INFO] [stderr] Compiling icu_locid v1.5.0 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling icu_provider v1.5.0 [INFO] [stderr] Compiling tokio-rustls v0.24.1 [INFO] [stderr] Compiling icu_locid_transform v1.5.0 [INFO] [stderr] Compiling icu_properties v1.5.1 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling hyper-rustls v0.24.2 [INFO] [stderr] Compiling string_cache v0.8.9 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling csv v1.3.1 [INFO] [stderr] Compiling scraper v0.13.0 [INFO] [stderr] Compiling icu_normalizer v1.5.0 [INFO] [stderr] Compiling idna_adapter v1.2.0 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling reqwest v0.11.27 [INFO] [stderr] Compiling football_clustering v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0432]: unresolved import `reqwest::blocking` [INFO] [stdout] --> src/scraper.rs:4:14 [INFO] [stdout] | [INFO] [stdout] 4 | use reqwest::blocking::Client; [INFO] [stdout] | ^^^^^^^^ could not find `blocking` in `reqwest` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/reqwest-0.11.27/src/lib.rs:352:13 [INFO] [stdout] | [INFO] [stdout] 351 | #[cfg(feature = "blocking")] [INFO] [stdout] | -------------------- the item is gated behind the `blocking` feature [INFO] [stdout] 352 | pub mod blocking; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `env_logger` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use env_logger; [INFO] [stdout] | ^^^^^^^^^^ no external crate `env_logger` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `log` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use log::info; [INFO] [stdout] | ^^^ use of unresolved module or unlinked crate `log` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `log`, use `cargo add log` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `log` [INFO] [stdout] --> src/main.rs:24:13 [INFO] [stdout] | [INFO] [stdout] 24 | log::error!("Scrape failed: {}. Loading from local CSV.", e); [INFO] [stdout] | ^^^ use of unresolved module or unlinked crate `log` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde::Serialize` [INFO] [stdout] --> src/scraper.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use serde::Serialize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ndarray_rand::RandomExt` [INFO] [stdout] --> src/clustering.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use ndarray_rand::RandomExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::seq::SliceRandom` [INFO] [stdout] --> src/clustering.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use rand::seq::SliceRandom; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `random_subset` found for struct `ArrayBase` in the current scope [INFO] [stdout] --> src/clustering.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 11 | let mut centroids = data [INFO] [stdout] | _________________________- [INFO] [stdout] 12 | | .select(Axis(0), &((0..n_samples).collect::>())) [INFO] [stdout] 13 | | .random_subset(k, &mut thread_rng()) [INFO] [stdout] | | -^^^^^^^^^^^^^ method not found in `ArrayBase, Dim<[usize; 2]>>` [INFO] [stdout] | |_________| [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0593]: function is expected to take 1 argument, but it takes 2 arguments [INFO] [stdout] --> src/clustering.rs:26:47 [INFO] [stdout] | [INFO] [stdout] 26 | let da = (&row - &a).mapv(f64::powi).scalar_sum(); [INFO] [stdout] | ---- ^^^^^^^^^ expected function that takes 1 argument [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `ndarray::impl_methods::>::mapv` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/ndarray-0.15.6/src/impl_methods.rs:2557:12 [INFO] [stdout] | [INFO] [stdout] 2555 | pub fn mapv(&self, mut f: F) -> Array [INFO] [stdout] | ---- required by a bound in this associated function [INFO] [stdout] 2556 | where [INFO] [stdout] 2557 | F: FnMut(A) -> B, [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `ndarray::impl_methods::>::mapv` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `ndarray::numeric::impl_numeric::>::scalar_sum`: renamed to `sum` [INFO] [stdout] --> src/clustering.rs:26:58 [INFO] [stdout] | [INFO] [stdout] 26 | let da = (&row - &a).mapv(f64::powi).scalar_sum(); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0593]: function is expected to take 1 argument, but it takes 2 arguments [INFO] [stdout] --> src/clustering.rs:27:47 [INFO] [stdout] | [INFO] [stdout] 27 | let db = (&row - &b).mapv(f64::powi).scalar_sum(); [INFO] [stdout] | ---- ^^^^^^^^^ expected function that takes 1 argument [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `ndarray::impl_methods::>::mapv` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/ndarray-0.15.6/src/impl_methods.rs:2557:12 [INFO] [stdout] | [INFO] [stdout] 2555 | pub fn mapv(&self, mut f: F) -> Array [INFO] [stdout] | ---- required by a bound in this associated function [INFO] [stdout] 2556 | where [INFO] [stdout] 2557 | F: FnMut(A) -> B, [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `ndarray::impl_methods::>::mapv` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `ndarray::numeric::impl_numeric::>::scalar_sum`: renamed to `sum` [INFO] [stdout] --> src/clustering.rs:27:58 [INFO] [stdout] | [INFO] [stdout] 27 | let db = (&row - &b).mapv(f64::powi).scalar_sum(); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 3 arguments but 2 arguments were supplied [INFO] [stdout] --> src/main.rs:38:23 [INFO] [stdout] | [INFO] [stdout] 38 | let assignments = run_kmeans(&matrix, n_clusters).expect("Clustering failed"); [INFO] [stdout] | ^^^^^^^^^^--------------------- argument #3 of type `usize` is missing [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/clustering.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn run_kmeans(data: &Array2, k: usize, max_iter: usize) [INFO] [stdout] | ^^^^^^^^^^ --------------- [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 38 | let assignments = run_kmeans(&matrix, n_clusters, /* usize */).expect("Clustering failed"); [INFO] [stdout] | +++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `expect` found for tuple `(ArrayBase, Dim<[usize; 2]>>, Vec)` in the current scope [INFO] [stdout] --> src/main.rs:38:55 [INFO] [stdout] | [INFO] [stdout] 38 | let assignments = run_kmeans(&matrix, n_clusters).expect("Clustering failed"); [INFO] [stdout] | ^^^^^^ method not found in `(ArrayBase, Dim<[usize; 2]>>, Vec)` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0432, E0433, E0593, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stderr] error: could not compile `football_clustering` (bin "football_clustering") due to 9 previous errors; 5 warnings emitted [INFO] running `Command { std: "docker" "inspect" "07c53f67b48599dbe94cfd16c2552c359759d0d7245ec8ba1ab9e495b92b33a7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "07c53f67b48599dbe94cfd16c2552c359759d0d7245ec8ba1ab9e495b92b33a7", kill_on_drop: false }` [INFO] [stdout] 07c53f67b48599dbe94cfd16c2552c359759d0d7245ec8ba1ab9e495b92b33a7