[INFO] cloning repository https://github.com/colin-riddell/simple-rust-nn [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/colin-riddell/simple-rust-nn" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcolin-riddell%2Fsimple-rust-nn", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcolin-riddell%2Fsimple-rust-nn'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 941d6356e5ace82d2283c77c983f4dd4271eda53 [INFO] testing colin-riddell/simple-rust-nn against try#c066bf6804adc55193b71afdff6a56922f4a8689+target=x86_64-unknown-linux-musl for musl_upgrade_1_2_5_in_2025-retry-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcolin-riddell%2Fsimple-rust-nn" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/colin-riddell/simple-rust-nn [INFO] finished tweaking git repo https://github.com/colin-riddell/simple-rust-nn [INFO] tweaked toml for git repo https://github.com/colin-riddell/simple-rust-nn written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/colin-riddell/simple-rust-nn on toolchain c066bf6804adc55193b71afdff6a56922f4a8689 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c066bf6804adc55193b71afdff6a56922f4a8689" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/colin-riddell/simple-rust-nn 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" "+c066bf6804adc55193b71afdff6a56922f4a8689" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+c066bf6804adc55193b71afdff6a56922f4a8689" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 85901cf43d6e60b31eeda8d665132cbf7a3adc04163c8652c87b9d20b65bd831 [INFO] running `Command { std: "docker" "start" "-a" "85901cf43d6e60b31eeda8d665132cbf7a3adc04163c8652c87b9d20b65bd831", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "85901cf43d6e60b31eeda8d665132cbf7a3adc04163c8652c87b9d20b65bd831", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "85901cf43d6e60b31eeda8d665132cbf7a3adc04163c8652c87b9d20b65bd831", kill_on_drop: false }` [INFO] [stdout] 85901cf43d6e60b31eeda8d665132cbf7a3adc04163c8652c87b9d20b65bd831 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+c066bf6804adc55193b71afdff6a56922f4a8689" "build" "--frozen" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 09f8287c8fec505caa2bd5211b88ee78b49610b1749e33d081a20c93b0c8d82b [INFO] running `Command { std: "docker" "start" "-a" "09f8287c8fec505caa2bd5211b88ee78b49610b1749e33d081a20c93b0c8d82b", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling libc v0.2.109 [INFO] [stderr] Compiling crossbeam-utils v0.8.5 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling crossbeam-epoch v0.9.5 [INFO] [stderr] Compiling libm v0.2.7 [INFO] [stderr] Compiling proc-macro2 v1.0.66 [INFO] [stderr] Compiling rayon-core v1.9.1 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling unicode-ident v1.0.11 [INFO] [stderr] Compiling crc32fast v1.3.0 [INFO] [stderr] Compiling adler32 v1.2.0 [INFO] [stderr] Compiling either v1.6.1 [INFO] [stderr] Compiling ppv-lite86 v0.2.15 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling weezl v0.1.5 [INFO] [stderr] Compiling adler v1.0.2 [INFO] [stderr] Compiling serde v1.0.188 [INFO] [stderr] Compiling miniz_oxide v0.3.7 [INFO] [stderr] Compiling color_quant v1.1.0 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling serde_json v1.0.106 [INFO] [stderr] Compiling deflate v0.8.6 [INFO] [stderr] Compiling itoa v1.0.9 [INFO] [stderr] Compiling bytemuck v1.7.2 [INFO] [stderr] Compiling ryu v1.0.15 [INFO] [stderr] Compiling scoped_threadpool v0.1.9 [INFO] [stderr] Compiling crossbeam-channel v0.5.1 [INFO] [stderr] Compiling memoffset v0.6.5 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling rayon v1.5.1 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling miniz_oxide v0.4.4 [INFO] [stderr] Compiling num-rational v0.3.2 [INFO] [stderr] Compiling num-iter v0.1.42 [INFO] [stderr] Compiling png v0.16.8 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling getrandom v0.2.3 [INFO] [stderr] Compiling gif v0.11.3 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Compiling crossbeam-deque v0.8.1 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling syn v2.0.32 [INFO] [stderr] Compiling rand v0.8.4 [INFO] [stderr] Compiling rand_distr v0.4.3 [INFO] [stderr] Compiling serde_derive v1.0.188 [INFO] [stderr] Compiling jpeg-decoder v0.1.22 [INFO] [stderr] Compiling tiff v0.6.1 [INFO] [stderr] Compiling image v0.23.14 [INFO] [stderr] Compiling rust-neural-network v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `rand::*` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use rand::*; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> src/main.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | use serde::{Serialize, Deserialize}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::*` [INFO] [stdout] --> src/network/Network.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::fs::*; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::*` [INFO] [stdout] --> src/images/mod.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::fs::*; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::*` [INFO] [stdout] --> src/mnist.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use rand::*; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> src/mnist.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use serde::{Serialize, Deserialize}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Write` [INFO] [stdout] --> src/mnist.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::io::Write; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::utils::random_f64` [INFO] [stdout] --> src/mnist.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::utils::random_f64; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/mnist.rs:85:11 [INFO] [stdout] | [INFO] [stdout] 85 | if(train_data.len() != train_labels.len()){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 85 - if(train_data.len() != train_labels.len()){ [INFO] [stdout] 85 + if train_data.len() != train_labels.len() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/mnist2.rs:37:7 [INFO] [stdout] | [INFO] [stdout] 37 | if(train_data.len() != train_labels.len()){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 37 - if(train_data.len() != train_labels.len()){ [INFO] [stdout] 37 + if train_data.len() != train_labels.len() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `simple_problem::train_simple_problem` [INFO] [stdout] --> src/main.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use simple_problem::train_simple_problem; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand` [INFO] [stdout] --> src/network/Network.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use rand::*; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `image` [INFO] [stdout] --> src/network/Network.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use image::*; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `current_rate` is assigned to, but never used [INFO] [stdout] --> src/network/Network.rs:120:17 [INFO] [stdout] | [INFO] [stdout] 120 | let mut current_rate = rate; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_current_rate` instead [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hidden_val` [INFO] [stdout] --> src/network/Network.rs:145:34 [INFO] [stdout] | [INFO] [stdout] 145 | for (i, (neuron, hidden_val)) in self.hidden_layer.neurons.iter_mut().zip(hidden_output.iter()).enumerate() { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_hidden_val` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/network/Network.rs:125:21 [INFO] [stdout] | [INFO] [stdout] 125 | let mut output_preds = self.output_layer.predict(&hidden_output); [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `out_of_range_images` [INFO] [stdout] --> src/images/mod.rs:57:9 [INFO] [stdout] | [INFO] [stdout] 57 | let out_of_range_images: Vec = vec![]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_out_of_range_images` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `non_8_bit_images` [INFO] [stdout] --> src/images/mod.rs:58:9 [INFO] [stdout] | [INFO] [stdout] 58 | let non_8_bit_images: Vec = vec![]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_non_8_bit_images` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/mnist.rs:48:13 [INFO] [stdout] | [INFO] [stdout] 48 | let mut network = Network::new(IMG_WIDTH * IMG_HEIGHT, 10, 2); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/mnist.rs:109:18 [INFO] [stdout] | [INFO] [stdout] 109 | for (index, file) in zero_test_files.iter().enumerate() { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LEARNING_RATE_DECAY` is never used [INFO] [stdout] --> src/network/Network.rs:32:7 [INFO] [stdout] | [INFO] [stdout] 32 | const LEARNING_RATE_DECAY: f64 = 0.995; // Adjust as needed [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MOMENTUM` is never used [INFO] [stdout] --> src/network/Network.rs:33:7 [INFO] [stdout] | [INFO] [stdout] 33 | const MOMENTUM: f64 = 0.9; // Adjust as needed [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `L2_REG` is never used [INFO] [stdout] --> src/network/Network.rs:34:7 [INFO] [stdout] | [INFO] [stdout] 34 | const L2_REG: f64 = 0.00001; // L2 regularization strength [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `to_string`, `from_string`, `save`, and `train` are never used [INFO] [stdout] --> src/network/Network.rs:85:12 [INFO] [stdout] | [INFO] [stdout] 78 | impl Network { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 85 | pub fn to_string(&self) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 90 | pub fn from_string(s: &str) -> Network { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 95 | pub fn save(&mut self, filename: &str){ [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 119 | pub fn train(&mut self, inputs: &Vec>, outputs: &Vec>, rate: f64, epochs: usize) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_within_range` is never used [INFO] [stdout] --> src/images/mod.rs:28:4 [INFO] [stdout] | [INFO] [stdout] 28 | fn is_within_range(img: &GrayImage) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_8_bit_grayscale` is never used [INFO] [stdout] --> src/images/mod.rs:37:4 [INFO] [stdout] | [INFO] [stdout] 37 | fn is_8_bit_grayscale(img_path: &std::path::Path) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check_image` is never used [INFO] [stdout] --> src/images/mod.rs:51:8 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn check_image() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `random_f64` is never used [INFO] [stdout] --> src/utils.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | pub fn random_f64() -> f64 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_files` is never used [INFO] [stdout] --> src/utils.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn get_files(dir: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `vectorized_result` is never used [INFO] [stdout] --> src/mnist.rs:17:4 [INFO] [stdout] | [INFO] [stdout] 17 | fn vectorized_result(label: usize) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `train`, `save`, and `test_one` are never used [INFO] [stdout] --> src/mnist.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 29 | pub trait TrainableCharacterModel { [INFO] [stdout] | ----------------------- methods in this trait [INFO] [stdout] 30 | fn train(&mut self); [INFO] [stdout] | ^^^^^ [INFO] [stdout] 31 | fn save(&mut self, filename: &str); [INFO] [stdout] | ^^^^ [INFO] [stdout] 32 | fn load(&mut self, filename: &str); [INFO] [stdout] 33 | fn test_one(&mut self, letter: &str); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `encode_letter` is never used [INFO] [stdout] --> src/mnist.rs:190:4 [INFO] [stdout] | [INFO] [stdout] 190 | fn encode_letter(c: &str) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_mnist_letter_testing` is never used [INFO] [stdout] --> src/mnist.rs:209:4 [INFO] [stdout] | [INFO] [stdout] 209 | fn get_mnist_letter_testing(letter: &str)-> Vec{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_mnist_letter_training` is never used [INFO] [stdout] --> src/mnist.rs:214:4 [INFO] [stdout] | [INFO] [stdout] 214 | fn get_mnist_letter_training(letter: &str)-> Vec{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `train_simple_problem` is never used [INFO] [stdout] --> src/simple_problem.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn train_simple_problem() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `IMG_WIDTH` is never used [INFO] [stdout] --> src/mnist2.rs:7:7 [INFO] [stdout] | [INFO] [stdout] 7 | const IMG_WIDTH: usize = 28; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `IMG_HEIGHT` is never used [INFO] [stdout] --> src/mnist2.rs:8:7 [INFO] [stdout] | [INFO] [stdout] 8 | const IMG_HEIGHT: usize = 28; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `train_and_test` is never used [INFO] [stdout] --> src/mnist2.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn train_and_test() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `image_to_vector` is never used [INFO] [stdout] --> src/mnist2.rs:74:4 [INFO] [stdout] | [INFO] [stdout] 74 | fn image_to_vector(img: &GrayImage) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `vectorized_result` is never used [INFO] [stdout] --> src/mnist2.rs:78:4 [INFO] [stdout] | [INFO] [stdout] 78 | fn vectorized_result(label: usize) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `mnistModel` should have a snake case name [INFO] [stdout] --> src/main.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | let mut mnistModel = FullMnist::new(); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `mnist_model` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Network` should have a snake case name [INFO] [stdout] --> src/network/mod.rs:1:9 [INFO] [stdout] | [INFO] [stdout] 1 | pub mod Network; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `network` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/images/mod.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | if pixel[0] < 0 || pixel[0] > 255 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/images/mod.rs:30:28 [INFO] [stdout] | [INFO] [stdout] 30 | if pixel[0] < 0 || pixel[0] > 255 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: linking with `cc` failed: exit status: 1 [INFO] [stdout] | [INFO] [stdout] = note: "cc" "-m64" "/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained/rcrt1.o" "/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained/crti.o" "/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained/crtbeginS.o" "/tmp/rustcXUhgnO/symbols.o" "<4 object files omitted>" "-Wl,--as-needed" "-Wl,-Bstatic" "/opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/{libserde_json-255677bb71df2a7f.rlib,libryu-0c2304ad48516bd9.rlib,libitoa-c94c61156d0397b9.rlib,libimage-d5db22803734b3cf.rlib,libbytemuck-6bb6e683312d71e6.rlib,libpng-8738ca0cf149d818.rlib,libminiz_oxide-dd3230b304bd21da.rlib,libcrc32fast-2f577f19d3018458.rlib,libdeflate-c52f7037696141fd.rlib,libadler32-5cb8e62306edda0a.rlib,libbitflags-e274cd04b58a060d.rlib,libnum_iter-8349366294a4b805.rlib,libscoped_threadpool-7a69c1f095d1210f.rlib,libnum_rational-de84636d0fc4915f.rlib,libnum_integer-f1d7b1c4351ed31f.rlib,libgif-0bd1678ecd715cdf.rlib,libcolor_quant-fd36927056f4d79f.rlib,libbyteorder-c7092f68299ac016.rlib,libtiff-ea72cbdbc2e76637.rlib,libweezl-f531a40d0c23cadd.rlib,libminiz_oxide-b4e3c14d704240a1.rlib,libadler-b32dea79b2f05ffd.rlib,libjpeg_decoder-d054846c67c0c6c9.rlib,librayon-b7b164deda360f6c.rlib,librayon_core-a1f6d78c2172260c.rlib,libnum_cpus-18ea2ef2e0f4d9f3.rlib,libcrossbeam_deque-3e1782da0eef9235.rlib,libcrossbeam_epoch-66e88eefe08a215a.rlib,libmemoffset-59f11e032c31b987.rlib,libscopeguard-73056285f12cb829.rlib,libcrossbeam_channel-eb3ebe0039fefd61.rlib,libcrossbeam_utils-3a2e50d552e81206.rlib,liblazy_static-4b136fc9bfbd2c4b.rlib,libeither-e8a0ef7222037a64.rlib,librand_distr-e89f364b2572b8d9.rlib,libnum_traits-d085cf55914e7f34.rlib,libserde-b8a6146571f4dd53.rlib,librand-8c4200bd92bf00e3.rlib,librand_chacha-dfeeabb322a2e737.rlib,libppv_lite86-7955ccdf208dacd3.rlib,librand_core-12fbd402dbd36e85.rlib,libgetrandom-a389360005f1a90f.rlib,liblibc-f3157aaaf56bd123.rlib,libcfg_if-66d55f6b302e88c8.rlib}.rlib" "/lib/rustlib/x86_64-unknown-linux-musl/lib/{libstd-*,libpanic_unwind-*,libobject-*,libmemchr-*,libaddr2line-*,libgimli-*,librustc_demangle-*,libstd_detect-*,libhashbrown-*,librustc_std_workspace_alloc-*,libminiz_oxide-*,libadler2-*,libunwind-*}.rlib" "-lunwind" "/lib/rustlib/x86_64-unknown-linux-musl/lib/{libcfg_if-*,liblibc-*}.rlib" "-lc" "/lib/rustlib/x86_64-unknown-linux-musl/lib/{librustc_std_workspace_core-*,liballoc-*,libcore-*,libcompiler_builtins-*}.rlib" "-L" "/tmp/rustcXUhgnO/raw-dylibs" "-Wl,-Bdynamic" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-nostartfiles" "-L" "/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained" "-L" "/lib/rustlib/x86_64-unknown-linux-musl/lib" "-o" "/opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/rust_neural_network-ad7af70e1ede8c44" "-Wl,--gc-sections" "-static-pie" "-Wl,-z,relro,-z,now" "-nodefaultlibs" "/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained/crtendS.o" "/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained/crtn.o" [INFO] [stdout] = note: some arguments are omitted. use `--verbose` to show all linker arguments [INFO] [stdout] = note: /usr/bin/ld: /opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/libgetrandom-a389360005f1a90f.rlib(getrandom-a389360005f1a90f.getrandom.e87cf00346faf453-cgu.0.rcgu.o): in function `getrandom::util_libc::open_readonly': [INFO] [stdout] /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/getrandom-0.2.3/src/util_libc.rs:110:(.text._ZN9getrandom9util_libc13open_readonly17h804f8d087cf681baE+0xb6): undefined reference to `open64' [INFO] [stdout] collect2: error: ld returned 1 exit status [INFO] [stdout] [INFO] [stdout] = note: some `extern` functions couldn't be found; some native libraries may need to be installed or have their path specified [INFO] [stdout] = note: use the `-l` flag to specify native libraries to link [INFO] [stdout] = note: use the `cargo:rustc-link-lib` directive to specify the native libraries to link with Cargo (see https://doc.rust-lang.org/cargo/reference/build-scripts.html#rustc-link-lib) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-neural-network` (bin "rust-neural-network") due to 1 previous error; 44 warnings emitted [INFO] running `Command { std: "docker" "inspect" "09f8287c8fec505caa2bd5211b88ee78b49610b1749e33d081a20c93b0c8d82b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "09f8287c8fec505caa2bd5211b88ee78b49610b1749e33d081a20c93b0c8d82b", kill_on_drop: false }` [INFO] [stdout] 09f8287c8fec505caa2bd5211b88ee78b49610b1749e33d081a20c93b0c8d82b