[INFO] cloning repository https://github.com/notseanray/mnist-nn-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/notseanray/mnist-nn-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnotseanray%2Fmnist-nn-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnotseanray%2Fmnist-nn-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] cca05789d0359c2ea2b38a64d19ad514252cadac [INFO] building notseanray/mnist-nn-rs against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnotseanray%2Fmnist-nn-rs" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/notseanray/mnist-nn-rs on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/notseanray/mnist-nn-rs [INFO] finished tweaking git repo https://github.com/notseanray/mnist-nn-rs [INFO] tweaked toml for git repo https://github.com/notseanray/mnist-nn-rs written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/notseanray/mnist-nn-rs 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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "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] [stderr] Downloading crates ... [INFO] [stderr] Downloaded getrandom v0.2.10 [INFO] [stderr] Downloaded fastrand v2.0.0 [INFO] [stderr] Downloaded libc v0.2.147 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 48cf8e83c9a0dc5574f610154092dc2551ed3ad18364b7ba8ecd3e9ae001dfa7 [INFO] running `Command { std: "docker" "start" "-a" "48cf8e83c9a0dc5574f610154092dc2551ed3ad18364b7ba8ecd3e9ae001dfa7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "48cf8e83c9a0dc5574f610154092dc2551ed3ad18364b7ba8ecd3e9ae001dfa7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "48cf8e83c9a0dc5574f610154092dc2551ed3ad18364b7ba8ecd3e9ae001dfa7", kill_on_drop: false }` [INFO] [stdout] 48cf8e83c9a0dc5574f610154092dc2551ed3ad18364b7ba8ecd3e9ae001dfa7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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=forbid -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9e6cd6d848b0550c2f6aa23dcdc26372147f25ab20b911685a85fceb8956f37f [INFO] running `Command { std: "docker" "start" "-a" "9e6cd6d848b0550c2f6aa23dcdc26372147f25ab20b911685a85fceb8956f37f", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.147 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling ppv-lite86 v0.2.17 [INFO] [stderr] Compiling fastrand v2.0.0 [INFO] [stderr] Compiling getrandom v0.2.10 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling mnist-nn-rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `rand::seq::SliceRandom` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use rand::seq::SliceRandom; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::thread_rng` [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use rand::thread_rng; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::Rng` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Add` [INFO] [stdout] --> src/main.rs:9:11 [INFO] [stdout] | [INFO] [stdout] 9 | ops::{Add, Mul}, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `size` [INFO] [stdout] --> src/main.rs:198:9 [INFO] [stdout] | [INFO] [stdout] 198 | let size = y.len(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_size` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `z2` [INFO] [stdout] --> src/main.rs:272:5 [INFO] [stdout] | [INFO] [stdout] 272 | z2: M, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_z2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `w1` [INFO] [stdout] --> src/main.rs:274:5 [INFO] [stdout] | [INFO] [stdout] 274 | w1: M, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_w1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y_dev` [INFO] [stdout] --> src/main.rs:348:9 [INFO] [stdout] | [INFO] [stdout] 348 | let y_dev = &dev_data[0]; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_y_dev` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x_dev` [INFO] [stdout] --> src/main.rs:349:9 [INFO] [stdout] | [INFO] [stdout] 349 | let x_dev = &dev_data[1..].to_vec(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_x_dev` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `W1` [INFO] [stdout] --> src/main.rs:365:10 [INFO] [stdout] | [INFO] [stdout] 365 | let (W1, b1, W2, b2) = gradient_descent(x_train, y_train, 0.10, 500, rows_len); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_W1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b1` [INFO] [stdout] --> src/main.rs:365:14 [INFO] [stdout] | [INFO] [stdout] 365 | let (W1, b1, W2, b2) = gradient_descent(x_train, y_train, 0.10, 500, rows_len); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_b1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `W2` [INFO] [stdout] --> src/main.rs:365:18 [INFO] [stdout] | [INFO] [stdout] 365 | let (W1, b1, W2, b2) = gradient_descent(x_train, y_train, 0.10, 500, rows_len); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_W2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b2` [INFO] [stdout] --> src/main.rs:365:22 [INFO] [stdout] | [INFO] [stdout] 365 | let (W1, b1, W2, b2) = gradient_descent(x_train, y_train, 0.10, 500, rows_len); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_b2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `dot` and `m_eq` are never used [INFO] [stdout] --> src/main.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 19 | trait Matrix { [INFO] [stdout] | ------ methods in this trait [INFO] [stdout] ... [INFO] [stdout] 23 | fn dot(self, other: Vec) -> Vec; [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | fn m_eq(&self, other: &M) -> Self; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `W1` should have a snake case name [INFO] [stdout] --> src/main.rs:365:10 [INFO] [stdout] | [INFO] [stdout] 365 | let (W1, b1, W2, b2) = gradient_descent(x_train, y_train, 0.10, 500, rows_len); [INFO] [stdout] | ^^ help: convert the identifier to snake case (notice the capitalization): `w1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `W2` should have a snake case name [INFO] [stdout] --> src/main.rs:365:18 [INFO] [stdout] | [INFO] [stdout] 365 | let (W1, b1, W2, b2) = gradient_descent(x_train, y_train, 0.10, 500, rows_len); [INFO] [stdout] | ^^ help: convert the identifier to snake case (notice the capitalization): `w2` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.36s [INFO] running `Command { std: "docker" "inspect" "9e6cd6d848b0550c2f6aa23dcdc26372147f25ab20b911685a85fceb8956f37f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9e6cd6d848b0550c2f6aa23dcdc26372147f25ab20b911685a85fceb8956f37f", kill_on_drop: false }` [INFO] [stdout] 9e6cd6d848b0550c2f6aa23dcdc26372147f25ab20b911685a85fceb8956f37f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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=forbid -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 790ea8eff9b5985b032c207b085f1ce5b9e77239bca4c2abd7d7fd3f1b9c2143 [INFO] running `Command { std: "docker" "start" "-a" "790ea8eff9b5985b032c207b085f1ce5b9e77239bca4c2abd7d7fd3f1b9c2143", kill_on_drop: false }` [INFO] [stderr] Compiling mnist-nn-rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `rand::seq::SliceRandom` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use rand::seq::SliceRandom; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::thread_rng` [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use rand::thread_rng; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::Rng` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Add` [INFO] [stdout] --> src/main.rs:9:11 [INFO] [stdout] | [INFO] [stdout] 9 | ops::{Add, Mul}, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `size` [INFO] [stdout] --> src/main.rs:198:9 [INFO] [stdout] | [INFO] [stdout] 198 | let size = y.len(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_size` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `z2` [INFO] [stdout] --> src/main.rs:272:5 [INFO] [stdout] | [INFO] [stdout] 272 | z2: M, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_z2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `w1` [INFO] [stdout] --> src/main.rs:274:5 [INFO] [stdout] | [INFO] [stdout] 274 | w1: M, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_w1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y_dev` [INFO] [stdout] --> src/main.rs:348:9 [INFO] [stdout] | [INFO] [stdout] 348 | let y_dev = &dev_data[0]; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_y_dev` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x_dev` [INFO] [stdout] --> src/main.rs:349:9 [INFO] [stdout] | [INFO] [stdout] 349 | let x_dev = &dev_data[1..].to_vec(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_x_dev` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `W1` [INFO] [stdout] --> src/main.rs:365:10 [INFO] [stdout] | [INFO] [stdout] 365 | let (W1, b1, W2, b2) = gradient_descent(x_train, y_train, 0.10, 500, rows_len); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_W1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b1` [INFO] [stdout] --> src/main.rs:365:14 [INFO] [stdout] | [INFO] [stdout] 365 | let (W1, b1, W2, b2) = gradient_descent(x_train, y_train, 0.10, 500, rows_len); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_b1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `W2` [INFO] [stdout] --> src/main.rs:365:18 [INFO] [stdout] | [INFO] [stdout] 365 | let (W1, b1, W2, b2) = gradient_descent(x_train, y_train, 0.10, 500, rows_len); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_W2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b2` [INFO] [stdout] --> src/main.rs:365:22 [INFO] [stdout] | [INFO] [stdout] 365 | let (W1, b1, W2, b2) = gradient_descent(x_train, y_train, 0.10, 500, rows_len); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_b2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `dot` and `m_eq` are never used [INFO] [stdout] --> src/main.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 19 | trait Matrix { [INFO] [stdout] | ------ methods in this trait [INFO] [stdout] ... [INFO] [stdout] 23 | fn dot(self, other: Vec) -> Vec; [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | fn m_eq(&self, other: &M) -> Self; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `W1` should have a snake case name [INFO] [stdout] --> src/main.rs:365:10 [INFO] [stdout] | [INFO] [stdout] 365 | let (W1, b1, W2, b2) = gradient_descent(x_train, y_train, 0.10, 500, rows_len); [INFO] [stdout] | ^^ help: convert the identifier to snake case (notice the capitalization): `w1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `W2` should have a snake case name [INFO] [stdout] --> src/main.rs:365:18 [INFO] [stdout] | [INFO] [stdout] 365 | let (W1, b1, W2, b2) = gradient_descent(x_train, y_train, 0.10, 500, rows_len); [INFO] [stdout] | ^^ help: convert the identifier to snake case (notice the capitalization): `w2` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.36s [INFO] running `Command { std: "docker" "inspect" "790ea8eff9b5985b032c207b085f1ce5b9e77239bca4c2abd7d7fd3f1b9c2143", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "790ea8eff9b5985b032c207b085f1ce5b9e77239bca4c2abd7d7fd3f1b9c2143", kill_on_drop: false }` [INFO] [stdout] 790ea8eff9b5985b032c207b085f1ce5b9e77239bca4c2abd7d7fd3f1b9c2143