[INFO] cloning repository https://github.com/sharifme04/optim-solver [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/sharifme04/optim-solver" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsharifme04%2Foptim-solver", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsharifme04%2Foptim-solver'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1c3e2139be52b1d3f5245e9bb26dd4cef6d56967 [INFO] checking sharifme04/optim-solver against master#cced03bfd61a304243a34504618ecec86c17063f for pr-157082 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsharifme04%2Foptim-solver" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/sharifme04/optim-solver [INFO] finished tweaking git repo https://github.com/sharifme04/optim-solver [INFO] tweaked toml for git repo https://github.com/sharifme04/optim-solver written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/sharifme04/optim-solver on toolchain cced03bfd61a304243a34504618ecec86c17063f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cced03bfd61a304243a34504618ecec86c17063f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/sharifme04/optim-solver 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" "+cced03bfd61a304243a34504618ecec86c17063f" "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-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3e793bdf10248eb2ddbd6b0faebed8155c11b4589982e2893733958d93e8d540" "sleep" "infinity", kill_on_drop: false }` [INFO] [stdout] 59c4a0a6283a1213d7e4acef8fc1568260d88e8f714bc8948e8d935512d7cef6 [INFO] running `Command { std: "docker" "start" "59c4a0a6283a1213d7e4acef8fc1568260d88e8f714bc8948e8d935512d7cef6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "59c4a0a6283a1213d7e4acef8fc1568260d88e8f714bc8948e8d935512d7cef6" "/opt/rustwide/cargo-home/bin/cargo" "+cced03bfd61a304243a34504618ecec86c17063f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "59c4a0a6283a1213d7e4acef8fc1568260d88e8f714bc8948e8d935512d7cef6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-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" "-w" "/opt/rustwide/workdir" "--user" "0:0" "59c4a0a6283a1213d7e4acef8fc1568260d88e8f714bc8948e8d935512d7cef6" "/opt/rustwide/cargo-home/bin/cargo" "+cced03bfd61a304243a34504618ecec86c17063f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.185 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking getrandom v0.2.17 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.6 [INFO] [stderr] Checking rand_distr v0.4.3 [INFO] [stderr] Checking optim-solver v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `gnorm` [INFO] [stdout] --> src/optimisers.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 71 | let gnorm: f64 = grad(&x).iter().map(|gi| gi * gi).sum::().sqrt(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_gnorm` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `gnorm` [INFO] [stdout] --> src/optimisers.rs:127:9 [INFO] [stdout] | [INFO] [stdout] 127 | let gnorm: f64 = grad(&x).iter().map(|gi| gi * gi).sum::().sqrt(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_gnorm` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `gnorm` [INFO] [stdout] --> src/optimisers.rs:178:9 [INFO] [stdout] | [INFO] [stdout] 178 | let gnorm: f64 = grad(&x).iter().map(|gi| gi * gi).sum::().sqrt(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_gnorm` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `gnorm` [INFO] [stdout] --> src/optimisers.rs:215:9 [INFO] [stdout] | [INFO] [stdout] 215 | let gnorm: f64 = grad(&x).iter().map(|gi| gi * gi).sum::().sqrt(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_gnorm` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `gnorm` [INFO] [stdout] --> src/optimisers.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 71 | let gnorm: f64 = grad(&x).iter().map(|gi| gi * gi).sum::().sqrt(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_gnorm` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `gnorm` [INFO] [stdout] --> src/optimisers.rs:127:9 [INFO] [stdout] | [INFO] [stdout] 127 | let gnorm: f64 = grad(&x).iter().map(|gi| gi * gi).sum::().sqrt(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_gnorm` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Matrix` is never constructed [INFO] [stdout] --> src/matrix.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Matrix { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/matrix.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl Matrix { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 12 | pub fn zeros(rows: usize, cols: usize) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | pub fn from_vec(rows: usize, cols: usize, data: Vec) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn get(&self, r: usize, c: usize) -> f64 { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn set(&mut self, r: usize, c: usize, v: f64) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn add(&mut self, r: usize, c: usize, v: f64) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn matvec(&self, x: &[f64]) -> Vec { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | pub fn transpose(&self) -> Matrix { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | pub fn matmul_at_b(a: &Matrix, b: &Matrix) -> Matrix { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `dot` is never used [INFO] [stdout] --> src/matrix.rs:81:8 [INFO] [stdout] | [INFO] [stdout] 81 | pub fn dot(a: &[f64], b: &[f64]) -> f64 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `norm` is never used [INFO] [stdout] --> src/matrix.rs:85:8 [INFO] [stdout] | [INFO] [stdout] 85 | pub fn norm(v: &[f64]) -> f64 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `axpy` is never used [INFO] [stdout] --> src/matrix.rs:89:8 [INFO] [stdout] | [INFO] [stdout] 89 | pub fn axpy(alpha: f64, x: &[f64], y: &[f64]) -> Vec { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `scale` is never used [INFO] [stdout] --> src/matrix.rs:93:8 [INFO] [stdout] | [INFO] [stdout] 93 | pub fn scale(alpha: f64, x: &[f64]) -> Vec { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sub` is never used [INFO] [stdout] --> src/matrix.rs:97:8 [INFO] [stdout] | [INFO] [stdout] 97 | pub fn sub(a: &[f64], b: &[f64]) -> Vec { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `exact_solution` is never used [INFO] [stdout] --> src/functions.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 35 | impl Quadratic { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 63 | pub fn exact_solution(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mse_loss` is never used [INFO] [stdout] --> src/functions.rs:74:8 [INFO] [stdout] | [INFO] [stdout] 74 | pub fn mse_loss(w: f64, xs: &[f64], ys: &[f64]) -> f64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mse_grad` is never used [INFO] [stdout] --> src/functions.rs:81:8 [INFO] [stdout] | [INFO] [stdout] 81 | pub fn mse_grad(w: f64, xs: &[f64], ys: &[f64]) -> f64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `x` is never read [INFO] [stdout] --> src/optimisers.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct OptResult { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 9 | pub x: Vec, [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `name` is never used [INFO] [stdout] --> src/neural_net.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 25 | impl Activation { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 43 | pub fn name(&self) -> &str { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `gnorm` [INFO] [stdout] --> src/optimisers.rs:178:9 [INFO] [stdout] | [INFO] [stdout] 178 | let gnorm: f64 = grad(&x).iter().map(|gi| gi * gi).sum::().sqrt(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_gnorm` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `gnorm` [INFO] [stdout] --> src/optimisers.rs:215:9 [INFO] [stdout] | [INFO] [stdout] 215 | let gnorm: f64 = grad(&x).iter().map(|gi| gi * gi).sum::().sqrt(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_gnorm` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Matrix` is never constructed [INFO] [stdout] --> src/matrix.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Matrix { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/matrix.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl Matrix { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 12 | pub fn zeros(rows: usize, cols: usize) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | pub fn from_vec(rows: usize, cols: usize, data: Vec) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn get(&self, r: usize, c: usize) -> f64 { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn set(&mut self, r: usize, c: usize, v: f64) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn add(&mut self, r: usize, c: usize, v: f64) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn matvec(&self, x: &[f64]) -> Vec { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | pub fn transpose(&self) -> Matrix { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | pub fn matmul_at_b(a: &Matrix, b: &Matrix) -> Matrix { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `dot` is never used [INFO] [stdout] --> src/matrix.rs:81:8 [INFO] [stdout] | [INFO] [stdout] 81 | pub fn dot(a: &[f64], b: &[f64]) -> f64 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `norm` is never used [INFO] [stdout] --> src/matrix.rs:85:8 [INFO] [stdout] | [INFO] [stdout] 85 | pub fn norm(v: &[f64]) -> f64 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `axpy` is never used [INFO] [stdout] --> src/matrix.rs:89:8 [INFO] [stdout] | [INFO] [stdout] 89 | pub fn axpy(alpha: f64, x: &[f64], y: &[f64]) -> Vec { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `scale` is never used [INFO] [stdout] --> src/matrix.rs:93:8 [INFO] [stdout] | [INFO] [stdout] 93 | pub fn scale(alpha: f64, x: &[f64]) -> Vec { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sub` is never used [INFO] [stdout] --> src/matrix.rs:97:8 [INFO] [stdout] | [INFO] [stdout] 97 | pub fn sub(a: &[f64], b: &[f64]) -> Vec { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `exact_solution` is never used [INFO] [stdout] --> src/functions.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 35 | impl Quadratic { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 63 | pub fn exact_solution(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mse_loss` is never used [INFO] [stdout] --> src/functions.rs:74:8 [INFO] [stdout] | [INFO] [stdout] 74 | pub fn mse_loss(w: f64, xs: &[f64], ys: &[f64]) -> f64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mse_grad` is never used [INFO] [stdout] --> src/functions.rs:81:8 [INFO] [stdout] | [INFO] [stdout] 81 | pub fn mse_grad(w: f64, xs: &[f64], ys: &[f64]) -> f64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `x` is never read [INFO] [stdout] --> src/optimisers.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct OptResult { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 9 | pub x: Vec, [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `name` is never used [INFO] [stdout] --> src/neural_net.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 25 | impl Activation { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 43 | pub fn name(&self) -> &str { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.75s [INFO] running `Command { std: "docker" "inspect" "59c4a0a6283a1213d7e4acef8fc1568260d88e8f714bc8948e8d935512d7cef6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "59c4a0a6283a1213d7e4acef8fc1568260d88e8f714bc8948e8d935512d7cef6", kill_on_drop: false }` [INFO] [stdout] 59c4a0a6283a1213d7e4acef8fc1568260d88e8f714bc8948e8d935512d7cef6