[INFO] cloning repository https://github.com/CyanUnderscore/FunctionHandler [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/CyanUnderscore/FunctionHandler" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCyanUnderscore%2FFunctionHandler", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCyanUnderscore%2FFunctionHandler'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 77004e683f6c050054427b3687c669ef12149a57 [INFO] testing CyanUnderscore/FunctionHandler against 1.85.0 for beta-1.86-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCyanUnderscore%2FFunctionHandler" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/CyanUnderscore/FunctionHandler on toolchain 1.85.0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.85.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/CyanUnderscore/FunctionHandler [INFO] finished tweaking git repo https://github.com/CyanUnderscore/FunctionHandler [INFO] tweaked toml for git repo https://github.com/CyanUnderscore/FunctionHandler written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/CyanUnderscore/FunctionHandler 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.85.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded pathfinder_simd v0.5.1 [INFO] [stderr] Downloaded freetype v0.7.0 [INFO] [stderr] Downloaded arrayvec v0.7.3 [INFO] [stderr] Downloaded egui_glow v0.22.0 [INFO] [stderr] Downloaded accesskit_macos v0.7.0 [INFO] [stderr] Downloaded zbus_names v2.5.1 [INFO] [stderr] Downloaded accesskit_consumer v0.15.0 [INFO] [stderr] Downloaded zbus_macros v3.13.1 [INFO] [stderr] Downloaded zvariant v3.14.0 [INFO] [stderr] Downloaded webbrowser v0.8.10 [INFO] [stderr] Downloaded zbus v3.13.1 [INFO] [stderr] Downloaded accesskit_windows v0.14.0 [INFO] [stderr] Downloaded accesskit_winit v0.14.0 [INFO] [stderr] Downloaded accesskit v0.11.0 [INFO] [stderr] Downloaded zvariant_derive v3.14.0 [INFO] [stderr] Downloaded egui-winit v0.22.0 [INFO] [stderr] Downloaded accesskit_unix v0.5.0 [INFO] [stderr] Downloaded eframe v0.22.0 [INFO] [stderr] Downloaded glutin_egl_sys v0.5.0 [INFO] [stderr] Downloaded glutin v0.30.9 [INFO] [stderr] Downloaded egui_extras v0.22.0 [INFO] [stderr] Downloaded fs v0.0.5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+1.85.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7d1e22b19af902fcfdc5ccf4025edbae5c9c5095feb4ccb683d84090e2bbbee2 [INFO] running `Command { std: "docker" "start" "-a" "7d1e22b19af902fcfdc5ccf4025edbae5c9c5095feb4ccb683d84090e2bbbee2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7d1e22b19af902fcfdc5ccf4025edbae5c9c5095feb4ccb683d84090e2bbbee2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7d1e22b19af902fcfdc5ccf4025edbae5c9c5095feb4ccb683d84090e2bbbee2", kill_on_drop: false }` [INFO] [stdout] 7d1e22b19af902fcfdc5ccf4025edbae5c9c5095feb4ccb683d84090e2bbbee2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+1.85.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] dd57a25f342f89cd84023ff83e06d630e27eda0abb322f1903515d668f96264f [INFO] running `Command { std: "docker" "start" "-a" "dd57a25f342f89cd84023ff83e06d630e27eda0abb322f1903515d668f96264f", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.60 [INFO] [stderr] Compiling unicode-ident v1.0.9 [INFO] [stderr] Compiling quote v1.0.28 [INFO] [stderr] Compiling libc v0.2.146 [INFO] [stderr] Compiling once_cell v1.18.0 [INFO] [stderr] Compiling log v0.4.19 [INFO] [stderr] Compiling xml-rs v0.8.14 [INFO] [stderr] Compiling thiserror v1.0.40 [INFO] [stderr] Compiling memoffset v0.6.5 [INFO] [stderr] Compiling smallvec v1.10.0 [INFO] [stderr] Compiling libloading v0.8.0 [INFO] [stderr] Compiling futures-core v0.3.28 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling wayland-sys v0.29.5 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling crc32fast v1.3.2 [INFO] [stderr] Compiling crossbeam-utils v0.8.16 [INFO] [stderr] Compiling simd-adler32 v0.3.5 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling dlib v0.5.2 [INFO] [stderr] Compiling hashbrown v0.12.3 [INFO] [stderr] Compiling adler v1.0.2 [INFO] [stderr] Compiling ttf-parser v0.19.0 [INFO] [stderr] Compiling futures-io v0.3.28 [INFO] [stderr] Compiling toml_datetime v0.6.2 [INFO] [stderr] Compiling cfg_aliases v0.1.1 [INFO] [stderr] Compiling winnow v0.4.1 [INFO] [stderr] Compiling miniz_oxide v0.7.1 [INFO] [stderr] Compiling serde v1.0.164 [INFO] [stderr] Compiling khronos_api v3.1.0 [INFO] [stderr] Compiling fdeflate v0.3.0 [INFO] [stderr] Compiling slotmap v1.0.6 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Compiling parking v2.1.0 [INFO] [stderr] Compiling downcast-rs v1.2.0 [INFO] [stderr] Compiling ab_glyph_rasterizer v0.1.8 [INFO] [stderr] Compiling concurrent-queue v2.2.0 [INFO] [stderr] Compiling futures-lite v1.13.0 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling io-lifetimes v1.0.11 [INFO] [stderr] Compiling ucd-trie v0.1.5 [INFO] [stderr] Compiling flate2 v1.0.26 [INFO] [stderr] Compiling x11-dl v2.21.0 [INFO] [stderr] Compiling syn v2.0.18 [INFO] [stderr] Compiling wayland-scanner v0.29.5 [INFO] [stderr] Compiling nix v0.24.3 [INFO] [stderr] Compiling png v0.17.9 [INFO] [stderr] Compiling getrandom v0.2.10 [INFO] [stderr] Compiling nix v0.25.1 [INFO] [stderr] Compiling gl_generator v0.14.0 [INFO] [stderr] Compiling smithay-client-toolkit v0.16.0 [INFO] [stderr] Compiling polling v2.8.0 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling futures-task v0.3.28 [INFO] [stderr] Compiling async-task v4.4.0 [INFO] [stderr] Compiling rustix v0.37.20 [INFO] [stderr] Compiling vec_map v0.8.2 [INFO] [stderr] Compiling toml_edit v0.19.8 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling lock_api v0.4.10 [INFO] [stderr] Compiling owned_ttf_parser v0.19.0 [INFO] [stderr] Compiling parking_lot_core v0.9.8 [INFO] [stderr] Compiling ab_glyph v0.2.21 [INFO] [stderr] Compiling memmap2 v0.5.10 [INFO] [stderr] Compiling async-channel v1.8.0 [INFO] [stderr] Compiling aho-corasick v1.0.2 [INFO] [stderr] Compiling ahash v0.8.3 [INFO] [stderr] Compiling async-io v1.13.0 [INFO] [stderr] Compiling arrayref v0.3.7 [INFO] [stderr] Compiling accesskit v0.11.0 [INFO] [stderr] Compiling linux-raw-sys v0.3.8 [INFO] [stderr] Compiling strict-num v0.1.1 [INFO] [stderr] Compiling regex-syntax v0.7.2 [INFO] [stderr] Compiling futures-util v0.3.28 [INFO] [stderr] Compiling ppv-lite86 v0.2.17 [INFO] [stderr] Compiling async-trait v0.1.68 [INFO] [stderr] Compiling wayland-client v0.29.5 [INFO] [stderr] Compiling wayland-protocols v0.29.5 [INFO] [stderr] Compiling xcursor v0.3.4 [INFO] [stderr] Compiling atomic-waker v1.1.1 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling blocking v1.3.1 [INFO] [stderr] Compiling parking_lot v0.12.1 [INFO] [stderr] Compiling nix v0.26.2 [INFO] [stderr] Compiling socket2 v0.4.9 [INFO] [stderr] Compiling tracing-core v0.1.31 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling arrayvec v0.7.3 [INFO] [stderr] Compiling cc v1.0.79 [INFO] [stderr] Compiling cpufeatures v0.2.8 [INFO] [stderr] Compiling futures-sink v0.3.28 [INFO] [stderr] Compiling sha1 v0.10.5 [INFO] [stderr] Compiling proc-macro-crate v1.3.1 [INFO] [stderr] Compiling xdg-home v1.0.0 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling async-fs v1.6.0 [INFO] [stderr] Compiling cmake v0.1.50 [INFO] [stderr] Compiling winit v0.28.6 [INFO] [stderr] Compiling async-executor v1.5.1 [INFO] [stderr] Compiling ordered-stream v0.2.0 [INFO] [stderr] Compiling async-broadcast v0.5.1 [INFO] [stderr] Compiling num-rational v0.4.1 [INFO] [stderr] Compiling raw-window-handle v0.5.2 [INFO] [stderr] Compiling nohash-hasher v0.2.0 [INFO] [stderr] Compiling freetype-sys v0.13.1 [INFO] [stderr] Compiling wayland-commons v0.29.5 [INFO] [stderr] Compiling glutin_glx_sys v0.4.0 [INFO] [stderr] Compiling glutin_egl_sys v0.5.0 [INFO] [stderr] Compiling regex v1.8.4 [INFO] [stderr] Compiling mio v0.8.8 [INFO] [stderr] Compiling instant v0.1.12 [INFO] [stderr] Compiling yeslogic-fontconfig-sys v3.2.0 [INFO] [stderr] Compiling wayland-sys v0.30.1 [INFO] [stderr] Compiling color_quant v1.1.0 [INFO] [stderr] Compiling x11rb-protocol v0.10.0 [INFO] [stderr] Compiling accesskit_consumer v0.15.0 [INFO] [stderr] Compiling gethostname v0.2.3 [INFO] [stderr] Compiling zvariant_utils v1.0.1 [INFO] [stderr] Compiling glutin v0.30.9 [INFO] [stderr] Compiling jpeg-decoder v0.3.0 [INFO] [stderr] Compiling dirs-sys-next v0.1.2 [INFO] [stderr] Compiling glutin-winit v0.3.0 [INFO] [stderr] Compiling libloading v0.7.4 [INFO] [stderr] Compiling weezl v0.1.7 [INFO] [stderr] Compiling plotters-backend v0.3.5 [INFO] [stderr] Compiling home v0.5.5 [INFO] [stderr] Compiling const-cstr v0.3.0 [INFO] [stderr] Compiling font-kit v0.11.0 [INFO] [stderr] Compiling same-file v1.0.6 [INFO] [stderr] Compiling webbrowser v0.8.10 [INFO] [stderr] Compiling walkdir v2.3.3 [INFO] [stderr] Compiling gif v0.12.0 [INFO] [stderr] Compiling freetype v0.7.0 [INFO] [stderr] Compiling dirs-next v2.0.0 [INFO] [stderr] Compiling iovec v0.1.4 [INFO] [stderr] Compiling time v0.1.45 [INFO] [stderr] Compiling num_cpus v1.15.0 [INFO] [stderr] Compiling glow v0.12.2 [INFO] [stderr] Compiling futures v0.1.31 [INFO] [stderr] Compiling thiserror-impl v1.0.40 [INFO] [stderr] Compiling bytemuck_derive v1.4.1 [INFO] [stderr] Compiling serde_derive v1.0.164 [INFO] [stderr] Compiling enumflags2_derive v0.7.7 [INFO] [stderr] Compiling wayland-cursor v0.29.5 [INFO] [stderr] Compiling tracing-attributes v0.1.24 [INFO] [stderr] Compiling async-recursion v1.0.4 [INFO] [stderr] Compiling serde_repr v0.1.12 [INFO] [stderr] Compiling iana-time-zone v0.1.57 [INFO] [stderr] Compiling float-ord v0.2.0 [INFO] [stderr] Compiling bytemuck v1.13.1 [INFO] [stderr] Compiling chrono v0.4.26 [INFO] [stderr] Compiling futures-cpupool v0.1.8 [INFO] [stderr] Compiling bytes v0.4.12 [INFO] [stderr] Compiling zvariant_derive v3.14.0 [INFO] [stderr] Compiling derivative v2.2.0 [INFO] [stderr] Compiling zbus_macros v3.13.1 [INFO] [stderr] Compiling tiny-skia-path v0.8.4 [INFO] [stderr] Compiling emath v0.22.0 [INFO] [stderr] Compiling ecolor v0.22.0 [INFO] [stderr] Compiling pest v2.6.0 [INFO] [stderr] Compiling calloop v0.10.6 [INFO] [stderr] Compiling epaint v0.22.0 [INFO] [stderr] Compiling atspi-macros v0.2.0 [INFO] [stderr] Compiling tracing v0.1.37 [INFO] [stderr] Compiling tiny-skia v0.8.4 [INFO] [stderr] Compiling image v0.24.6 [INFO] [stderr] Compiling plotters-svg v0.3.5 [INFO] [stderr] Compiling ttf-parser v0.17.1 [INFO] [stderr] Compiling fs v0.0.5 [INFO] [stderr] Compiling semver-parser v0.10.2 [INFO] [stderr] Compiling egui v0.22.0 [INFO] [stderr] Compiling semver v0.11.0 [INFO] [stderr] Compiling rustc_version v0.3.3 [INFO] [stderr] Compiling pathfinder_simd v0.5.1 [INFO] [stderr] Compiling x11rb v0.10.1 [INFO] [stderr] Compiling pathfinder_geometry v0.5.1 [INFO] [stderr] Compiling plotters-bitmap v0.3.3 [INFO] [stderr] Compiling arboard v3.2.0 [INFO] [stderr] Compiling plotters v0.3.5 [INFO] [stderr] Compiling egui_glow v0.22.0 [INFO] [stderr] Compiling enumflags2 v0.7.7 [INFO] [stderr] Compiling egui_extras v0.22.0 [INFO] [stderr] Compiling zvariant v3.14.0 [INFO] [stderr] Compiling zbus_names v2.5.1 [INFO] [stderr] Compiling zbus v3.13.1 [INFO] [stderr] Compiling atspi v0.10.1 [INFO] [stderr] Compiling accesskit_unix v0.5.0 [INFO] [stderr] Compiling sctk-adwaita v0.5.4 [INFO] [stderr] Compiling smithay-clipboard v0.6.6 [INFO] [stderr] Compiling accesskit_winit v0.14.0 [INFO] [stderr] Compiling egui-winit v0.22.0 [INFO] [stderr] Compiling eframe v0.22.0 [INFO] [stderr] Compiling FunctionHandler v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `eframe::egui::plot::Line` [INFO] [stdout] --> src/lib.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use eframe::egui::plot::Line; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/lib.rs:47:25 [INFO] [stdout] | [INFO] [stdout] 47 | ... }else if( [INFO] [stdout] | _______________^ [INFO] [stdout] 48 | | ... i==0 && elements[i]=='-' || //if the first element is a - [INFO] [stdout] | |__________^ [INFO] [stdout] 49 | ... last_was_op && elements[i]=='-' || //if the element following an operator is - [INFO] [stdout] 50 | ... elements[i] == '.' && !buffer.iter().any(|&x| x == '.') // if the element is . and is'nt already in the buffer (bcuz you can't... [INFO] [stdout] | __________________________________________________________________^ [INFO] [stdout] 51 | | ... ) { [INFO] [stdout] | |_______^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 47 ~ }else if i==0 && elements[i]=='-' || //if the first element is a - [INFO] [stdout] 48 | last_was_op && elements[i]=='-' || //if the element following an operator is - [INFO] [stdout] 49 ~ elements[i] == '.' && !buffer.iter().any(|&x| x == '.') { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:31:13 [INFO] [stdout] | [INFO] [stdout] 31 | let mut elements: Vec = input [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: crate `FunctionHandler` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = help: convert the identifier to snake case: `function_handler` [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `int` should have an upper camel case name [INFO] [stdout] --> src/main.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | int(i32), [INFO] [stdout] | ^^^ help: convert the identifier to upper camel case (notice the capitalization): `Int` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `float` should have an upper camel case name [INFO] [stdout] --> src/main.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | float(f64), [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Float` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `bool` should have an upper camel case name [INFO] [stdout] --> src/main.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | bool(bool), [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case: `Bool` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `str` should have an upper camel case name [INFO] [stdout] --> src/main.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | str(&'a str) [INFO] [stdout] | ^^^ help: convert the identifier to upper camel case (notice the capitalization): `Str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/main.rs:178:86 [INFO] [stdout] | [INFO] [stdout] 178 | fn do_the_math(function : String, domaine_def : (i32, i32)) -> (Vec<(f32, f32)>, Vec<(f32)>) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 178 - fn do_the_math(function : String, domaine_def : (i32, i32)) -> (Vec<(f32, f32)>, Vec<(f32)>) { [INFO] [stdout] 178 + fn do_the_math(function : String, domaine_def : (i32, i32)) -> (Vec<(f32, f32)>, Vec) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/main.rs:192:17 [INFO] [stdout] | [INFO] [stdout] 192 | Err(b) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `PossibleTypes` is never used [INFO] [stdout] --> src/main.rs:25:6 [INFO] [stdout] | [INFO] [stdout] 25 | enum PossibleTypes<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_tuples` is never used [INFO] [stdout] --> src/main.rs:58:8 [INFO] [stdout] | [INFO] [stdout] 57 | impl MyApp { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] 58 | fn as_tuples(&self) -> Vec<(Box, PossibleTypes)> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | funcManager("".to_owned(), (0, 20)); [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] 12 | let _ = funcManager("".to_owned(), (0, 20)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/main.rs:90:21 [INFO] [stdout] | [INFO] [stdout] 90 | funcManager(self.function.clone(), (self.low, self.high)); [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] 90 | let _ = funcManager(self.function.clone(), (self.low, self.high)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/main.rs:91:21 [INFO] [stdout] | [INFO] [stdout] 91 | draw_func(Path::new("/home/cyansky/Documents/rust/FunctionHandler/plot.png")); [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] 91 | let _ = draw_func(Path::new("/home/cyansky/Documents/rust/FunctionHandler/plot.png")); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `funcManager` should have a snake case name [INFO] [stdout] --> src/main.rs:122:4 [INFO] [stdout] | [INFO] [stdout] 122 | fn funcManager(function : String, domaine_def : (i32, i32)) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `func_manager` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2m 25s [INFO] running `Command { std: "docker" "inspect" "dd57a25f342f89cd84023ff83e06d630e27eda0abb322f1903515d668f96264f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dd57a25f342f89cd84023ff83e06d630e27eda0abb322f1903515d668f96264f", kill_on_drop: false }` [INFO] [stdout] dd57a25f342f89cd84023ff83e06d630e27eda0abb322f1903515d668f96264f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+1.85.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8709cfdd6aaad9d205dec33e62a987c78364d399cfe8ffc1081dff9a96e9e55b [INFO] running `Command { std: "docker" "start" "-a" "8709cfdd6aaad9d205dec33e62a987c78364d399cfe8ffc1081dff9a96e9e55b", kill_on_drop: false }` [INFO] [stderr] Compiling FunctionHandler v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `eframe::egui::plot::Line` [INFO] [stdout] --> src/lib.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use eframe::egui::plot::Line; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/lib.rs:47:25 [INFO] [stdout] | [INFO] [stdout] 47 | ... }else if( [INFO] [stdout] | _______________^ [INFO] [stdout] 48 | | ... i==0 && elements[i]=='-' || //if the first element is a - [INFO] [stdout] | |__________^ [INFO] [stdout] 49 | ... last_was_op && elements[i]=='-' || //if the element following an operator is - [INFO] [stdout] 50 | ... elements[i] == '.' && !buffer.iter().any(|&x| x == '.') // if the element is . and is'nt already in the buffer (bcuz you can't... [INFO] [stdout] | __________________________________________________________________^ [INFO] [stdout] 51 | | ... ) { [INFO] [stdout] | |_______^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 47 ~ }else if i==0 && elements[i]=='-' || //if the first element is a - [INFO] [stdout] 48 | last_was_op && elements[i]=='-' || //if the element following an operator is - [INFO] [stdout] 49 ~ elements[i] == '.' && !buffer.iter().any(|&x| x == '.') { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:31:13 [INFO] [stdout] | [INFO] [stdout] 31 | let mut elements: Vec = input [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: crate `FunctionHandler` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = help: convert the identifier to snake case: `function_handler` [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `eframe::egui::plot::Line` [INFO] [stdout] --> src/lib.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use eframe::egui::plot::Line; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/lib.rs:47:25 [INFO] [stdout] | [INFO] [stdout] 47 | ... }else if( [INFO] [stdout] | _______________^ [INFO] [stdout] 48 | | ... i==0 && elements[i]=='-' || //if the first element is a - [INFO] [stdout] | |__________^ [INFO] [stdout] 49 | ... last_was_op && elements[i]=='-' || //if the element following an operator is - [INFO] [stdout] 50 | ... elements[i] == '.' && !buffer.iter().any(|&x| x == '.') // if the element is . and is'nt already in the buffer (bcuz you can't... [INFO] [stdout] | __________________________________________________________________^ [INFO] [stdout] 51 | | ... ) { [INFO] [stdout] | |_______^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 47 ~ }else if i==0 && elements[i]=='-' || //if the first element is a - [INFO] [stdout] 48 | last_was_op && elements[i]=='-' || //if the element following an operator is - [INFO] [stdout] 49 ~ elements[i] == '.' && !buffer.iter().any(|&x| x == '.') { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `int` should have an upper camel case name [INFO] [stdout] --> src/main.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | int(i32), [INFO] [stdout] | ^^^ help: convert the identifier to upper camel case (notice the capitalization): `Int` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `float` should have an upper camel case name [INFO] [stdout] --> src/main.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | float(f64), [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Float` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `bool` should have an upper camel case name [INFO] [stdout] --> src/main.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | bool(bool), [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case: `Bool` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `str` should have an upper camel case name [INFO] [stdout] --> src/main.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | str(&'a str) [INFO] [stdout] | ^^^ help: convert the identifier to upper camel case (notice the capitalization): `Str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/main.rs:178:86 [INFO] [stdout] | [INFO] [stdout] 178 | fn do_the_math(function : String, domaine_def : (i32, i32)) -> (Vec<(f32, f32)>, Vec<(f32)>) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 178 - fn do_the_math(function : String, domaine_def : (i32, i32)) -> (Vec<(f32, f32)>, Vec<(f32)>) { [INFO] [stdout] 178 + fn do_the_math(function : String, domaine_def : (i32, i32)) -> (Vec<(f32, f32)>, Vec) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:31:13 [INFO] [stdout] | [INFO] [stdout] 31 | let mut elements: Vec = input [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: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:232:13 [INFO] [stdout] | [INFO] [stdout] 232 | let mut lexer = Lexer::new("1+2*3"); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/main.rs:192:17 [INFO] [stdout] | [INFO] [stdout] 192 | Err(b) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `PossibleTypes` is never used [INFO] [stdout] --> src/main.rs:25:6 [INFO] [stdout] | [INFO] [stdout] 25 | enum PossibleTypes<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_tuples` is never used [INFO] [stdout] --> src/main.rs:58:8 [INFO] [stdout] | [INFO] [stdout] 57 | impl MyApp { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] 58 | fn as_tuples(&self) -> Vec<(Box, PossibleTypes)> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | funcManager("".to_owned(), (0, 20)); [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] 12 | let _ = funcManager("".to_owned(), (0, 20)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/main.rs:90:21 [INFO] [stdout] | [INFO] [stdout] 90 | funcManager(self.function.clone(), (self.low, self.high)); [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] 90 | let _ = funcManager(self.function.clone(), (self.low, self.high)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/main.rs:91:21 [INFO] [stdout] | [INFO] [stdout] 91 | draw_func(Path::new("/home/cyansky/Documents/rust/FunctionHandler/plot.png")); [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] 91 | let _ = draw_func(Path::new("/home/cyansky/Documents/rust/FunctionHandler/plot.png")); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `funcManager` should have a snake case name [INFO] [stdout] --> src/main.rs:122:4 [INFO] [stdout] | [INFO] [stdout] 122 | fn funcManager(function : String, domaine_def : (i32, i32)) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `func_manager` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 7.75s [INFO] running `Command { std: "docker" "inspect" "8709cfdd6aaad9d205dec33e62a987c78364d399cfe8ffc1081dff9a96e9e55b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8709cfdd6aaad9d205dec33e62a987c78364d399cfe8ffc1081dff9a96e9e55b", kill_on_drop: false }` [INFO] [stdout] 8709cfdd6aaad9d205dec33e62a987c78364d399cfe8ffc1081dff9a96e9e55b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+1.85.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 987a77e242f2b648ebb317eb916dadd0dc037935e4826afd09eb572b4b6b8da6 [INFO] running `Command { std: "docker" "start" "-a" "987a77e242f2b648ebb317eb916dadd0dc037935e4826afd09eb572b4b6b8da6", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `eframe::egui::plot::Line` [INFO] [stderr] --> src/lib.rs:8:5 [INFO] [stderr] | [INFO] [stderr] 8 | use eframe::egui::plot::Line; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/lib.rs:47:25 [INFO] [stderr] | [INFO] [stderr] 47 | ... }else if( [INFO] [stderr] | _______________^ [INFO] [stderr] 48 | | ... i==0 && elements[i]=='-' || //if the first element is a - [INFO] [stderr] | |__________^ [INFO] [stderr] 49 | ... last_was_op && elements[i]=='-' || //if the element following an operator is - [INFO] [stderr] 50 | ... elements[i] == '.' && !buffer.iter().any(|&x| x == '.') // if the element is . and is'nt already in the buffer (bcuz you can't... [INFO] [stderr] | __________________________________________________________________^ [INFO] [stderr] 51 | | ... ) { [INFO] [stderr] | |_______^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` on by default [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 47 ~ }else if i==0 && elements[i]=='-' || //if the first element is a - [INFO] [stderr] 48 | last_was_op && elements[i]=='-' || //if the element following an operator is - [INFO] [stderr] 49 ~ elements[i] == '.' && !buffer.iter().any(|&x| x == '.') { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/lib.rs:31:13 [INFO] [stderr] | [INFO] [stderr] 31 | let mut elements: Vec = input [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: crate `FunctionHandler` should have a snake case name [INFO] [stderr] | [INFO] [stderr] = help: convert the identifier to snake case: `function_handler` [INFO] [stderr] = note: `#[warn(non_snake_case)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/lib.rs:232:13 [INFO] [stderr] | [INFO] [stderr] 232 | let mut lexer = Lexer::new("1+2*3"); [INFO] [stderr] | ----^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: `FunctionHandler` (lib) generated 4 warnings (run `cargo fix --lib -p FunctionHandler` to apply 3 suggestions) [INFO] [stderr] warning: `FunctionHandler` (lib test) generated 4 warnings (3 duplicates) (run `cargo fix --lib -p FunctionHandler --tests` to apply 1 suggestion) [INFO] [stderr] warning: variant `int` should have an upper camel case name [INFO] [stderr] --> src/main.rs:26:5 [INFO] [stderr] | [INFO] [stderr] 26 | int(i32), [INFO] [stderr] | ^^^ help: convert the identifier to upper camel case (notice the capitalization): `Int` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variant `float` should have an upper camel case name [INFO] [stderr] --> src/main.rs:27:5 [INFO] [stderr] | [INFO] [stderr] 27 | float(f64), [INFO] [stderr] | ^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Float` [INFO] [stderr] [INFO] [stderr] warning: variant `bool` should have an upper camel case name [INFO] [stderr] --> src/main.rs:28:5 [INFO] [stderr] | [INFO] [stderr] 28 | bool(bool), [INFO] [stderr] | ^^^^ help: convert the identifier to upper camel case: `Bool` [INFO] [stderr] [INFO] [stderr] warning: variant `str` should have an upper camel case name [INFO] [stderr] --> src/main.rs:29:5 [INFO] [stderr] | [INFO] [stderr] 29 | str(&'a str) [INFO] [stderr] | ^^^ help: convert the identifier to upper camel case (notice the capitalization): `Str` [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around type [INFO] [stderr] --> src/main.rs:178:86 [INFO] [stderr] | [INFO] [stderr] 178 | fn do_the_math(function : String, domaine_def : (i32, i32)) -> (Vec<(f32, f32)>, Vec<(f32)>) { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` on by default [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 178 - fn do_the_math(function : String, domaine_def : (i32, i32)) -> (Vec<(f32, f32)>, Vec<(f32)>) { [INFO] [stderr] 178 + fn do_the_math(function : String, domaine_def : (i32, i32)) -> (Vec<(f32, f32)>, Vec) { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unused variable: `b` [INFO] [stderr] --> src/main.rs:192:17 [INFO] [stderr] | [INFO] [stderr] 192 | Err(b) => { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: enum `PossibleTypes` is never used [INFO] [stderr] --> src/main.rs:25:6 [INFO] [stderr] | [INFO] [stderr] 25 | enum PossibleTypes<'a> { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: method `as_tuples` is never used [INFO] [stderr] --> src/main.rs:58:8 [INFO] [stderr] | [INFO] [stderr] 57 | impl MyApp { [INFO] [stderr] | ---------- method in this implementation [INFO] [stderr] 58 | fn as_tuples(&self) -> Vec<(Box, PossibleTypes)> { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused `std::result::Result` that must be used [INFO] [stderr] --> src/main.rs:12:5 [INFO] [stderr] | [INFO] [stderr] 12 | funcManager("".to_owned(), (0, 20)); [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] 12 | let _ = funcManager("".to_owned(), (0, 20)); [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: unused `std::result::Result` that must be used [INFO] [stderr] --> src/main.rs:90:21 [INFO] [stderr] | [INFO] [stderr] 90 | funcManager(self.function.clone(), (self.low, self.high)); [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] 90 | let _ = funcManager(self.function.clone(), (self.low, self.high)); [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: unused `std::result::Result` that must be used [INFO] [stderr] --> src/main.rs:91:21 [INFO] [stderr] | [INFO] [stderr] 91 | draw_func(Path::new("/home/cyansky/Documents/rust/FunctionHandler/plot.png")); [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] 91 | let _ = draw_func(Path::new("/home/cyansky/Documents/rust/FunctionHandler/plot.png")); [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: function `funcManager` should have a snake case name [INFO] [stderr] --> src/main.rs:122:4 [INFO] [stderr] | [INFO] [stderr] 122 | fn funcManager(function : String, domaine_def : (i32, i32)) -> Result> { [INFO] [stderr] | ^^^^^^^^^^^ help: convert the identifier to snake case: `func_manager` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_snake_case)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `FunctionHandler` (bin "FunctionHandler" test) generated 12 warnings (run `cargo fix --bin "FunctionHandler" --tests` to apply 1 suggestion) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.19s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/FunctionHandler-0b6bbf4b0e8ed1f2) [INFO] [stdout] [INFO] [stdout] running 5 tests [INFO] [stdout] test test::expr_test ... ok [INFO] [stdout] test test::lexer ... ok [INFO] [stdout] test test::it_works ... ok [INFO] [stdout] test test::replace_x ... ok [INFO] [stdout] test test::line_slicing ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 5 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/FunctionHandler-8b5fd96873d5aca4) [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] [stderr] Doc-tests FunctionHandler [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/lib.rs:47:25 [INFO] [stderr] | [INFO] [stderr] 47 | ... }else if( [INFO] [stderr] | _______________^ [INFO] [stderr] 48 | | ... i==0 && elements[i]=='-' || //if the first element is a - [INFO] [stderr] | |__________^ [INFO] [stderr] 49 | ... last_was_op && elements[i]=='-' || //if the element following an operator is - [INFO] [stderr] 50 | ... elements[i] == '.' && !buffer.iter().any(|&x| x == '.') // if the element is . and is'nt already in the buffer (bcuz you can't... [INFO] [stderr] | __________________________________________________________________^ [INFO] [stderr] 51 | | ... ) { [INFO] [stderr] | |_______^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` on by default [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 47 ~ }else if i==0 && elements[i]=='-' || //if the first element is a - [INFO] [stderr] 48 | last_was_op && elements[i]=='-' || //if the element following an operator is - [INFO] [stderr] 49 ~ elements[i] == '.' && !buffer.iter().any(|&x| x == '.') { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: 1 warning emitted [INFO] [stderr] [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" "987a77e242f2b648ebb317eb916dadd0dc037935e4826afd09eb572b4b6b8da6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "987a77e242f2b648ebb317eb916dadd0dc037935e4826afd09eb572b4b6b8da6", kill_on_drop: false }` [INFO] [stdout] 987a77e242f2b648ebb317eb916dadd0dc037935e4826afd09eb572b4b6b8da6