[INFO] cloning repository https://github.com/imdharanee/DeepML-Exercises [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/imdharanee/DeepML-Exercises" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fimdharanee%2FDeepML-Exercises", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fimdharanee%2FDeepML-Exercises'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] bcb1f69a44c3002c6e63d281881db4d2ace56bb0 [INFO] checking imdharanee/DeepML-Exercises against try#c4ca24658d934444a28db36abebef17a8651701a for pr-144156 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fimdharanee%2FDeepML-Exercises" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/imdharanee/DeepML-Exercises [INFO] finished tweaking git repo https://github.com/imdharanee/DeepML-Exercises [INFO] tweaked toml for git repo https://github.com/imdharanee/DeepML-Exercises written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/imdharanee/DeepML-Exercises on toolchain c4ca24658d934444a28db36abebef17a8651701a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c4ca24658d934444a28db36abebef17a8651701a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/imdharanee/DeepML-Exercises 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" "+c4ca24658d934444a28db36abebef17a8651701a" "fetch" "--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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+c4ca24658d934444a28db36abebef17a8651701a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ac4dd9d0660d6228534eb779d995d160a4e6810d7815c984f0d854a96ab46419 [INFO] running `Command { std: "docker" "start" "-a" "ac4dd9d0660d6228534eb779d995d160a4e6810d7815c984f0d854a96ab46419", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ac4dd9d0660d6228534eb779d995d160a4e6810d7815c984f0d854a96ab46419", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ac4dd9d0660d6228534eb779d995d160a4e6810d7815c984f0d854a96ab46419", kill_on_drop: false }` [INFO] [stdout] ac4dd9d0660d6228534eb779d995d160a4e6810d7815c984f0d854a96ab46419 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+c4ca24658d934444a28db36abebef17a8651701a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0a69de6e4cf8c7da13b7d70eea958318af8e556e41d2a8e2e5d9f835f2247911 [INFO] running `Command { std: "docker" "start" "-a" "0a69de6e4cf8c7da13b7d70eea958318af8e556e41d2a8e2e5d9f835f2247911", kill_on_drop: false }` [INFO] [stderr] Checking DEEPML v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: unexpected parentheses surrounding `for` loop head [INFO] [stdout] --> src/deeplearning.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | for(_,row in input_seq.iter().enumerate()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove parentheses in `for` loop [INFO] [stdout] | [INFO] [stdout] 7 - for(_,row in input_seq.iter().enumerate()) { [INFO] [stdout] 7 + for _,row in input_seq.iter().enumerate() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unexpected parentheses surrounding `for` loop head [INFO] [stdout] --> src/deeplearning.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | for(_,row in input_seq.iter().enumerate()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove parentheses in `for` loop [INFO] [stdout] | [INFO] [stdout] 7 - for(_,row in input_seq.iter().enumerate()) { [INFO] [stdout] 7 + for _,row in input_seq.iter().enumerate() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `create` [INFO] [stdout] --> src/deeplearning.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use create::matrix; [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `create` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `create`, use `cargo add create` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `create` [INFO] [stdout] --> src/deeplearning.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use create::matrix; [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `create` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `create`, use `cargo add create` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `x` in this scope [INFO] [stdout] --> src/deeplearning.rs:9:51 [INFO] [stdout] | [INFO] [stdout] 9 | let wx_with_x=matrix::dotproduct_1d_1d(wx,x); [INFO] [stdout] | ^ help: a local variable with a similar name exists: `wx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `x` in this scope [INFO] [stdout] --> src/deeplearning.rs:9:51 [INFO] [stdout] | [INFO] [stdout] 9 | let wx_with_x=matrix::dotproduct_1d_1d(wx,x); [INFO] [stdout] | ^ help: a local variable with a similar name exists: `wx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `t` in this scope [INFO] [stdout] --> src/deeplearning.rs:10:52 [INFO] [stdout] | [INFO] [stdout] 10 | let wh_with_h=matrix::dotproduct_1d_1d(wh, t); [INFO] [stdout] | ^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `t` in this scope [INFO] [stdout] --> src/deeplearning.rs:10:52 [INFO] [stdout] | [INFO] [stdout] 10 | let wh_with_h=matrix::dotproduct_1d_1d(wh, t); [INFO] [stdout] | ^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `w` in this scope [INFO] [stdout] --> src/deeplearning.rs:13:42 [INFO] [stdout] | [INFO] [stdout] 13 | h=activation_func::tanh(w) [INFO] [stdout] | ^ help: a local variable with a similar name exists: `h` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `w` in this scope [INFO] [stdout] --> src/deeplearning.rs:13:42 [INFO] [stdout] | [INFO] [stdout] 13 | h=activation_func::tanh(w) [INFO] [stdout] | ^ help: a local variable with a similar name exists: `h` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::eval_metrics` [INFO] [stdout] --> src/activation_func.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::eval_metrics; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::eval_metrics` [INFO] [stdout] --> src/activation_func.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::eval_metrics; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/matrix.rs:106:8 [INFO] [stdout] | [INFO] [stdout] 104 | pub fn dotproduct_1d_1d(x:&Vec,y:&Vec)->f64 { [INFO] [stdout] | --- expected `f64` because of return type [INFO] [stdout] 105 | let sum=0.0; [INFO] [stdout] 106 | / for i in 0..x.len() { [INFO] [stdout] 107 | | sum+=x[i] * y[i]; [INFO] [stdout] 108 | | } [INFO] [stdout] | |________^ expected `f64`, found `()` [INFO] [stdout] | [INFO] [stdout] = note: `for` loops evaluate to unit type `()` [INFO] [stdout] help: consider returning a value here [INFO] [stdout] | [INFO] [stdout] 108 ~ } [INFO] [stdout] 109 + /* `f64` value */ [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/matrix.rs:106:8 [INFO] [stdout] | [INFO] [stdout] 104 | pub fn dotproduct_1d_1d(x:&Vec,y:&Vec)->f64 { [INFO] [stdout] | --- expected `f64` because of return type [INFO] [stdout] 105 | let sum=0.0; [INFO] [stdout] 106 | / for i in 0..x.len() { [INFO] [stdout] 107 | | sum+=x[i] * y[i]; [INFO] [stdout] 108 | | } [INFO] [stdout] | |________^ expected `f64`, found `()` [INFO] [stdout] | [INFO] [stdout] = note: `for` loops evaluate to unit type `()` [INFO] [stdout] help: consider returning a value here [INFO] [stdout] | [INFO] [stdout] 108 ~ } [INFO] [stdout] 109 + /* `f64` value */ [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/activation_func.rs:34:25 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn tanh(input:f64)->f64 { [INFO] [stdout] | ---- ^^^ expected `f64`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] | [INFO] [stdout] help: consider returning the local binding `input` [INFO] [stdout] | [INFO] [stdout] 34 ~ pub fn tanh(input:f64)->f64 { [INFO] [stdout] 35 + input [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/eval_metrics.rs:32:51 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn fscore(y_pred:&Vec,y_true:&Vec)->f64 { [INFO] [stdout] | ------ ^^^ expected `f64`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/activation_func.rs:34:25 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn tanh(input:f64)->f64 { [INFO] [stdout] | ---- ^^^ expected `f64`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] | [INFO] [stdout] help: consider returning the local binding `input` [INFO] [stdout] | [INFO] [stdout] 34 ~ pub fn tanh(input:f64)->f64 { [INFO] [stdout] 35 + input [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/eval_metrics.rs:32:51 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn fscore(y_pred:&Vec,y_true:&Vec)->f64 { [INFO] [stdout] | ------ ^^^ expected `f64`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/deeplearning.rs:9:48 [INFO] [stdout] | [INFO] [stdout] 9 | let wx_with_x=matrix::dotproduct_1d_1d(wx,x); [INFO] [stdout] | ------------------------ ^^ expected `&Vec`, found `&Vec>` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&Vec` [INFO] [stdout] found reference `&Vec>` [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/matrix.rs:104:9 [INFO] [stdout] | [INFO] [stdout] 104 | pub fn dotproduct_1d_1d(x:&Vec,y:&Vec)->f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ ----------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/deeplearning.rs:10:48 [INFO] [stdout] | [INFO] [stdout] 10 | let wh_with_h=matrix::dotproduct_1d_1d(wh, t); [INFO] [stdout] | ------------------------ ^^ expected `&Vec`, found `&Vec>` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&Vec` [INFO] [stdout] found reference `&Vec>` [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/matrix.rs:104:9 [INFO] [stdout] | [INFO] [stdout] 104 | pub fn dotproduct_1d_1d(x:&Vec,y:&Vec)->f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ ----------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `usize` is not an iterator [INFO] [stdout] --> src/deeplearning.rs:12:18 [INFO] [stdout] | [INFO] [stdout] 12 | for i in bias.len() { [INFO] [stdout] | ^^^^^^^^^^ `usize` is not an iterator [INFO] [stdout] | [INFO] [stdout] = help: the trait `Iterator` is not implemented for `usize` [INFO] [stdout] = note: if you want to iterate between `start` until a value `end`, use the exclusive range syntax `start..end` or the inclusive range syntax `start..=end` [INFO] [stdout] = note: required for `usize` to implement `IntoIterator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/deeplearning.rs:9:48 [INFO] [stdout] | [INFO] [stdout] 9 | let wx_with_x=matrix::dotproduct_1d_1d(wx,x); [INFO] [stdout] | ------------------------ ^^ expected `&Vec`, found `&Vec>` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&Vec` [INFO] [stdout] found reference `&Vec>` [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/matrix.rs:104:9 [INFO] [stdout] | [INFO] [stdout] 104 | pub fn dotproduct_1d_1d(x:&Vec,y:&Vec)->f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ ----------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/deeplearning.rs:10:48 [INFO] [stdout] | [INFO] [stdout] 10 | let wh_with_h=matrix::dotproduct_1d_1d(wh, t); [INFO] [stdout] | ------------------------ ^^ expected `&Vec`, found `&Vec>` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&Vec` [INFO] [stdout] found reference `&Vec>` [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/matrix.rs:104:9 [INFO] [stdout] | [INFO] [stdout] 104 | pub fn dotproduct_1d_1d(x:&Vec,y:&Vec)->f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ ----------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `usize` is not an iterator [INFO] [stdout] --> src/deeplearning.rs:12:18 [INFO] [stdout] | [INFO] [stdout] 12 | for i in bias.len() { [INFO] [stdout] | ^^^^^^^^^^ `usize` is not an iterator [INFO] [stdout] | [INFO] [stdout] = help: the trait `Iterator` is not implemented for `usize` [INFO] [stdout] = note: if you want to iterate between `start` until a value `end`, use the exclusive range syntax `start..end` or the inclusive range syntax `start..=end` [INFO] [stdout] = note: required for `usize` to implement `IntoIterator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/deeplearning.rs:13:20 [INFO] [stdout] | [INFO] [stdout] 11 | let mut h=vec![0i32;bias.len()]; [INFO] [stdout] | --------------------- expected due to this value [INFO] [stdout] 12 | for i in bias.len() { [INFO] [stdout] 13 | h=activation_func::tanh(w) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ expected `Vec`, found `f64` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec` [INFO] [stdout] found type `f64` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/deeplearning.rs:13:20 [INFO] [stdout] | [INFO] [stdout] 11 | let mut h=vec![0i32;bias.len()]; [INFO] [stdout] | --------------------- expected due to this value [INFO] [stdout] 12 | for i in bias.len() { [INFO] [stdout] 13 | h=activation_func::tanh(w) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ expected `Vec`, found `f64` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec` [INFO] [stdout] found type `f64` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0425, E0432. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0425, E0432. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `DEEPML` (bin "DEEPML") due to 12 previous errors; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `DEEPML` (bin "DEEPML" test) due to 12 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "0a69de6e4cf8c7da13b7d70eea958318af8e556e41d2a8e2e5d9f835f2247911", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0a69de6e4cf8c7da13b7d70eea958318af8e556e41d2a8e2e5d9f835f2247911", kill_on_drop: false }` [INFO] [stdout] 0a69de6e4cf8c7da13b7d70eea958318af8e556e41d2a8e2e5d9f835f2247911