[INFO] cloning repository https://github.com/vcombey/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/vcombey/neural_network" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvcombey%2Fneural_network", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvcombey%2Fneural_network'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] fcb6e542d3d5229ad1cc94a50ea7fab4cf133104
[INFO] checking vcombey/neural_network against master#80399064afa4a2cd153f30d02c25f7ea0383ed65 for opaque-soundness-fix
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvcombey%2Fneural_network" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/vcombey/neural_network on toolchain 80399064afa4a2cd153f30d02c25f7ea0383ed65
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+80399064afa4a2cd153f30d02c25f7ea0383ed65" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking git repo https://github.com/vcombey/neural_network
[INFO] finished tweaking git repo https://github.com/vcombey/neural_network
[INFO] tweaked toml for git repo https://github.com/vcombey/neural_network written to /workspace/builds/worker-1-tc1/source/Cargo.toml
[INFO] crate git repo https://github.com/vcombey/neural_network 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" "+80399064afa4a2cd153f30d02c25f7ea0383ed65" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr] warning: no edition set: defaulting to the 2015 edition
[INFO] [stderr]     Blocking waiting for file lock on package cache
[ERROR] error running command: no output for 300 seconds
[ERROR] this task or one of its parent failed!
[ERROR] no output for 300 seconds
[ERROR] note: run with `RUST_BACKTRACE=1` to display a backtrace.
[INFO] checking vcombey/neural_network against master#09bc67b9158392361780e779d32997f14cc75c39 for opaque-soundness-fix
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvcombey%2Fneural_network" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/vcombey/neural_network on toolchain 09bc67b9158392361780e779d32997f14cc75c39
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+09bc67b9158392361780e779d32997f14cc75c39" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking git repo https://github.com/vcombey/neural_network
[INFO] finished tweaking git repo https://github.com/vcombey/neural_network
[INFO] tweaked toml for git repo https://github.com/vcombey/neural_network written to /workspace/builds/worker-1-tc2/source/Cargo.toml
[INFO] crate git repo https://github.com/vcombey/neural_network 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" "+09bc67b9158392361780e779d32997f14cc75c39" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr] warning: no edition set: defaulting to the 2015 edition
[INFO] [stderr]     Blocking waiting for file lock on package cache
[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-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+09bc67b9158392361780e779d32997f14cc75c39" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] ea00d81ea76da298ddd40a025e3463806a3a4ba605ca9549844138eae950f50e
[INFO] running `Command { std: "docker" "start" "-a" "ea00d81ea76da298ddd40a025e3463806a3a4ba605ca9549844138eae950f50e", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "ea00d81ea76da298ddd40a025e3463806a3a4ba605ca9549844138eae950f50e", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "ea00d81ea76da298ddd40a025e3463806a3a4ba605ca9549844138eae950f50e", kill_on_drop: false }`
[INFO] [stdout] ea00d81ea76da298ddd40a025e3463806a3a4ba605ca9549844138eae950f50e
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+09bc67b9158392361780e779d32997f14cc75c39" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 31aa54f2bc467235e3ee188f44f7329664c5a4fcd22d4bf1b3635e30a42625cf
[INFO] running `Command { std: "docker" "start" "-a" "31aa54f2bc467235e3ee188f44f7329664c5a4fcd22d4bf1b3635e30a42625cf", kill_on_drop: false }`
[INFO] [stderr] warning: no edition set: defaulting to the 2015 edition
[INFO] [stderr]     Checking neural_network v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] error: macro expansion ignores token `{` and any following
[INFO] [stdout]  --> /rustc/09bc67b9158392361780e779d32997f14cc75c39/library/std/src/macros.rs:142:23
[INFO] [stdout]   |
[INFO] [stdout]  ::: src/main.rs:7:1
[INFO] [stdout]   |
[INFO] [stdout] 7 | println!("Scalar: {:?}", );
[INFO] [stdout]   | -------------------------- caused by the macro expansion here
[INFO] [stdout]   |
[INFO] [stdout]   = note: the usage of `println!` is likely invalid in item context
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: macro expansion ignores token `{` and any following
[INFO] [stdout]  --> /rustc/09bc67b9158392361780e779d32997f14cc75c39/library/std/src/macros.rs:142:23
[INFO] [stdout]   |
[INFO] [stdout]  ::: src/main.rs:8:1
[INFO] [stdout]   |
[INFO] [stdout] 8 | println!("Vector: {:?}", );
[INFO] [stdout]   | -------------------------- caused by the macro expansion here
[INFO] [stdout]   |
[INFO] [stdout]   = note: the usage of `println!` is likely invalid in item context
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: macro expansion ignores token `{` and any following
[INFO] [stdout]  --> /rustc/09bc67b9158392361780e779d32997f14cc75c39/library/std/src/macros.rs:142:23
[INFO] [stdout]   |
[INFO] [stdout]  ::: src/main.rs:7:1
[INFO] [stdout]   |
[INFO] [stdout] 7 | println!("Scalar: {:?}", );
[INFO] [stdout]   | -------------------------- caused by the macro expansion here
[INFO] [stdout]   |
[INFO] [stdout]   = note: the usage of `println!` is likely invalid in item context
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: macro expansion ignores token `{` and any following
[INFO] [stdout]  --> /rustc/09bc67b9158392361780e779d32997f14cc75c39/library/std/src/macros.rs:142:23
[INFO] [stdout]   |
[INFO] [stdout]  ::: src/main.rs:8:1
[INFO] [stdout]   |
[INFO] [stdout] 8 | println!("Vector: {:?}", );
[INFO] [stdout]   | -------------------------- caused by the macro expansion here
[INFO] [stdout]   |
[INFO] [stdout]   = note: the usage of `println!` is likely invalid in item context
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `random`
[INFO] [stdout]  --> src/main.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use random::Source;
[INFO] [stdout]   |     ^^^^^^ maybe a missing crate `random`?
[INFO] [stdout]   |
[INFO] [stdout]   = help: consider adding `extern crate random` to use the `random` crate
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `random`
[INFO] [stdout]  --> src/main.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use random::Source;
[INFO] [stdout]   |     ^^^^^^ maybe a missing crate `random`?
[INFO] [stdout]   |
[INFO] [stdout]   = help: consider adding `extern crate random` to use the `random` crate
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `random`
[INFO] [stdout]   --> src/main.rs:19:26
[INFO] [stdout]    |
[INFO] [stdout] 19 |         let mut source = random::default().seed([42, 69]);
[INFO] [stdout]    |                          ^^^^^^ use of undeclared crate or module `random`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `random`
[INFO] [stdout]   --> src/main.rs:19:26
[INFO] [stdout]    |
[INFO] [stdout] 19 |         let mut source = random::default().seed([42, 69]);
[INFO] [stdout]    |                          ^^^^^^ use of undeclared crate or module `random`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: `&u32` is not an iterator
[INFO] [stdout]   --> src/main.rs:39:51
[INFO] [stdout]    |
[INFO] [stdout] 39 |             layer: layer_size.iter().map(|s| 0..s.map(|_| Neuron::new_random()).collect()).collect()
[INFO] [stdout]    |                                                   ^^^ `&u32` is not an iterator
[INFO] [stdout]    |
[INFO] [stdout]    = note: the following trait bounds were not satisfied:
[INFO] [stdout]            `&u32: Iterator`
[INFO] [stdout]            which is required by `&mut &u32: Iterator`
[INFO] [stdout]            `u32: Iterator`
[INFO] [stdout]            which is required by `&mut u32: Iterator`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0061]: this function takes 2 arguments but 0 arguments were supplied
[INFO] [stdout]   --> src/main.rs:39:59
[INFO] [stdout]    |
[INFO] [stdout] 39 |             layer: layer_size.iter().map(|s| 0..s.map(|_| Neuron::new_random()).collect()).collect()
[INFO] [stdout]    |                                                           ^^^^^^^^^^^^^^^^^^-- two arguments of type `u64` and `fn(f64) -> f64` are missing
[INFO] [stdout]    |
[INFO] [stdout] note: associated function defined here
[INFO] [stdout]   --> src/main.rs:18:8
[INFO] [stdout]    |
[INFO] [stdout] 18 |     fn new_random(nb_conn: u64, activation_func: fn (f64) -> f64) -> Self {
[INFO] [stdout]    |        ^^^^^^^^^^ ------------  --------------------------------
[INFO] [stdout] help: provide the arguments
[INFO] [stdout]    |
[INFO] [stdout] 39 |             layer: layer_size.iter().map(|s| 0..s.map(|_| Neuron::new_random(/* u64 */, /* fn(f64) -> f64 */)).collect()).collect()
[INFO] [stdout]    |                                                                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: a value of type `Vec<Vec<Neuron>>` cannot be built from an iterator over elements of type `std::ops::Range<{integer}>`
[INFO] [stdout]   --> src/main.rs:39:92
[INFO] [stdout]    |
[INFO] [stdout] 39 |             layer: layer_size.iter().map(|s| 0..s.map(|_| Neuron::new_random()).collect()).collect()
[INFO] [stdout]    |                                                                                            ^^^^^^^ value of type `Vec<Vec<Neuron>>` cannot be built from `std::iter::Iterator<Item=std::ops::Range<{integer}>>`
[INFO] [stdout]    |
[INFO] [stdout]    = help: the trait `FromIterator<std::ops::Range<{integer}>>` is not implemented for `Vec<Vec<Neuron>>`
[INFO] [stdout]    = help: the trait `FromIterator<Vec<Neuron>>` is implemented for `Vec<Vec<Neuron>>`
[INFO] [stdout]    = help: for that trait implementation, expected `Vec<Neuron>`, found `std::ops::Range<{integer}>`
[INFO] [stdout] note: the method call chain might not have had the expected associated types
[INFO] [stdout]   --> src/main.rs:39:38
[INFO] [stdout]    |
[INFO] [stdout] 39 |             layer: layer_size.iter().map(|s| 0..s.map(|_| Neuron::new_random()).collect()).collect()
[INFO] [stdout]    |                    ---------- ------ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `Iterator::Item` changed to `Range<{integer}>` here
[INFO] [stdout]    |                    |          |
[INFO] [stdout]    |                    |          `Iterator::Item` is `&u32` here
[INFO] [stdout]    |                    this expression has type `Vec<u32>`
[INFO] [stdout] note: required by a bound in `collect`
[INFO] [stdout]   --> /rustc/09bc67b9158392361780e779d32997f14cc75c39/library/core/src/iter/traits/iterator.rs:1999:5
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: `&u32` is not an iterator
[INFO] [stdout]   --> src/main.rs:39:51
[INFO] [stdout]    |
[INFO] [stdout] 39 |             layer: layer_size.iter().map(|s| 0..s.map(|_| Neuron::new_random()).collect()).collect()
[INFO] [stdout]    |                                                   ^^^ `&u32` is not an iterator
[INFO] [stdout]    |
[INFO] [stdout]    = note: the following trait bounds were not satisfied:
[INFO] [stdout]            `&u32: Iterator`
[INFO] [stdout]            which is required by `&mut &u32: Iterator`
[INFO] [stdout]            `u32: Iterator`
[INFO] [stdout]            which is required by `&mut u32: Iterator`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0061]: this function takes 2 arguments but 0 arguments were supplied
[INFO] [stdout]   --> src/main.rs:39:59
[INFO] [stdout]    |
[INFO] [stdout] 39 |             layer: layer_size.iter().map(|s| 0..s.map(|_| Neuron::new_random()).collect()).collect()
[INFO] [stdout]    |                                                           ^^^^^^^^^^^^^^^^^^-- two arguments of type `u64` and `fn(f64) -> f64` are missing
[INFO] [stdout]    |
[INFO] [stdout] note: associated function defined here
[INFO] [stdout]   --> src/main.rs:18:8
[INFO] [stdout]    |
[INFO] [stdout] 18 |     fn new_random(nb_conn: u64, activation_func: fn (f64) -> f64) -> Self {
[INFO] [stdout]    |        ^^^^^^^^^^ ------------  --------------------------------
[INFO] [stdout] help: provide the arguments
[INFO] [stdout]    |
[INFO] [stdout] 39 |             layer: layer_size.iter().map(|s| 0..s.map(|_| Neuron::new_random(/* u64 */, /* fn(f64) -> f64 */)).collect()).collect()
[INFO] [stdout]    |                                                                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: a value of type `Vec<Vec<Neuron>>` cannot be built from an iterator over elements of type `std::ops::Range<{integer}>`
[INFO] [stdout]   --> src/main.rs:39:92
[INFO] [stdout]    |
[INFO] [stdout] 39 |             layer: layer_size.iter().map(|s| 0..s.map(|_| Neuron::new_random()).collect()).collect()
[INFO] [stdout]    |                                                                                            ^^^^^^^ value of type `Vec<Vec<Neuron>>` cannot be built from `std::iter::Iterator<Item=std::ops::Range<{integer}>>`
[INFO] [stdout]    |
[INFO] [stdout]    = help: the trait `FromIterator<std::ops::Range<{integer}>>` is not implemented for `Vec<Vec<Neuron>>`
[INFO] [stdout]    = help: the trait `FromIterator<Vec<Neuron>>` is implemented for `Vec<Vec<Neuron>>`
[INFO] [stdout]    = help: for that trait implementation, expected `Vec<Neuron>`, found `std::ops::Range<{integer}>`
[INFO] [stdout] note: the method call chain might not have had the expected associated types
[INFO] [stdout]   --> src/main.rs:39:38
[INFO] [stdout]    |
[INFO] [stdout] 39 |             layer: layer_size.iter().map(|s| 0..s.map(|_| Neuron::new_random()).collect()).collect()
[INFO] [stdout]    |                    ---------- ------ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `Iterator::Item` changed to `Range<{integer}>` here
[INFO] [stdout]    |                    |          |
[INFO] [stdout]    |                    |          `Iterator::Item` is `&u32` here
[INFO] [stdout]    |                    this expression has type `Vec<u32>`
[INFO] [stdout] note: required by a bound in `collect`
[INFO] [stdout]   --> /rustc/09bc67b9158392361780e779d32997f14cc75c39/library/core/src/iter/traits/iterator.rs:1999:5
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: `&mut &mut Vec<Neuron>` is not an iterator
[INFO] [stdout]   --> src/main.rs:54:22
[INFO] [stdout]    |
[INFO] [stdout] 54 |             for n in &mut l {
[INFO] [stdout]    |                      ^^^^^^ `&mut &mut Vec<Neuron>` is not an iterator
[INFO] [stdout]    |
[INFO] [stdout]    = help: the trait `Iterator` is not implemented for `&mut &mut Vec<Neuron>`, which is required by `&mut &mut Vec<Neuron>: IntoIterator`
[INFO] [stdout]    = note: required for `&mut Vec<Neuron>` to implement `Iterator`
[INFO] [stdout]    = note: 1 redundant requirement hidden
[INFO] [stdout]    = note: required for `&mut &mut Vec<Neuron>` to implement `Iterator`
[INFO] [stdout]    = note: required for `&mut &mut Vec<Neuron>` to implement `IntoIterator`
[INFO] [stdout] help: consider removing the leading `&`-reference
[INFO] [stdout]    |
[INFO] [stdout] 54 -             for n in &mut l {
[INFO] [stdout] 54 +             for n in l {
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0609]: no field `activation` on type `&&&Vec<Neuron>`
[INFO] [stdout]   --> src/main.rs:58:93
[INFO] [stdout]    |
[INFO] [stdout] 58 |         let (res, prob) = self.layer.last().iter().enumerate().max_by(|(_, n1), (_, n2)| n1.activation >= n2.activation);
[INFO] [stdout]    |                                                                                             ^^^^^^^^^^ unknown field
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0609]: no field `activation` on type `&&&Vec<Neuron>`
[INFO] [stdout]   --> src/main.rs:58:110
[INFO] [stdout]    |
[INFO] [stdout] 58 |         let (res, prob) = self.layer.last().iter().enumerate().max_by(|(_, n1), (_, n2)| n1.activation >= n2.activation);
[INFO] [stdout]    |                                                                                                              ^^^^^^^^^^ unknown field
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: `&mut &mut Vec<Neuron>` is not an iterator
[INFO] [stdout]   --> src/main.rs:54:22
[INFO] [stdout]    |
[INFO] [stdout] 54 |             for n in &mut l {
[INFO] [stdout]    |                      ^^^^^^ `&mut &mut Vec<Neuron>` is not an iterator
[INFO] [stdout]    |
[INFO] [stdout]    = help: the trait `Iterator` is not implemented for `&mut &mut Vec<Neuron>`, which is required by `&mut &mut Vec<Neuron>: IntoIterator`
[INFO] [stdout]    = note: required for `&mut Vec<Neuron>` to implement `Iterator`
[INFO] [stdout]    = note: 1 redundant requirement hidden
[INFO] [stdout]    = note: required for `&mut &mut Vec<Neuron>` to implement `Iterator`
[INFO] [stdout]    = note: required for `&mut &mut Vec<Neuron>` to implement `IntoIterator`
[INFO] [stdout] help: consider removing the leading `&`-reference
[INFO] [stdout]    |
[INFO] [stdout] 54 -             for n in &mut l {
[INFO] [stdout] 54 +             for n in l {
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0609]: no field `activation` on type `&&&Vec<Neuron>`
[INFO] [stdout]   --> src/main.rs:58:93
[INFO] [stdout]    |
[INFO] [stdout] 58 |         let (res, prob) = self.layer.last().iter().enumerate().max_by(|(_, n1), (_, n2)| n1.activation >= n2.activation);
[INFO] [stdout]    |                                                                                             ^^^^^^^^^^ unknown field
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/main.rs:58:90
[INFO] [stdout]    |
[INFO] [stdout] 58 |         let (res, prob) = self.layer.last().iter().enumerate().max_by(|(_, n1), (_, n2)| n1.activation >= n2.activation);
[INFO] [stdout]    |                                                                                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Ordering`, found `bool`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/main.rs:58:13
[INFO] [stdout]    |
[INFO] [stdout] 58 |         let (res, prob) = self.layer.last().iter().enumerate().max_by(|(_, n1), (_, n2)| n1.activation >= n2.activation);
[INFO] [stdout]    |             ^^^^^^^^^^^   ---------------------------------------------------------------------------------------------- this expression has type `Option<(usize, &&Vec<Neuron>)>`
[INFO] [stdout]    |             |
[INFO] [stdout]    |             expected `Option<(usize, &&Vec<Neuron>)>`, found `(_, _)`
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected enum `Option<(usize, &&Vec<Neuron>)>`
[INFO] [stdout]              found tuple `(_, _)`
[INFO] [stdout] help: try wrapping the pattern in `Some`
[INFO] [stdout]    |
[INFO] [stdout] 58 |         let Some((res, prob)) = self.layer.last().iter().enumerate().max_by(|(_, n1), (_, n2)| n1.activation >= n2.activation);
[INFO] [stdout]    |             +++++           +
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/main.rs:45:43
[INFO] [stdout]    |
[INFO] [stdout] 45 |     fn compute(&mut self, img: &Image) -> (u8, f64) {
[INFO] [stdout]    |        -------                            ^^^^^^^^^ expected `(u8, f64)`, found `()`
[INFO] [stdout]    |        |
[INFO] [stdout]    |        implicitly returns `()` as its body has no tail or `return` expression
[INFO] [stdout]    |
[INFO] [stdout]    = note:  expected tuple `(u8, f64)`
[INFO] [stdout]            found unit type `()`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0609]: no field `activation` on type `&&&Vec<Neuron>`
[INFO] [stdout]   --> src/main.rs:58:110
[INFO] [stdout]    |
[INFO] [stdout] 58 |         let (res, prob) = self.layer.last().iter().enumerate().max_by(|(_, n1), (_, n2)| n1.activation >= n2.activation);
[INFO] [stdout]    |                                                                                                              ^^^^^^^^^^ unknown field
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/main.rs:58:90
[INFO] [stdout]    |
[INFO] [stdout] 58 |         let (res, prob) = self.layer.last().iter().enumerate().max_by(|(_, n1), (_, n2)| n1.activation >= n2.activation);
[INFO] [stdout]    |                                                                                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Ordering`, found `bool`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/main.rs:63:9
[INFO] [stdout]    |
[INFO] [stdout] 63 |     let mut file = File::open(filename)?;
[INFO] [stdout]    |         ----^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `i`
[INFO] [stdout]   --> src/main.rs:86:9
[INFO] [stdout]    |
[INFO] [stdout] 86 |     for i in 0..nb_image {
[INFO] [stdout]    |         ^ help: if this is intentional, prefix it with an underscore: `_i`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/main.rs:58:13
[INFO] [stdout]    |
[INFO] [stdout] 58 |         let (res, prob) = self.layer.last().iter().enumerate().max_by(|(_, n1), (_, n2)| n1.activation >= n2.activation);
[INFO] [stdout]    |             ^^^^^^^^^^^   ---------------------------------------------------------------------------------------------- this expression has type `Option<(usize, &&Vec<Neuron>)>`
[INFO] [stdout]    |             |
[INFO] [stdout]    |             expected `Option<(usize, &&Vec<Neuron>)>`, found `(_, _)`
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected enum `Option<(usize, &&Vec<Neuron>)>`
[INFO] [stdout]              found tuple `(_, _)`
[INFO] [stdout] help: try wrapping the pattern in `Some`
[INFO] [stdout]    |
[INFO] [stdout] 58 |         let Some((res, prob)) = self.layer.last().iter().enumerate().max_by(|(_, n1), (_, n2)| n1.activation >= n2.activation);
[INFO] [stdout]    |             +++++           +
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/main.rs:78:9
[INFO] [stdout]    |
[INFO] [stdout] 78 |     let mut nb_image;
[INFO] [stdout]    |         ----^^^^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `labels`
[INFO] [stdout]    --> src/main.rs:140:9
[INFO] [stdout]     |
[INFO] [stdout] 140 |     let labels = parse_label_file(&args.next().unwrap()).unwrap();
[INFO] [stdout]     |         ^^^^^^ help: if this is intentional, prefix it with an underscore: `_labels`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/main.rs:45:43
[INFO] [stdout]    |
[INFO] [stdout] 45 |     fn compute(&mut self, img: &Image) -> (u8, f64) {
[INFO] [stdout]    |        -------                            ^^^^^^^^^ expected `(u8, f64)`, found `()`
[INFO] [stdout]    |        |
[INFO] [stdout]    |        implicitly returns `()` as its body has no tail or `return` expression
[INFO] [stdout]    |
[INFO] [stdout]    = note:  expected tuple `(u8, f64)`
[INFO] [stdout]            found unit type `()`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 13 previous errors; 4 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0061, E0277, E0308, E0432, E0433, E0599, E0609.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0061`.
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/main.rs:63:9
[INFO] [stdout]    |
[INFO] [stdout] 63 |     let mut file = File::open(filename)?;
[INFO] [stdout]    |         ----^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `i`
[INFO] [stdout]   --> src/main.rs:86:9
[INFO] [stdout]    |
[INFO] [stdout] 86 |     for i in 0..nb_image {
[INFO] [stdout]    |         ^ help: if this is intentional, prefix it with an underscore: `_i`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/main.rs:78:9
[INFO] [stdout]    |
[INFO] [stdout] 78 |     let mut nb_image;
[INFO] [stdout]    |         ----^^^^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `labels`
[INFO] [stdout]    --> src/main.rs:140:9
[INFO] [stdout]     |
[INFO] [stdout] 140 |     let labels = parse_label_file(&args.next().unwrap()).unwrap();
[INFO] [stdout]     |         ^^^^^^ help: if this is intentional, prefix it with an underscore: `_labels`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `neural_network` (bin "neural_network" test) due to 14 previous errors; 4 warnings emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] error: aborting due to 13 previous errors; 4 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0061, E0277, E0308, E0432, E0433, E0599, E0609.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0061`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `neural_network` (bin "neural_network") due to 14 previous errors; 4 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "31aa54f2bc467235e3ee188f44f7329664c5a4fcd22d4bf1b3635e30a42625cf", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "31aa54f2bc467235e3ee188f44f7329664c5a4fcd22d4bf1b3635e30a42625cf", kill_on_drop: false }`
[INFO] [stdout] 31aa54f2bc467235e3ee188f44f7329664c5a4fcd22d4bf1b3635e30a42625cf
