[INFO] cloning repository https://github.com/SBeausoleil/Rusty-KMeans [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/SBeausoleil/Rusty-KMeans" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSBeausoleil%2FRusty-KMeans", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSBeausoleil%2FRusty-KMeans'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a8b7aa0d8323db3887e9de47eb9140fc7c612494 [INFO] testing SBeausoleil/Rusty-KMeans against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSBeausoleil%2FRusty-KMeans" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/SBeausoleil/Rusty-KMeans [INFO] finished tweaking git repo https://github.com/SBeausoleil/Rusty-KMeans [INFO] tweaked toml for git repo https://github.com/SBeausoleil/Rusty-KMeans written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/SBeausoleil/Rusty-KMeans on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/SBeausoleil/Rusty-KMeans 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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded wasi v0.10.1+wasi-snapshot-preview1 [INFO] [stderr] Downloaded rgb v0.8.25 [INFO] [stderr] Downloaded bytemuck v1.5.0 [INFO] [stderr] Downloaded getrandom v0.2.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e90891c0761b7b033fcecc620ae5b8b26985eb626ba7d5d128e62db6eb9acc69 [INFO] running `Command { std: "docker" "start" "-a" "e90891c0761b7b033fcecc620ae5b8b26985eb626ba7d5d128e62db6eb9acc69", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e90891c0761b7b033fcecc620ae5b8b26985eb626ba7d5d128e62db6eb9acc69", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e90891c0761b7b033fcecc620ae5b8b26985eb626ba7d5d128e62db6eb9acc69", kill_on_drop: false }` [INFO] [stdout] e90891c0761b7b033fcecc620ae5b8b26985eb626ba7d5d128e62db6eb9acc69 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0eb4c961398d885de4c6209f6150666fbc155b228fd3e9a9e48d35abcaa40093 [INFO] running `Command { std: "docker" "start" "-a" "0eb4c961398d885de4c6209f6150666fbc155b228fd3e9a9e48d35abcaa40093", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.82 [INFO] [stderr] Compiling getrandom v0.2.2 [INFO] [stderr] Compiling ppv-lite86 v0.2.10 [INFO] [stderr] Compiling bytemuck v1.5.0 [INFO] [stderr] Compiling rgb v0.8.25 [INFO] [stderr] Compiling rand_core v0.6.1 [INFO] [stderr] Compiling rand_chacha v0.3.0 [INFO] [stderr] Compiling rand v0.8.2 [INFO] [stderr] Compiling KMeans v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `rgb::RGB` [INFO] [stdout] --> src/kmeans_clustering.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use rgb::RGB; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: can't compare `Cluster<'_, A>` with `Cluster<'_, A>` [INFO] [stdout] --> src/kmeans_clustering.rs:32:27 [INFO] [stdout] | [INFO] [stdout] 32 | impl Ord for Cluster<'_, A> { [INFO] [stdout] | ^^^^^^^^^^^^^^ no implementation for `Cluster<'_, A> < Cluster<'_, A>` and `Cluster<'_, A> > Cluster<'_, A>` [INFO] [stdout] | [INFO] [stdout] help: the trait `PartialOrd` is not implemented for `Cluster<'_, A>` [INFO] [stdout] --> src/kmeans_clustering.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct Cluster<'a, A: Centroid> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required by a bound in `Ord` [INFO] [stdout] --> /rustc/cdb45c87e2cd43495379f7e867e3cc15dcee9f93/library/core/src/cmp.rs:961:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Cluster<'_, A>: Eq` is not satisfied [INFO] [stdout] --> src/kmeans_clustering.rs:32:27 [INFO] [stdout] | [INFO] [stdout] 32 | impl Ord for Cluster<'_, A> { [INFO] [stdout] | ^^^^^^^^^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `Eq` is not implemented for `Cluster<'_, A>` [INFO] [stdout] --> src/kmeans_clustering.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct Cluster<'a, A: Centroid> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required by a bound in `Ord` [INFO] [stdout] --> /rustc/cdb45c87e2cd43495379f7e867e3cc15dcee9f93/library/core/src/cmp.rs:961:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> src/kmeans_clustering.rs:23:23 [INFO] [stdout] | [INFO] [stdout] 23 | fn add(&mut self, other: &A) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `KMeans` (bin "KMeans") due to 2 previous errors; 2 warnings emitted [INFO] running `Command { std: "docker" "inspect" "0eb4c961398d885de4c6209f6150666fbc155b228fd3e9a9e48d35abcaa40093", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0eb4c961398d885de4c6209f6150666fbc155b228fd3e9a9e48d35abcaa40093", kill_on_drop: false }` [INFO] [stdout] 0eb4c961398d885de4c6209f6150666fbc155b228fd3e9a9e48d35abcaa40093