[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 master#af4a5a13a15fa0c60e06321077ef452f769b42fd for pr-122960-4 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frichwandell%2Frust-algorithms" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/richwandell/rust-algorithms on toolchain af4a5a13a15fa0c60e06321077ef452f769b42fd [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "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-7-tc1/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: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded ndarray-rand v0.11.0 [INFO] [stderr] Downloaded rand_pcg v0.2.0 [INFO] [stderr] Downloaded spmc 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-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/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" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f31ae97e99b40f79aba7ef9d7b36f8f6f327ecd2e0647cd776bee3bdf62fab44 [INFO] running `Command { std: "docker" "start" "-a" "f31ae97e99b40f79aba7ef9d7b36f8f6f327ecd2e0647cd776bee3bdf62fab44", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f31ae97e99b40f79aba7ef9d7b36f8f6f327ecd2e0647cd776bee3bdf62fab44", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f31ae97e99b40f79aba7ef9d7b36f8f6f327ecd2e0647cd776bee3bdf62fab44", kill_on_drop: false }` [INFO] [stdout] f31ae97e99b40f79aba7ef9d7b36f8f6f327ecd2e0647cd776bee3bdf62fab44 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/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=allow" "-e" "RUSTDOCFLAGS=--cap-lints=allow" "-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" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 60401ebb91168d41f884b5fc164506546e7ddc56a86f57ef8a0d3bb1c40f06d4 [INFO] running `Command { std: "docker" "start" "-a" "60401ebb91168d41f884b5fc164506546e7ddc56a86f57ef8a0d3bb1c40f06d4", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v0.1.6 [INFO] [stderr] Compiling libc v0.2.62 [INFO] [stderr] Compiling getrandom v0.1.12 [INFO] [stderr] Checking cfg-if v0.1.9 [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 itertools v0.8.0 [INFO] [stderr] Checking matrixmultiply v0.2.3 [INFO] [stderr] Checking spmc v0.3.0 [INFO] [stderr] Compiling num-traits v0.2.8 [INFO] [stderr] Compiling num-integer v0.1.41 [INFO] [stderr] Compiling num-complex v0.2.3 [INFO] [stderr] Checking c2-chacha v0.2.2 [INFO] [stderr] Checking num_cpus v1.10.1 [INFO] [stderr] Checking rand_core v0.5.1 [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 noisy_float v0.1.11 [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] 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] [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] [stdout] error[E0271]: type mismatch resolving `<&[usize] as ShapeBuilder>::Dim == Dim<[usize; 2]>` [INFO] [stdout] --> src/bin/neural_network.rs:90:40 [INFO] [stdout] | [INFO] [stdout] 90 | let ones = Array2::::ones(sig.shape()); [INFO] [stdout] | ------------------- ^^^^^^^^^^^ expected `Dim<[usize; 2]>`, found `Dim` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Dim<[usize; 2]>` [INFO] [stdout] found struct `Dim` [INFO] [stdout] note: required by a bound in `ndarray::impl_constructors::>::ones` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/ndarray-0.13.0/src/impl_constructors.rs:296:26 [INFO] [stdout] | [INFO] [stdout] 293 | pub fn ones(shape: Sh) -> Self [INFO] [stdout] | ---- required by a bound in this associated function [INFO] [stdout] ... [INFO] [stdout] 296 | Sh: ShapeBuilder, [INFO] [stdout] | ^^^^^^^ required by this bound in `ndarray::impl_constructors::>::ones` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: use of moved value: `fact` [INFO] [stdout] --> src/bin/spoj_discrete_roots.rs:41:23 [INFO] [stdout] | [INFO] [stdout] 19 | let mut fact: Vec = Vec::new(); [INFO] [stdout] | -------- move occurs because `fact` has type `Vec`, which does not implement the `Copy` trait [INFO] [stdout] ... [INFO] [stdout] 39 | while res <= p { [INFO] [stdout] | -------------- inside of this loop [INFO] [stdout] 40 | let mut ok = true; [INFO] [stdout] 41 | for factor in fact { [INFO] [stdout] | ^^^^ `fact` moved due to this implicit call to `.into_iter()`, in previous iteration of loop [INFO] [stdout] | [INFO] [stdout] note: `into_iter` takes ownership of the receiver `self`, which moves `fact` [INFO] [stdout] --> /rustc/af4a5a13a15fa0c60e06321077ef452f769b42fd/library/core/src/iter/traits/collect.rs:311:18 [INFO] [stdout] help: consider iterating over a slice of the `Vec`'s content to avoid moving into the `for` loop [INFO] [stdout] | [INFO] [stdout] 41 | for factor in &fact { [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: use of moved value: `fact` [INFO] [stdout] --> src/bin/spoj_discrete_roots.rs:41:23 [INFO] [stdout] | [INFO] [stdout] 19 | let mut fact: Vec = Vec::new(); [INFO] [stdout] | -------- move occurs because `fact` has type `Vec`, which does not implement the `Copy` trait [INFO] [stdout] ... [INFO] [stdout] 39 | while res <= p { [INFO] [stdout] | -------------- inside of this loop [INFO] [stdout] 40 | let mut ok = true; [INFO] [stdout] 41 | for factor in fact { [INFO] [stdout] | ^^^^ `fact` moved due to this implicit call to `.into_iter()`, in previous iteration of loop [INFO] [stdout] | [INFO] [stdout] note: `into_iter` takes ownership of the receiver `self`, which moves `fact` [INFO] [stdout] --> /rustc/af4a5a13a15fa0c60e06321077ef452f769b42fd/library/core/src/iter/traits/collect.rs:311:18 [INFO] [stdout] help: consider iterating over a slice of the `Vec`'s content to avoid moving into the `for` loop [INFO] [stdout] | [INFO] [stdout] 41 | for factor in &fact { [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0382. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0382. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `sub` found for struct `ArrayBase` 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] --> /rustc/af4a5a13a15fa0c60e06321077ef452f769b42fd/library/core/src/ops/arith.rs:202:8 [INFO] [stdout] | [INFO] [stdout] = note: the method is available for `ArrayBase, Dim<[usize; 2]>>` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: there is a method `sum` with a similar name, but with different arguments [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/ndarray-0.13.0/src/numeric/impl_numeric.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | / pub fn sum(&self) -> A [INFO] [stdout] 34 | | where [INFO] [stdout] 35 | | A: Clone + Add + num_traits::Zero, [INFO] [stdout] | |______________________________________________________^ [INFO] [stdout] help: trait `Sub` which provides `sub` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use std::ops::Sub; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `Algos` (bin "spoj_discrete_roots" test) due to 3 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [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] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the trait `SampleBorrow` is implemented for `&'a Borrowed` [INFO] [stdout] note: required by a bound in `Uniform::::new` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/rand-0.7.2/src/distributions/uniform.rs:172:19 [INFO] [stdout] | [INFO] [stdout] 170 | pub fn new(low: B1, high: B2) -> Uniform [INFO] [stdout] | --- required by a bound in this associated function [INFO] [stdout] 171 | where B1: SampleBorrow + Sized, [INFO] [stdout] 172 | B2: SampleBorrow + Sized [INFO] [stdout] | ^^^^^^^^^^^^^^^ required by this bound in `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:27 [INFO] [stdout] | [INFO] [stdout] 109 | let i = s[n as usize]; [INFO] [stdout] | ^^^^^^^^^^ the trait `NdIndex>` is not implemented for `usize`, which is required by `ArrayBase, Dim<[usize; 2]>>: std::ops::Index<_>` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `NdIndex`: [INFO] [stdout] >> [INFO] [stdout] >> [INFO] [stdout] = note: required for `ArrayBase, Dim<[usize; 2]>>` to implement `std::ops::Index` [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] = help: the following other types implement trait `DataOwned`: [INFO] [stdout] OwnedArcRepr [INFO] [stdout] OwnedRepr [INFO] [stdout] note: required by a bound in `ndarray::impl_methods::>::reshape` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/ndarray-0.13.0/src/impl_methods.rs:1457:25 [INFO] [stdout] | [INFO] [stdout] 1455 | pub fn reshape(&self, shape: E) -> ArrayBase [INFO] [stdout] | ------- required by a bound in this associated function [INFO] [stdout] 1456 | where [INFO] [stdout] 1457 | S: DataShared + DataOwned, [INFO] [stdout] | ^^^^^^^^^ required by this bound in `ndarray::impl_methods::>::reshape` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `Algos` (bin "spoj_discrete_roots") due to 3 previous errors [INFO] [stdout] error[E0308]: arguments to this method are incorrect [INFO] [stdout] --> src/bin/neural_network.rs:112:43 [INFO] [stdout] | [INFO] [stdout] 112 | let (djdw1, djdw2) = self.cost_function_prime(&x, &yt); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: expected `&ArrayBase, ...>`, found `&ArrayBase, ...>` [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] | ^^ [INFO] [stdout] = note: expected reference `&ArrayBase, _>` [INFO] [stdout] found reference `&ArrayBase, _>` [INFO] [stdout] note: expected `&ArrayBase, ...>`, found `&ArrayBase, ...>` [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] | ^^^ [INFO] [stdout] = note: expected reference `&ArrayBase, Dim<[usize; 2]>>` [INFO] [stdout] found reference `&ArrayBase, Dim<[usize; 1]>>` [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/bin/neural_network.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | fn cost_function_prime(&mut self, X: &Array2, y: &Array2) -> (Array2, Array2); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [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 `ArrayBase, Dim<...>>`, found `f64` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `ArrayBase, Dim<[usize; 2]>>` [INFO] [stdout] found type `f64` [INFO] [stdout] = note: required for `&ArrayBase, Dim<[usize; 2]>>` to implement `Sub, 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]>>`, which is required by `&ArrayBase, Dim<[usize; 2]>>: Sub, Dim<[usize; 2]>>>` [INFO] [stdout] | [INFO] [stdout] = note: required for `&ArrayBase, Dim<[usize; 2]>>` to implement `Sub, Dim<[usize; 2]>>>` [INFO] [stdout] help: consider removing the borrow [INFO] [stdout] | [INFO] [stdout] 114 - self.W1 = &self.W1 - d1; [INFO] [stdout] 114 + self.W1 = self.W1 - d1; [INFO] [stdout] | [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 `ArrayBase, Dim<...>>`, found `f64` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `ArrayBase, Dim<[usize; 2]>>` [INFO] [stdout] found type `f64` [INFO] [stdout] = note: required for `&ArrayBase, Dim<[usize; 2]>>` to implement `Sub, 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]>>`, which is required by `&ArrayBase, Dim<[usize; 2]>>: Sub, Dim<[usize; 2]>>>` [INFO] [stdout] | [INFO] [stdout] = note: required for `&ArrayBase, Dim<[usize; 2]>>` to implement `Sub, Dim<[usize; 2]>>>` [INFO] [stdout] help: consider removing the borrow [INFO] [stdout] | [INFO] [stdout] 116 - self.W2 = &self.W2 - d2; [INFO] [stdout] 116 + self.W2 = self.W2 - d2; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this method 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] | ^^^^^^^^^^^^^-- two arguments of type `&ArrayBase, Dim<[usize; 2]>>` and `&ArrayBase, Dim<[usize; 2]>>` are missing [INFO] [stdout] | [INFO] [stdout] note: method 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] help: provide the arguments [INFO] [stdout] | [INFO] [stdout] 119 | let cost = self.cost_function(/* &ArrayBase, Dim<[usize; 2]>> */, /* &ArrayBase, Dim<[usize; 2]>> */); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `powi` found for struct `ArrayBase` 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] = help: the following other types implement trait `Mul`: [INFO] [stdout] <&'a f32 as Mul> [INFO] [stdout] <&'a f32 as Mul>> [INFO] [stdout] <&'a f64 as Mul> [INFO] [stdout] <&'a f64 as Mul>> [INFO] [stdout] <&'a i128 as Mul> [INFO] [stdout] <&'a i128 as Mul>> [INFO] [stdout] <&'a i16 as Mul> [INFO] [stdout] <&'a i16 as Mul>> [INFO] [stdout] and 129 others [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] | --- ^^^^^^ expected `&_`, found `ArrayBase, Dim<...>>` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&_` [INFO] [stdout] found struct `ArrayBase, Dim<[usize; 2]>>` [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/ndarray-0.13.0/src/linalg/impl_linalg.rs:245:12 [INFO] [stdout] | [INFO] [stdout] 245 | pub fn dot(&self, rhs: &Rhs) -> >::Output [INFO] [stdout] | ^^^ [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 154 | let djdw1 = X.t().dot(&delta2); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 14 previous errors [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: could not compile `Algos` (bin "neural_network" test) due to 15 previous errors [INFO] running `Command { std: "docker" "inspect" "60401ebb91168d41f884b5fc164506546e7ddc56a86f57ef8a0d3bb1c40f06d4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "60401ebb91168d41f884b5fc164506546e7ddc56a86f57ef8a0d3bb1c40f06d4", kill_on_drop: false }` [INFO] [stdout] 60401ebb91168d41f884b5fc164506546e7ddc56a86f57ef8a0d3bb1c40f06d4 [INFO] checking richwandell/rust-algorithms against try#36dbcaee1a55543dfc181be52a69d99ff46ff62f for pr-122960-4 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frichwandell%2Frust-algorithms" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/richwandell/rust-algorithms on toolchain 36dbcaee1a55543dfc181be52a69d99ff46ff62f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "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-7-tc2/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: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] cf52a11184329ded9c680e03c853a47324887bf92f85e40163abf44882e9aaa9 [INFO] running `Command { std: "docker" "start" "-a" "cf52a11184329ded9c680e03c853a47324887bf92f85e40163abf44882e9aaa9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "cf52a11184329ded9c680e03c853a47324887bf92f85e40163abf44882e9aaa9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cf52a11184329ded9c680e03c853a47324887bf92f85e40163abf44882e9aaa9", kill_on_drop: false }` [INFO] [stdout] cf52a11184329ded9c680e03c853a47324887bf92f85e40163abf44882e9aaa9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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=allow" "-e" "RUSTDOCFLAGS=--cap-lints=allow" "-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" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8d9f692be07330761274291f7a3cc00d8ee20e80535263e9d34d90ffea67cc71 [INFO] running `Command { std: "docker" "start" "-a" "8d9f692be07330761274291f7a3cc00d8ee20e80535263e9d34d90ffea67cc71", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] skipping non-2021 edition `2018` [INFO] running `Command { std: "docker" "inspect" "8d9f692be07330761274291f7a3cc00d8ee20e80535263e9d34d90ffea67cc71", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8d9f692be07330761274291f7a3cc00d8ee20e80535263e9d34d90ffea67cc71", kill_on_drop: false }` [INFO] [stdout] 8d9f692be07330761274291f7a3cc00d8ee20e80535263e9d34d90ffea67cc71