[INFO] cloning repository https://github.com/moh-dev-stack/ml_in_rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/moh-dev-stack/ml_in_rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmoh-dev-stack%2Fml_in_rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmoh-dev-stack%2Fml_in_rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] bd5ab55128946ac2cf09895776bef718a1106247 [INFO] checking moh-dev-stack/ml_in_rust against try#8c500c7cefd54fd11d57295f3771d576be9ee415 for pr-145113 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmoh-dev-stack%2Fml_in_rust" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/moh-dev-stack/ml_in_rust [INFO] finished tweaking git repo https://github.com/moh-dev-stack/ml_in_rust [INFO] tweaked toml for git repo https://github.com/moh-dev-stack/ml_in_rust written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/moh-dev-stack/ml_in_rust on toolchain 8c500c7cefd54fd11d57295f3771d576be9ee415 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8c500c7cefd54fd11d57295f3771d576be9ee415" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/moh-dev-stack/ml_in_rust 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" "+8c500c7cefd54fd11d57295f3771d576be9ee415" "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-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:ae6f63d130afcfff7f91f5ba9fdb2a74d52830289c6a2ea2d23a94dcfb480a0d" "/opt/rustwide/cargo-home/bin/cargo" "+8c500c7cefd54fd11d57295f3771d576be9ee415" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ab0cad891cbdfa0738f8f9920ab4a2d3679623deb83ac2b2afee4e7ac4cc16f1 [INFO] running `Command { std: "docker" "start" "-a" "ab0cad891cbdfa0738f8f9920ab4a2d3679623deb83ac2b2afee4e7ac4cc16f1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ab0cad891cbdfa0738f8f9920ab4a2d3679623deb83ac2b2afee4e7ac4cc16f1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ab0cad891cbdfa0738f8f9920ab4a2d3679623deb83ac2b2afee4e7ac4cc16f1", kill_on_drop: false }` [INFO] [stdout] ab0cad891cbdfa0738f8f9920ab4a2d3679623deb83ac2b2afee4e7ac4cc16f1 [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:ae6f63d130afcfff7f91f5ba9fdb2a74d52830289c6a2ea2d23a94dcfb480a0d" "/opt/rustwide/cargo-home/bin/cargo" "+8c500c7cefd54fd11d57295f3771d576be9ee415" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] eda0f91fcf1b254252b91e75918d64f7594ac78e7e27b8ea8c30387bc5a25965 [INFO] running `Command { std: "docker" "start" "-a" "eda0f91fcf1b254252b91e75918d64f7594ac78e7e27b8ea8c30387bc5a25965", kill_on_drop: false }` [INFO] [stderr] Checking ml_in_rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/preprocessing/split.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | let mut sizes: Vec = (0..k) [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 `X` should have a snake case name [INFO] [stdout] --> src/models/logistic_regression.rs:12:22 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn predict_proba(X: &Vec>, theta: &Vector) -> Vector { [INFO] [stdout] | ^ help: convert the identifier to snake case (notice the capitalization): `x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `X` should have a snake case name [INFO] [stdout] --> src/models/logistic_regression.rs:27:21 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn compute_cost(X: &Vec>, y: &Vector, theta: &Vector) -> f64 { [INFO] [stdout] | ^ help: convert the identifier to snake case (notice the capitalization): `x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `X` should have a snake case name [INFO] [stdout] --> src/models/logistic_regression.rs:40:25 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn compute_gradient(X: &Vec>, y: &Vector, theta: &Vector) -> Vector { [INFO] [stdout] | ^ help: convert the identifier to snake case (notice the capitalization): `x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `X` should have a snake case name [INFO] [stdout] --> src/models/logistic_regression.rs:57:5 [INFO] [stdout] | [INFO] [stdout] 57 | X: &Vec>, [INFO] [stdout] | ^ help: convert the identifier to snake case (notice the capitalization): `x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `X` should have a snake case name [INFO] [stdout] --> src/models/logistic_regression.rs:78:22 [INFO] [stdout] | [INFO] [stdout] 78 | pub fn predict_class(X: &Vec>, theta: &Vector) -> Vec { [INFO] [stdout] | ^ help: convert the identifier to snake case (notice the capitalization): `x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/preprocessing/split.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | let mut sizes: Vec = (0..k) [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 `X` should have a snake case name [INFO] [stdout] --> src/models/logistic_regression.rs:12:22 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn predict_proba(X: &Vec>, theta: &Vector) -> Vector { [INFO] [stdout] | ^ help: convert the identifier to snake case (notice the capitalization): `x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `X` should have a snake case name [INFO] [stdout] --> src/models/logistic_regression.rs:27:21 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn compute_cost(X: &Vec>, y: &Vector, theta: &Vector) -> f64 { [INFO] [stdout] | ^ help: convert the identifier to snake case (notice the capitalization): `x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `X` should have a snake case name [INFO] [stdout] --> src/models/logistic_regression.rs:40:25 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn compute_gradient(X: &Vec>, y: &Vector, theta: &Vector) -> Vector { [INFO] [stdout] | ^ help: convert the identifier to snake case (notice the capitalization): `x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `X` should have a snake case name [INFO] [stdout] --> src/models/logistic_regression.rs:57:5 [INFO] [stdout] | [INFO] [stdout] 57 | X: &Vec>, [INFO] [stdout] | ^ help: convert the identifier to snake case (notice the capitalization): `x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `X` should have a snake case name [INFO] [stdout] --> src/models/logistic_regression.rs:78:22 [INFO] [stdout] | [INFO] [stdout] 78 | pub fn predict_class(X: &Vec>, theta: &Vector) -> Vec { [INFO] [stdout] | ^ help: convert the identifier to snake case (notice the capitalization): `x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cost_history` [INFO] [stdout] --> src/bin/logistic_regression_demo.rs:43:17 [INFO] [stdout] | [INFO] [stdout] 43 | let (theta, cost_history) = gradient_descent(&x_aug, &y, theta0, alpha, iters); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cost_history` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cost_history` [INFO] [stdout] --> src/bin/logistic_regression_demo.rs:43:17 [INFO] [stdout] | [INFO] [stdout] 43 | let (theta, cost_history) = gradient_descent(&x_aug, &y, theta0, alpha, iters); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cost_history` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `X` should have a snake case name [INFO] [stdout] --> tests/scale_tests.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | let X = vec![vec![1.0], vec![3.0]]; [INFO] [stdout] | ^ help: convert the identifier to snake case (notice the capitalization): `x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `X` should have a snake case name [INFO] [stdout] --> tests/scale_tests.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | let X = vec![vec![5.0], vec![5.0], vec![5.0]]; [INFO] [stdout] | ^ help: convert the identifier to snake case (notice the capitalization): `x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `X` should have a snake case name [INFO] [stdout] --> tests/scale_tests.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | let X = vec![vec![1.0], vec![3.0]]; [INFO] [stdout] | ^ help: convert the identifier to snake case (notice the capitalization): `x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `X` should have a snake case name [INFO] [stdout] --> tests/scale_tests.rs:65:9 [INFO] [stdout] | [INFO] [stdout] 65 | let X = vec![vec![2.0], vec![2.0]]; [INFO] [stdout] | ^ help: convert the identifier to snake case (notice the capitalization): `x` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.24s [INFO] running `Command { std: "docker" "inspect" "eda0f91fcf1b254252b91e75918d64f7594ac78e7e27b8ea8c30387bc5a25965", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "eda0f91fcf1b254252b91e75918d64f7594ac78e7e27b8ea8c30387bc5a25965", kill_on_drop: false }` [INFO] [stdout] eda0f91fcf1b254252b91e75918d64f7594ac78e7e27b8ea8c30387bc5a25965