[INFO] cloning repository https://github.com/RPP1011/neuralnetworkfromscratch [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/RPP1011/neuralnetworkfromscratch" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRPP1011%2Fneuralnetworkfromscratch", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRPP1011%2Fneuralnetworkfromscratch'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c53f61e6ae95b3538ffd0ffab495e2366747ffc5 [INFO] building RPP1011/neuralnetworkfromscratch against try#4987e9d4227139400384ab59296ffee3b0fb1183 for pr-146237-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRPP1011%2Fneuralnetworkfromscratch" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/RPP1011/neuralnetworkfromscratch [INFO] finished tweaking git repo https://github.com/RPP1011/neuralnetworkfromscratch [INFO] tweaked toml for git repo https://github.com/RPP1011/neuralnetworkfromscratch written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/RPP1011/neuralnetworkfromscratch on toolchain 4987e9d4227139400384ab59296ffee3b0fb1183 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4987e9d4227139400384ab59296ffee3b0fb1183" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/RPP1011/neuralnetworkfromscratch 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" "+4987e9d4227139400384ab59296ffee3b0fb1183" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+4987e9d4227139400384ab59296ffee3b0fb1183" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2fb55396d4c8371964216d405094e775ca24d0c72f027d41cf2fc8c54888d037 [INFO] running `Command { std: "docker" "start" "-a" "2fb55396d4c8371964216d405094e775ca24d0c72f027d41cf2fc8c54888d037", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2fb55396d4c8371964216d405094e775ca24d0c72f027d41cf2fc8c54888d037", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2fb55396d4c8371964216d405094e775ca24d0c72f027d41cf2fc8c54888d037", kill_on_drop: false }` [INFO] [stdout] 2fb55396d4c8371964216d405094e775ca24d0c72f027d41cf2fc8c54888d037 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+4987e9d4227139400384ab59296ffee3b0fb1183" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ce8735349d8167da47a0c53cd93e9cff06e577d3f23d108c0f3a342e6ac668b8 [INFO] running `Command { std: "docker" "start" "-a" "ce8735349d8167da47a0c53cd93e9cff06e577d3f23d108c0f3a342e6ac668b8", kill_on_drop: false }` [INFO] [stderr] Compiling syn v2.0.66 [INFO] [stderr] Compiling libc v0.2.155 [INFO] [stderr] Compiling serde v1.0.203 [INFO] [stderr] Compiling once_cell v1.19.0 [INFO] [stderr] Compiling serde_json v1.0.118 [INFO] [stderr] Compiling rustix v0.38.34 [INFO] [stderr] Compiling dot-structures v0.1.1 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling unicode-width v0.1.13 [INFO] [stderr] Compiling regex-syntax v0.8.4 [INFO] [stderr] Compiling csv-core v0.1.11 [INFO] [stderr] Compiling fastrand v2.1.0 [INFO] [stderr] Compiling half v1.8.3 [INFO] [stderr] Compiling cast v0.3.0 [INFO] [stderr] Compiling rayon v1.10.0 [INFO] [stderr] Compiling plotters v0.3.6 [INFO] [stderr] Compiling into-attr v0.1.1 [INFO] [stderr] Compiling dot-generator v0.2.0 [INFO] [stderr] Compiling criterion-plot v0.4.5 [INFO] [stderr] Compiling oorandom v11.1.4 [INFO] [stderr] Compiling textwrap v0.11.0 [INFO] [stderr] Compiling typed-arena v2.0.2 [INFO] [stderr] Compiling clap v2.34.0 [INFO] [stderr] Compiling regex-automata v0.4.7 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling into-attr-derive v0.2.1 [INFO] [stderr] Compiling tempfile v3.10.1 [INFO] [stderr] Compiling serde_cbor v0.11.2 [INFO] [stderr] Compiling csv v1.3.0 [INFO] [stderr] Compiling regex v1.10.5 [INFO] [stderr] Compiling thiserror-impl v1.0.61 [INFO] [stderr] Compiling serde_derive v1.0.203 [INFO] [stderr] Compiling tinytemplate v1.2.1 [INFO] [stderr] Compiling thiserror v1.0.61 [INFO] [stderr] Compiling pest v2.7.10 [INFO] [stderr] Compiling criterion v0.3.6 [INFO] [stderr] Compiling pest_meta v2.7.10 [INFO] [stderr] Compiling pest_generator v2.7.10 [INFO] [stderr] Compiling pest_derive v2.7.10 [INFO] [stderr] Compiling graphviz-rust v0.9.0 [INFO] [stderr] Compiling neural_network_from_scratch v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `cell::RefCell` and `rc::Rc` [INFO] [stdout] --> src/main.rs:12:11 [INFO] [stdout] | [INFO] [stdout] 12 | use std::{cell::RefCell, rc::Rc, vec}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `IDX_DATA_TYPE` should have an upper camel case name [INFO] [stdout] --> src/file/idx_reader.rs:6:6 [INFO] [stdout] | [INFO] [stdout] 6 | enum IDX_DATA_TYPE { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `IdxDataType` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `iter` [INFO] [stdout] --> src/graph/graph.rs:1:26 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{cell::RefCell, iter, rc::Rc}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/graph/graph.rs:7:26 [INFO] [stdout] | [INFO] [stdout] 7 | tensor_context::{self, TensorContext, TensorRef}, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `self` and `tensor::Tensor` [INFO] [stdout] --> src/graph/loss_function.rs:3:19 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::math::{tensor::Tensor, tensor_context::{self, TensorContext, TensorRef}}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::math::tensor::Tensor` [INFO] [stdout] --> src/layers/flatten.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::math::tensor::Tensor; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Tensor` and `self` [INFO] [stdout] --> src/math/composite_operations.rs:4:14 [INFO] [stdout] | [INFO] [stdout] 4 | tensor::{self, Operation, Tensor}, [INFO] [stdout] | ^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TensorRef` [INFO] [stdout] --> src/sample_functions/sine_wave.rs:3:67 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::math::{tensor::Tensor, tensor_context::{TensorContext, TensorRef}}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `borrow::BorrowMut` [INFO] [stdout] --> src/math/composite_operations.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{borrow::BorrowMut, cell::RefCell, rc::Rc}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BorrowMut` [INFO] [stdout] --> src/math/tensor.rs:2:14 [INFO] [stdout] | [INFO] [stdout] 2 | borrow::{BorrowMut}, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Add` [INFO] [stdout] --> src/math/tensor.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | ops::{Add, Mul}, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Mul` [INFO] [stdout] --> src/math/tensor.rs:4:16 [INFO] [stdout] | [INFO] [stdout] 4 | ops::{Add, Mul}, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/graph/graph.rs:101:24 [INFO] [stdout] | [INFO] [stdout] 101 | .map(|(i, (input, label))| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `operation` is never read [INFO] [stdout] --> src/math/tensor_context.rs:179:17 [INFO] [stdout] | [INFO] [stdout] 179 | let mut operation: Option = None; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input_tensor` [INFO] [stdout] --> src/nuerons/nuerons.rs:51:32 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn feed_forward(&self, input_tensor: TensorRef) -> TensorRef { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_input_tensor` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pred` [INFO] [stdout] --> src/math/tensor_context.rs:314:45 [INFO] [stdout] | [INFO] [stdout] 314 | ... .map(|((pred, output_data), output_grad)| if *output_data > 0.0 { *output_grad } else { 0.0 }) [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_pred` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/sample_functions/sine_wave.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | for i in 0..count { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tensor_context` [INFO] [stdout] --> src/graph/loss_function.rs:28:22 [INFO] [stdout] | [INFO] [stdout] 28 | fn cross_entropy(tensor_context: Rc>,_input : TensorRef, _desired: TensorRef) -> TensorRef { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_tensor_context` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tensor_context` [INFO] [stdout] --> src/graph/loss_function.rs:32:29 [INFO] [stdout] | [INFO] [stdout] 32 | fn sparse_cross_entropy(tensor_context: Rc>,_input : TensorRef, _desired: TensorRef) -> TensorRef { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_tensor_context` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tensor_ref1` [INFO] [stdout] --> src/math/tensor_context.rs:433:43 [INFO] [stdout] | [INFO] [stdout] 433 | pub fn dot_product_inplace(&mut self, tensor_ref1: TensorRef) {} [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_tensor_ref1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `try_MNIST` is never used [INFO] [stdout] --> src/main.rs:74:4 [INFO] [stdout] | [INFO] [stdout] 74 | fn try_MNIST() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_type` is never used [INFO] [stdout] --> src/file/idx_reader.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 15 | impl IDX_DATA_TYPE { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 28 | fn to_type(&self) -> std::any::TypeId { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `try_MNIST` should have a snake case name [INFO] [stdout] --> src/main.rs:74:4 [INFO] [stdout] | [INFO] [stdout] 74 | fn try_MNIST() { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `try_mnist` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 40.03s [INFO] running `Command { std: "docker" "inspect" "ce8735349d8167da47a0c53cd93e9cff06e577d3f23d108c0f3a342e6ac668b8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ce8735349d8167da47a0c53cd93e9cff06e577d3f23d108c0f3a342e6ac668b8", kill_on_drop: false }` [INFO] [stdout] ce8735349d8167da47a0c53cd93e9cff06e577d3f23d108c0f3a342e6ac668b8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+4987e9d4227139400384ab59296ffee3b0fb1183" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 68f618c1aa44cc200d32ebc7a1071be8493a932f99bd2760a8fd82841dbe854a [INFO] running `Command { std: "docker" "start" "-a" "68f618c1aa44cc200d32ebc7a1071be8493a932f99bd2760a8fd82841dbe854a", kill_on_drop: false }` [INFO] [stderr] Compiling neural_network_from_scratch v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `cell::RefCell` and `rc::Rc` [INFO] [stdout] --> src/main.rs:12:11 [INFO] [stdout] | [INFO] [stdout] 12 | use std::{cell::RefCell, rc::Rc, vec}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `IDX_DATA_TYPE` should have an upper camel case name [INFO] [stdout] --> src/file/idx_reader.rs:6:6 [INFO] [stdout] | [INFO] [stdout] 6 | enum IDX_DATA_TYPE { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `IdxDataType` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `iter` [INFO] [stdout] --> src/graph/graph.rs:1:26 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{cell::RefCell, iter, rc::Rc}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/graph/graph.rs:7:26 [INFO] [stdout] | [INFO] [stdout] 7 | tensor_context::{self, TensorContext, TensorRef}, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `self` and `tensor::Tensor` [INFO] [stdout] --> src/graph/loss_function.rs:3:19 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::math::{tensor::Tensor, tensor_context::{self, TensorContext, TensorRef}}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::math::tensor::Tensor` [INFO] [stdout] --> src/layers/flatten.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::math::tensor::Tensor; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::math::tensor_context` [INFO] [stdout] --> src/math/tensor_context.rs:571:9 [INFO] [stdout] | [INFO] [stdout] 571 | use crate::math::tensor_context; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Tensor` and `self` [INFO] [stdout] --> src/math/composite_operations.rs:4:14 [INFO] [stdout] | [INFO] [stdout] 4 | tensor::{self, Operation, Tensor}, [INFO] [stdout] | ^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TensorRef` [INFO] [stdout] --> src/sample_functions/sine_wave.rs:3:67 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::math::{tensor::Tensor, tensor_context::{TensorContext, TensorRef}}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `borrow::BorrowMut` [INFO] [stdout] --> src/math/composite_operations.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{borrow::BorrowMut, cell::RefCell, rc::Rc}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Mul` [INFO] [stdout] --> src/math/tensor.rs:4:16 [INFO] [stdout] | [INFO] [stdout] 4 | ops::{Add, Mul}, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BorrowMut` [INFO] [stdout] --> src/math/tensor.rs:2:14 [INFO] [stdout] | [INFO] [stdout] 2 | borrow::{BorrowMut}, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Add` [INFO] [stdout] --> src/math/tensor.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | ops::{Add, Mul}, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input_tensor` [INFO] [stdout] --> src/nuerons/nuerons.rs:51:32 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn feed_forward(&self, input_tensor: TensorRef) -> TensorRef { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_input_tensor` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pred` [INFO] [stdout] --> src/math/tensor_context.rs:314:45 [INFO] [stdout] | [INFO] [stdout] 314 | ... .map(|((pred, output_data), output_grad)| if *output_data > 0.0 { *output_grad } else { 0.0 }) [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_pred` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/sample_functions/sine_wave.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | for i in 0..count { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tensor_context` [INFO] [stdout] --> src/graph/loss_function.rs:28:22 [INFO] [stdout] | [INFO] [stdout] 28 | fn cross_entropy(tensor_context: Rc>,_input : TensorRef, _desired: TensorRef) -> TensorRef { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_tensor_context` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tensor_context` [INFO] [stdout] --> src/graph/loss_function.rs:32:29 [INFO] [stdout] | [INFO] [stdout] 32 | fn sparse_cross_entropy(tensor_context: Rc>,_input : TensorRef, _desired: TensorRef) -> TensorRef { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_tensor_context` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/graph/graph.rs:101:24 [INFO] [stdout] | [INFO] [stdout] 101 | .map(|(i, (input, label))| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `operation` is never read [INFO] [stdout] --> src/math/tensor_context.rs:179:17 [INFO] [stdout] | [INFO] [stdout] 179 | let mut operation: Option = None; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tensor_ref1` [INFO] [stdout] --> src/math/tensor_context.rs:433:43 [INFO] [stdout] | [INFO] [stdout] 433 | pub fn dot_product_inplace(&mut self, tensor_ref1: TensorRef) {} [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_tensor_ref1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `try_MNIST` should have a snake case name [INFO] [stdout] --> src/main.rs:74:4 [INFO] [stdout] | [INFO] [stdout] 74 | fn try_MNIST() { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `try_mnist` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `try_MNIST` is never used [INFO] [stdout] --> src/main.rs:74:4 [INFO] [stdout] | [INFO] [stdout] 74 | fn try_MNIST() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_type` is never used [INFO] [stdout] --> src/file/idx_reader.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 15 | impl IDX_DATA_TYPE { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 28 | fn to_type(&self) -> std::any::TypeId { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.66s [INFO] running `Command { std: "docker" "inspect" "68f618c1aa44cc200d32ebc7a1071be8493a932f99bd2760a8fd82841dbe854a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "68f618c1aa44cc200d32ebc7a1071be8493a932f99bd2760a8fd82841dbe854a", kill_on_drop: false }` [INFO] [stdout] 68f618c1aa44cc200d32ebc7a1071be8493a932f99bd2760a8fd82841dbe854a