[INFO] cloning repository https://github.com/kaczor6418/neural-network [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/kaczor6418/neural-network" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkaczor6418%2Fneural-network", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkaczor6418%2Fneural-network'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 56c9f261a6ab219178a5a364f95dbe69f20c47de [INFO] checking kaczor6418/neural-network against try#8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkaczor6418%2Fneural-network" "/workspace/builds/worker-1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/kaczor6418/neural-network on toolchain 8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/kaczor6418/neural-network [INFO] finished tweaking git repo https://github.com/kaczor6418/neural-network [INFO] tweaked toml for git repo https://github.com/kaczor6418/neural-network written to /workspace/builds/worker-1/source/Cargo.toml [INFO] crate git repo https://github.com/kaczor6418/neural-network already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 045a84548192396baea8672d1f50943a6085c42e14dab109ecd86bb1913eac7f [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "045a84548192396baea8672d1f50943a6085c42e14dab109ecd86bb1913eac7f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "045a84548192396baea8672d1f50943a6085c42e14dab109ecd86bb1913eac7f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "045a84548192396baea8672d1f50943a6085c42e14dab109ecd86bb1913eac7f", kill_on_drop: false }` [INFO] [stdout] 045a84548192396baea8672d1f50943a6085c42e14dab109ecd86bb1913eac7f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8bd1db2dce596f254fd731f4a5e198915bc071d1a16873befd337a8b0c7fda57 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "8bd1db2dce596f254fd731f4a5e198915bc071d1a16873befd337a8b0c7fda57", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.81 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Checking ppv-lite86 v0.2.10 [INFO] [stderr] Checking getrandom v0.1.15 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking neural-network v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0433]: failed to resolve: maybe a missing crate `matrix`? [INFO] [stdout] --> src/neural_network/neuron.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::matrix::matrix::Matrix; [INFO] [stdout] | ^^^^^^ maybe a missing crate `matrix`? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: maybe a missing crate `matrix`? [INFO] [stdout] --> src/neural_network/layer.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::matrix::matrix::Matrix; [INFO] [stdout] | ^^^^^^ maybe a missing crate `matrix`? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `serde` [INFO] [stdout] --> src/neural_network/network.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use serde::private::ser::constrain; [INFO] [stdout] | ^^^^^ use of undeclared crate or module `serde` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Matrix` [INFO] [stdout] --> src/neural_network/neuron.rs:11:22 [INFO] [stdout] | [INFO] [stdout] 11 | weights: Matrix::new( [INFO] [stdout] | ^^^^^^ use of undeclared type `Matrix` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Matrix` [INFO] [stdout] --> src/neural_network/layer.rs:24:21 [INFO] [stdout] | [INFO] [stdout] 24 | values: Matrix::new_zeros_matrix(1, config.neurons_count), [INFO] [stdout] | ^^^^^^ use of undeclared type `Matrix` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Matrix` [INFO] [stdout] --> src/neural_network/layer.rs:82:16 [INFO] [stdout] | [INFO] [stdout] 82 | return Matrix::new( [INFO] [stdout] | ^^^^^^ use of undeclared type `Matrix` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Matrix` [INFO] [stdout] --> src/neural_network/layer.rs:119:16 [INFO] [stdout] | [INFO] [stdout] 119 | return Matrix::new(self.neurons[0].get_weights().get_values().len(), values); [INFO] [stdout] | ^^^^^^ use of undeclared type `Matrix` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Matrix` in this scope [INFO] [stdout] --> src/neural_network/neuron.rs:5:14 [INFO] [stdout] | [INFO] [stdout] 5 | weights: Matrix, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Matrix` in this scope [INFO] [stdout] --> src/neural_network/neuron.rs:25:51 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn calculate_output_value(&self, inputs: &Matrix) -> f64 { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Matrix` in this scope [INFO] [stdout] --> src/neural_network/neuron.rs:29:35 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn get_weights(&self) -> &Matrix { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Matrix` in this scope [INFO] [stdout] --> src/neural_network/layer.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | values: Matrix, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Matrix` in this scope [INFO] [stdout] --> src/neural_network/layer.rs:30:49 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn calculate_values(&mut self, inputs: &Matrix) { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Matrix` in this scope [INFO] [stdout] --> src/neural_network/layer.rs:42:29 [INFO] [stdout] | [INFO] [stdout] 42 | prev_layer_values: &Matrix, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Matrix` in this scope [INFO] [stdout] --> src/neural_network/layer.rs:43:28 [INFO] [stdout] | [INFO] [stdout] 43 | next_layer_delta: &Matrix, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Matrix` in this scope [INFO] [stdout] --> src/neural_network/layer.rs:44:30 [INFO] [stdout] | [INFO] [stdout] 44 | next_layer_weights: &Matrix, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Matrix` in this scope [INFO] [stdout] --> src/neural_network/layer.rs:56:34 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn get_values(&self) -> &Matrix { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Matrix` in this scope [INFO] [stdout] --> src/neural_network/layer.rs:81:46 [INFO] [stdout] | [INFO] [stdout] 81 | fn calculate_derivative_values(&self) -> Matrix { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Matrix` in this scope [INFO] [stdout] --> src/neural_network/layer.rs:94:28 [INFO] [stdout] | [INFO] [stdout] 94 | next_layer_delta: &Matrix, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Matrix` in this scope [INFO] [stdout] --> src/neural_network/layer.rs:95:30 [INFO] [stdout] | [INFO] [stdout] 95 | next_layer_weights: &Matrix, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Matrix` in this scope [INFO] [stdout] --> src/neural_network/layer.rs:96:10 [INFO] [stdout] | [INFO] [stdout] 96 | ) -> Matrix { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Matrix` in this scope [INFO] [stdout] --> src/neural_network/layer.rs:104:29 [INFO] [stdout] | [INFO] [stdout] 104 | prev_layer_values: &Matrix, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Matrix` in this scope [INFO] [stdout] --> src/neural_network/layer.rs:105:28 [INFO] [stdout] | [INFO] [stdout] 105 | next_layer_delta: &Matrix, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Matrix` in this scope [INFO] [stdout] --> src/neural_network/layer.rs:106:30 [INFO] [stdout] | [INFO] [stdout] 106 | next_layer_weights: &Matrix, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Matrix` in this scope [INFO] [stdout] --> src/neural_network/layer.rs:107:10 [INFO] [stdout] | [INFO] [stdout] 107 | ) -> Matrix { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Matrix` in this scope [INFO] [stdout] --> src/neural_network/layer.rs:114:38 [INFO] [stdout] | [INFO] [stdout] 114 | fn get_neurons_weights(&self) -> Matrix { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: maybe a missing crate `matrix`? [INFO] [stdout] --> src/neural_network/neuron.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::matrix::matrix::Matrix; [INFO] [stdout] | ^^^^^^ maybe a missing crate `matrix`? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: maybe a missing crate `matrix`? [INFO] [stdout] --> src/neural_network/neuron/neuron_test.rs:45:16 [INFO] [stdout] | [INFO] [stdout] 45 | use crate::matrix::matrix::Matrix; [INFO] [stdout] | ^^^^^^ maybe a missing crate `matrix`? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: maybe a missing crate `matrix`? [INFO] [stdout] --> src/neural_network/layer.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::matrix::matrix::Matrix; [INFO] [stdout] | ^^^^^^ maybe a missing crate `matrix`? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: maybe a missing crate `matrix`? [INFO] [stdout] --> src/neural_network/layer/layer_test.rs:64:16 [INFO] [stdout] | [INFO] [stdout] 64 | use crate::matrix::matrix::Matrix; [INFO] [stdout] | ^^^^^^ maybe a missing crate `matrix`? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: maybe a missing crate `matrix`? [INFO] [stdout] --> src/neural_network/layer/layer_test.rs:94:16 [INFO] [stdout] | [INFO] [stdout] 94 | use crate::matrix::matrix::Matrix; [INFO] [stdout] | ^^^^^^ maybe a missing crate `matrix`? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: maybe a missing crate `matrix`? [INFO] [stdout] --> src/neural_network/layer/layer_test.rs:135:16 [INFO] [stdout] | [INFO] [stdout] 135 | use crate::matrix::matrix::Matrix; [INFO] [stdout] | ^^^^^^ maybe a missing crate `matrix`? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: maybe a missing crate `matrix`? [INFO] [stdout] --> src/neural_network/layer/layer_test.rs:165:16 [INFO] [stdout] | [INFO] [stdout] 165 | use crate::matrix::matrix::Matrix; [INFO] [stdout] | ^^^^^^ maybe a missing crate `matrix`? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: maybe a missing crate `matrix`? [INFO] [stdout] --> src/neural_network/layer/layer_test.rs:194:16 [INFO] [stdout] | [INFO] [stdout] 194 | use crate::matrix::matrix::Matrix; [INFO] [stdout] | ^^^^^^ maybe a missing crate `matrix`? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `serde` [INFO] [stdout] --> src/neural_network/network.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use serde::private::ser::constrain; [INFO] [stdout] | ^^^^^ use of undeclared crate or module `serde` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Matrix` [INFO] [stdout] --> src/neural_network/neuron.rs:11:22 [INFO] [stdout] | [INFO] [stdout] 11 | weights: Matrix::new( [INFO] [stdout] | ^^^^^^ use of undeclared type `Matrix` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Matrix` [INFO] [stdout] --> src/neural_network/neuron/neuron_test.rs:50:22 [INFO] [stdout] | [INFO] [stdout] 50 | let inputs = Matrix::new(2, vec![1.0, 2.0]); [INFO] [stdout] | ^^^^^^ use of undeclared type `Matrix` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Matrix` [INFO] [stdout] --> src/neural_network/neuron/neuron_test.rs:59:22 [INFO] [stdout] | [INFO] [stdout] 59 | let inputs = Matrix::new(2, vec![1.0, 2.0]); [INFO] [stdout] | ^^^^^^ use of undeclared type `Matrix` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Matrix` [INFO] [stdout] --> src/neural_network/layer.rs:24:21 [INFO] [stdout] | [INFO] [stdout] 24 | values: Matrix::new_zeros_matrix(1, config.neurons_count), [INFO] [stdout] | ^^^^^^ use of undeclared type `Matrix` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Matrix` [INFO] [stdout] --> src/neural_network/layer.rs:82:16 [INFO] [stdout] | [INFO] [stdout] 82 | return Matrix::new( [INFO] [stdout] | ^^^^^^ use of undeclared type `Matrix` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Matrix` [INFO] [stdout] --> src/neural_network/layer.rs:119:16 [INFO] [stdout] | [INFO] [stdout] 119 | return Matrix::new(self.neurons[0].get_weights().get_values().len(), values); [INFO] [stdout] | ^^^^^^ use of undeclared type `Matrix` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Matrix` [INFO] [stdout] --> src/neural_network/layer/layer_test.rs:75:21 [INFO] [stdout] | [INFO] [stdout] 75 | let input = Matrix::new(2, vec![1.0, 2.0]); [INFO] [stdout] | ^^^^^^ use of undeclared type `Matrix` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Matrix` [INFO] [stdout] --> src/neural_network/layer/layer_test.rs:76:31 [INFO] [stdout] | [INFO] [stdout] 76 | let expected_output = Matrix::new(3, vec![2.0 * 1.0 + 2.0 * 2.0; 3]); [INFO] [stdout] | ^^^^^^ use of undeclared type `Matrix` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Matrix` [INFO] [stdout] --> src/neural_network/layer/layer_test.rs:101:21 [INFO] [stdout] | [INFO] [stdout] 101 | let input = Matrix::new(2, vec![1.0, 2.0]); [INFO] [stdout] | ^^^^^^ use of undeclared type `Matrix` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Matrix` [INFO] [stdout] --> src/neural_network/layer/layer_test.rs:107:31 [INFO] [stdout] | [INFO] [stdout] 107 | let expected_output = Matrix::new(3, vec![2.0 * 1.0 * 0.5 + 2.0 * 2.0 * 0.5; 3]); [INFO] [stdout] | ^^^^^^ use of undeclared type `Matrix` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Matrix` [INFO] [stdout] --> src/neural_network/layer/layer_test.rs:142:21 [INFO] [stdout] | [INFO] [stdout] 142 | let input = Matrix::new(2, vec![1.0, 2.0]); [INFO] [stdout] | ^^^^^^ use of undeclared type `Matrix` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Matrix` [INFO] [stdout] --> src/neural_network/layer/layer_test.rs:149:33 [INFO] [stdout] | [INFO] [stdout] 149 | let derivative_values = Matrix::new(3, vec![3.0; 3]); [INFO] [stdout] | ^^^^^^ use of undeclared type `Matrix` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Matrix` [INFO] [stdout] --> src/neural_network/layer/layer_test.rs:150:32 [INFO] [stdout] | [INFO] [stdout] 150 | let next_layer_delta = Matrix::new(3, vec![1.0, 2.0, 3.0]); [INFO] [stdout] | ^^^^^^ use of undeclared type `Matrix` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Matrix` [INFO] [stdout] --> src/neural_network/layer/layer_test.rs:151:34 [INFO] [stdout] | [INFO] [stdout] 151 | let next_layer_weights = Matrix::new(3, vec![1.0, 1.0, 1.0, 2.0, 2.0, 2.0, 3.0, 3.0, 3.0]); [INFO] [stdout] | ^^^^^^ use of undeclared type `Matrix` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Matrix` [INFO] [stdout] --> src/neural_network/layer/layer_test.rs:172:21 [INFO] [stdout] | [INFO] [stdout] 172 | let input = Matrix::new(2, vec![1.0, 2.0]); [INFO] [stdout] | ^^^^^^ use of undeclared type `Matrix` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Matrix` [INFO] [stdout] --> src/neural_network/layer/layer_test.rs:173:32 [INFO] [stdout] | [INFO] [stdout] 173 | let next_layer_delta = Matrix::new(3, vec![1.0, 2.0, 3.0]); [INFO] [stdout] | ^^^^^^ use of undeclared type `Matrix` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Matrix` [INFO] [stdout] --> src/neural_network/layer/layer_test.rs:174:34 [INFO] [stdout] | [INFO] [stdout] 174 | let next_layer_weights = Matrix::new(3, vec![1.0, 1.0, 1.0, 2.0, 2.0, 2.0, 3.0, 3.0, 3.0]); [INFO] [stdout] | ^^^^^^ use of undeclared type `Matrix` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Matrix` [INFO] [stdout] --> src/neural_network/layer/layer_test.rs:175:31 [INFO] [stdout] | [INFO] [stdout] 175 | let expected_output = Matrix::new(2, vec![42.0, 84.0, 42.0, 84.0, 42.0, 84.0]); [INFO] [stdout] | ^^^^^^ use of undeclared type `Matrix` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Matrix` [INFO] [stdout] --> src/neural_network/layer/layer_test.rs:202:21 [INFO] [stdout] | [INFO] [stdout] 202 | let input = Matrix::new(2, vec![1.0, 2.0]); [INFO] [stdout] | ^^^^^^ use of undeclared type `Matrix` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Matrix` [INFO] [stdout] --> src/neural_network/layer/layer_test.rs:203:32 [INFO] [stdout] | [INFO] [stdout] 203 | let next_layer_delta = Matrix::new(3, vec![1.0, 2.0, 3.0]); [INFO] [stdout] | ^^^^^^ use of undeclared type `Matrix` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Matrix` [INFO] [stdout] --> src/neural_network/layer/layer_test.rs:204:34 [INFO] [stdout] | [INFO] [stdout] 204 | let next_layer_weights = Matrix::new(3, vec![1.0, 1.0, 1.0, 2.0, 2.0, 2.0, 3.0, 3.0, 3.0]); [INFO] [stdout] | ^^^^^^ use of undeclared type `Matrix` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Matrix` [INFO] [stdout] --> src/neural_network/layer/layer_test.rs:205:31 [INFO] [stdout] | [INFO] [stdout] 205 | let expected_output = Matrix::new(2, vec![-2.2, -6.4, -2.2, -6.4, -2.2, -6.4]); [INFO] [stdout] | ^^^^^^ use of undeclared type `Matrix` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Matrix` in this scope [INFO] [stdout] --> src/neural_network/neuron.rs:5:14 [INFO] [stdout] | [INFO] [stdout] 5 | weights: Matrix, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Matrix` in this scope [INFO] [stdout] --> src/neural_network/neuron.rs:25:51 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn calculate_output_value(&self, inputs: &Matrix) -> f64 { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Matrix` in this scope [INFO] [stdout] --> src/neural_network/neuron.rs:29:35 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn get_weights(&self) -> &Matrix { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Matrix` in this scope [INFO] [stdout] --> src/neural_network/layer.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | values: Matrix, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Matrix` in this scope [INFO] [stdout] --> src/neural_network/layer.rs:30:49 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn calculate_values(&mut self, inputs: &Matrix) { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Matrix` in this scope [INFO] [stdout] --> src/neural_network/layer.rs:42:29 [INFO] [stdout] | [INFO] [stdout] 42 | prev_layer_values: &Matrix, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Matrix` in this scope [INFO] [stdout] --> src/neural_network/layer.rs:43:28 [INFO] [stdout] | [INFO] [stdout] 43 | next_layer_delta: &Matrix, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Matrix` in this scope [INFO] [stdout] --> src/neural_network/layer.rs:44:30 [INFO] [stdout] | [INFO] [stdout] 44 | next_layer_weights: &Matrix, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Matrix` in this scope [INFO] [stdout] --> src/neural_network/layer.rs:56:34 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn get_values(&self) -> &Matrix { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Matrix` in this scope [INFO] [stdout] --> src/neural_network/layer.rs:81:46 [INFO] [stdout] | [INFO] [stdout] 81 | fn calculate_derivative_values(&self) -> Matrix { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Matrix` in this scope [INFO] [stdout] --> src/neural_network/layer.rs:94:28 [INFO] [stdout] | [INFO] [stdout] 94 | next_layer_delta: &Matrix, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Matrix` in this scope [INFO] [stdout] --> src/neural_network/layer.rs:95:30 [INFO] [stdout] | [INFO] [stdout] 95 | next_layer_weights: &Matrix, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Matrix` in this scope [INFO] [stdout] --> src/neural_network/layer.rs:96:10 [INFO] [stdout] | [INFO] [stdout] 96 | ) -> Matrix { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Matrix` in this scope [INFO] [stdout] --> src/neural_network/layer.rs:104:29 [INFO] [stdout] | [INFO] [stdout] 104 | prev_layer_values: &Matrix, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Matrix` in this scope [INFO] [stdout] --> src/neural_network/layer.rs:105:28 [INFO] [stdout] | [INFO] [stdout] 105 | next_layer_delta: &Matrix, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Matrix` in this scope [INFO] [stdout] --> src/neural_network/layer.rs:106:30 [INFO] [stdout] | [INFO] [stdout] 106 | next_layer_weights: &Matrix, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Matrix` in this scope [INFO] [stdout] --> src/neural_network/layer.rs:107:10 [INFO] [stdout] | [INFO] [stdout] 107 | ) -> Matrix { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Matrix` in this scope [INFO] [stdout] --> src/neural_network/layer.rs:114:38 [INFO] [stdout] | [INFO] [stdout] 114 | fn get_neurons_weights(&self) -> Matrix { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_mutable_weights` found for struct `Neuron` in the current scope [INFO] [stdout] --> src/neural_network/layer.rs:51:18 [INFO] [stdout] | [INFO] [stdout] 51 | .get_mutable_weights() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ method not found in `Neuron` [INFO] [stdout] | [INFO] [stdout] ::: src/neural_network/neuron.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Neuron { [INFO] [stdout] | ----------------- method `get_mutable_weights` not found for this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_mutable_weights` found for struct `Neuron` in the current scope [INFO] [stdout] --> src/neural_network/layer.rs:51:18 [INFO] [stdout] | [INFO] [stdout] 51 | .get_mutable_weights() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ method not found in `Neuron` [INFO] [stdout] | [INFO] [stdout] ::: src/neural_network/neuron.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Neuron { [INFO] [stdout] | ----------------- method `get_mutable_weights` not found for this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0624]: associated function `calculate_layer_delta` is private [INFO] [stdout] --> src/neural_network/network.rs:54:37 [INFO] [stdout] | [INFO] [stdout] 54 | expected_output = layer.calculate_layer_delta(&expected_output); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ private associated function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `calculate_output` found for mutable reference `&mut Layer` in the current scope [INFO] [stdout] --> src/neural_network/network.rs:61:19 [INFO] [stdout] | [INFO] [stdout] 61 | layer.calculate_output(&inputs); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ method not found in `&mut Layer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_output` found for mutable reference `&mut Layer` in the current scope [INFO] [stdout] --> src/neural_network/network.rs:62:28 [INFO] [stdout] | [INFO] [stdout] 62 | inputs = layer.get_output().clone(); [INFO] [stdout] | ^^^^^^^^^^ method not found in `&mut Layer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_mutable_weights` found for mutable reference `&mut Neuron` in the current scope [INFO] [stdout] --> src/neural_network/layer/layer_test.rs:74:39 [INFO] [stdout] | [INFO] [stdout] 74 | .for_each(|neuron| neuron.get_mutable_weights().set_values(vec![2.0, 2.0])); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ method not found in `&mut Neuron` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_mutable_weights` found for mutable reference `&mut Neuron` in the current scope [INFO] [stdout] --> src/neural_network/layer/layer_test.rs:105:39 [INFO] [stdout] | [INFO] [stdout] 105 | .for_each(|neuron| neuron.get_mutable_weights().set_values(vec![2.0, 2.0])); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ method not found in `&mut Neuron` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_mutable_weights` found for mutable reference `&mut Neuron` in the current scope [INFO] [stdout] --> src/neural_network/layer/layer_test.rs:146:39 [INFO] [stdout] | [INFO] [stdout] 146 | .for_each(|neuron| neuron.get_mutable_weights().set_values(vec![2.0, 2.0])); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ method not found in `&mut Neuron` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_mutable_weights` found for mutable reference `&mut Neuron` in the current scope [INFO] [stdout] --> src/neural_network/layer/layer_test.rs:179:39 [INFO] [stdout] | [INFO] [stdout] 179 | .for_each(|neuron| neuron.get_mutable_weights().set_values(vec![2.0, 2.0])); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ method not found in `&mut Neuron` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_mutable_weights` found for mutable reference `&mut Neuron` in the current scope [INFO] [stdout] --> src/neural_network/layer/layer_test.rs:209:39 [INFO] [stdout] | [INFO] [stdout] 209 | .for_each(|neuron| neuron.get_mutable_weights().set_values(vec![2.0, 2.0])); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ method not found in `&mut Neuron` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0624]: associated function `calculate_layer_delta` is private [INFO] [stdout] --> src/neural_network/network.rs:54:37 [INFO] [stdout] | [INFO] [stdout] 54 | expected_output = layer.calculate_layer_delta(&expected_output); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ private associated function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `calculate_output` found for mutable reference `&mut Layer` in the current scope [INFO] [stdout] --> src/neural_network/network.rs:61:19 [INFO] [stdout] | [INFO] [stdout] 61 | layer.calculate_output(&inputs); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ method not found in `&mut Layer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_output` found for mutable reference `&mut Layer` in the current scope [INFO] [stdout] --> src/neural_network/network.rs:62:28 [INFO] [stdout] | [INFO] [stdout] 62 | inputs = layer.get_output().clone(); [INFO] [stdout] | ^^^^^^^^^^ method not found in `&mut Layer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/neural_network/network.rs:72:13 [INFO] [stdout] | [INFO] [stdout] 72 | &layer_cfg.activation_callback, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `layer_config::LayerConfig`, found reference [INFO] [stdout] | [INFO] [stdout] = note: expected struct `layer_config::LayerConfig` [INFO] [stdout] found reference `&Option f64>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/neural_network/network.rs:72:13 [INFO] [stdout] | [INFO] [stdout] 72 | &layer_cfg.activation_callback, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `layer_config::LayerConfig`, found reference [INFO] [stdout] | [INFO] [stdout] = note: expected struct `layer_config::LayerConfig` [INFO] [stdout] found reference `&Option f64>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/neural_network/network.rs:73:13 [INFO] [stdout] | [INFO] [stdout] 73 | &layer_cfg.activation_function_derivative, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `usize`, found reference [INFO] [stdout] | [INFO] [stdout] = note: expected type `usize` [INFO] [stdout] found reference `&Option fn(&'r f64) -> f64>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0624]: associated function `add_neurons` is private [INFO] [stdout] --> src/neural_network/network.rs:75:15 [INFO] [stdout] | [INFO] [stdout] 75 | layer.add_neurons( [INFO] [stdout] | ^^^^^^^^^^^ private associated function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_output` found for struct `Layer` in the current scope [INFO] [stdout] --> src/neural_network/network.rs:99:34 [INFO] [stdout] | [INFO] [stdout] 99 | return self.output_layer.get_output().clone(); [INFO] [stdout] | ^^^^^^^^^^ method not found in `Layer` [INFO] [stdout] | [INFO] [stdout] ::: src/neural_network/layer.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Layer { [INFO] [stdout] | ---------------- method `get_output` not found for this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 33 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0412, E0433, E0599, E0624. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `neural-network` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/neural_network/network.rs:73:13 [INFO] [stdout] | [INFO] [stdout] 73 | &layer_cfg.activation_function_derivative, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `usize`, found reference [INFO] [stdout] | [INFO] [stdout] = note: expected type `usize` [INFO] [stdout] found reference `&Option fn(&'r f64) -> f64>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0624]: associated function `add_neurons` is private [INFO] [stdout] --> src/neural_network/network.rs:75:15 [INFO] [stdout] | [INFO] [stdout] 75 | layer.add_neurons( [INFO] [stdout] | ^^^^^^^^^^^ private associated function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_output` found for struct `Layer` in the current scope [INFO] [stdout] --> src/neural_network/network.rs:99:34 [INFO] [stdout] | [INFO] [stdout] 99 | return self.output_layer.get_output().clone(); [INFO] [stdout] | ^^^^^^^^^^ method not found in `Layer` [INFO] [stdout] | [INFO] [stdout] ::: src/neural_network/layer.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Layer { [INFO] [stdout] | ---------------- method `get_output` not found for this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 62 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0412, E0433, E0599, E0624. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "8bd1db2dce596f254fd731f4a5e198915bc071d1a16873befd337a8b0c7fda57", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8bd1db2dce596f254fd731f4a5e198915bc071d1a16873befd337a8b0c7fda57", kill_on_drop: false }` [INFO] [stdout] 8bd1db2dce596f254fd731f4a5e198915bc071d1a16873befd337a8b0c7fda57