[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 master#1fe72d35998dea48aeecaf7fc07783b0b553f24f for pr-154992-1
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmihai9909%2FK-Means" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/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-7-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/mihai9909/K-Means on toolchain 1fe72d35998dea48aeecaf7fc07783b0b553f24f
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1fe72d35998dea48aeecaf7fc07783b0b553f24f" "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" "+1fe72d35998dea48aeecaf7fc07783b0b553f24f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded zune-jpeg v0.4.13
[INFO] [stderr]   Downloaded ravif v0.11.11
[INFO] [stderr]   Downloaded avif-serialize v0.8.2
[INFO] [stderr]   Downloaded thiserror-impl v1.0.65
[INFO] [stderr]   Downloaded fdeflate v0.3.6
[INFO] [stderr]   Downloaded thiserror v1.0.65
[INFO] [stderr]   Downloaded built v0.7.5
[INFO] [stderr]   Downloaded image-webp v0.2.0
[INFO] [stderr]   Downloaded bytemuck v1.19.0
[INFO] [stderr]   Downloaded cc v1.1.31
[INFO] [stderr]   Downloaded png v0.17.14
[INFO] [stderr]   Downloaded flate2 v1.0.34
[INFO] [stderr]   Downloaded serde v1.0.213
[INFO] [stderr]   Downloaded image v0.25.4
[INFO] [stderr]   Downloaded anyhow v1.0.91
[INFO] [stderr]   Downloaded bitstream-io v2.5.3
[INFO] [stderr]   Downloaded serde_derive v1.0.213
[INFO] [stderr]   Downloaded proc-macro2 v1.0.89
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+1fe72d35998dea48aeecaf7fc07783b0b553f24f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 84310916d603a0ee512b749daef5418e13e996aeff9422539824e0b083abef92
[INFO] running `Command { std: "docker" "start" "-a" "84310916d603a0ee512b749daef5418e13e996aeff9422539824e0b083abef92", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "84310916d603a0ee512b749daef5418e13e996aeff9422539824e0b083abef92", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "84310916d603a0ee512b749daef5418e13e996aeff9422539824e0b083abef92", kill_on_drop: false }`
[INFO] [stdout] 84310916d603a0ee512b749daef5418e13e996aeff9422539824e0b083abef92
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+1fe72d35998dea48aeecaf7fc07783b0b553f24f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 529fbbc8b7944cc5d77f31c0053c332a6ad3794d693615a7fbb02d2df4688266
[INFO] running `Command { std: "docker" "start" "-a" "529fbbc8b7944cc5d77f31c0053c332a6ad3794d693615a7fbb02d2df4688266", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v1.0.89
[INFO] [stderr]    Compiling libc v0.2.161
[INFO] [stderr]     Checking simd-adler32 v0.3.7
[INFO] [stderr]    Compiling anyhow v1.0.91
[INFO] [stderr]    Compiling thiserror v1.0.65
[INFO] [stderr]    Compiling num-traits v0.2.19
[INFO] [stderr]     Checking minimal-lexical v0.2.1
[INFO] [stderr]     Checking memchr v2.7.4
[INFO] [stderr]    Compiling built v0.7.5
[INFO] [stderr]     Checking aligned-vec v0.5.0
[INFO] [stderr]     Checking miniz_oxide v0.8.0
[INFO] [stderr]     Checking log v0.4.22
[INFO] [stderr]    Compiling rav1e v0.7.1
[INFO] [stderr]     Checking nom v7.1.3
[INFO] [stderr]     Checking spin v0.9.8
[INFO] [stderr]     Checking flate2 v1.0.34
[INFO] [stderr]     Checking itertools v0.12.1
[INFO] [stderr]     Checking maybe-rayon v0.1.1
[INFO] [stderr]    Compiling noop_proc_macro v0.3.0
[INFO] [stderr]     Checking num-integer v0.1.46
[INFO] [stderr]    Compiling quote v1.0.37
[INFO] [stderr]     Checking v_frame v0.3.8
[INFO] [stderr]     Checking getrandom v0.2.15
[INFO] [stderr]    Compiling syn v2.0.85
[INFO] [stderr]     Checking new_debug_unreachable v1.0.6
[INFO] [stderr]     Checking imgref v1.11.0
[INFO] [stderr]     Checking num-bigint v0.4.6
[INFO] [stderr]     Checking quick-error v2.0.1
[INFO] [stderr]     Checking weezl v0.1.8
[INFO] [stderr]     Checking bitstream-io v2.5.3
[INFO] [stderr]    Compiling simd_helpers v0.1.0
[INFO] [stderr]     Checking loop9 v0.1.5
[INFO] [stderr]     Checking rand_core v0.6.4
[INFO] [stderr]     Checking miniz_oxide v0.7.4
[INFO] [stderr]     Checking flume v0.11.1
[INFO] [stderr]     Checking zune-inflate v0.2.54
[INFO] [stderr]     Checking fdeflate v0.3.6
[INFO] [stderr]     Checking avif-serialize v0.8.2
[INFO] [stderr]     Checking half v2.4.1
[INFO] [stderr]     Checking rgb v0.8.50
[INFO] [stderr]     Checking smallvec v1.13.2
[INFO] [stderr]     Checking bytemuck v1.19.0
[INFO] [stderr]     Checking zune-core v0.4.12
[INFO] [stderr]     Checking bit_field v0.10.2
[INFO] [stderr]     Checking jpeg-decoder v0.3.1
[INFO] [stderr]     Checking lebe v0.5.2
[INFO] [stderr]     Checking zune-jpeg v0.4.13
[INFO] [stderr]     Checking image-webp v0.2.0
[INFO] [stderr]     Checking exr v1.72.0
[INFO] [stderr]     Checking png v0.17.14
[INFO] [stderr]     Checking qoi v0.4.1
[INFO] [stderr]     Checking num-rational v0.4.2
[INFO] [stderr]     Checking gif v0.13.1
[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] 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] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 41.74s
[INFO] running `Command { std: "docker" "inspect" "529fbbc8b7944cc5d77f31c0053c332a6ad3794d693615a7fbb02d2df4688266", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "529fbbc8b7944cc5d77f31c0053c332a6ad3794d693615a7fbb02d2df4688266", kill_on_drop: false }`
[INFO] [stdout] 529fbbc8b7944cc5d77f31c0053c332a6ad3794d693615a7fbb02d2df4688266
