[INFO] cloning repository https://github.com/richwandell/rust-algorithms [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/richwandell/rust-algorithms" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frichwandell%2Frust-algorithms", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frichwandell%2Frust-algorithms'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 58cbef2915c323c7a57c4068b5f52094516e952e [INFO] checking richwandell/rust-algorithms against try#8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frichwandell%2Frust-algorithms" "/workspace/builds/worker-14/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-14/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/richwandell/rust-algorithms 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/richwandell/rust-algorithms [INFO] finished tweaking git repo https://github.com/richwandell/rust-algorithms [INFO] tweaked toml for git repo https://github.com/richwandell/rust-algorithms written to /workspace/builds/worker-14/source/Cargo.toml [INFO] crate git repo https://github.com/richwandell/rust-algorithms 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] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded spmc v0.3.0 [INFO] [stderr] Downloaded ndarray-stats v0.3.0 [INFO] [stderr] Downloaded noisy_float v0.1.11 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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] a74f4537dfe93788363c7b1749396cc8c664edd6304f4959c8a4c67315414670 [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" "a74f4537dfe93788363c7b1749396cc8c664edd6304f4959c8a4c67315414670", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a74f4537dfe93788363c7b1749396cc8c664edd6304f4959c8a4c67315414670", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a74f4537dfe93788363c7b1749396cc8c664edd6304f4959c8a4c67315414670", kill_on_drop: false }` [INFO] [stdout] a74f4537dfe93788363c7b1749396cc8c664edd6304f4959c8a4c67315414670 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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] d2e2bf26eec8ffc5942f963f7e21a89960d35e557addd3e8d08a9f613266e4a5 [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" "d2e2bf26eec8ffc5942f963f7e21a89960d35e557addd3e8d08a9f613266e4a5", kill_on_drop: false }` [INFO] [stderr] Compiling getrandom v0.1.12 [INFO] [stderr] Checking ppv-lite86 v0.2.5 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking rawpointer v0.2.1 [INFO] [stderr] Checking either v1.5.3 [INFO] [stderr] Compiling ndarray v0.13.0 [INFO] [stderr] Checking indexmap v1.2.0 [INFO] [stderr] Checking spmc v0.3.0 [INFO] [stderr] Compiling num-integer v0.1.41 [INFO] [stderr] Compiling num-complex v0.2.3 [INFO] [stderr] Checking num_cpus v1.10.1 [INFO] [stderr] Checking noisy_float v0.1.11 [INFO] [stderr] Checking matrixmultiply v0.2.3 [INFO] [stderr] Checking itertools v0.8.0 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking c2-chacha v0.2.2 [INFO] [stderr] Checking rand_pcg v0.2.0 [INFO] [stderr] Checking rand_chacha v0.2.1 [INFO] [stderr] Checking rand v0.7.2 [INFO] [stderr] Checking rand_distr v0.2.2 [INFO] [stderr] Checking ndarray-stats v0.3.0 [INFO] [stderr] Checking ndarray-rand v0.11.0 [INFO] [stderr] Checking Algos v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `ArrayBase`, `Ix`, `OwnedRepr` [INFO] [stdout] --> src/bin/neural_network.rs:5:36 [INFO] [stdout] | [INFO] [stdout] 5 | use ndarray::{arr2, Array, Array2, ArrayBase, Ix, OwnedRepr}; [INFO] [stdout] | ^^^^^^^^^ ^^ ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ndarray::Ix2` [INFO] [stdout] --> src/bin/neural_network.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use ndarray::Ix2; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `Algos` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] = help: convert the identifier to snake case: `algos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ArrayBase`, `Ix`, `OwnedRepr` [INFO] [stdout] --> src/bin/neural_network.rs:5:36 [INFO] [stdout] | [INFO] [stdout] 5 | use ndarray::{arr2, Array, Array2, ArrayBase, Ix, OwnedRepr}; [INFO] [stdout] | ^^^^^^^^^ ^^ ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ndarray::Ix2` [INFO] [stdout] --> src/bin/neural_network.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use ndarray::Ix2; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/bin/producer_consumer_shared_memory.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | for n in 0..cpus { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/bin/producer_consumer_shared_memory.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | for i in 0..cpus { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/bin/producer_consumer_message_passing.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | for n in 0..cpus { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/bin/producer_consumer_message_passing.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | for i in 0..cpus { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `grid_x` is never read [INFO] [stdout] --> src/bin/sudoku_solver.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | let mut grid_x = 0; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/producer_consumer_message_passing.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | let (mut mptx, mprx) = mpsc::channel(); [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: value assigned to `grid_y` is never read [INFO] [stdout] --> src/bin/sudoku_solver.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | let mut grid_y = 0; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/bin/producer_consumer_message_passing.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | for n in 0..cpus { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/bin/producer_consumer_shared_memory.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | for n in 0..cpus { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/bin/producer_consumer_shared_memory.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | for i in 0..cpus { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::process` [INFO] [stdout] --> src/bin/spoj_discrete_roots.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::process; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/bin/producer_consumer_message_passing.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | for i in 0..cpus { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/sudoku_solver.rs:48:32 [INFO] [stdout] | [INFO] [stdout] 48 | fn solve(mut r:i32, mut c:i32, mut board: &mut Vec>) -> bool { [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: variable does not need to be mutable [INFO] [stdout] --> src/bin/producer_consumer_message_passing.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | let (mut mptx, mprx) = mpsc::channel(); [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: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::process` [INFO] [stdout] --> src/bin/spoj_discrete_roots.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::process; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/bin/producer_consumer_shared_memory.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | sptx.send(exit); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/bin/producer_consumer_shared_memory.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | sptx.send(exit); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `Algos` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] = help: convert the identifier to snake case: `algos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/bin/spoj_prime_generator.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | io::stdin().read_line(&mut input); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: type mismatch resolving `<&[usize] as ShapeBuilder>::Dim == Dim<[usize; 2]>` [INFO] [stdout] --> src/bin/neural_network.rs:90:20 [INFO] [stdout] | [INFO] [stdout] 90 | let ones = Array2::::ones(sig.shape()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ expected array `[usize; 2]`, found struct `IxDynImpl` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Dim<[usize; 2]>` [INFO] [stdout] found struct `Dim` [INFO] [stdout] = note: required by `ndarray::impl_constructors::>::ones` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/bin/producer_consumer_message_passing.rs:21:21 [INFO] [stdout] | [INFO] [stdout] 21 | tx.send(exit); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/bin/producer_consumer_message_passing.rs:26:17 [INFO] [stdout] | [INFO] [stdout] 26 | tx.send(return_value); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/bin/producer_consumer_message_passing.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | sptx.send(exit); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `grid_x` is never read [INFO] [stdout] --> src/bin/sudoku_solver.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | let mut grid_x = 0; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `grid_y` is never read [INFO] [stdout] --> src/bin/sudoku_solver.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | let mut grid_y = 0; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/sudoku_solver.rs:48:32 [INFO] [stdout] | [INFO] [stdout] 48 | fn solve(mut r:i32, mut c:i32, mut board: &mut Vec>) -> bool { [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: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: type mismatch resolving `<&[usize] as ShapeBuilder>::Dim == Dim<[usize; 2]>` [INFO] [stdout] --> src/bin/neural_network.rs:90:20 [INFO] [stdout] | [INFO] [stdout] 90 | let ones = Array2::::ones(sig.shape()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ expected array `[usize; 2]`, found struct `IxDynImpl` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Dim<[usize; 2]>` [INFO] [stdout] found struct `Dim` [INFO] [stdout] = note: required by `ndarray::impl_constructors::>::ones` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/bin/producer_consumer_message_passing.rs:21:21 [INFO] [stdout] | [INFO] [stdout] 21 | tx.send(exit); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/bin/producer_consumer_message_passing.rs:26:17 [INFO] [stdout] | [INFO] [stdout] 26 | tx.send(return_value); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/bin/producer_consumer_message_passing.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | sptx.send(exit); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/bin/spoj_prime_generator.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | io::stdin().read_line(&mut input); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `sub` found for struct `ArrayBase, Dim<[usize; 2]>>` in the current scope [INFO] [stdout] --> src/bin/neural_network.rs:91:30 [INFO] [stdout] | [INFO] [stdout] 91 | let one_minus = ones.sub(&sig); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] | [INFO] [stdout] 3 | use std::ops::Sub; [INFO] [stdout] | [INFO] [stdout] help: there is an associated function with a similar name [INFO] [stdout] | [INFO] [stdout] 91 | let one_minus = ones.sum(&sig); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `usize: SampleBorrow<{float}>` is not satisfied [INFO] [stdout] --> src/bin/neural_network.rs:106:71 [INFO] [stdout] | [INFO] [stdout] 106 | let s = Array::random((1, X.shape()[0]), Uniform::new(0., X.shape()[0])); [INFO] [stdout] | ^^^^^^^^^^^^ the trait `SampleBorrow<{float}>` is not implemented for `usize` [INFO] [stdout] | [INFO] [stdout] = note: required by `Uniform::::new` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `usize: NdIndex>` is not satisfied [INFO] [stdout] --> src/bin/neural_network.rs:109:25 [INFO] [stdout] | [INFO] [stdout] 109 | let i = s[n as usize]; [INFO] [stdout] | ^^^^^^^^^^^^^ the trait `NdIndex>` is not implemented for `usize` [INFO] [stdout] | [INFO] [stdout] = help: the following implementations were found: [INFO] [stdout] >> [INFO] [stdout] >> [INFO] [stdout] = note: required because of the requirements on the impl of `std::ops::Index` for `ArrayBase, Dim<[usize; 2]>>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `ViewRepr<&f64>: DataOwned` is not satisfied [INFO] [stdout] --> src/bin/neural_network.rs:110:43 [INFO] [stdout] | [INFO] [stdout] 110 | let x = X.row(i as usize).reshape((1, X.shape()[1])); [INFO] [stdout] | ^^^^^^^ the trait `DataOwned` is not implemented for `ViewRepr<&f64>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/bin/spoj_discrete_roots.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | if b & 1 { [INFO] [stdout] | ^^^^^ expected `bool`, found `i32` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `Algos` [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/bin/spoj_discrete_roots.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | if b & 1 { [INFO] [stdout] | ^^^^^ expected `bool`, found `i32` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] error: aborting due to previous error; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to previous error; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `sub` found for struct `ArrayBase, Dim<[usize; 2]>>` in the current scope [INFO] [stdout] --> src/bin/neural_network.rs:91:30 [INFO] [stdout] | [INFO] [stdout] 91 | let one_minus = ones.sub(&sig); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] | [INFO] [stdout] 3 | use std::ops::Sub; [INFO] [stdout] | [INFO] [stdout] help: there is an associated function with a similar name [INFO] [stdout] | [INFO] [stdout] 91 | let one_minus = ones.sum(&sig); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `usize: SampleBorrow<{float}>` is not satisfied [INFO] [stdout] --> src/bin/neural_network.rs:106:71 [INFO] [stdout] | [INFO] [stdout] 106 | let s = Array::random((1, X.shape()[0]), Uniform::new(0., X.shape()[0])); [INFO] [stdout] | ^^^^^^^^^^^^ the trait `SampleBorrow<{float}>` is not implemented for `usize` [INFO] [stdout] | [INFO] [stdout] = note: required by `Uniform::::new` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `usize: NdIndex>` is not satisfied [INFO] [stdout] --> src/bin/neural_network.rs:109:25 [INFO] [stdout] | [INFO] [stdout] 109 | let i = s[n as usize]; [INFO] [stdout] | ^^^^^^^^^^^^^ the trait `NdIndex>` is not implemented for `usize` [INFO] [stdout] | [INFO] [stdout] = help: the following implementations were found: [INFO] [stdout] >> [INFO] [stdout] >> [INFO] [stdout] = note: required because of the requirements on the impl of `std::ops::Index` for `ArrayBase, Dim<[usize; 2]>>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `ViewRepr<&f64>: DataOwned` is not satisfied [INFO] [stdout] --> src/bin/neural_network.rs:110:43 [INFO] [stdout] | [INFO] [stdout] 110 | let x = X.row(i as usize).reshape((1, X.shape()[1])); [INFO] [stdout] | ^^^^^^^ the trait `DataOwned` is not implemented for `ViewRepr<&f64>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/bin/neural_network.rs:112:63 [INFO] [stdout] | [INFO] [stdout] 112 | let (djdw1, djdw2) = self.cost_function_prime(&x, &yt); [INFO] [stdout] | ^^ expected struct `OwnedRepr`, found struct `ViewRepr` [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&ArrayBase, Dim<[usize; 2]>>` [INFO] [stdout] found reference `&ArrayBase, Dim<[usize; 2]>>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/bin/neural_network.rs:112:63 [INFO] [stdout] | [INFO] [stdout] 112 | let (djdw1, djdw2) = self.cost_function_prime(&x, &yt); [INFO] [stdout] | ^^ expected struct `OwnedRepr`, found struct `ViewRepr` [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&ArrayBase, Dim<[usize; 2]>>` [INFO] [stdout] found reference `&ArrayBase, Dim<[usize; 2]>>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/bin/neural_network.rs:112:67 [INFO] [stdout] | [INFO] [stdout] 112 | let (djdw1, djdw2) = self.cost_function_prime(&x, &yt); [INFO] [stdout] | ^^^ expected struct `OwnedRepr`, found struct `ViewRepr` [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&ArrayBase, Dim<[usize; 2]>>` [INFO] [stdout] found reference `&ArrayBase, Dim<[usize; 1]>>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: type mismatch resolving `, Dim<[usize; 2]>>>>::Output == f64` [INFO] [stdout] --> src/bin/neural_network.rs:114:36 [INFO] [stdout] | [INFO] [stdout] 114 | self.W1 = &self.W1 - d1; [INFO] [stdout] | ^ expected struct `ArrayBase`, found `f64` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `ArrayBase, Dim<[usize; 2]>>` [INFO] [stdout] found type `f64` [INFO] [stdout] = note: required because of the requirements on the impl of `Sub, Dim<[usize; 2]>>>` for `&ArrayBase, Dim<[usize; 2]>>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `ArrayBase, Dim<[usize; 2]>>: ScalarOperand` is not satisfied [INFO] [stdout] --> src/bin/neural_network.rs:114:36 [INFO] [stdout] | [INFO] [stdout] 114 | self.W1 = &self.W1 - d1; [INFO] [stdout] | ^ the trait `ScalarOperand` is not implemented for `ArrayBase, Dim<[usize; 2]>>` [INFO] [stdout] | [INFO] [stdout] = note: required because of the requirements on the impl of `Sub, Dim<[usize; 2]>>>` for `&ArrayBase, Dim<[usize; 2]>>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: type mismatch resolving `, Dim<[usize; 2]>>>>::Output == f64` [INFO] [stdout] --> src/bin/neural_network.rs:116:36 [INFO] [stdout] | [INFO] [stdout] 116 | self.W2 = &self.W2 - d2; [INFO] [stdout] | ^ expected struct `ArrayBase`, found `f64` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `ArrayBase, Dim<[usize; 2]>>` [INFO] [stdout] found type `f64` [INFO] [stdout] = note: required because of the requirements on the impl of `Sub, Dim<[usize; 2]>>>` for `&ArrayBase, Dim<[usize; 2]>>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `ArrayBase, Dim<[usize; 2]>>: ScalarOperand` is not satisfied [INFO] [stdout] --> src/bin/neural_network.rs:116:36 [INFO] [stdout] | [INFO] [stdout] 116 | self.W2 = &self.W2 - d2; [INFO] [stdout] | ^ the trait `ScalarOperand` is not implemented for `ArrayBase, Dim<[usize; 2]>>` [INFO] [stdout] | [INFO] [stdout] = note: required because of the requirements on the impl of `Sub, Dim<[usize; 2]>>>` for `&ArrayBase, Dim<[usize; 2]>>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 2 arguments but 0 arguments were supplied [INFO] [stdout] --> src/bin/neural_network.rs:119:29 [INFO] [stdout] | [INFO] [stdout] 119 | let cost = self.cost_function(); [INFO] [stdout] | ^^^^^^^^^^^^^- supplied 0 arguments [INFO] [stdout] | | [INFO] [stdout] | expected 2 arguments [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/bin/neural_network.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | fn cost_function(&mut self, X: &Array2, y: &Array2) -> f64; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `powi` found for struct `ArrayBase, Dim<[usize; 2]>>` in the current scope [INFO] [stdout] --> src/bin/neural_network.rs:131:37 [INFO] [stdout] | [INFO] [stdout] 131 | let squared_summed = ymyhat.powi(2).sum(); [INFO] [stdout] | ^^^^ method not found in `ArrayBase, Dim<[usize; 2]>>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: cannot multiply `{integer}` by `ArrayBase, Dim<[usize; 2]>>` [INFO] [stdout] --> src/bin/neural_network.rs:143:23 [INFO] [stdout] | [INFO] [stdout] 143 | let rsub = -1 * ymyh; [INFO] [stdout] | ^ no implementation for `{integer} * ArrayBase, Dim<[usize; 2]>>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Mul, Dim<[usize; 2]>>>` is not implemented for `{integer}` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/bin/neural_network.rs:154:31 [INFO] [stdout] | [INFO] [stdout] 154 | let djdw1 = X.t().dot(delta2); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected reference, found struct `ArrayBase` [INFO] [stdout] | help: consider borrowing here: `&delta2` [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&_` [INFO] [stdout] found struct `ArrayBase, Dim<[usize; 2]>>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 15 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0271, E0277, E0308, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/bin/neural_network.rs:112:67 [INFO] [stdout] | [INFO] [stdout] 112 | let (djdw1, djdw2) = self.cost_function_prime(&x, &yt); [INFO] [stdout] | ^^^ expected struct `OwnedRepr`, found struct `ViewRepr` [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&ArrayBase, Dim<[usize; 2]>>` [INFO] [stdout] found reference `&ArrayBase, Dim<[usize; 1]>>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: type mismatch resolving `, Dim<[usize; 2]>>>>::Output == f64` [INFO] [stdout] --> src/bin/neural_network.rs:114:36 [INFO] [stdout] | [INFO] [stdout] 114 | self.W1 = &self.W1 - d1; [INFO] [stdout] | ^ expected struct `ArrayBase`, found `f64` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `ArrayBase, Dim<[usize; 2]>>` [INFO] [stdout] found type `f64` [INFO] [stdout] = note: required because of the requirements on the impl of `Sub, Dim<[usize; 2]>>>` for `&ArrayBase, Dim<[usize; 2]>>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `ArrayBase, Dim<[usize; 2]>>: ScalarOperand` is not satisfied [INFO] [stdout] --> src/bin/neural_network.rs:114:36 [INFO] [stdout] | [INFO] [stdout] 114 | self.W1 = &self.W1 - d1; [INFO] [stdout] | ^ the trait `ScalarOperand` is not implemented for `ArrayBase, Dim<[usize; 2]>>` [INFO] [stdout] | [INFO] [stdout] = note: required because of the requirements on the impl of `Sub, Dim<[usize; 2]>>>` for `&ArrayBase, Dim<[usize; 2]>>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: type mismatch resolving `, Dim<[usize; 2]>>>>::Output == f64` [INFO] [stdout] --> src/bin/neural_network.rs:116:36 [INFO] [stdout] | [INFO] [stdout] 116 | self.W2 = &self.W2 - d2; [INFO] [stdout] | ^ expected struct `ArrayBase`, found `f64` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `ArrayBase, Dim<[usize; 2]>>` [INFO] [stdout] found type `f64` [INFO] [stdout] = note: required because of the requirements on the impl of `Sub, Dim<[usize; 2]>>>` for `&ArrayBase, Dim<[usize; 2]>>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `ArrayBase, Dim<[usize; 2]>>: ScalarOperand` is not satisfied [INFO] [stdout] --> src/bin/neural_network.rs:116:36 [INFO] [stdout] | [INFO] [stdout] 116 | self.W2 = &self.W2 - d2; [INFO] [stdout] | ^ the trait `ScalarOperand` is not implemented for `ArrayBase, Dim<[usize; 2]>>` [INFO] [stdout] | [INFO] [stdout] = note: required because of the requirements on the impl of `Sub, Dim<[usize; 2]>>>` for `&ArrayBase, Dim<[usize; 2]>>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 2 arguments but 0 arguments were supplied [INFO] [stdout] --> src/bin/neural_network.rs:119:29 [INFO] [stdout] | [INFO] [stdout] 119 | let cost = self.cost_function(); [INFO] [stdout] | ^^^^^^^^^^^^^- supplied 0 arguments [INFO] [stdout] | | [INFO] [stdout] | expected 2 arguments [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/bin/neural_network.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | fn cost_function(&mut self, X: &Array2, y: &Array2) -> f64; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `powi` found for struct `ArrayBase, Dim<[usize; 2]>>` in the current scope [INFO] [stdout] --> src/bin/neural_network.rs:131:37 [INFO] [stdout] | [INFO] [stdout] 131 | let squared_summed = ymyhat.powi(2).sum(); [INFO] [stdout] | ^^^^ method not found in `ArrayBase, Dim<[usize; 2]>>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: cannot multiply `{integer}` by `ArrayBase, Dim<[usize; 2]>>` [INFO] [stdout] --> src/bin/neural_network.rs:143:23 [INFO] [stdout] | [INFO] [stdout] 143 | let rsub = -1 * ymyh; [INFO] [stdout] | ^ no implementation for `{integer} * ArrayBase, Dim<[usize; 2]>>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Mul, Dim<[usize; 2]>>>` is not implemented for `{integer}` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/bin/neural_network.rs:154:31 [INFO] [stdout] | [INFO] [stdout] 154 | let djdw1 = X.t().dot(delta2); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected reference, found struct `ArrayBase` [INFO] [stdout] | help: consider borrowing here: `&delta2` [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&_` [INFO] [stdout] found struct `ArrayBase, Dim<[usize; 2]>>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 15 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0271, E0277, E0308, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "d2e2bf26eec8ffc5942f963f7e21a89960d35e557addd3e8d08a9f613266e4a5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d2e2bf26eec8ffc5942f963f7e21a89960d35e557addd3e8d08a9f613266e4a5", kill_on_drop: false }` [INFO] [stdout] d2e2bf26eec8ffc5942f963f7e21a89960d35e557addd3e8d08a9f613266e4a5