[INFO] cloning repository https://github.com/DmitryLedentsov/approximation-app [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/DmitryLedentsov/approximation-app" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDmitryLedentsov%2Fapproximation-app", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDmitryLedentsov%2Fapproximation-app'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 2a2ffef5b04081e0a943ddd259a829efc80a97de [INFO] testing DmitryLedentsov/approximation-app/2a2ffef5b04081e0a943ddd259a829efc80a97de against 1.83.0 for beta-1.84.0-4 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDmitryLedentsov%2Fapproximation-app" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/DmitryLedentsov/approximation-app on toolchain 1.83.0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.83.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/DmitryLedentsov/approximation-app [INFO] finished tweaking git repo https://github.com/DmitryLedentsov/approximation-app [INFO] tweaked toml for git repo https://github.com/DmitryLedentsov/approximation-app written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/DmitryLedentsov/approximation-app 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.83.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded tinyfiledialogs v3.9.1 [INFO] [stderr] Downloaded zbus_macros v3.11.0 [INFO] [stderr] Downloaded zbus v3.11.0 [INFO] [stderr] Downloaded expression_format v1.1.3 [INFO] [stderr] Downloaded egui-modal v0.2.1 [INFO] [stderr] Downloaded expression_format_impl v1.1.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+1.83.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 80e1a14aa13c9129b1771998b22495811ec03f156e9db917375375fdd89759c4 [INFO] running `Command { std: "docker" "start" "-a" "80e1a14aa13c9129b1771998b22495811ec03f156e9db917375375fdd89759c4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "80e1a14aa13c9129b1771998b22495811ec03f156e9db917375375fdd89759c4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "80e1a14aa13c9129b1771998b22495811ec03f156e9db917375375fdd89759c4", kill_on_drop: false }` [INFO] [stdout] 80e1a14aa13c9129b1771998b22495811ec03f156e9db917375375fdd89759c4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+1.83.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f749ef538ccee4707767aadfcc2c9bfeefce0eaee287e20de45736ed27a8ddcb [INFO] running `Command { std: "docker" "start" "-a" "f749ef538ccee4707767aadfcc2c9bfeefce0eaee287e20de45736ed27a8ddcb", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling proc-macro2 v1.0.52 [INFO] [stderr] Compiling unicode-ident v1.0.8 [INFO] [stderr] Compiling quote v1.0.26 [INFO] [stderr] Compiling libc v0.2.140 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling xml-rs v0.8.4 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling pkg-config v0.3.26 [INFO] [stderr] Compiling once_cell v1.17.1 [INFO] [stderr] Compiling smallvec v1.10.0 [INFO] [stderr] Compiling pin-project-lite v0.2.9 [INFO] [stderr] Compiling futures-core v0.3.27 [INFO] [stderr] Compiling serde_derive v1.0.156 [INFO] [stderr] Compiling thiserror v1.0.39 [INFO] [stderr] Compiling hashbrown v0.12.3 [INFO] [stderr] Compiling libloading v0.7.4 [INFO] [stderr] Compiling winnow v0.3.6 [INFO] [stderr] Compiling serde v1.0.156 [INFO] [stderr] Compiling memoffset v0.6.5 [INFO] [stderr] Compiling indexmap v1.9.2 [INFO] [stderr] Compiling toml_datetime v0.6.1 [INFO] [stderr] Compiling crossbeam-utils v0.8.15 [INFO] [stderr] Compiling dlib v0.5.0 [INFO] [stderr] Compiling typenum v1.16.0 [INFO] [stderr] Compiling event-listener v2.5.3 [INFO] [stderr] Compiling generic-array v0.14.6 [INFO] [stderr] Compiling futures-io v0.3.27 [INFO] [stderr] Compiling lock_api v0.4.9 [INFO] [stderr] Compiling slab v0.4.8 [INFO] [stderr] Compiling wayland-sys v0.29.5 [INFO] [stderr] Compiling static_assertions v1.1.0 [INFO] [stderr] Compiling parking v2.0.0 [INFO] [stderr] Compiling waker-fn v1.1.0 [INFO] [stderr] Compiling fastrand v1.9.0 [INFO] [stderr] Compiling parking_lot_core v0.9.7 [INFO] [stderr] Compiling async-lock v2.7.0 [INFO] [stderr] Compiling aho-corasick v0.7.20 [INFO] [stderr] Compiling futures-lite v1.12.0 [INFO] [stderr] Compiling regex-syntax v0.6.28 [INFO] [stderr] Compiling khronos_api v3.1.0 [INFO] [stderr] Compiling ttf-parser v0.18.1 [INFO] [stderr] Compiling concurrent-queue v2.1.0 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling cfg_aliases v0.1.1 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling wayland-scanner v0.29.5 [INFO] [stderr] Compiling slotmap v1.0.6 [INFO] [stderr] Compiling memoffset v0.7.1 [INFO] [stderr] Compiling polling v2.6.0 [INFO] [stderr] Compiling futures-task v0.3.27 [INFO] [stderr] Compiling ab_glyph_rasterizer v0.1.8 [INFO] [stderr] Compiling scoped-tls v1.0.1 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Compiling async-task v4.3.0 [INFO] [stderr] Compiling crc32fast v1.3.2 [INFO] [stderr] Compiling downcast-rs v1.2.0 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling async-channel v1.8.0 [INFO] [stderr] Compiling async-io v1.12.0 [INFO] [stderr] Compiling async-fs v1.6.0 [INFO] [stderr] Compiling tracing-core v0.1.30 [INFO] [stderr] Compiling async-trait v0.1.66 [INFO] [stderr] Compiling ppv-lite86 v0.2.17 [INFO] [stderr] Compiling adler v1.0.2 [INFO] [stderr] Compiling atomic-waker v1.1.0 [INFO] [stderr] Compiling futures-util v0.3.27 [INFO] [stderr] Compiling blocking v1.3.0 [INFO] [stderr] Compiling miniz_oxide v0.6.2 [INFO] [stderr] Compiling nix v0.24.3 [INFO] [stderr] Compiling getrandom v0.2.8 [INFO] [stderr] Compiling dirs-sys v0.3.7 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling parking_lot v0.12.1 [INFO] [stderr] Compiling dirs v4.0.0 [INFO] [stderr] Compiling nix v0.25.1 [INFO] [stderr] Compiling socket2 v0.4.9 [INFO] [stderr] Compiling gl_generator v0.14.0 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling wayland-client v0.29.5 [INFO] [stderr] Compiling wayland-protocols v0.29.5 [INFO] [stderr] Compiling toml_edit v0.19.7 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling x11-dl v2.21.0 [INFO] [stderr] Compiling digest v0.10.6 [INFO] [stderr] Compiling smithay-client-toolkit v0.16.0 [INFO] [stderr] Compiling cpufeatures v0.2.5 [INFO] [stderr] Compiling futures-sink v0.3.27 [INFO] [stderr] Compiling vec_map v0.8.2 [INFO] [stderr] Compiling sha1 v0.10.5 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling flate2 v1.0.25 [INFO] [stderr] Compiling regex v1.7.1 [INFO] [stderr] Compiling nix v0.26.2 [INFO] [stderr] Compiling owned_ttf_parser v0.18.1 [INFO] [stderr] Compiling ab_glyph v0.2.20 [INFO] [stderr] Compiling xcursor v0.3.4 [INFO] [stderr] Compiling memmap2 v0.5.10 [INFO] [stderr] Compiling async-executor v1.5.0 [INFO] [stderr] Compiling async-broadcast v0.5.1 [INFO] [stderr] Compiling ordered-stream v0.2.0 [INFO] [stderr] Compiling ahash v0.8.3 [INFO] [stderr] Compiling arrayref v0.3.6 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling strict-num v0.1.0 [INFO] [stderr] Compiling percent-encoding v2.2.0 [INFO] [stderr] Compiling accesskit v0.9.0 [INFO] [stderr] Compiling png v0.17.7 [INFO] [stderr] Compiling arrayvec v0.7.2 [INFO] [stderr] Compiling tinyvec_macros v0.1.1 [INFO] [stderr] Compiling tinyvec v1.6.0 [INFO] [stderr] Compiling winit v0.28.2 [INFO] [stderr] Compiling raw-window-handle v0.5.1 [INFO] [stderr] Compiling nohash-hasher v0.2.0 [INFO] [stderr] Compiling zvariant_utils v1.0.0 [INFO] [stderr] Compiling glutin_glx_sys v0.4.0 [INFO] [stderr] Compiling glutin_egl_sys v0.4.0 [INFO] [stderr] Compiling mio v0.8.6 [INFO] [stderr] Compiling wayland-sys v0.30.1 [INFO] [stderr] Compiling instant v0.1.12 [INFO] [stderr] Compiling unicode-bidi v0.3.11 [INFO] [stderr] Compiling accesskit_consumer v0.13.0 [INFO] [stderr] Compiling form_urlencoded v1.1.0 [INFO] [stderr] Compiling gethostname v0.2.3 [INFO] [stderr] Compiling proc-macro-crate v1.3.1 [INFO] [stderr] Compiling unicode-normalization v0.1.22 [INFO] [stderr] Compiling glutin v0.30.6 [INFO] [stderr] Compiling glutin-winit v0.3.0 [INFO] [stderr] Compiling wayland-commons v0.29.5 [INFO] [stderr] Compiling x11rb-protocol v0.10.0 [INFO] [stderr] Compiling cc v1.0.79 [INFO] [stderr] Compiling glow v0.12.1 [INFO] [stderr] Compiling expression_format_impl v1.1.1 [INFO] [stderr] Compiling idna v0.3.0 [INFO] [stderr] Compiling either v1.8.1 [INFO] [stderr] Compiling indoc v2.0.1 [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Compiling thiserror-impl v1.0.39 [INFO] [stderr] Compiling bytemuck_derive v1.4.0 [INFO] [stderr] Compiling tracing-attributes v0.1.23 [INFO] [stderr] Compiling enumflags2_derive v0.7.4 [INFO] [stderr] Compiling wayland-cursor v0.29.5 [INFO] [stderr] Compiling derivative v2.2.0 [INFO] [stderr] Compiling async-recursion v1.0.2 [INFO] [stderr] Compiling zvariant_derive v3.12.0 [INFO] [stderr] Compiling bytemuck v1.13.1 [INFO] [stderr] Compiling zbus_macros v3.11.0 [INFO] [stderr] Compiling serde_repr v0.1.11 [INFO] [stderr] Compiling tiny-skia-path v0.8.3 [INFO] [stderr] Compiling ecolor v0.21.0 [INFO] [stderr] Compiling emath v0.21.0 [INFO] [stderr] Compiling calloop v0.10.5 [INFO] [stderr] Compiling tiny-skia v0.8.3 [INFO] [stderr] Compiling epaint v0.21.0 [INFO] [stderr] Compiling url v2.3.1 [INFO] [stderr] Compiling tinyfiledialogs v3.9.1 [INFO] [stderr] Compiling expression_format v1.1.3 [INFO] [stderr] Compiling tracing v0.1.37 [INFO] [stderr] Compiling webbrowser v0.8.7 [INFO] [stderr] Compiling egui v0.21.0 [INFO] [stderr] Compiling egui_glow v0.21.0 [INFO] [stderr] Compiling egui-modal v0.2.1 [INFO] [stderr] Compiling x11rb v0.10.1 [INFO] [stderr] Compiling arboard v3.2.0 [INFO] [stderr] Compiling enumflags2 v0.7.5 [INFO] [stderr] Compiling serde-xml-rs v0.4.1 [INFO] [stderr] Compiling zvariant v3.12.0 [INFO] [stderr] Compiling zbus_names v2.5.0 [INFO] [stderr] Compiling zbus v3.11.0 [INFO] [stderr] Compiling atspi-macros v0.1.4 [INFO] [stderr] Compiling atspi v0.8.7 [INFO] [stderr] Compiling accesskit_unix v0.2.0 [INFO] [stderr] Compiling sctk-adwaita v0.5.3 [INFO] [stderr] Compiling smithay-clipboard v0.6.6 [INFO] [stderr] Compiling accesskit_winit v0.10.0 [INFO] [stderr] Compiling egui-winit v0.21.1 [INFO] [stderr] Compiling eframe v0.21.3 [INFO] [stderr] Compiling app v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `iter::Map` [INFO] [stdout] --> src/func_plot.rs:1:31 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{cmp::Ordering, vec, iter::Map}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Grid`, `Layout`, `TextEdit`, `Text`, and `Window` [INFO] [stdout] --> src/func_plot.rs:3:40 [INFO] [stdout] | [INFO] [stdout] 3 | use eframe::{egui::{self, plot::{self, Text}, Grid, Window, TextEdit, TextBuffer, Layout, Button, WidgetText}, epaint::{Pos2, Color32}}; [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^ ^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `indoc::indoc` [INFO] [stdout] --> src/func_plot.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use indoc::indoc; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tinyfiledialogs::*` [INFO] [stdout] --> src/func_plot.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use tinyfiledialogs::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pow_approximate` [INFO] [stdout] --> src/func_plot.rs:10:151 [INFO] [stdout] | [INFO] [stdout] 10 | ...oximate, cub_approximate, exp_approximate, ln_approximate, pow_approximate}}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BufReader` and `error::Error` [INFO] [stdout] --> src/utils.rs:1:26 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{fs::File, io::{BufReader, Read}, error::Error}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `eframe::App` [INFO] [stdout] --> src/utils.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use eframe::App; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `self` and `self` [INFO] [stdout] --> src/approximation.rs:1:31 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::{utils::{Function, self, round}, gauss::{self, solve}, errors::AppError}; [INFO] [stdout] | ^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `gauss::solve` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use gauss::solve; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `itertools::Itertools` [INFO] [stdout] --> src/func_plot.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use itertools::Itertools; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TextBuffer` [INFO] [stdout] --> src/func_plot.rs:3:71 [INFO] [stdout] | [INFO] [stdout] 3 | use eframe::{egui::{self, plot::{self, Text}, Grid, Window, TextEdit, TextBuffer, Layout, Button, WidgetText}, epaint::{Pos2, Color32}}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `row` [INFO] [stdout] --> src/gauss.rs:19:56 [INFO] [stdout] | [INFO] [stdout] 19 | let det = a.iter().enumerate().fold(1.0, |acc, (i, row)| { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_row` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/main.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | let f = Function::new( binding); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | let mut binding = |x : f64| x.powi(2); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_functions` is never used [INFO] [stdout] --> src/func_plot.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 32 | impl GraphApp { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn get_functions(&mut self)->&mut Vec{ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Enum` is never used [INFO] [stdout] --> src/func_plot.rs:120:6 [INFO] [stdout] | [INFO] [stdout] 120 | enum Enum { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `pow_approximate` is never used [INFO] [stdout] --> src/approximation.rs:375:8 [INFO] [stdout] | [INFO] [stdout] 375 | pub fn pow_approximate(input: &Vec<[f64;2]>)->Result<(Function, String, Vec, f64),AppError>{ [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `NoSolution` and `NonLinearSystem` are never constructed [INFO] [stdout] --> src/gauss.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum GaussError { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] 3 | NoSolution, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 4 | SingularMatrix, [INFO] [stdout] 5 | NonLinearSystem, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GaussError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/func_plot.rs:105:9 [INFO] [stdout] | [INFO] [stdout] 105 | add_method("square", squad_approximate); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 105 | let _ = add_method("square", squad_approximate); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/func_plot.rs:106:9 [INFO] [stdout] | [INFO] [stdout] 106 | add_method("cubic", cub_approximate); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 106 | let _ = add_method("cubic", cub_approximate); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/func_plot.rs:107:9 [INFO] [stdout] | [INFO] [stdout] 107 | add_method("exponental", exp_approximate); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 107 | let _ = add_method("exponental", exp_approximate); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/func_plot.rs:108:9 [INFO] [stdout] | [INFO] [stdout] 108 | add_method("log", ln_approximate); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 108 | let _ = add_method("log", ln_approximate); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2m 01s [INFO] running `Command { std: "docker" "inspect" "f749ef538ccee4707767aadfcc2c9bfeefce0eaee287e20de45736ed27a8ddcb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f749ef538ccee4707767aadfcc2c9bfeefce0eaee287e20de45736ed27a8ddcb", kill_on_drop: false }` [INFO] [stdout] f749ef538ccee4707767aadfcc2c9bfeefce0eaee287e20de45736ed27a8ddcb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+1.83.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ee23d88f59813983ed06c0cb245f400fb2a873c61404a0de9698c401108b2811 [INFO] running `Command { std: "docker" "start" "-a" "ee23d88f59813983ed06c0cb245f400fb2a873c61404a0de9698c401108b2811", kill_on_drop: false }` [INFO] [stderr] Compiling app v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `iter::Map` [INFO] [stdout] --> src/func_plot.rs:1:31 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{cmp::Ordering, vec, iter::Map}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Grid`, `Layout`, `TextEdit`, `Text`, and `Window` [INFO] [stdout] --> src/func_plot.rs:3:40 [INFO] [stdout] | [INFO] [stdout] 3 | use eframe::{egui::{self, plot::{self, Text}, Grid, Window, TextEdit, TextBuffer, Layout, Button, WidgetText}, epaint::{Pos2, Color32}}; [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^ ^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `indoc::indoc` [INFO] [stdout] --> src/func_plot.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use indoc::indoc; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tinyfiledialogs::*` [INFO] [stdout] --> src/func_plot.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use tinyfiledialogs::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pow_approximate` [INFO] [stdout] --> src/func_plot.rs:10:151 [INFO] [stdout] | [INFO] [stdout] 10 | ...oximate, cub_approximate, exp_approximate, ln_approximate, pow_approximate}}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BufReader` and `error::Error` [INFO] [stdout] --> src/utils.rs:1:26 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{fs::File, io::{BufReader, Read}, error::Error}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `eframe::App` [INFO] [stdout] --> src/utils.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use eframe::App; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `self` and `self` [INFO] [stdout] --> src/approximation.rs:1:31 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::{utils::{Function, self, round}, gauss::{self, solve}, errors::AppError}; [INFO] [stdout] | ^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `gauss::solve` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use gauss::solve; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `itertools::Itertools` [INFO] [stdout] --> src/func_plot.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use itertools::Itertools; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TextBuffer` [INFO] [stdout] --> src/func_plot.rs:3:71 [INFO] [stdout] | [INFO] [stdout] 3 | use eframe::{egui::{self, plot::{self, Text}, Grid, Window, TextEdit, TextBuffer, Layout, Button, WidgetText}, epaint::{Pos2, Color32}}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `row` [INFO] [stdout] --> src/gauss.rs:19:56 [INFO] [stdout] | [INFO] [stdout] 19 | let det = a.iter().enumerate().fold(1.0, |acc, (i, row)| { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_row` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/main.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | let f = Function::new( binding); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | let mut binding = |x : f64| x.powi(2); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_functions` is never used [INFO] [stdout] --> src/func_plot.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 32 | impl GraphApp { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn get_functions(&mut self)->&mut Vec{ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Enum` is never used [INFO] [stdout] --> src/func_plot.rs:120:6 [INFO] [stdout] | [INFO] [stdout] 120 | enum Enum { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `pow_approximate` is never used [INFO] [stdout] --> src/approximation.rs:375:8 [INFO] [stdout] | [INFO] [stdout] 375 | pub fn pow_approximate(input: &Vec<[f64;2]>)->Result<(Function, String, Vec, f64),AppError>{ [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `NoSolution` and `NonLinearSystem` are never constructed [INFO] [stdout] --> src/gauss.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum GaussError { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] 3 | NoSolution, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 4 | SingularMatrix, [INFO] [stdout] 5 | NonLinearSystem, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GaussError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/func_plot.rs:105:9 [INFO] [stdout] | [INFO] [stdout] 105 | add_method("square", squad_approximate); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 105 | let _ = add_method("square", squad_approximate); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/func_plot.rs:106:9 [INFO] [stdout] | [INFO] [stdout] 106 | add_method("cubic", cub_approximate); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 106 | let _ = add_method("cubic", cub_approximate); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/func_plot.rs:107:9 [INFO] [stdout] | [INFO] [stdout] 107 | add_method("exponental", exp_approximate); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 107 | let _ = add_method("exponental", exp_approximate); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/func_plot.rs:108:9 [INFO] [stdout] | [INFO] [stdout] 108 | add_method("log", ln_approximate); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 108 | let _ = add_method("log", ln_approximate); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.39s [INFO] running `Command { std: "docker" "inspect" "ee23d88f59813983ed06c0cb245f400fb2a873c61404a0de9698c401108b2811", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ee23d88f59813983ed06c0cb245f400fb2a873c61404a0de9698c401108b2811", kill_on_drop: false }` [INFO] [stdout] ee23d88f59813983ed06c0cb245f400fb2a873c61404a0de9698c401108b2811 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+1.83.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 12fc60a6e78f14d75e0149835d3dd98eba982f3bc717882ad3e17c9699ad54cc [INFO] running `Command { std: "docker" "start" "-a" "12fc60a6e78f14d75e0149835d3dd98eba982f3bc717882ad3e17c9699ad54cc", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `iter::Map` [INFO] [stderr] --> src/func_plot.rs:1:31 [INFO] [stderr] | [INFO] [stderr] 1 | use std::{cmp::Ordering, vec, iter::Map}; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Grid`, `Layout`, `TextEdit`, `Text`, and `Window` [INFO] [stderr] --> src/func_plot.rs:3:40 [INFO] [stderr] | [INFO] [stderr] 3 | use eframe::{egui::{self, plot::{self, Text}, Grid, Window, TextEdit, TextBuffer, Layout, Button, WidgetText}, epaint::{Pos2, Color32}}; [INFO] [stderr] | ^^^^ ^^^^ ^^^^^^ ^^^^^^^^ ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `indoc::indoc` [INFO] [stderr] --> src/func_plot.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 6 | use indoc::indoc; [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `tinyfiledialogs::*` [INFO] [stderr] --> src/func_plot.rs:8:5 [INFO] [stderr] | [INFO] [stderr] 8 | use tinyfiledialogs::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `pow_approximate` [INFO] [stderr] --> src/func_plot.rs:10:151 [INFO] [stderr] | [INFO] [stderr] 10 | ...oximate, cub_approximate, exp_approximate, ln_approximate, pow_approximate}}; [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `BufReader` and `error::Error` [INFO] [stderr] --> src/utils.rs:1:26 [INFO] [stderr] | [INFO] [stderr] 1 | use std::{fs::File, io::{BufReader, Read}, error::Error}; [INFO] [stderr] | ^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `eframe::App` [INFO] [stderr] --> src/utils.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use eframe::App; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `self` and `self` [INFO] [stderr] --> src/approximation.rs:1:31 [INFO] [stderr] | [INFO] [stderr] 1 | use crate::{utils::{Function, self, round}, gauss::{self, solve}, errors::AppError}; [INFO] [stderr] | ^^^^ ^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `gauss::solve` [INFO] [stderr] --> src/main.rs:9:5 [INFO] [stderr] | [INFO] [stderr] 9 | use gauss::solve; [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `itertools::Itertools` [INFO] [stderr] --> src/func_plot.rs:9:5 [INFO] [stderr] | [INFO] [stderr] 9 | use itertools::Itertools; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `TextBuffer` [INFO] [stderr] --> src/func_plot.rs:3:71 [INFO] [stderr] | [INFO] [stderr] 3 | use eframe::{egui::{self, plot::{self, Text}, Grid, Window, TextEdit, TextBuffer, Layout, Button, WidgetText}, epaint::{Pos2, Color32}}; [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `row` [INFO] [stderr] --> src/gauss.rs:19:56 [INFO] [stderr] | [INFO] [stderr] 19 | let det = a.iter().enumerate().fold(1.0, |acc, (i, row)| { [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_row` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `f` [INFO] [stderr] --> src/main.rs:27:9 [INFO] [stderr] | [INFO] [stderr] 27 | let f = Function::new( binding); [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/main.rs:26:9 [INFO] [stderr] | [INFO] [stderr] 26 | let mut binding = |x : f64| x.powi(2); [INFO] [stderr] | ----^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: method `get_functions` is never used [INFO] [stderr] --> src/func_plot.rs:42:12 [INFO] [stderr] | [INFO] [stderr] 32 | impl GraphApp { [INFO] [stderr] | ------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 42 | pub fn get_functions(&mut self)->&mut Vec{ [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: enum `Enum` is never used [INFO] [stderr] --> src/func_plot.rs:120:6 [INFO] [stderr] | [INFO] [stderr] 120 | enum Enum { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `pow_approximate` is never used [INFO] [stderr] --> src/approximation.rs:375:8 [INFO] [stderr] | [INFO] [stderr] 375 | pub fn pow_approximate(input: &Vec<[f64;2]>)->Result<(Function, String, Vec, f64),AppError>{ [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variants `NoSolution` and `NonLinearSystem` are never constructed [INFO] [stderr] --> src/gauss.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 2 | pub enum GaussError { [INFO] [stderr] | ---------- variants in this enum [INFO] [stderr] 3 | NoSolution, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] 4 | SingularMatrix, [INFO] [stderr] 5 | NonLinearSystem, [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `GaussError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/func_plot.rs:105:9 [INFO] [stderr] | [INFO] [stderr] 105 | add_method("square", squad_approximate); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] = note: `#[warn(unused_must_use)]` on by default [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 105 | let _ = add_method("square", squad_approximate); [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/func_plot.rs:106:9 [INFO] [stderr] | [INFO] [stderr] 106 | add_method("cubic", cub_approximate); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 106 | let _ = add_method("cubic", cub_approximate); [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/func_plot.rs:107:9 [INFO] [stderr] | [INFO] [stderr] 107 | add_method("exponental", exp_approximate); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 107 | let _ = add_method("exponental", exp_approximate); [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/func_plot.rs:108:9 [INFO] [stderr] | [INFO] [stderr] 108 | add_method("log", ln_approximate); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 108 | let _ = add_method("log", ln_approximate); [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: `app` (bin "app" test) generated 22 warnings (run `cargo fix --bin "app" --tests` to apply 10 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.27s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/app-e00ace68665724c5) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "12fc60a6e78f14d75e0149835d3dd98eba982f3bc717882ad3e17c9699ad54cc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "12fc60a6e78f14d75e0149835d3dd98eba982f3bc717882ad3e17c9699ad54cc", kill_on_drop: false }` [INFO] [stdout] 12fc60a6e78f14d75e0149835d3dd98eba982f3bc717882ad3e17c9699ad54cc