[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] building hmcol/graff against master#f5209000832c9d3bc29c91f4daef4ca9f28dc797+target=wasm32-wasip1 for pr-149868 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhmcol%2Fgraff" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/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-5-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/hmcol/graff on toolchain f5209000832c9d3bc29c91f4daef4ca9f28dc797 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f5209000832c9d3bc29c91f4daef4ca9f28dc797" "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" "+f5209000832c9d3bc29c91f4daef4ca9f28dc797" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded portable-atomic-util v0.2.2 [INFO] [stderr] Downloaded ndarray v0.16.0 [INFO] [stderr] Downloaded miniquad v0.4.5 [INFO] [stderr] Downloaded macroquad v0.4.12 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+f5209000832c9d3bc29c91f4daef4ca9f28dc797" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d8bc221e3c503b7a17044550b8c0ebb6deb9ddfe8f0541104dbb3cacf139feea [INFO] running `Command { std: "docker" "start" "-a" "d8bc221e3c503b7a17044550b8c0ebb6deb9ddfe8f0541104dbb3cacf139feea", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d8bc221e3c503b7a17044550b8c0ebb6deb9ddfe8f0541104dbb3cacf139feea", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d8bc221e3c503b7a17044550b8c0ebb6deb9ddfe8f0541104dbb3cacf139feea", kill_on_drop: false }` [INFO] [stdout] d8bc221e3c503b7a17044550b8c0ebb6deb9ddfe8f0541104dbb3cacf139feea [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+f5209000832c9d3bc29c91f4daef4ca9f28dc797" "build" "--frozen" "--message-format=json" "--target" "wasm32-wasip1", kill_on_drop: false }` [INFO] [stdout] ea2e8386230e1686158335178767561344c49d47ac4394db04d1d7fae5c8f476 [INFO] running `Command { std: "docker" "start" "-a" "ea2e8386230e1686158335178767561344c49d47ac4394db04d1d7fae5c8f476", kill_on_drop: false }` [INFO] [stderr] Compiling once_cell v1.19.0 [INFO] [stderr] Compiling miniquad v0.4.5 [INFO] [stderr] Compiling ttf-parser v0.15.2 [INFO] [stderr] Compiling bytemuck v1.16.3 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling miniz_oxide v0.7.4 [INFO] [stderr] Compiling matrixmultiply v0.3.9 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling fdeflate v0.3.4 [INFO] [stderr] Compiling glam v0.27.0 [INFO] [stderr] Compiling macroquad_macro v0.1.8 [INFO] [stderr] Compiling quad-rand v0.2.1 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling syn v2.0.72 [INFO] [stderr] Compiling flate2 v1.0.31 [INFO] [stderr] Compiling png v0.17.13 [INFO] [stderr] Compiling num-complex v0.4.6 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling ndarray v0.16.0 [INFO] [stderr] Compiling image v0.24.9 [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 rand_chacha v0.3.1 [INFO] [stderr] Compiling hashbrown v0.13.2 [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 { [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, Box), [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | Cos(Box), [INFO] [stdout] | ^^^ [INFO] [stdout] 32 | Tan(Box), [INFO] [stdout] | ^^^ [INFO] [stdout] 33 | Exp(Box), // exponential (e^x) [INFO] [stdout] 34 | Log(Box), // natural logarithm (log base e) [INFO] [stdout] | ^^^ [INFO] [stdout] 35 | Sum(Vec), // could be replaced with recursive Add [INFO] [stdout] 36 | Prod(Vec), // could be replaced with recursive Mul [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | PolyF(Vec, 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 { [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 19.86s [INFO] running `Command { std: "docker" "inspect" "ea2e8386230e1686158335178767561344c49d47ac4394db04d1d7fae5c8f476", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ea2e8386230e1686158335178767561344c49d47ac4394db04d1d7fae5c8f476", kill_on_drop: false }` [INFO] [stdout] ea2e8386230e1686158335178767561344c49d47ac4394db04d1d7fae5c8f476 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+f5209000832c9d3bc29c91f4daef4ca9f28dc797" "test" "--frozen" "--no-run" "--message-format=json" "--target" "wasm32-wasip1", kill_on_drop: false }` [INFO] [stdout] e423b78e4eae439946dab4dbf4a21224366c2060dea9173d66c22d20191af06b [INFO] running `Command { std: "docker" "start" "-a" "e423b78e4eae439946dab4dbf4a21224366c2060dea9173d66c22d20191af06b", 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 { [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), [INFO] [stdout] | ^^^ [INFO] [stdout] 32 | Tan(Box), [INFO] [stdout] | ^^^ [INFO] [stdout] 33 | Exp(Box), // exponential (e^x) [INFO] [stdout] 34 | Log(Box), // natural logarithm (log base e) [INFO] [stdout] | ^^^ [INFO] [stdout] 35 | Sum(Vec), // could be replaced with recursive Add [INFO] [stdout] 36 | Prod(Vec), // could be replaced with recursive Mul [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | PolyF(Vec, 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 { [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.59s [INFO] running `Command { std: "docker" "inspect" "e423b78e4eae439946dab4dbf4a21224366c2060dea9173d66c22d20191af06b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e423b78e4eae439946dab4dbf4a21224366c2060dea9173d66c22d20191af06b", kill_on_drop: false }` [INFO] [stdout] e423b78e4eae439946dab4dbf4a21224366c2060dea9173d66c22d20191af06b