[INFO] cloning repository https://github.com/mihai9909/K-Means
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/mihai9909/K-Means" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmihai9909%2FK-Means", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmihai9909%2FK-Means'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 8c27b16bead043931e706c9745d54a52c701fe62
[INFO] checking mihai9909/K-Means against a5689b034ad287112f709693384a37f1377eb9cc for pr-129249-3
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmihai9909%2FK-Means" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/mihai9909/K-Means
[INFO] finished tweaking git repo https://github.com/mihai9909/K-Means
[INFO] tweaked toml for git repo https://github.com/mihai9909/K-Means written to /workspace/builds/worker-4-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/mihai9909/K-Means on toolchain a5689b034ad287112f709693384a37f1377eb9cc
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a5689b034ad287112f709693384a37f1377eb9cc" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/mihai9909/K-Means 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" "+a5689b034ad287112f709693384a37f1377eb9cc" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:77db811e55d90add9212f6832c23229e3de5f1c1f9905e8cb07319ea15df73ac" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] d27f8418486d0ad6389aeef1a57889bd3383c9f146b06f3b2c663857c89e51ba
[INFO] running `Command { std: "docker" "start" "d27f8418486d0ad6389aeef1a57889bd3383c9f146b06f3b2c663857c89e51ba", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "d27f8418486d0ad6389aeef1a57889bd3383c9f146b06f3b2c663857c89e51ba", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "d27f8418486d0ad6389aeef1a57889bd3383c9f146b06f3b2c663857c89e51ba" "/opt/rustwide/cargo-home/bin/cargo" "+a5689b034ad287112f709693384a37f1377eb9cc" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "d27f8418486d0ad6389aeef1a57889bd3383c9f146b06f3b2c663857c89e51ba", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-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" "-w" "/opt/rustwide/workdir" "--user" "0:0" "d27f8418486d0ad6389aeef1a57889bd3383c9f146b06f3b2c663857c89e51ba" "/opt/rustwide/cargo-home/bin/cargo" "+a5689b034ad287112f709693384a37f1377eb9cc" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v1.0.89
[INFO] [stderr]    Compiling unicode-ident v1.0.13
[INFO] [stderr]    Compiling libc v0.2.161
[INFO] [stderr]    Compiling crossbeam-utils v0.8.20
[INFO] [stderr]    Compiling anyhow v1.0.91
[INFO] [stderr]    Compiling built v0.7.5
[INFO] [stderr]    Compiling thiserror v1.0.65
[INFO] [stderr]     Checking either v1.13.0
[INFO] [stderr]     Checking memchr v2.7.4
[INFO] [stderr]     Checking aligned-vec v0.5.0
[INFO] [stderr]     Checking miniz_oxide v0.8.0
[INFO] [stderr]     Checking v_frame v0.3.8
[INFO] [stderr]    Compiling rav1e v0.7.1
[INFO] [stderr]     Checking log v0.4.22
[INFO] [stderr]     Checking itertools v0.12.1
[INFO] [stderr]     Checking maybe-rayon v0.1.1
[INFO] [stderr]     Checking bitstream-io v2.5.3
[INFO] [stderr]     Checking nom v7.1.3
[INFO] [stderr]     Checking once_cell v1.20.2
[INFO] [stderr]     Checking crossbeam-epoch v0.9.18
[INFO] [stderr]     Checking flate2 v1.0.34
[INFO] [stderr]     Checking weezl v0.1.8
[INFO] [stderr]    Compiling quote v1.0.37
[INFO] [stderr]     Checking getrandom v0.2.15
[INFO] [stderr]     Checking crossbeam-deque v0.8.5
[INFO] [stderr]     Checking adler v1.0.2
[INFO] [stderr]     Checking flume v0.11.1
[INFO] [stderr]    Compiling syn v2.0.85
[INFO] [stderr]     Checking miniz_oxide v0.7.4
[INFO] [stderr]     Checking rand_core v0.6.4
[INFO] [stderr]    Compiling simd_helpers v0.1.0
[INFO] [stderr]     Checking rayon-core v1.12.1
[INFO] [stderr]     Checking avif-serialize v0.8.2
[INFO] [stderr]     Checking fdeflate v0.3.6
[INFO] [stderr]     Checking half v2.4.1
[INFO] [stderr]     Checking rgb v0.8.50
[INFO] [stderr]     Checking jpeg-decoder v0.3.1
[INFO] [stderr]     Checking bytemuck v1.19.0
[INFO] [stderr]     Checking smallvec v1.13.2
[INFO] [stderr]     Checking gif v0.13.1
[INFO] [stderr]     Checking exr v1.72.0
[INFO] [stderr]     Checking qoi v0.4.1
[INFO] [stderr]     Checking png v0.17.14
[INFO] [stderr]     Checking zune-jpeg v0.4.13
[INFO] [stderr]     Checking image-webp v0.2.0
[INFO] [stderr]     Checking tiff v0.9.1
[INFO] [stderr]     Checking rayon v1.10.0
[INFO] [stderr]     Checking av1-grain v0.2.3
[INFO] [stderr]    Compiling thiserror-impl v1.0.65
[INFO] [stderr]    Compiling zerocopy-derive v0.7.35
[INFO] [stderr]    Compiling profiling-procmacros v1.0.16
[INFO] [stderr]    Compiling arg_enum_proc_macro v0.3.4
[INFO] [stderr]    Compiling num-derive v0.4.2
[INFO] [stderr]     Checking profiling v1.0.16
[INFO] [stderr]     Checking zerocopy v0.7.35
[INFO] [stderr]     Checking ppv-lite86 v0.2.20
[INFO] [stderr]     Checking rand_chacha v0.3.1
[INFO] [stderr]     Checking rand v0.8.5
[INFO] [stderr]     Checking ravif v0.11.11
[INFO] [stderr]     Checking image v0.25.4
[INFO] [stderr]     Checking ML_Proj v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `std::collections::HashSet`
[INFO] [stdout]  --> main.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use std::collections::HashSet;
[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: `std::collections::HashSet`
[INFO] [stdout]  --> main.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use std::collections::HashSet;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> main.rs:48:7
[INFO] [stdout]    |
[INFO] [stdout] 48 |   let mut true_clusters: Vec<u8> = train_dataset.iter().map(|(_, cluster)| *cluster).collect();
[INFO] [stdout]    |       ----^^^^^^^^^^^^^
[INFO] [stdout]    |       |
[INFO] [stdout]    |       help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> main.rs:49:7
[INFO] [stdout]    |
[INFO] [stdout] 49 |   let mut predicted_clusters: Vec<u8> = train_dataset.iter().map(|(image_vec, _)| get_cluster(&centroids, image_vec.clone())).collec...
[INFO] [stdout]    |       ----^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |       |
[INFO] [stdout]    |       help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> main.rs:88:7
[INFO] [stdout]    |
[INFO] [stdout] 88 |   let mut cluster_sizes: Vec<u32> = vec![0; centroids.len()];
[INFO] [stdout]    |       ----^^^^^^^^^^^^^
[INFO] [stdout]    |       |
[INFO] [stdout]    |       help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `cluster_sizes`
[INFO] [stdout]   --> main.rs:88:7
[INFO] [stdout]    |
[INFO] [stdout] 88 |   let mut cluster_sizes: Vec<u32> = vec![0; centroids.len()];
[INFO] [stdout]    |       ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cluster_sizes`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> main.rs:265:7
[INFO] [stdout]     |
[INFO] [stdout] 265 |   let mut directory: String = format!("MNIST/train/{}/", random_number);
[INFO] [stdout]     |       ----^^^^^^^^^
[INFO] [stdout]     |       |
[INFO] [stdout]     |       help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> main.rs:266:7
[INFO] [stdout]     |
[INFO] [stdout] 266 |   let mut path: String = data_loader::get_random_img(&directory);
[INFO] [stdout]     |       ----^^^^
[INFO] [stdout]     |       |
[INFO] [stdout]     |       help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `compute_silhouette_coeff` is never used
[INFO] [stdout]   --> main.rs:86:4
[INFO] [stdout]    |
[INFO] [stdout] 86 | fn compute_silhouette_coeff(images: &Vec<(Vec<u8>, u8)>, centroids: &Vec<Vec<u8>>) -> f32 {
[INFO] [stdout]    |    ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `generate_random_vec` is never used
[INFO] [stdout]    --> main.rs:248:4
[INFO] [stdout]     |
[INFO] [stdout] 248 | fn generate_random_vec() -> Vec<u8> {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `generate_random_centroids` is never used
[INFO] [stdout]    --> main.rs:253:4
[INFO] [stdout]     |
[INFO] [stdout] 253 | fn generate_random_centroids() -> Vec<Vec<u8>> {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `load_test_dataset` is never used
[INFO] [stdout]   --> data_loader.rs:51:8
[INFO] [stdout]    |
[INFO] [stdout] 51 | pub fn load_test_dataset() -> Vec<(Vec<u8>,u8)> {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: useless conversion to the same type: `f32`
[INFO] [stdout]    --> main.rs:242:21
[INFO] [stdout]     |
[INFO] [stdout] 242 |     let diff: f32 = (a[i] as f32 - b[i] as f32).into();
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this method call relies on the `impl<T> Into<T> for T` blanket implementation and type inference, which is a semver hazard as a new `impl Into<_>` that affects your type might be added in the future causing type inference errors
[INFO] [stdout]     = note: `#[deny(self_type_conversion)]` on by default
[INFO] [stdout] help: consider removing the conversion call
[INFO] [stdout]     |
[INFO] [stdout] 242 -     let diff: f32 = (a[i] as f32 - b[i] as f32).into();
[INFO] [stdout] 242 +     let diff: f32 = (a[i] as f32 - b[i] as f32);
[INFO] [stdout]     |
[INFO] [stdout] help: you can use the fully-qualified path to avoid triggering this lint
[INFO] [stdout]     |
[INFO] [stdout] 242 -     let diff: f32 = (a[i] as f32 - b[i] as f32).into();
[INFO] [stdout] 242 +     let diff: f32 = <f32 as Into<_>>::into((a[i] as f32 - b[i] as f32));
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> main.rs:48:7
[INFO] [stdout]    |
[INFO] [stdout] 48 |   let mut true_clusters: Vec<u8> = train_dataset.iter().map(|(_, cluster)| *cluster).collect();
[INFO] [stdout]    |       ----^^^^^^^^^^^^^
[INFO] [stdout]    |       |
[INFO] [stdout]    |       help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> main.rs:49:7
[INFO] [stdout]    |
[INFO] [stdout] 49 |   let mut predicted_clusters: Vec<u8> = train_dataset.iter().map(|(image_vec, _)| get_cluster(&centroids, image_vec.clone())).collec...
[INFO] [stdout]    |       ----^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |       |
[INFO] [stdout]    |       help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `ML_Proj` (bin "kmeans") due to 1 previous error; 11 warnings emitted
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> main.rs:88:7
[INFO] [stdout]    |
[INFO] [stdout] 88 |   let mut cluster_sizes: Vec<u32> = vec![0; centroids.len()];
[INFO] [stdout]    |       ----^^^^^^^^^^^^^
[INFO] [stdout]    |       |
[INFO] [stdout]    |       help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] warning: unused variable: `cluster_sizes`
[INFO] [stdout]   --> main.rs:88:7
[INFO] [stdout]    |
[INFO] [stdout] 88 |   let mut cluster_sizes: Vec<u32> = vec![0; centroids.len()];
[INFO] [stdout]    |       ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cluster_sizes`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> main.rs:265:7
[INFO] [stdout]     |
[INFO] [stdout] 265 |   let mut directory: String = format!("MNIST/train/{}/", random_number);
[INFO] [stdout]     |       ----^^^^^^^^^
[INFO] [stdout]     |       |
[INFO] [stdout]     |       help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> main.rs:266:7
[INFO] [stdout]     |
[INFO] [stdout] 266 |   let mut path: String = data_loader::get_random_img(&directory);
[INFO] [stdout]     |       ----^^^^
[INFO] [stdout]     |       |
[INFO] [stdout]     |       help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `compute_silhouette_coeff` is never used
[INFO] [stdout]   --> main.rs:86:4
[INFO] [stdout]    |
[INFO] [stdout] 86 | fn compute_silhouette_coeff(images: &Vec<(Vec<u8>, u8)>, centroids: &Vec<Vec<u8>>) -> f32 {
[INFO] [stdout]    |    ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `generate_random_vec` is never used
[INFO] [stdout]    --> main.rs:248:4
[INFO] [stdout]     |
[INFO] [stdout] 248 | fn generate_random_vec() -> Vec<u8> {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `generate_random_centroids` is never used
[INFO] [stdout]    --> main.rs:253:4
[INFO] [stdout]     |
[INFO] [stdout] 253 | fn generate_random_centroids() -> Vec<Vec<u8>> {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `load_test_dataset` is never used
[INFO] [stdout]   --> data_loader.rs:51:8
[INFO] [stdout]    |
[INFO] [stdout] 51 | pub fn load_test_dataset() -> Vec<(Vec<u8>,u8)> {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: useless conversion to the same type: `f32`
[INFO] [stdout]    --> main.rs:242:21
[INFO] [stdout]     |
[INFO] [stdout] 242 |     let diff: f32 = (a[i] as f32 - b[i] as f32).into();
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this method call relies on the `impl<T> Into<T> for T` blanket implementation and type inference, which is a semver hazard as a new `impl Into<_>` that affects your type might be added in the future causing type inference errors
[INFO] [stdout]     = note: `#[deny(self_type_conversion)]` on by default
[INFO] [stdout] help: consider removing the conversion call
[INFO] [stdout]     |
[INFO] [stdout] 242 -     let diff: f32 = (a[i] as f32 - b[i] as f32).into();
[INFO] [stdout] 242 +     let diff: f32 = (a[i] as f32 - b[i] as f32);
[INFO] [stdout]     |
[INFO] [stdout] help: you can use the fully-qualified path to avoid triggering this lint
[INFO] [stdout]     |
[INFO] [stdout] 242 -     let diff: f32 = (a[i] as f32 - b[i] as f32).into();
[INFO] [stdout] 242 +     let diff: f32 = <f32 as Into<_>>::into((a[i] as f32 - b[i] as f32));
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `ML_Proj` (bin "kmeans" test) due to 1 previous error; 11 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "d27f8418486d0ad6389aeef1a57889bd3383c9f146b06f3b2c663857c89e51ba", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "d27f8418486d0ad6389aeef1a57889bd3383c9f146b06f3b2c663857c89e51ba", kill_on_drop: false }`
[INFO] [stdout] d27f8418486d0ad6389aeef1a57889bd3383c9f146b06f3b2c663857c89e51ba
