[INFO] cloning repository https://github.com/hmcol/graff
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/hmcol/graff" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhmcol%2Fgraff", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhmcol%2Fgraff'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] c44eedff91c7879d165d0197a37a3eb66a2400f7
[INFO] testing hmcol/graff against 1.98.0-beta.1 for beta-1.98-2
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhmcol%2Fgraff" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/hmcol/graff
[INFO] finished tweaking git repo https://github.com/hmcol/graff
[INFO] tweaked toml for git repo https://github.com/hmcol/graff written to /workspace/builds/worker-3-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/hmcol/graff on toolchain 1.98.0-beta.1
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.98.0-beta.1" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/hmcol/graff 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" "+1.98.0-beta.1" "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-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/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:3d5ced03c013a94a2f102a4510f48a6e9184255caf5fd8244f58017bde7f5210" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] 01dd25507c1eb3981f2e81f755299881179992b9ebb9f1b65db20d391dfd844c
[INFO] running `Command { std: "docker" "start" "01dd25507c1eb3981f2e81f755299881179992b9ebb9f1b65db20d391dfd844c", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "01dd25507c1eb3981f2e81f755299881179992b9ebb9f1b65db20d391dfd844c", 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" "01dd25507c1eb3981f2e81f755299881179992b9ebb9f1b65db20d391dfd844c" "/opt/rustwide/cargo-home/bin/cargo" "+1.98.0-beta.1" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "01dd25507c1eb3981f2e81f755299881179992b9ebb9f1b65db20d391dfd844c", 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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "01dd25507c1eb3981f2e81f755299881179992b9ebb9f1b65db20d391dfd844c" "/opt/rustwide/cargo-home/bin/cargo" "+1.98.0-beta.1" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v1.0.86
[INFO] [stderr]    Compiling unicode-ident v1.0.12
[INFO] [stderr]    Compiling autocfg v1.3.0
[INFO] [stderr]    Compiling libc v0.2.155
[INFO] [stderr]    Compiling once_cell v1.19.0
[INFO] [stderr]    Compiling miniquad v0.4.5
[INFO] [stderr]    Compiling rawpointer v0.2.1
[INFO] [stderr]    Compiling ttf-parser v0.15.2
[INFO] [stderr]    Compiling bytemuck v1.16.3
[INFO] [stderr]    Compiling miniz_oxide v0.7.4
[INFO] [stderr]    Compiling fdeflate v0.3.4
[INFO] [stderr]    Compiling quad-rand v0.2.1
[INFO] [stderr]    Compiling glam v0.27.0
[INFO] [stderr]    Compiling macroquad_macro v0.1.8
[INFO] [stderr]    Compiling num-traits v0.2.19
[INFO] [stderr]    Compiling matrixmultiply v0.3.9
[INFO] [stderr]    Compiling flate2 v1.0.31
[INFO] [stderr]    Compiling quote v1.0.36
[INFO] [stderr]    Compiling png v0.17.13
[INFO] [stderr]    Compiling syn v2.0.72
[INFO] [stderr]    Compiling getrandom v0.2.15
[INFO] [stderr]    Compiling rand_core v0.6.4
[INFO] [stderr]    Compiling num-integer v0.1.46
[INFO] [stderr]    Compiling image v0.24.9
[INFO] [stderr]    Compiling num-complex v0.4.6
[INFO] [stderr]    Compiling ndarray v0.16.0
[INFO] [stderr]    Compiling zerocopy-derive v0.7.35
[INFO] [stderr]    Compiling zerocopy v0.7.35
[INFO] [stderr]    Compiling ahash v0.8.11
[INFO] [stderr]    Compiling ppv-lite86 v0.2.20
[INFO] [stderr]    Compiling hashbrown v0.13.2
[INFO] [stderr]    Compiling rand_chacha v0.3.1
[INFO] [stderr]    Compiling rand v0.8.5
[INFO] [stderr]    Compiling fontdue v0.7.3
[INFO] [stderr]    Compiling macroquad v0.4.12
[INFO] [stderr]    Compiling graff v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused imports: `hash` and `widgets`
[INFO] [stdout]  --> src/main.rs:2:21
[INFO] [stdout]   |
[INFO] [stdout] 2 | use macroquad::ui::{hash, root_ui, widgets, Skin};
[INFO] [stdout]   |                     ^^^^           ^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `color`
[INFO] [stdout]  --> src/cam.rs:1:17
[INFO] [stdout]   |
[INFO] [stdout] 1 | use macroquad::{color, prelude::*};
[INFO] [stdout]   |                 ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::func::Function`
[INFO] [stdout]  --> src/cam.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use crate::func::Function;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `int_inner_product`
[INFO] [stdout]   --> src/main.rs:17:19
[INFO] [stdout]    |
[INFO] [stdout] 17 | use integration::{int_inner_product, IntMethod};
[INFO] [stdout]    |                   ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `polynomial::Polynomial`
[INFO] [stdout]   --> src/main.rs:18:5
[INFO] [stdout]    |
[INFO] [stdout] 18 | use polynomial::Polynomial;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Point` and `sample_interval_equidistributed`
[INFO] [stdout]   --> src/main.rs:19:12
[INFO] [stdout]    |
[INFO] [stdout] 19 | use util::{sample_interval_equidistributed, sample_interval_random, Point};
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                          ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `compute_gradient_descent_step` is never used
[INFO] [stdout]   --> src/approx.rs:15:8
[INFO] [stdout]    |
[INFO] [stdout] 15 | pub fn compute_gradient_descent_step(
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `average_error_gradient` is never used
[INFO] [stdout]   --> src/approx.rs:32:4
[INFO] [stdout]    |
[INFO] [stdout] 32 | fn average_error_gradient(f: &Function, coeffs: &[f64], xs: &[f64]) -> Vec<f64> {
[INFO] [stdout]    |    ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `reset`, `set_scale`, and `screen_to_euc` are never used
[INFO] [stdout]    --> src/cam.rs:55:12
[INFO] [stdout]     |
[INFO] [stdout]  26 | impl Camera {
[INFO] [stdout]     | ----------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout]  55 |     pub fn reset(&mut self) {
[INFO] [stdout]     |            ^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  61 |     pub fn set_scale(&mut self, scale: f64) {
[INFO] [stdout]     |            ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 165 |     pub fn screen_to_euc(&self, p: (f32, f32)) -> Point {
[INFO] [stdout]     |            ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variants `Sub`, `Cos`, `Tan`, `Log`, `Prod`, and `PolyF` are never constructed
[INFO] [stdout]   --> src/func.rs:26:5
[INFO] [stdout]    |
[INFO] [stdout] 22 | pub enum Function {
[INFO] [stdout]    |          -------- variants in this enum
[INFO] [stdout] ...
[INFO] [stdout] 26 |     Sub(Box<Function>, Box<Function>),
[INFO] [stdout]    |     ^^^
[INFO] [stdout] ...
[INFO] [stdout] 31 |     Cos(Box<Function>),
[INFO] [stdout]    |     ^^^
[INFO] [stdout] 32 |     Tan(Box<Function>),
[INFO] [stdout]    |     ^^^
[INFO] [stdout] 33 |     Exp(Box<Function>),           // exponential (e^x)
[INFO] [stdout] 34 |     Log(Box<Function>),           // natural logarithm (log base e)
[INFO] [stdout]    |     ^^^
[INFO] [stdout] 35 |     Sum(Vec<Function>),           // could be replaced with recursive Add
[INFO] [stdout] 36 |     Prod(Vec<Function>),          // could be replaced with recursive Mul
[INFO] [stdout]    |     ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 39 |     PolyF(Vec<Function>, VarIdx), // polynomial with function coefficients sum_i f_i(x)*x^i
[INFO] [stdout]    |     ^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Function` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `sample` is never used
[INFO] [stdout]   --> src/func.rs:75:12
[INFO] [stdout]    |
[INFO] [stdout] 44 | impl Function {
[INFO] [stdout]    | ------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 75 |     pub fn sample(&self, interval: (f64, f64), steps: usize) -> Vec<(f64, f64)> {
[INFO] [stdout]    |            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `Y` is never used
[INFO] [stdout]    --> src/func.rs:106:11
[INFO] [stdout]     |
[INFO] [stdout] 106 | pub const Y: Function = Function::Var(1);
[INFO] [stdout]     |           ^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `Z` is never used
[INFO] [stdout]    --> src/func.rs:107:11
[INFO] [stdout]     |
[INFO] [stdout] 107 | pub const Z: Function = Function::Var(2);
[INFO] [stdout]     |           ^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `fn_var` is never used
[INFO] [stdout]    --> src/func.rs:109:8
[INFO] [stdout]     |
[INFO] [stdout] 109 | pub fn fn_var(i: usize) -> Function {
[INFO] [stdout]     |        ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `fn_sub` is never used
[INFO] [stdout]    --> src/func.rs:138:8
[INFO] [stdout]     |
[INFO] [stdout] 138 | pub fn fn_sub(f1: Function, f2: Function) -> Function {
[INFO] [stdout]     |        ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `fn_cos` is never used
[INFO] [stdout]    --> src/func.rs:208:8
[INFO] [stdout]     |
[INFO] [stdout] 208 | pub fn fn_cos(f: Function) -> Function {
[INFO] [stdout]     |        ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `fn_tan` is never used
[INFO] [stdout]    --> src/func.rs:219:8
[INFO] [stdout]     |
[INFO] [stdout] 219 | pub fn fn_tan(f: Function) -> Function {
[INFO] [stdout]     |        ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `fn_log` is never used
[INFO] [stdout]    --> src/func.rs:241:8
[INFO] [stdout]     |
[INFO] [stdout] 241 | pub fn fn_log(f: Function) -> Function {
[INFO] [stdout]     |        ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `fn_prod` is never used
[INFO] [stdout]    --> src/func.rs:258:8
[INFO] [stdout]     |
[INFO] [stdout] 258 | pub fn fn_prod(fs: Vec<Function>) -> Function {
[INFO] [stdout]     |        ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `fn_poly_with_roots` is never used
[INFO] [stdout]    --> src/func.rs:306:8
[INFO] [stdout]     |
[INFO] [stdout] 306 | pub fn fn_poly_with_roots(roots: &[f64]) -> Function {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `fn_pdv` is never used
[INFO] [stdout]    --> src/func.rs:317:8
[INFO] [stdout]     |
[INFO] [stdout] 317 | pub fn fn_pdv(f: &Function, i: usize) -> Function {
[INFO] [stdout]     |        ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variants `Midpoint` and `Trapezoidal` are never constructed
[INFO] [stdout]  --> src/integration.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | pub enum IntMethod {
[INFO] [stdout]   |          --------- variants in this enum
[INFO] [stdout] 7 |     Midpoint(usize),
[INFO] [stdout]   |     ^^^^^^^^
[INFO] [stdout] 8 |     Trapezoidal(usize),
[INFO] [stdout]   |     ^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `IntMethod` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `input_size`, `hidden_size`, and `output_size` are never read
[INFO] [stdout]  --> src/ml.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | pub struct NeuralNetwork {
[INFO] [stdout]   |            ------------- fields in this struct
[INFO] [stdout] 7 |     input_size: usize,
[INFO] [stdout]   |     ^^^^^^^^^^
[INFO] [stdout] 8 |     hidden_size: usize,
[INFO] [stdout]   |     ^^^^^^^^^^^
[INFO] [stdout] 9 |     output_size: usize,
[INFO] [stdout]   |     ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `sigmoid` is never used
[INFO] [stdout]    --> src/ml.rs:135:4
[INFO] [stdout]     |
[INFO] [stdout] 135 | fn sigmoid(x: f64) -> f64 {
[INFO] [stdout]     |    ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `sigmoid_derivative` is never used
[INFO] [stdout]    --> src/ml.rs:139:4
[INFO] [stdout]     |
[INFO] [stdout] 139 | fn sigmoid_derivative(x: f64) -> f64 {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Polynomial` is never constructed
[INFO] [stdout]   --> src/polynomial.rs:12:12
[INFO] [stdout]    |
[INFO] [stdout] 12 | pub struct Polynomial {
[INFO] [stdout]    |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new_with_coefficients`, `new_random_with_degree`, `degree`, and `to_function_of_x` are never used
[INFO] [stdout]   --> src/polynomial.rs:17:12
[INFO] [stdout]    |
[INFO] [stdout] 16 | impl Polynomial {
[INFO] [stdout]    | --------------- associated items in this implementation
[INFO] [stdout] 17 |     pub fn new_with_coefficients(coefficients: &[f64]) -> Self {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 23 |     pub fn new_random_with_degree(degree: usize) -> Self {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 34 |     pub fn degree(&self) -> usize {
[INFO] [stdout]    |            ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 38 |     pub fn to_function_of_x(&self) -> Function {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 20.22s
[INFO] running `Command { std: "docker" "inspect" "01dd25507c1eb3981f2e81f755299881179992b9ebb9f1b65db20d391dfd844c", 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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "01dd25507c1eb3981f2e81f755299881179992b9ebb9f1b65db20d391dfd844c" "/opt/rustwide/cargo-home/bin/cargo" "+1.98.0-beta.1" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]    Compiling graff v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused imports: `hash` and `widgets`
[INFO] [stdout]  --> src/main.rs:2:21
[INFO] [stdout]   |
[INFO] [stdout] 2 | use macroquad::ui::{hash, root_ui, widgets, Skin};
[INFO] [stdout]   |                     ^^^^           ^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `color`
[INFO] [stdout]  --> src/cam.rs:1:17
[INFO] [stdout]   |
[INFO] [stdout] 1 | use macroquad::{color, prelude::*};
[INFO] [stdout]   |                 ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::func::Function`
[INFO] [stdout]  --> src/cam.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use crate::func::Function;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `int_inner_product`
[INFO] [stdout]   --> src/main.rs:17:19
[INFO] [stdout]    |
[INFO] [stdout] 17 | use integration::{int_inner_product, IntMethod};
[INFO] [stdout]    |                   ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `polynomial::Polynomial`
[INFO] [stdout]   --> src/main.rs:18:5
[INFO] [stdout]    |
[INFO] [stdout] 18 | use polynomial::Polynomial;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Point` and `sample_interval_equidistributed`
[INFO] [stdout]   --> src/main.rs:19:12
[INFO] [stdout]    |
[INFO] [stdout] 19 | use util::{sample_interval_equidistributed, sample_interval_random, Point};
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                          ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `compute_gradient_descent_step` is never used
[INFO] [stdout]   --> src/approx.rs:15:8
[INFO] [stdout]    |
[INFO] [stdout] 15 | pub fn compute_gradient_descent_step(
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `average_error_gradient` is never used
[INFO] [stdout]   --> src/approx.rs:32:4
[INFO] [stdout]    |
[INFO] [stdout] 32 | fn average_error_gradient(f: &Function, coeffs: &[f64], xs: &[f64]) -> Vec<f64> {
[INFO] [stdout]    |    ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `reset`, `set_scale`, and `screen_to_euc` are never used
[INFO] [stdout]    --> src/cam.rs:55:12
[INFO] [stdout]     |
[INFO] [stdout]  26 | impl Camera {
[INFO] [stdout]     | ----------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout]  55 |     pub fn reset(&mut self) {
[INFO] [stdout]     |            ^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  61 |     pub fn set_scale(&mut self, scale: f64) {
[INFO] [stdout]     |            ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 165 |     pub fn screen_to_euc(&self, p: (f32, f32)) -> Point {
[INFO] [stdout]     |            ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variants `Cos`, `Tan`, `Log`, `Prod`, and `PolyF` are never constructed
[INFO] [stdout]   --> src/func.rs:31:5
[INFO] [stdout]    |
[INFO] [stdout] 22 | pub enum Function {
[INFO] [stdout]    |          -------- variants in this enum
[INFO] [stdout] ...
[INFO] [stdout] 31 |     Cos(Box<Function>),
[INFO] [stdout]    |     ^^^
[INFO] [stdout] 32 |     Tan(Box<Function>),
[INFO] [stdout]    |     ^^^
[INFO] [stdout] 33 |     Exp(Box<Function>),           // exponential (e^x)
[INFO] [stdout] 34 |     Log(Box<Function>),           // natural logarithm (log base e)
[INFO] [stdout]    |     ^^^
[INFO] [stdout] 35 |     Sum(Vec<Function>),           // could be replaced with recursive Add
[INFO] [stdout] 36 |     Prod(Vec<Function>),          // could be replaced with recursive Mul
[INFO] [stdout]    |     ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 39 |     PolyF(Vec<Function>, VarIdx), // polynomial with function coefficients sum_i f_i(x)*x^i
[INFO] [stdout]    |     ^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Function` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `sample` is never used
[INFO] [stdout]   --> src/func.rs:75:12
[INFO] [stdout]    |
[INFO] [stdout] 44 | impl Function {
[INFO] [stdout]    | ------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 75 |     pub fn sample(&self, interval: (f64, f64), steps: usize) -> Vec<(f64, f64)> {
[INFO] [stdout]    |            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `Y` is never used
[INFO] [stdout]    --> src/func.rs:106:11
[INFO] [stdout]     |
[INFO] [stdout] 106 | pub const Y: Function = Function::Var(1);
[INFO] [stdout]     |           ^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `Z` is never used
[INFO] [stdout]    --> src/func.rs:107:11
[INFO] [stdout]     |
[INFO] [stdout] 107 | pub const Z: Function = Function::Var(2);
[INFO] [stdout]     |           ^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `fn_var` is never used
[INFO] [stdout]    --> src/func.rs:109:8
[INFO] [stdout]     |
[INFO] [stdout] 109 | pub fn fn_var(i: usize) -> Function {
[INFO] [stdout]     |        ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `fn_cos` is never used
[INFO] [stdout]    --> src/func.rs:208:8
[INFO] [stdout]     |
[INFO] [stdout] 208 | pub fn fn_cos(f: Function) -> Function {
[INFO] [stdout]     |        ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `fn_tan` is never used
[INFO] [stdout]    --> src/func.rs:219:8
[INFO] [stdout]     |
[INFO] [stdout] 219 | pub fn fn_tan(f: Function) -> Function {
[INFO] [stdout]     |        ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `fn_log` is never used
[INFO] [stdout]    --> src/func.rs:241:8
[INFO] [stdout]     |
[INFO] [stdout] 241 | pub fn fn_log(f: Function) -> Function {
[INFO] [stdout]     |        ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `fn_prod` is never used
[INFO] [stdout]    --> src/func.rs:258:8
[INFO] [stdout]     |
[INFO] [stdout] 258 | pub fn fn_prod(fs: Vec<Function>) -> Function {
[INFO] [stdout]     |        ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `fn_poly_with_roots` is never used
[INFO] [stdout]    --> src/func.rs:306:8
[INFO] [stdout]     |
[INFO] [stdout] 306 | pub fn fn_poly_with_roots(roots: &[f64]) -> Function {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `fn_pdv` is never used
[INFO] [stdout]    --> src/func.rs:317:8
[INFO] [stdout]     |
[INFO] [stdout] 317 | pub fn fn_pdv(f: &Function, i: usize) -> Function {
[INFO] [stdout]     |        ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `input_size`, `hidden_size`, and `output_size` are never read
[INFO] [stdout]  --> src/ml.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | pub struct NeuralNetwork {
[INFO] [stdout]   |            ------------- fields in this struct
[INFO] [stdout] 7 |     input_size: usize,
[INFO] [stdout]   |     ^^^^^^^^^^
[INFO] [stdout] 8 |     hidden_size: usize,
[INFO] [stdout]   |     ^^^^^^^^^^^
[INFO] [stdout] 9 |     output_size: usize,
[INFO] [stdout]   |     ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `sigmoid` is never used
[INFO] [stdout]    --> src/ml.rs:135:4
[INFO] [stdout]     |
[INFO] [stdout] 135 | fn sigmoid(x: f64) -> f64 {
[INFO] [stdout]     |    ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `sigmoid_derivative` is never used
[INFO] [stdout]    --> src/ml.rs:139:4
[INFO] [stdout]     |
[INFO] [stdout] 139 | fn sigmoid_derivative(x: f64) -> f64 {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new_random_with_degree` and `degree` are never used
[INFO] [stdout]   --> src/polynomial.rs:23:12
[INFO] [stdout]    |
[INFO] [stdout] 16 | impl Polynomial {
[INFO] [stdout]    | --------------- associated items in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 23 |     pub fn new_random_with_degree(degree: usize) -> Self {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 34 |     pub fn degree(&self) -> usize {
[INFO] [stdout]    |            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.87s
[INFO] running `Command { std: "docker" "inspect" "01dd25507c1eb3981f2e81f755299881179992b9ebb9f1b65db20d391dfd844c", 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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "01dd25507c1eb3981f2e81f755299881179992b9ebb9f1b65db20d391dfd844c" "/opt/rustwide/cargo-home/bin/cargo" "+1.98.0-beta.1" "test" "--frozen", kill_on_drop: false }`
[INFO] [stderr] warning: unused imports: `hash` and `widgets`
[INFO] [stderr]  --> src/main.rs:2:21
[INFO] [stderr]   |
[INFO] [stderr] 2 | use macroquad::ui::{hash, root_ui, widgets, Skin};
[INFO] [stderr]   |                     ^^^^           ^^^^^^^
[INFO] [stderr]   |
[INFO] [stderr]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `color`
[INFO] [stderr]  --> src/cam.rs:1:17
[INFO] [stderr]   |
[INFO] [stderr] 1 | use macroquad::{color, prelude::*};
[INFO] [stderr]   |                 ^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `crate::func::Function`
[INFO] [stderr]  --> src/cam.rs:5:5
[INFO] [stderr]   |
[INFO] [stderr] 5 | use crate::func::Function;
[INFO] [stderr]   |     ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `int_inner_product`
[INFO] [stderr]   --> src/main.rs:17:19
[INFO] [stderr]    |
[INFO] [stderr] 17 | use integration::{int_inner_product, IntMethod};
[INFO] [stderr]    |                   ^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `polynomial::Polynomial`
[INFO] [stderr]   --> src/main.rs:18:5
[INFO] [stderr]    |
[INFO] [stderr] 18 | use polynomial::Polynomial;
[INFO] [stderr]    |     ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused imports: `Point` and `sample_interval_equidistributed`
[INFO] [stderr]   --> src/main.rs:19:12
[INFO] [stderr]    |
[INFO] [stderr] 19 | use util::{sample_interval_equidistributed, sample_interval_random, Point};
[INFO] [stderr]    |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                          ^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `compute_gradient_descent_step` is never used
[INFO] [stderr]   --> src/approx.rs:15:8
[INFO] [stderr]    |
[INFO] [stderr] 15 | pub fn compute_gradient_descent_step(
[INFO] [stderr]    |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: function `average_error_gradient` is never used
[INFO] [stderr]   --> src/approx.rs:32:4
[INFO] [stderr]    |
[INFO] [stderr] 32 | fn average_error_gradient(f: &Function, coeffs: &[f64], xs: &[f64]) -> Vec<f64> {
[INFO] [stderr]    |    ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: methods `reset`, `set_scale`, and `screen_to_euc` are never used
[INFO] [stderr]    --> src/cam.rs:55:12
[INFO] [stderr]     |
[INFO] [stderr]  26 | impl Camera {
[INFO] [stderr]     | ----------- methods in this implementation
[INFO] [stderr] ...
[INFO] [stderr]  55 |     pub fn reset(&mut self) {
[INFO] [stderr]     |            ^^^^^
[INFO] [stderr] ...
[INFO] [stderr]  61 |     pub fn set_scale(&mut self, scale: f64) {
[INFO] [stderr]     |            ^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 165 |     pub fn screen_to_euc(&self, p: (f32, f32)) -> Point {
[INFO] [stderr]     |            ^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: variants `Cos`, `Tan`, `Log`, `Prod`, and `PolyF` are never constructed
[INFO] [stderr]   --> src/func.rs:31:5
[INFO] [stderr]    |
[INFO] [stderr] 22 | pub enum Function {
[INFO] [stderr]    |          -------- variants in this enum
[INFO] [stderr] ...
[INFO] [stderr] 31 |     Cos(Box<Function>),
[INFO] [stderr]    |     ^^^
[INFO] [stderr] 32 |     Tan(Box<Function>),
[INFO] [stderr]    |     ^^^
[INFO] [stderr] 33 |     Exp(Box<Function>),           // exponential (e^x)
[INFO] [stderr] 34 |     Log(Box<Function>),           // natural logarithm (log base e)
[INFO] [stderr]    |     ^^^
[INFO] [stderr] 35 |     Sum(Vec<Function>),           // could be replaced with recursive Add
[INFO] [stderr] 36 |     Prod(Vec<Function>),          // could be replaced with recursive Mul
[INFO] [stderr]    |     ^^^^
[INFO] [stderr] ...
[INFO] [stderr] 39 |     PolyF(Vec<Function>, VarIdx), // polynomial with function coefficients sum_i f_i(x)*x^i
[INFO] [stderr]    |     ^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `Function` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stderr] 
[INFO] [stderr] warning: method `sample` is never used
[INFO] [stderr]   --> src/func.rs:75:12
[INFO] [stderr]    |
[INFO] [stderr] 44 | impl Function {
[INFO] [stderr]    | ------------- method in this implementation
[INFO] [stderr] ...
[INFO] [stderr] 75 |     pub fn sample(&self, interval: (f64, f64), steps: usize) -> Vec<(f64, f64)> {
[INFO] [stderr]    |            ^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: constant `Y` is never used
[INFO] [stderr]    --> src/func.rs:106:11
[INFO] [stderr]     |
[INFO] [stderr] 106 | pub const Y: Function = Function::Var(1);
[INFO] [stderr]     |           ^
[INFO] [stderr] 
[INFO] [stderr] warning: constant `Z` is never used
[INFO] [stderr]    --> src/func.rs:107:11
[INFO] [stderr]     |
[INFO] [stderr] 107 | pub const Z: Function = Function::Var(2);
[INFO] [stderr]     |           ^
[INFO] [stderr] 
[INFO] [stderr] warning: function `fn_var` is never used
[INFO] [stderr]    --> src/func.rs:109:8
[INFO] [stderr]     |
[INFO] [stderr] 109 | pub fn fn_var(i: usize) -> Function {
[INFO] [stderr]     |        ^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `fn_cos` is never used
[INFO] [stderr]    --> src/func.rs:208:8
[INFO] [stderr]     |
[INFO] [stderr] 208 | pub fn fn_cos(f: Function) -> Function {
[INFO] [stderr]     |        ^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `fn_tan` is never used
[INFO] [stderr]    --> src/func.rs:219:8
[INFO] [stderr]     |
[INFO] [stderr] 219 | pub fn fn_tan(f: Function) -> Function {
[INFO] [stderr]     |        ^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `fn_log` is never used
[INFO] [stderr]    --> src/func.rs:241:8
[INFO] [stderr]     |
[INFO] [stderr] 241 | pub fn fn_log(f: Function) -> Function {
[INFO] [stderr]     |        ^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `fn_prod` is never used
[INFO] [stderr]    --> src/func.rs:258:8
[INFO] [stderr]     |
[INFO] [stderr] 258 | pub fn fn_prod(fs: Vec<Function>) -> Function {
[INFO] [stderr]     |        ^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `fn_poly_with_roots` is never used
[INFO] [stderr]    --> src/func.rs:306:8
[INFO] [stderr]     |
[INFO] [stderr] 306 | pub fn fn_poly_with_roots(roots: &[f64]) -> Function {
[INFO] [stderr]     |        ^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `fn_pdv` is never used
[INFO] [stderr]    --> src/func.rs:317:8
[INFO] [stderr]     |
[INFO] [stderr] 317 | pub fn fn_pdv(f: &Function, i: usize) -> Function {
[INFO] [stderr]     |        ^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: fields `input_size`, `hidden_size`, and `output_size` are never read
[INFO] [stderr]  --> src/ml.rs:7:5
[INFO] [stderr]   |
[INFO] [stderr] 6 | pub struct NeuralNetwork {
[INFO] [stderr]   |            ------------- fields in this struct
[INFO] [stderr] 7 |     input_size: usize,
[INFO] [stderr]   |     ^^^^^^^^^^
[INFO] [stderr] 8 |     hidden_size: usize,
[INFO] [stderr]   |     ^^^^^^^^^^^
[INFO] [stderr] 9 |     output_size: usize,
[INFO] [stderr]   |     ^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `sigmoid` is never used
[INFO] [stderr]    --> src/ml.rs:135:4
[INFO] [stderr]     |
[INFO] [stderr] 135 | fn sigmoid(x: f64) -> f64 {
[INFO] [stderr]     |    ^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `sigmoid_derivative` is never used
[INFO] [stderr]    --> src/ml.rs:139:4
[INFO] [stderr]     |
[INFO] [stderr] 139 | fn sigmoid_derivative(x: f64) -> f64 {
[INFO] [stderr]     |    ^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: associated items `new_random_with_degree` and `degree` are never used
[INFO] [stderr]   --> src/polynomial.rs:23:12
[INFO] [stderr]    |
[INFO] [stderr] 16 | impl Polynomial {
[INFO] [stderr]    | --------------- associated items in this implementation
[INFO] [stderr] ...
[INFO] [stderr] 23 |     pub fn new_random_with_degree(degree: usize) -> Self {
[INFO] [stderr]    |            ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 34 |     pub fn degree(&self) -> usize {
[INFO] [stderr]    |            ^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: `graff` (bin "graff" test) generated 24 warnings (run `cargo fix --bin "graff" -p graff --tests` to apply 6 suggestions)
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.10s
[INFO] [stdout] 
[INFO] [stdout] running 5 tests
[INFO] [stdout] test func::test::test_constructor ... ok
[INFO] [stdout] test func::test::test_eval ... ok
[INFO] [stderr]      Running unittests src/main.rs (/opt/rustwide/target/debug/deps/graff-3c6fbdfbe278e402)
[INFO] [stdout] test polynomial::tests::test_legendre ... ok
[INFO] [stdout] test integration::test::test_inner_product ... ok
[INFO] [stdout] test integration::test::test_int ... ok
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 5 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s
[INFO] [stdout] 
[INFO] running `Command { std: "docker" "inspect" "01dd25507c1eb3981f2e81f755299881179992b9ebb9f1b65db20d391dfd844c", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "01dd25507c1eb3981f2e81f755299881179992b9ebb9f1b65db20d391dfd844c", kill_on_drop: false }`
[INFO] [stdout] 01dd25507c1eb3981f2e81f755299881179992b9ebb9f1b65db20d391dfd844c
