[INFO] cloning repository https://github.com/jackcooperusesvim/rust-ml-lib
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/jackcooperusesvim/rust-ml-lib" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjackcooperusesvim%2Frust-ml-lib", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjackcooperusesvim%2Frust-ml-lib'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] a0d3eba7ce97cee525f7ba2e065333456115dfca
[INFO] checking jackcooperusesvim/rust-ml-lib against master#507271bc119683008ec719ecee48814e8ac86c65 for pr-146440
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjackcooperusesvim%2Frust-ml-lib" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/jackcooperusesvim/rust-ml-lib
[INFO] finished tweaking git repo https://github.com/jackcooperusesvim/rust-ml-lib
[INFO] tweaked toml for git repo https://github.com/jackcooperusesvim/rust-ml-lib written to /workspace/builds/worker-6-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/jackcooperusesvim/rust-ml-lib on toolchain 507271bc119683008ec719ecee48814e8ac86c65
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+507271bc119683008ec719ecee48814e8ac86c65" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/jackcooperusesvim/rust-ml-lib 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" "+507271bc119683008ec719ecee48814e8ac86c65" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+507271bc119683008ec719ecee48814e8ac86c65" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 9160751842d4a8ef8e84f80568be734459d0490b6c288ec04dddc496dc8e6f72
[INFO] running `Command { std: "docker" "start" "-a" "9160751842d4a8ef8e84f80568be734459d0490b6c288ec04dddc496dc8e6f72", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "9160751842d4a8ef8e84f80568be734459d0490b6c288ec04dddc496dc8e6f72", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "9160751842d4a8ef8e84f80568be734459d0490b6c288ec04dddc496dc8e6f72", kill_on_drop: false }`
[INFO] [stdout] 9160751842d4a8ef8e84f80568be734459d0490b6c288ec04dddc496dc8e6f72
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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" "-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" "+507271bc119683008ec719ecee48814e8ac86c65" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 2e12353b287dcd07c4f085a8c14f0ee8caf6e50c985bc9d519d430bc5987023e
[INFO] running `Command { std: "docker" "start" "-a" "2e12353b287dcd07c4f085a8c14f0ee8caf6e50c985bc9d519d430bc5987023e", kill_on_drop: false }`
[INFO] [stderr]     Checking fastrand v2.2.0
[INFO] [stderr]     Checking ml v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `super::*`
[INFO] [stdout]   --> src/lib.rs:11:9
[INFO] [stdout]    |
[INFO] [stdout] 11 |     use super::*;
[INFO] [stdout]    |         ^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable pattern
[INFO] [stdout]   --> src/models/mlp.rs:82:13
[INFO] [stdout]    |
[INFO] [stdout] 81 |             SingleDimGrad::Dense(grad_dta) => {}
[INFO] [stdout]    |             ------------------------------ matches all the relevant values
[INFO] [stdout] 82 |             _ => panic!("improper gradient type applied to Dense"),
[INFO] [stdout]    |             ^ no value can reach this
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `opt_alg`
[INFO] [stdout]   --> src/models/mlp.rs:79:57
[INFO] [stdout]    |
[INFO] [stdout] 79 |     fn apply_gradients(&mut self, grads: SingleDimGrad, opt_alg: &mut dyn Optimizer) {
[INFO] [stdout]    |                                                         ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_opt_alg`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `grad_dta`
[INFO] [stdout]   --> src/models/mlp.rs:81:34
[INFO] [stdout]    |
[INFO] [stdout] 81 |             SingleDimGrad::Dense(grad_dta) => {}
[INFO] [stdout]    |                                  ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_grad_dta`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type `Sigmoid` is more private than the item `Activations::Sigmoid::0`
[INFO] [stdout]  --> src/models/mlp/activation.rs:4:13
[INFO] [stdout]   |
[INFO] [stdout] 4 |     Sigmoid(Sigmoid),
[INFO] [stdout]   |             ^^^^^^^ field `Activations::Sigmoid::0` is reachable at visibility `pub`
[INFO] [stdout]   |
[INFO] [stdout] note: but type `Sigmoid` is only usable at visibility `pub(self)`
[INFO] [stdout]  --> src/models/mlp/activation.rs:6:1
[INFO] [stdout]   |
[INFO] [stdout] 6 | struct Sigmoid {}
[INFO] [stdout]   | ^^^^^^^^^^^^^^
[INFO] [stdout]   = note: `#[warn(private_interfaces)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `weights`, `biases`, and `activation` are never read
[INFO] [stdout]   --> src/models/mlp.rs:13:5
[INFO] [stdout]    |
[INFO] [stdout] 12 | pub struct Dense<'a, const INPUT_SIZE: usize, const OUTPUT_SIZE: usize> {
[INFO] [stdout]    |            ----- fields in this struct
[INFO] [stdout] 13 |     weights: Vec<Vec<f32>>,
[INFO] [stdout]    |     ^^^^^^^
[INFO] [stdout] 14 |     biases: Vec<f32>,
[INFO] [stdout]    |     ^^^^^^
[INFO] [stdout] 15 |     activation: &'a mut dyn ActFunc,
[INFO] [stdout]    |     ^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `DenseGradient` is never constructed
[INFO] [stdout]   --> src/models/mlp.rs:18:8
[INFO] [stdout]    |
[INFO] [stdout] 18 | struct DenseGradient {
[INFO] [stdout]    |        ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `SingleDimGrad` is never used
[INFO] [stdout]   --> src/models/mlp.rs:23:6
[INFO] [stdout]    |
[INFO] [stdout] 23 | enum SingleDimGrad {
[INFO] [stdout]    |      ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait `SingleDimLayer` is never used
[INFO] [stdout]   --> src/models/mlp.rs:27:7
[INFO] [stdout]    |
[INFO] [stdout] 27 | trait SingleDimLayer<const INPUT_SIZE: usize, const OUTPUT_SIZE: usize> {
[INFO] [stdout]    |       ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]   --> src/models/mlp.rs:36:8
[INFO] [stdout]    |
[INFO] [stdout] 35 | impl<const INPUT_SIZE: usize, const OUTPUT_SIZE: usize> Dense<'_, INPUT_SIZE, OUTPUT_SIZE> {
[INFO] [stdout]    | ------------------------------------------------------------------------------------------ associated function in this implementation
[INFO] [stdout] 36 |     fn new<'a>(
[INFO] [stdout]    |        ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Relu` is never constructed
[INFO] [stdout]  --> src/models/mlp/activation.rs:7:8
[INFO] [stdout]   |
[INFO] [stdout] 7 | struct Relu {}
[INFO] [stdout]   |        ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: const parameter `len` should have an upper case name
[INFO] [stdout]  --> src/models/mlp/vec_math.rs:2:24
[INFO] [stdout]   |
[INFO] [stdout] 2 | pub fn slice_dot<const len: usize>(vec1: [f32; len], vec2: [f32; len]) -> f32 {
[INFO] [stdout]   |                        ^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(non_upper_case_globals)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] help: convert the identifier to upper case
[INFO] [stdout]   |
[INFO] [stdout] 2 - pub fn slice_dot<const len: usize>(vec1: [f32; len], vec2: [f32; len]) -> f32 {
[INFO] [stdout] 2 + pub fn slice_dot<const LEN: usize>(vec1: [f32; len], vec2: [f32; len]) -> f32 {
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable pattern
[INFO] [stdout]   --> src/models/mlp.rs:82:13
[INFO] [stdout]    |
[INFO] [stdout] 81 |             SingleDimGrad::Dense(grad_dta) => {}
[INFO] [stdout]    |             ------------------------------ matches all the relevant values
[INFO] [stdout] 82 |             _ => panic!("improper gradient type applied to Dense"),
[INFO] [stdout]    |             ^ no value can reach this
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `opt_alg`
[INFO] [stdout]   --> src/models/mlp.rs:79:57
[INFO] [stdout]    |
[INFO] [stdout] 79 |     fn apply_gradients(&mut self, grads: SingleDimGrad, opt_alg: &mut dyn Optimizer) {
[INFO] [stdout]    |                                                         ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_opt_alg`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `grad_dta`
[INFO] [stdout]   --> src/models/mlp.rs:81:34
[INFO] [stdout]    |
[INFO] [stdout] 81 |             SingleDimGrad::Dense(grad_dta) => {}
[INFO] [stdout]    |                                  ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_grad_dta`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type `Sigmoid` is more private than the item `Activations::Sigmoid::0`
[INFO] [stdout]  --> src/models/mlp/activation.rs:4:13
[INFO] [stdout]   |
[INFO] [stdout] 4 |     Sigmoid(Sigmoid),
[INFO] [stdout]   |             ^^^^^^^ field `Activations::Sigmoid::0` is reachable at visibility `pub`
[INFO] [stdout]   |
[INFO] [stdout] note: but type `Sigmoid` is only usable at visibility `pub(self)`
[INFO] [stdout]  --> src/models/mlp/activation.rs:6:1
[INFO] [stdout]   |
[INFO] [stdout] 6 | struct Sigmoid {}
[INFO] [stdout]   | ^^^^^^^^^^^^^^
[INFO] [stdout]   = note: `#[warn(private_interfaces)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `MeanSquaredError` is never constructed
[INFO] [stdout]  --> src/loss.rs:6:8
[INFO] [stdout]   |
[INFO] [stdout] 6 | struct MeanSquaredError {}
[INFO] [stdout]   |        ^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Knn` is never constructed
[INFO] [stdout]  --> src/models/classification/knn.rs:6:8
[INFO] [stdout]   |
[INFO] [stdout] 6 | struct Knn<C: Eq + Hash + Clone> {
[INFO] [stdout]   |        ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new`, `train`, and `eval` are never used
[INFO] [stdout]   --> src/models/classification/knn.rs:12:8
[INFO] [stdout]    |
[INFO] [stdout] 11 | impl<C: Clone + Eq + Hash> Knn<C> {
[INFO] [stdout]    | --------------------------------- associated items in this implementation
[INFO] [stdout] 12 |     fn new(k: usize) -> Self {
[INFO] [stdout]    |        ^^^
[INFO] [stdout] ...
[INFO] [stdout] 20 |     fn train(&mut self, data: Vec<(Vec<f32>, C)>) {
[INFO] [stdout]    |        ^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 30 |     fn eval(&self, input: &Vec<f32>) -> Option<C> {
[INFO] [stdout]    |        ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `weights`, `biases`, and `activation` are never read
[INFO] [stdout]   --> src/models/mlp.rs:13:5
[INFO] [stdout]    |
[INFO] [stdout] 12 | pub struct Dense<'a, const INPUT_SIZE: usize, const OUTPUT_SIZE: usize> {
[INFO] [stdout]    |            ----- fields in this struct
[INFO] [stdout] 13 |     weights: Vec<Vec<f32>>,
[INFO] [stdout]    |     ^^^^^^^
[INFO] [stdout] 14 |     biases: Vec<f32>,
[INFO] [stdout]    |     ^^^^^^
[INFO] [stdout] 15 |     activation: &'a mut dyn ActFunc,
[INFO] [stdout]    |     ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `DenseGradient` is never constructed
[INFO] [stdout]   --> src/models/mlp.rs:18:8
[INFO] [stdout]    |
[INFO] [stdout] 18 | struct DenseGradient {
[INFO] [stdout]    |        ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `SingleDimGrad` is never used
[INFO] [stdout]   --> src/models/mlp.rs:23:6
[INFO] [stdout]    |
[INFO] [stdout] 23 | enum SingleDimGrad {
[INFO] [stdout]    |      ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait `SingleDimLayer` is never used
[INFO] [stdout]   --> src/models/mlp.rs:27:7
[INFO] [stdout]    |
[INFO] [stdout] 27 | trait SingleDimLayer<const INPUT_SIZE: usize, const OUTPUT_SIZE: usize> {
[INFO] [stdout]    |       ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]   --> src/models/mlp.rs:36:8
[INFO] [stdout]    |
[INFO] [stdout] 35 | impl<const INPUT_SIZE: usize, const OUTPUT_SIZE: usize> Dense<'_, INPUT_SIZE, OUTPUT_SIZE> {
[INFO] [stdout]    | ------------------------------------------------------------------------------------------ associated function in this implementation
[INFO] [stdout] 36 |     fn new<'a>(
[INFO] [stdout]    |        ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Relu` is never constructed
[INFO] [stdout]  --> src/models/mlp/activation.rs:7:8
[INFO] [stdout]   |
[INFO] [stdout] 7 | struct Relu {}
[INFO] [stdout]   |        ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: const parameter `len` should have an upper case name
[INFO] [stdout]  --> src/models/mlp/vec_math.rs:2:24
[INFO] [stdout]   |
[INFO] [stdout] 2 | pub fn slice_dot<const len: usize>(vec1: [f32; len], vec2: [f32; len]) -> f32 {
[INFO] [stdout]   |                        ^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(non_upper_case_globals)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] help: convert the identifier to upper case
[INFO] [stdout]   |
[INFO] [stdout] 2 - pub fn slice_dot<const len: usize>(vec1: [f32; len], vec2: [f32; len]) -> f32 {
[INFO] [stdout] 2 + pub fn slice_dot<const LEN: usize>(vec1: [f32; len], vec2: [f32; len]) -> f32 {
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.46s
[INFO] running `Command { std: "docker" "inspect" "2e12353b287dcd07c4f085a8c14f0ee8caf6e50c985bc9d519d430bc5987023e", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "2e12353b287dcd07c4f085a8c14f0ee8caf6e50c985bc9d519d430bc5987023e", kill_on_drop: false }`
[INFO] [stdout] 2e12353b287dcd07c4f085a8c14f0ee8caf6e50c985bc9d519d430bc5987023e
