[INFO] cloning repository https://github.com/Ebarringer2/NeuralNetworkRust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Ebarringer2/NeuralNetworkRust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FEbarringer2%2FNeuralNetworkRust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FEbarringer2%2FNeuralNetworkRust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 37067fa0ad2d92e6b778a0df7a5420da8edba517 [INFO] checking Ebarringer2/NeuralNetworkRust/37067fa0ad2d92e6b778a0df7a5420da8edba517 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%2FEbarringer2%2FNeuralNetworkRust" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Ebarringer2/NeuralNetworkRust 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/Ebarringer2/NeuralNetworkRust [INFO] finished tweaking git repo https://github.com/Ebarringer2/NeuralNetworkRust [INFO] tweaked toml for git repo https://github.com/Ebarringer2/NeuralNetworkRust written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/Ebarringer2/NeuralNetworkRust 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-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 60614c4c0ba38c298982e1be539c1e9c19c69b3dcfbca695d56777fde53d1a3e [INFO] running `Command { std: "docker" "start" "-a" "60614c4c0ba38c298982e1be539c1e9c19c69b3dcfbca695d56777fde53d1a3e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "60614c4c0ba38c298982e1be539c1e9c19c69b3dcfbca695d56777fde53d1a3e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "60614c4c0ba38c298982e1be539c1e9c19c69b3dcfbca695d56777fde53d1a3e", kill_on_drop: false }` [INFO] [stdout] 60614c4c0ba38c298982e1be539c1e9c19c69b3dcfbca695d56777fde53d1a3e [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 -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] 47867f343181e34b58e0db8c74341c95eb9ab61b45d0d434a88eb8f38deb3379 [INFO] running `Command { std: "docker" "start" "-a" "47867f343181e34b58e0db8c74341c95eb9ab61b45d0d434a88eb8f38deb3379", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.152 [INFO] [stderr] Compiling libm v0.2.8 [INFO] [stderr] Compiling num-traits v0.2.17 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling rayon-core v1.12.1 [INFO] [stderr] Compiling matrixmultiply v0.3.8 [INFO] [stderr] Compiling miniz_oxide v0.4.4 [INFO] [stderr] Checking either v1.9.0 [INFO] [stderr] Compiling crc32fast v1.3.2 [INFO] [stderr] Checking adler32 v1.2.0 [INFO] [stderr] Compiling num-rational v0.3.2 [INFO] [stderr] Compiling num-iter v0.1.43 [INFO] [stderr] Checking weezl v0.1.7 [INFO] [stderr] Checking rawpointer v0.2.1 [INFO] [stderr] Checking color_quant v1.1.0 [INFO] [stderr] Checking crossbeam-epoch v0.9.18 [INFO] [stderr] Checking bytemuck v1.14.0 [INFO] [stderr] Checking miniz_oxide v0.3.7 [INFO] [stderr] Checking deflate v0.8.6 [INFO] [stderr] Checking scoped_threadpool v0.1.9 [INFO] [stderr] Checking gif v0.11.4 [INFO] [stderr] Checking crossbeam-deque v0.8.5 [INFO] [stderr] Checking png v0.16.8 [INFO] [stderr] Checking getrandom v0.2.12 [INFO] [stderr] Compiling cc v1.0.83 [INFO] [stderr] Checking rayon v1.8.1 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking num-complex v0.4.4 [INFO] [stderr] Compiling backtrace v0.3.69 [INFO] [stderr] Checking ndarray v0.15.6 [INFO] [stderr] Checking rand_distr v0.4.3 [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 ndarray-rand v0.14.0 [INFO] [stderr] Checking NeuralNetworkRust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: methods `set_weights`, `execute_layer`, `dense_numpy`, `sigmoid`, `print_layer`, and `get_nodes` are never used [INFO] [stdout] --> src/nn/layer/mod.rs:28:16 [INFO] [stdout] | [INFO] [stdout] 14 | impl Layer { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn set_weights(&mut self, index: usize, weights: Array1, bias: f64) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn execute_layer(&self, input_layer: &Array1) -> Array1 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn dense_numpy(&self, input_layer: &Array1) -> Array1 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 64 | pub fn sigmoid(&self, input: &Array1) -> Array1 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 68 | pub fn print_layer(&self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 84 | pub fn get_nodes(&self) -> &Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `weights` and `biases` are never read [INFO] [stdout] --> src/nn/nn/mod.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct NeuralNetwork { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 11 | pub weights: Vec>, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 12 | pub biases: Vec>, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `add_layer`, `predict`, `mse`, and `multiclass_cost` are never used [INFO] [stdout] --> src/nn/nn/mod.rs:29:16 [INFO] [stdout] | [INFO] [stdout] 15 | impl NeuralNetwork { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn add_layer(&mut self, layer: Layer, location: usize) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn predict(&self, input_layer: &Array1) -> Array1 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | pub fn mse(&self, y_hats: &Array1, y_actuals: &Array1) -> f64 { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | pub fn multiclass_cost(&self, y_hats: &Array2, y_actuals: &Array2) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/nn/node/mod.rs:30:16 [INFO] [stdout] | [INFO] [stdout] 23 | impl Node { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn sigmoid_actualize(&self, features: &Array1) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn relu_actualize(&self, features: &Array1) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn tanh_activation(&self, features: &Array1) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn leaky_relu_activation(&self, features: &Array1) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | pub fn parametric_relu_activation(&self, features: &Array1, a: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | pub fn elu_activation(&self, features: &Array1, a: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 80 | pub fn softmax(features: ArrayView1) -> f64 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 92 | pub fn swish(&self, features: &Array1) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | pub fn gelu_activation(&self, features: &Array1) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ImageProcessor` is never constructed [INFO] [stdout] --> src/cnn/image_tensor/mod.rs:7:16 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct ImageProcessor; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `read_to_tensor`, `convert_to_grayscale_array`, and `normalize_array` are never used [INFO] [stdout] --> src/cnn/image_tensor/mod.rs:12:16 [INFO] [stdout] | [INFO] [stdout] 9 | impl ImageProcessor { [INFO] [stdout] | ------------------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 12 | pub fn read_to_tensor(file_path: &str) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | fn convert_to_grayscale_array(img: &image::DynamicImage) -> Array3 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | fn normalize_array(array: Array3) -> Array3 { [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/nn/layer/mod.rs:18:69 [INFO] [stdout] | [INFO] [stdout] 18 | let nodes: Vec = (0..num_nodes).map(|_| Node::new(weights.clone(), b)).collect(); [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] 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/nn/layer/mod.rs:75:71 [INFO] [stdout] | [INFO] [stdout] 75 | let weights: Vec = self.nodes.iter().flat_map(|node| node.get_weights().to_vec()).collect(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [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/nn/nn/mod.rs:144:48 [INFO] [stdout] | [INFO] [stdout] 144 | ... .map(|arr| ArrayBase::, ndarray::Dim<[usize; 1]>>::from_vec(vec![arr]).into_owned()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [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/cnn/image_tensor/mod.rs:36:13 [INFO] [stdout] | [INFO] [stdout] 33 | fn normalize_array(array: Array3) -> Array3 { [INFO] [stdout] | ------------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 36 | (array - min_value) / (max_value - min_value) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_weights`, `execute_layer`, `dense_numpy`, `sigmoid`, `print_layer`, and `get_nodes` are never used [INFO] [stdout] --> src/nn/layer/mod.rs:28:16 [INFO] [stdout] | [INFO] [stdout] 14 | impl Layer { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn set_weights(&mut self, index: usize, weights: Array1, bias: f64) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn execute_layer(&self, input_layer: &Array1) -> Array1 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn dense_numpy(&self, input_layer: &Array1) -> Array1 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 64 | pub fn sigmoid(&self, input: &Array1) -> Array1 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 68 | pub fn print_layer(&self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 84 | pub fn get_nodes(&self) -> &Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `weights` and `biases` are never read [INFO] [stdout] --> src/nn/nn/mod.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct NeuralNetwork { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 11 | pub weights: Vec>, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 12 | pub biases: Vec>, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `add_layer`, `predict`, `mse`, and `multiclass_cost` are never used [INFO] [stdout] --> src/nn/nn/mod.rs:29:16 [INFO] [stdout] | [INFO] [stdout] 15 | impl NeuralNetwork { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn add_layer(&mut self, layer: Layer, location: usize) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn predict(&self, input_layer: &Array1) -> Array1 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | pub fn mse(&self, y_hats: &Array1, y_actuals: &Array1) -> f64 { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | pub fn multiclass_cost(&self, y_hats: &Array2, y_actuals: &Array2) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/nn/node/mod.rs:30:16 [INFO] [stdout] | [INFO] [stdout] 23 | impl Node { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn sigmoid_actualize(&self, features: &Array1) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn relu_actualize(&self, features: &Array1) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn tanh_activation(&self, features: &Array1) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn leaky_relu_activation(&self, features: &Array1) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | pub fn parametric_relu_activation(&self, features: &Array1, a: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | pub fn elu_activation(&self, features: &Array1, a: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 80 | pub fn softmax(features: ArrayView1) -> f64 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 92 | pub fn swish(&self, features: &Array1) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | pub fn gelu_activation(&self, features: &Array1) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ImageProcessor` is never constructed [INFO] [stdout] --> src/cnn/image_tensor/mod.rs:7:16 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct ImageProcessor; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `read_to_tensor`, `convert_to_grayscale_array`, and `normalize_array` are never used [INFO] [stdout] --> src/cnn/image_tensor/mod.rs:12:16 [INFO] [stdout] | [INFO] [stdout] 9 | impl ImageProcessor { [INFO] [stdout] | ------------------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 12 | pub fn read_to_tensor(file_path: &str) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | fn convert_to_grayscale_array(img: &image::DynamicImage) -> Array3 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | fn normalize_array(array: Array3) -> Array3 { [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/nn/layer/mod.rs:18:69 [INFO] [stdout] | [INFO] [stdout] 18 | let nodes: Vec = (0..num_nodes).map(|_| Node::new(weights.clone(), b)).collect(); [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] 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/nn/layer/mod.rs:75:71 [INFO] [stdout] | [INFO] [stdout] 75 | let weights: Vec = self.nodes.iter().flat_map(|node| node.get_weights().to_vec()).collect(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [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/nn/nn/mod.rs:144:48 [INFO] [stdout] | [INFO] [stdout] 144 | ... .map(|arr| ArrayBase::, ndarray::Dim<[usize; 1]>>::from_vec(vec![arr]).into_owned()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [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/cnn/image_tensor/mod.rs:36:13 [INFO] [stdout] | [INFO] [stdout] 33 | fn normalize_array(array: Array3) -> Array3 { [INFO] [stdout] | ------------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 36 | (array - min_value) / (max_value - min_value) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors; 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors; 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `NeuralNetworkRust` (bin "NeuralNetworkRust") due to 5 previous errors; 6 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `NeuralNetworkRust` (bin "NeuralNetworkRust" test) due to 5 previous errors; 6 warnings emitted [INFO] running `Command { std: "docker" "inspect" "47867f343181e34b58e0db8c74341c95eb9ab61b45d0d434a88eb8f38deb3379", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "47867f343181e34b58e0db8c74341c95eb9ab61b45d0d434a88eb8f38deb3379", kill_on_drop: false }` [INFO] [stdout] 47867f343181e34b58e0db8c74341c95eb9ab61b45d0d434a88eb8f38deb3379