[INFO] cloning repository https://github.com/koop46/Gradient_descent
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/koop46/Gradient_descent" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkoop46%2FGradient_descent", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkoop46%2FGradient_descent'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 8a95faf92536678d041ee99c15274d3567f14a94
[INFO] testing koop46/Gradient_descent against try#33835004928d3bf65db4d4712e1330766263b0bd for pr-155739-1
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkoop46%2FGradient_descent" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/koop46/Gradient_descent
[INFO] finished tweaking git repo https://github.com/koop46/Gradient_descent
[INFO] tweaked toml for git repo https://github.com/koop46/Gradient_descent written to /workspace/builds/worker-2-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/koop46/Gradient_descent on toolchain 33835004928d3bf65db4d4712e1330766263b0bd
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+33835004928d3bf65db4d4712e1330766263b0bd" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/koop46/Gradient_descent 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" "+33835004928d3bf65db4d4712e1330766263b0bd" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+33835004928d3bf65db4d4712e1330766263b0bd" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 8b9d5e21c38b25b54ec8b9e03649f253320f437b1fb36054dc7cde8bc987ab7e
[INFO] running `Command { std: "docker" "start" "-a" "8b9d5e21c38b25b54ec8b9e03649f253320f437b1fb36054dc7cde8bc987ab7e", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "8b9d5e21c38b25b54ec8b9e03649f253320f437b1fb36054dc7cde8bc987ab7e", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "8b9d5e21c38b25b54ec8b9e03649f253320f437b1fb36054dc7cde8bc987ab7e", kill_on_drop: false }`
[INFO] [stdout] 8b9d5e21c38b25b54ec8b9e03649f253320f437b1fb36054dc7cde8bc987ab7e
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+33835004928d3bf65db4d4712e1330766263b0bd" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] fd8d717dfa748a418ac8d8f9b58242327817daf257550347c80f6922e134aed7
[INFO] running `Command { std: "docker" "start" "-a" "fd8d717dfa748a418ac8d8f9b58242327817daf257550347c80f6922e134aed7", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.175
[INFO] [stderr]    Compiling zerocopy v0.8.27
[INFO] [stderr]    Compiling cfg-if v1.0.3
[INFO] [stderr]    Compiling getrandom v0.3.3
[INFO] [stderr]    Compiling rand_core v0.9.3
[INFO] [stderr]    Compiling ppv-lite86 v0.2.21
[INFO] [stderr]    Compiling rand_chacha v0.9.0
[INFO] [stderr]    Compiling rand v0.9.2
[INFO] [stderr]    Compiling Gradient_descent v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] error[E0425]: cannot find value `i` in this scope
[INFO] [stdout]   --> src/main.rs:42:32
[INFO] [stdout]    |
[INFO] [stdout] 42 |         dw += 2.0 * ((y_vector[i] - y_hat[i]) * x_vector[i]);
[INFO] [stdout]    |                                ^
[INFO] [stdout]    |
[INFO] [stdout] help: a local variable with a similar name exists
[INFO] [stdout]    |
[INFO] [stdout] 42 -         dw += 2.0 * ((y_vector[i] - y_hat[i]) * x_vector[i]);
[INFO] [stdout] 42 +         dw += 2.0 * ((y_vector[b] - y_hat[i]) * x_vector[i]);
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `i` in this scope
[INFO] [stdout]   --> src/main.rs:42:43
[INFO] [stdout]    |
[INFO] [stdout] 42 |         dw += 2.0 * ((y_vector[i] - y_hat[i]) * x_vector[i]);
[INFO] [stdout]    |                                           ^
[INFO] [stdout]    |
[INFO] [stdout] help: a local variable with a similar name exists
[INFO] [stdout]    |
[INFO] [stdout] 42 -         dw += 2.0 * ((y_vector[i] - y_hat[i]) * x_vector[i]);
[INFO] [stdout] 42 +         dw += 2.0 * ((y_vector[i] - y_hat[b]) * x_vector[i]);
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `i` in this scope
[INFO] [stdout]   --> src/main.rs:42:58
[INFO] [stdout]    |
[INFO] [stdout] 42 |         dw += 2.0 * ((y_vector[i] - y_hat[i]) * x_vector[i]);
[INFO] [stdout]    |                                                          ^
[INFO] [stdout]    |
[INFO] [stdout] help: a local variable with a similar name exists
[INFO] [stdout]    |
[INFO] [stdout] 42 -         dw += 2.0 * ((y_vector[i] - y_hat[i]) * x_vector[i]);
[INFO] [stdout] 42 +         dw += 2.0 * ((y_vector[i] - y_hat[i]) * x_vector[b]);
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `i` in this scope
[INFO] [stdout]   --> src/main.rs:43:32
[INFO] [stdout]    |
[INFO] [stdout] 43 |         db += 2.0 * ((y_vector[i] - y_hat[i]));
[INFO] [stdout]    |                                ^
[INFO] [stdout]    |
[INFO] [stdout] help: a local variable with a similar name exists
[INFO] [stdout]    |
[INFO] [stdout] 43 -         db += 2.0 * ((y_vector[i] - y_hat[i]));
[INFO] [stdout] 43 +         db += 2.0 * ((y_vector[b] - y_hat[i]));
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `i` in this scope
[INFO] [stdout]   --> src/main.rs:43:43
[INFO] [stdout]    |
[INFO] [stdout] 43 |         db += 2.0 * ((y_vector[i] - y_hat[i]));
[INFO] [stdout]    |                                           ^
[INFO] [stdout]    |
[INFO] [stdout] help: a local variable with a similar name exists
[INFO] [stdout]    |
[INFO] [stdout] 43 -         db += 2.0 * ((y_vector[i] - y_hat[i]));
[INFO] [stdout] 43 +         db += 2.0 * ((y_vector[i] - y_hat[b]));
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated function `rand::thread_rng`: Renamed to `rng`
[INFO] [stdout]   --> src/main.rs:79:43
[INFO] [stdout]    |
[INFO] [stdout] 79 |         let random_datapoint: i32 = rand::thread_rng().gen_range(min..=max);
[INFO] [stdout]    |                                           ^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(deprecated)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: arguments to this function are incorrect
[INFO] [stdout]   --> src/main.rs:11:17
[INFO] [stdout]    |
[INFO] [stdout] 11 |     let y_hat = predict_y(&w, &x, &b);
[INFO] [stdout]    |                 ^^^^^^^^^ --      -- expected `f64`, found `&{float}`
[INFO] [stdout]    |                           |
[INFO] [stdout]    |                           expected `f64`, found `&{float}`
[INFO] [stdout]    |
[INFO] [stdout] note: expected `Vec<f64>`, found `&Vec<f64>`
[INFO] [stdout]   --> src/main.rs:11:31
[INFO] [stdout]    |
[INFO] [stdout] 11 |     let y_hat = predict_y(&w, &x, &b);
[INFO] [stdout]    |                               ^^
[INFO] [stdout]    = note: expected struct `Vec<_>`
[INFO] [stdout]            found reference `&Vec<_>`
[INFO] [stdout] note: function defined here
[INFO] [stdout]   --> src/main.rs:54:4
[INFO] [stdout]    |
[INFO] [stdout] 54 | fn predict_y(w: f64, x_vector: Vec<f64>, b:f64) -> Vec<f64>{
[INFO] [stdout]    |    ^^^^^^^^^ ------  ------------------  -----
[INFO] [stdout] help: consider removing the borrow
[INFO] [stdout]    |
[INFO] [stdout] 11 -     let y_hat = predict_y(&w, &x, &b);
[INFO] [stdout] 11 +     let y_hat = predict_y(w, &x, &b);
[INFO] [stdout]    |
[INFO] [stdout] help: consider removing the borrow
[INFO] [stdout]    |
[INFO] [stdout] 11 -     let y_hat = predict_y(&w, &x, &b);
[INFO] [stdout] 11 +     let y_hat = predict_y(&w, x, &b);
[INFO] [stdout]    |
[INFO] [stdout] help: consider removing the borrow
[INFO] [stdout]    |
[INFO] [stdout] 11 -     let y_hat = predict_y(&w, &x, &b);
[INFO] [stdout] 11 +     let y_hat = predict_y(&w, &x, b);
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: arguments to this function are incorrect
[INFO] [stdout]   --> src/main.rs:12:5
[INFO] [stdout]    |
[INFO] [stdout] 12 |     gradient_descent(&x, &y_hat, &y, &w, &b);
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^                 --  -- types differ in mutability
[INFO] [stdout]    |                                      |
[INFO] [stdout]    |                                      types differ in mutability
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected mutable reference `&mut f64`
[INFO] [stdout]                       found reference `&{float}`
[INFO] [stdout]    = note: expected mutable reference `&mut f64`
[INFO] [stdout]                       found reference `&{float}`
[INFO] [stdout] note: function defined here
[INFO] [stdout]   --> src/main.rs:33:4
[INFO] [stdout]    |
[INFO] [stdout] 33 | fn gradient_descent(x_vector: &Vec<f64>, y_hat: &Vec<f64>, y_vector: &Vec<f64>, w: &mut f64, mut b: &mut f64)  {
[INFO] [stdout]    |    ^^^^^^^^^^^^^^^^                                                             -----------  ---------------
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0369]: cannot subtract `{float}` from `&mut f64`
[INFO] [stdout]   --> src/main.rs:45:15
[INFO] [stdout]    |
[INFO] [stdout] 45 |         w = w - lr * dw;
[INFO] [stdout]    |             - ^ ------- {float}
[INFO] [stdout]    |             |
[INFO] [stdout]    |             &mut f64
[INFO] [stdout]    |
[INFO] [stdout] help: `-` can be used on `f64` if you dereference the left-hand side
[INFO] [stdout]    |
[INFO] [stdout] 45 |         w = *w - lr * dw;
[INFO] [stdout]    |             +
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0369]: cannot subtract `f64` from `&mut f64`
[INFO] [stdout]   --> src/main.rs:46:15
[INFO] [stdout]    |
[INFO] [stdout] 46 |         b = b - lr * db;
[INFO] [stdout]    |             - ^ ------- f64
[INFO] [stdout]    |             |
[INFO] [stdout]    |             &mut f64
[INFO] [stdout]    |
[INFO] [stdout] help: `-` can be used on `f64` if you dereference the left-hand side
[INFO] [stdout]    |
[INFO] [stdout] 46 |         b = *b - lr * db;
[INFO] [stdout]    |             +
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `rand::Rng::gen_range`: Renamed to `random_range`
[INFO] [stdout]   --> src/main.rs:79:56
[INFO] [stdout]    |
[INFO] [stdout] 79 |         let random_datapoint: i32 = rand::thread_rng().gen_range(min..=max);
[INFO] [stdout]    |                                                        ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `number`
[INFO] [stdout]   --> src/main.rs:78:9
[INFO] [stdout]    |
[INFO] [stdout] 78 |     for number in 1..n {
[INFO] [stdout]    |         ^^^^^^ help: if this is intentional, prefix it with an underscore: `_number`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0308, E0369, E0425.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0308`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `Gradient_descent` (bin "Gradient_descent") due to 9 previous errors; 3 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "fd8d717dfa748a418ac8d8f9b58242327817daf257550347c80f6922e134aed7", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "fd8d717dfa748a418ac8d8f9b58242327817daf257550347c80f6922e134aed7", kill_on_drop: false }`
[INFO] [stdout] fd8d717dfa748a418ac8d8f9b58242327817daf257550347c80f6922e134aed7
