[INFO] fetching crate arkgan 0.0.8... [INFO] checking arkgan-0.0.8 against try#a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d for pr-145342-1 [INFO] extracting crate arkgan 0.0.8 into /workspace/builds/worker-7-tc2/source [INFO] started tweaking crates.io crate arkgan 0.0.8 [INFO] finished tweaking crates.io crate arkgan 0.0.8 [INFO] tweaked toml for crates.io crate arkgan 0.0.8 written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate arkgan 0.0.8 on toolchain a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 154563dce272b2e4518f794664f74000dc4fbfb554c131abce55ed329cbfcc2a [INFO] running `Command { std: "docker" "start" "-a" "154563dce272b2e4518f794664f74000dc4fbfb554c131abce55ed329cbfcc2a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "154563dce272b2e4518f794664f74000dc4fbfb554c131abce55ed329cbfcc2a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "154563dce272b2e4518f794664f74000dc4fbfb554c131abce55ed329cbfcc2a", kill_on_drop: false }` [INFO] [stdout] 154563dce272b2e4518f794664f74000dc4fbfb554c131abce55ed329cbfcc2a [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=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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8c0116184a70614b150364c8349ebdc9cd3793a9e330377cac398142b5e13579 [INFO] running `Command { std: "docker" "start" "-a" "8c0116184a70614b150364c8349ebdc9cd3793a9e330377cac398142b5e13579", kill_on_drop: false }` [INFO] [stderr] Checking arkgan v0.0.8 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/adv_loss.rs:50:58 [INFO] [stdout] | [INFO] [stdout] 50 | let log_arg2 = if (constant - generator) > 0.0 { (constant - generator) } else { f64::EPSILON }; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 50 - let log_arg2 = if (constant - generator) > 0.0 { (constant - generator) } else { f64::EPSILON }; [INFO] [stdout] 50 + let log_arg2 = if (constant - generator) > 0.0 { constant - generator } else { f64::EPSILON }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/adv_loss.rs:62:58 [INFO] [stdout] | [INFO] [stdout] 62 | let log_arg2 = if (constant - generator) > 0.0 { (constant - generator) } else { f64::EPSILON }; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 62 - let log_arg2 = if (constant - generator) > 0.0 { (constant - generator) } else { f64::EPSILON }; [INFO] [stdout] 62 + let log_arg2 = if (constant - generator) > 0.0 { constant - generator } else { f64::EPSILON }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/objective.rs:50:58 [INFO] [stdout] | [INFO] [stdout] 50 | let log_arg2 = if (constant - generator) > 0.0 { (constant - generator) } else { f64::EPSILON }; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 50 - let log_arg2 = if (constant - generator) > 0.0 { (constant - generator) } else { f64::EPSILON }; [INFO] [stdout] 50 + let log_arg2 = if (constant - generator) > 0.0 { constant - generator } else { f64::EPSILON }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/adv_loss.rs:50:58 [INFO] [stdout] | [INFO] [stdout] 50 | let log_arg2 = if (constant - generator) > 0.0 { (constant - generator) } else { f64::EPSILON }; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 50 - let log_arg2 = if (constant - generator) > 0.0 { (constant - generator) } else { f64::EPSILON }; [INFO] [stdout] 50 + let log_arg2 = if (constant - generator) > 0.0 { constant - generator } else { f64::EPSILON }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/objective.rs:62:58 [INFO] [stdout] | [INFO] [stdout] 62 | let log_arg2 = if (constant - generator) > 0.0 { (constant - generator) } else { f64::EPSILON }; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 62 - let log_arg2 = if (constant - generator) > 0.0 { (constant - generator) } else { f64::EPSILON }; [INFO] [stdout] 62 + let log_arg2 = if (constant - generator) > 0.0 { constant - generator } else { f64::EPSILON }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/rmsprop.rs:43:34 [INFO] [stdout] | [INFO] [stdout] 43 | let loss_calc: f64 = ((y[idx]) - ((slope * elements) + intercept)); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 43 - let loss_calc: f64 = ((y[idx]) - ((slope * elements) + intercept)); [INFO] [stdout] 43 + let loss_calc: f64 = (y[idx]) - ((slope * elements) + intercept); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/rmsprop.rs:71:59 [INFO] [stdout] | [INFO] [stdout] 71 | let slope_calc: f64 = slope - (lr / f64::sqrt((elements + ep))) * elements as f64; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 71 - let slope_calc: f64 = slope - (lr / f64::sqrt((elements + ep))) * elements as f64; [INFO] [stdout] 71 + let slope_calc: f64 = slope - (lr / f64::sqrt(elements + ep)) * elements as f64; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/adv_loss.rs:62:58 [INFO] [stdout] | [INFO] [stdout] 62 | let log_arg2 = if (constant - generator) > 0.0 { (constant - generator) } else { f64::EPSILON }; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 62 - let log_arg2 = if (constant - generator) > 0.0 { (constant - generator) } else { f64::EPSILON }; [INFO] [stdout] 62 + let log_arg2 = if (constant - generator) > 0.0 { constant - generator } else { f64::EPSILON }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/rmsprop.rs:75:67 [INFO] [stdout] | [INFO] [stdout] 75 | let intercept_calc: f64 = intercept - (lr / f64::sqrt((elements + ep))) * elements as f64; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 75 - let intercept_calc: f64 = intercept - (lr / f64::sqrt((elements + ep))) * elements as f64; [INFO] [stdout] 75 + let intercept_calc: f64 = intercept - (lr / f64::sqrt(elements + ep)) * elements as f64; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/objective.rs:50:58 [INFO] [stdout] | [INFO] [stdout] 50 | let log_arg2 = if (constant - generator) > 0.0 { (constant - generator) } else { f64::EPSILON }; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 50 - let log_arg2 = if (constant - generator) > 0.0 { (constant - generator) } else { f64::EPSILON }; [INFO] [stdout] 50 + let log_arg2 = if (constant - generator) > 0.0 { constant - generator } else { f64::EPSILON }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/objective.rs:62:58 [INFO] [stdout] | [INFO] [stdout] 62 | let log_arg2 = if (constant - generator) > 0.0 { (constant - generator) } else { f64::EPSILON }; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 62 - let log_arg2 = if (constant - generator) > 0.0 { (constant - generator) } else { f64::EPSILON }; [INFO] [stdout] 62 + let log_arg2 = if (constant - generator) > 0.0 { constant - generator } else { f64::EPSILON }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/rmsprop.rs:43:34 [INFO] [stdout] | [INFO] [stdout] 43 | let loss_calc: f64 = ((y[idx]) - ((slope * elements) + intercept)); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 43 - let loss_calc: f64 = ((y[idx]) - ((slope * elements) + intercept)); [INFO] [stdout] 43 + let loss_calc: f64 = (y[idx]) - ((slope * elements) + intercept); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/rmsprop.rs:71:59 [INFO] [stdout] | [INFO] [stdout] 71 | let slope_calc: f64 = slope - (lr / f64::sqrt((elements + ep))) * elements as f64; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 71 - let slope_calc: f64 = slope - (lr / f64::sqrt((elements + ep))) * elements as f64; [INFO] [stdout] 71 + let slope_calc: f64 = slope - (lr / f64::sqrt(elements + ep)) * elements as f64; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/rmsprop.rs:75:67 [INFO] [stdout] | [INFO] [stdout] 75 | let intercept_calc: f64 = intercept - (lr / f64::sqrt((elements + ep))) * elements as f64; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 75 - let intercept_calc: f64 = intercept - (lr / f64::sqrt((elements + ep))) * elements as f64; [INFO] [stdout] 75 + let intercept_calc: f64 = intercept - (lr / f64::sqrt(elements + ep)) * elements as f64; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `x_discriminator_out` is assigned to, but never used [INFO] [stdout] --> src/adv_loss.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | let mut x_discriminator_out: f64 = 0.0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_x_discriminator_out` instead [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `y_discriminator_out` is assigned to, but never used [INFO] [stdout] --> src/adv_loss.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | let mut y_discriminator_out: f64 = 0.0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_y_discriminator_out` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `x_discriminator_out` is assigned to, but never used [INFO] [stdout] --> src/objective.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | let mut x_discriminator_out: f64 = 0.0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_x_discriminator_out` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `y_discriminator_out` is assigned to, but never used [INFO] [stdout] --> src/objective.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | let mut y_discriminator_out: f64 = 0.0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_y_discriminator_out` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `log_gen` [INFO] [stdout] --> src/objective.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 68 | let log_gen = if generator > 0.0 {generator} else {f64::EPSILON}; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_log_gen` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `loss` [INFO] [stdout] --> src/adam.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | let loss: f64 = (1.0 / ((2.0 * x.len() as f64) * loss_val)) as f64; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_loss` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b_loss` [INFO] [stdout] --> src/adam.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 52 | let b_loss: f64 = (1.0 / x.len() as f64) * b_intercept_val as f64; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_b_loss` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `grad_slope` [INFO] [stdout] --> src/rmsprop.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | let mut grad_slope: Vec = vec![]; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_grad_slope` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `grad_intercept` [INFO] [stdout] --> src/rmsprop.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | let mut grad_intercept: Vec = vec![]; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_grad_intercept` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `loss` [INFO] [stdout] --> src/rmsprop.rs:47:13 [INFO] [stdout] | [INFO] [stdout] 47 | let loss: f64 = 1.0 / (2.0 * x.len() as f64) * loss_val as f64; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_loss` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `m_v_org` is never read [INFO] [stdout] --> src/rmsprop.rs:87:9 [INFO] [stdout] | [INFO] [stdout] 87 | m_v_org = upd_m_v_org; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `sqrd_grd_m` is never read [INFO] [stdout] --> src/rmsprop.rs:91:9 [INFO] [stdout] | [INFO] [stdout] 91 | sqrd_grd_m = m_rms_m_calc; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `b_v_org` is never read [INFO] [stdout] --> src/rmsprop.rs:102:9 [INFO] [stdout] | [INFO] [stdout] 102 | b_v_org = upd_b_v_org; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `sqrd_grd_b` is never read [INFO] [stdout] --> src/rmsprop.rs:106:9 [INFO] [stdout] | [INFO] [stdout] 106 | sqrd_grd_b = b_rms_m_calc; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `x_discriminator_out` is assigned to, but never used [INFO] [stdout] --> src/adv_loss.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | let mut x_discriminator_out: f64 = 0.0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_x_discriminator_out` instead [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `y_discriminator_out` is assigned to, but never used [INFO] [stdout] --> src/adv_loss.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | let mut y_discriminator_out: f64 = 0.0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_y_discriminator_out` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/rmsprop.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | let mut grad_slope: Vec = vec![]; [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/rmsprop.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | let mut grad_intercept: Vec = vec![]; [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/rmsprop.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | let mut slope:f64 = nom / denom as f64; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `x_discriminator_out` is assigned to, but never used [INFO] [stdout] --> src/objective.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | let mut x_discriminator_out: f64 = 0.0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_x_discriminator_out` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/rmsprop.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | let mut intercept: f64 = y_mean * (slope * x_mean) as f64; [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/rmsprop.rs:84:13 [INFO] [stdout] | [INFO] [stdout] 84 | let mut grad_m_g: f64 = (1.0/x.len() as f64) * grad_sum_m as f64; [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/rmsprop.rs:86:13 [INFO] [stdout] | [INFO] [stdout] 86 | let mut upd_m_v_org: f64 = (decay * m_v_org) + ((1.0 - decay) * grad_sum_m) as f64; [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/rmsprop.rs:89:13 [INFO] [stdout] | [INFO] [stdout] 89 | let mut m_rmd_grad: f64 = f64::sqrt(upd_m_v_org); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/rmsprop.rs:90:13 [INFO] [stdout] | [INFO] [stdout] 90 | let mut m_rms_m_calc: f64 = (slope - (lr / (m_rmd_grad + ep))) * grad_m_g as f64; [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/rmsprop.rs:99:13 [INFO] [stdout] | [INFO] [stdout] 99 | let mut grad_b_g: f64 = (1.0/x.len() as f64) * grad_sum_b as f64; [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/rmsprop.rs:101:13 [INFO] [stdout] | [INFO] [stdout] 101 | let mut upd_b_v_org: f64 = (decay * b_v_org) + ((1.0 - decay) * grad_sum_b) as f64; [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/rmsprop.rs:104:13 [INFO] [stdout] | [INFO] [stdout] 104 | let mut b_rmd_grad: f64 = f64::sqrt(upd_b_v_org); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/rmsprop.rs:105:13 [INFO] [stdout] | [INFO] [stdout] 105 | let mut b_rms_m_calc: f64 = (slope - (lr / (b_rmd_grad + ep))) * grad_b_g as f64; [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `y_discriminator_out` is assigned to, but never used [INFO] [stdout] --> src/objective.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | let mut y_discriminator_out: f64 = 0.0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_y_discriminator_out` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `log_gen` [INFO] [stdout] --> src/objective.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 68 | let log_gen = if generator > 0.0 {generator} else {f64::EPSILON}; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_log_gen` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sort_q` [INFO] [stdout] --> src/wasserstein_dist.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | let mut sort_q: Vec = vec![]; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_sort_q` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/wasserstein_dist.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | let mut sort_q: Vec = vec![]; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/momentum.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | let mut gen_old: f64 = 1.0; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless assignment of variable of type `usize` to itself [INFO] [stdout] --> src/lr_scheduler.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | max_step = max_step; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `loss` [INFO] [stdout] --> src/adam.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | let loss: f64 = (1.0 / ((2.0 * x.len() as f64) * loss_val)) as f64; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_loss` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b_loss` [INFO] [stdout] --> src/adam.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 52 | let b_loss: f64 = (1.0 / x.len() as f64) * b_intercept_val as f64; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_b_loss` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `grad_slope` [INFO] [stdout] --> src/rmsprop.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | let mut grad_slope: Vec = vec![]; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_grad_slope` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `grad_intercept` [INFO] [stdout] --> src/rmsprop.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | let mut grad_intercept: Vec = vec![]; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_grad_intercept` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `loss` [INFO] [stdout] --> src/rmsprop.rs:47:13 [INFO] [stdout] | [INFO] [stdout] 47 | let loss: f64 = 1.0 / (2.0 * x.len() as f64) * loss_val as f64; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_loss` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `m_v_org` is never read [INFO] [stdout] --> src/rmsprop.rs:87:9 [INFO] [stdout] | [INFO] [stdout] 87 | m_v_org = upd_m_v_org; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `sqrd_grd_m` is never read [INFO] [stdout] --> src/rmsprop.rs:91:9 [INFO] [stdout] | [INFO] [stdout] 91 | sqrd_grd_m = m_rms_m_calc; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `b_v_org` is never read [INFO] [stdout] --> src/rmsprop.rs:102:9 [INFO] [stdout] | [INFO] [stdout] 102 | b_v_org = upd_b_v_org; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `sqrd_grd_b` is never read [INFO] [stdout] --> src/rmsprop.rs:106:9 [INFO] [stdout] | [INFO] [stdout] 106 | sqrd_grd_b = b_rms_m_calc; [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/rmsprop.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | let mut grad_slope: Vec = vec![]; [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/rmsprop.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | let mut grad_intercept: Vec = vec![]; [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/rmsprop.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | let mut slope:f64 = nom / denom as f64; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/rmsprop.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | let mut intercept: f64 = y_mean * (slope * x_mean) as f64; [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/rmsprop.rs:84:13 [INFO] [stdout] | [INFO] [stdout] 84 | let mut grad_m_g: f64 = (1.0/x.len() as f64) * grad_sum_m as f64; [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/rmsprop.rs:86:13 [INFO] [stdout] | [INFO] [stdout] 86 | let mut upd_m_v_org: f64 = (decay * m_v_org) + ((1.0 - decay) * grad_sum_m) as f64; [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/rmsprop.rs:89:13 [INFO] [stdout] | [INFO] [stdout] 89 | let mut m_rmd_grad: f64 = f64::sqrt(upd_m_v_org); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/rmsprop.rs:90:13 [INFO] [stdout] | [INFO] [stdout] 90 | let mut m_rms_m_calc: f64 = (slope - (lr / (m_rmd_grad + ep))) * grad_m_g as f64; [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/rmsprop.rs:99:13 [INFO] [stdout] | [INFO] [stdout] 99 | let mut grad_b_g: f64 = (1.0/x.len() as f64) * grad_sum_b as f64; [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/rmsprop.rs:101:13 [INFO] [stdout] | [INFO] [stdout] 101 | let mut upd_b_v_org: f64 = (decay * b_v_org) + ((1.0 - decay) * grad_sum_b) as f64; [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/rmsprop.rs:104:13 [INFO] [stdout] | [INFO] [stdout] 104 | let mut b_rmd_grad: f64 = f64::sqrt(upd_b_v_org); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/rmsprop.rs:105:13 [INFO] [stdout] | [INFO] [stdout] 105 | let mut b_rms_m_calc: f64 = (slope - (lr / (b_rmd_grad + ep))) * grad_b_g as f64; [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sort_q` [INFO] [stdout] --> src/wasserstein_dist.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | let mut sort_q: Vec = vec![]; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_sort_q` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/wasserstein_dist.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | let mut sort_q: Vec = vec![]; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/momentum.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | let mut gen_old: f64 = 1.0; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless assignment of variable of type `usize` to itself [INFO] [stdout] --> src/lr_scheduler.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | max_step = max_step; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.23s [INFO] running `Command { std: "docker" "inspect" "8c0116184a70614b150364c8349ebdc9cd3793a9e330377cac398142b5e13579", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8c0116184a70614b150364c8349ebdc9cd3793a9e330377cac398142b5e13579", kill_on_drop: false }` [INFO] [stdout] 8c0116184a70614b150364c8349ebdc9cd3793a9e330377cac398142b5e13579