[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] checking colin-riddell/simple-rust-nn/941d6356e5ace82d2283c77c983f4dd4271eda53 against try#4d98531622e1718ae0bc3c7a1ab9cd8938428452+rustflags=-Dtail_expr_drop_order for pr-129604 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcolin-riddell%2Fsimple-rust-nn" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/colin-riddell/simple-rust-nn on toolchain 4d98531622e1718ae0bc3c7a1ab9cd8938428452 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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-0-tc2/source/Cargo.toml [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" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 61ccbc9de7407ee505dbd0884249d4ddfb3bce9b01ac5f6c2f51bffbfe242ef8 [INFO] running `Command { std: "docker" "start" "-a" "61ccbc9de7407ee505dbd0884249d4ddfb3bce9b01ac5f6c2f51bffbfe242ef8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "61ccbc9de7407ee505dbd0884249d4ddfb3bce9b01ac5f6c2f51bffbfe242ef8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "61ccbc9de7407ee505dbd0884249d4ddfb3bce9b01ac5f6c2f51bffbfe242ef8", kill_on_drop: false }` [INFO] [stdout] 61ccbc9de7407ee505dbd0884249d4ddfb3bce9b01ac5f6c2f51bffbfe242ef8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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 -Dtail_expr_drop_order" "-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c10f132a25f5126b9784bd44749f0908faf0857dc87271942793ad37f19afe73 [INFO] running `Command { std: "docker" "start" "-a" "c10f132a25f5126b9784bd44749f0908faf0857dc87271942793ad37f19afe73", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.109 [INFO] [stderr] Compiling crossbeam-utils v0.8.5 [INFO] [stderr] Compiling memoffset v0.6.5 [INFO] [stderr] Compiling crossbeam-epoch v0.9.5 [INFO] [stderr] Compiling libm v0.2.7 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling proc-macro2 v1.0.66 [INFO] [stderr] Compiling rayon-core v1.9.1 [INFO] [stderr] Compiling unicode-ident v1.0.11 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling rayon v1.5.1 [INFO] [stderr] Compiling miniz_oxide v0.4.4 [INFO] [stderr] Checking adler32 v1.2.0 [INFO] [stderr] Checking either v1.6.1 [INFO] [stderr] Compiling crc32fast v1.3.0 [INFO] [stderr] Compiling num-rational v0.3.2 [INFO] [stderr] Compiling num-iter v0.1.42 [INFO] [stderr] Compiling serde v1.0.188 [INFO] [stderr] Checking weezl v0.1.5 [INFO] [stderr] Checking byteorder v1.4.3 [INFO] [stderr] Checking ppv-lite86 v0.2.15 [INFO] [stderr] Checking miniz_oxide v0.3.7 [INFO] [stderr] Compiling serde_json v1.0.106 [INFO] [stderr] Checking itoa v1.0.9 [INFO] [stderr] Checking gif v0.11.3 [INFO] [stderr] Checking bytemuck v1.7.2 [INFO] [stderr] Checking ryu v1.0.15 [INFO] [stderr] Checking deflate v0.8.6 [INFO] [stderr] Checking crossbeam-channel v0.5.1 [INFO] [stderr] Checking scoped_threadpool v0.1.9 [INFO] [stderr] Checking crossbeam-deque v0.8.1 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Checking png v0.16.8 [INFO] [stderr] Compiling syn v2.0.32 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking getrandom v0.2.3 [INFO] [stderr] Checking rand_core v0.6.3 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.4 [INFO] [stderr] Checking rand_distr v0.4.3 [INFO] [stderr] Compiling serde_derive v1.0.188 [INFO] [stderr] Checking jpeg-decoder v0.1.22 [INFO] [stderr] Checking tiff v0.6.1 [INFO] [stderr] Checking image v0.23.14 [INFO] [stderr] Checking 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/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: 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: 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] [stderr] error: could not compile `rust-neural-network` (bin "rust-neural-network") due to 2 previous errors; 35 warnings emitted [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] [stderr] warning: build failed, waiting for other jobs to finish... [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: `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: 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: associated function `from_string` is never used [INFO] [stdout] --> src/network/Network.rs:90:12 [INFO] [stdout] | [INFO] [stdout] 78 | impl Network { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 90 | pub fn from_string(s: &str) -> Network { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [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: 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: 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: associated function `from_string` is never used [INFO] [stdout] --> src/network/Network.rs:90:12 [INFO] [stdout] | [INFO] [stdout] 78 | impl Network { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 90 | pub fn from_string(s: &str) -> Network { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [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 `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 `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_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: 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 `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: 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: 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 `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_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 `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: 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: 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] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/network/Network.rs:111:9 [INFO] [stdout] | [INFO] [stdout] 103 | let file = File::open(filename).expect("Failed to open file"); [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 107 | let mut reader = BufReader::new(file); [INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 111 | serde_json::from_str(&content).expect("Failed to deserialize network from string") [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [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: 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: aborting due to 1 previous error; 35 warnings emitted [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] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/network/Network.rs:111:9 [INFO] [stdout] | [INFO] [stdout] 103 | let file = File::open(filename).expect("Failed to open file"); [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 107 | let mut reader = BufReader::new(file); [INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 111 | serde_json::from_str(&content).expect("Failed to deserialize network from string") [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [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: aborting due to 1 previous error; 35 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-neural-network` (bin "rust-neural-network" test) due to 2 previous errors; 35 warnings emitted [INFO] running `Command { std: "docker" "inspect" "c10f132a25f5126b9784bd44749f0908faf0857dc87271942793ad37f19afe73", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c10f132a25f5126b9784bd44749f0908faf0857dc87271942793ad37f19afe73", kill_on_drop: false }` [INFO] [stdout] c10f132a25f5126b9784bd44749f0908faf0857dc87271942793ad37f19afe73