[INFO] cloning repository https://github.com/siliangQ/curve_fitting_rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/siliangQ/curve_fitting_rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FsiliangQ%2Fcurve_fitting_rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FsiliangQ%2Fcurve_fitting_rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 20830563e5a660d315628c2c11cad52ae096e742 [INFO] checking siliangQ/curve_fitting_rs against try#3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f for pr-87248 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FsiliangQ%2Fcurve_fitting_rs" "/workspace/builds/worker-6/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/siliangQ/curve_fitting_rs on toolchain 3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/siliangQ/curve_fitting_rs [INFO] finished tweaking git repo https://github.com/siliangQ/curve_fitting_rs [INFO] tweaked toml for git repo https://github.com/siliangQ/curve_fitting_rs written to /workspace/builds/worker-6/source/Cargo.toml [INFO] crate git repo https://github.com/siliangQ/curve_fitting_rs already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded font-kit v0.7.0 [INFO] [stderr] Downloaded GSL v1.1.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4bac88e0f0fc1ad8dafea5616819783dceb3b635b8bed64dcdfb7c55d4b8b5d3 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "4bac88e0f0fc1ad8dafea5616819783dceb3b635b8bed64dcdfb7c55d4b8b5d3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4bac88e0f0fc1ad8dafea5616819783dceb3b635b8bed64dcdfb7c55d4b8b5d3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4bac88e0f0fc1ad8dafea5616819783dceb3b635b8bed64dcdfb7c55d4b8b5d3", kill_on_drop: false }` [INFO] [stdout] 4bac88e0f0fc1ad8dafea5616819783dceb3b635b8bed64dcdfb7c55d4b8b5d3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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" "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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3b81cb60914a0a1af4e6fc1c8f9f845f9884974c38e978a52cfa26d3c33fc0fd [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "3b81cb60914a0a1af4e6fc1c8f9f845f9884974c38e978a52cfa26d3c33fc0fd", kill_on_drop: false }` [INFO] [stderr] Compiling maybe-uninit v2.0.0 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Compiling proc-macro2 v1.0.17 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling unicode-xid v0.2.0 [INFO] [stderr] Compiling syn v1.0.27 [INFO] [stderr] Checking either v1.5.3 [INFO] [stderr] Compiling palette v0.5.0 [INFO] [stderr] Checking scoped_threadpool v0.1.9 [INFO] [stderr] Checking c_vec v1.0.12 [INFO] [stderr] Compiling num-traits v0.2.11 [INFO] [stderr] Compiling num-integer v0.1.42 [INFO] [stderr] Compiling num-iter v0.1.40 [INFO] [stderr] Compiling GSL v1.1.0 [INFO] [stderr] Checking log v0.4.8 [INFO] [stderr] Checking crc32fast v1.2.0 [INFO] [stderr] Checking crossbeam-utils v0.7.2 [INFO] [stderr] Checking dirs-sys v0.3.4 [INFO] [stderr] Checking deflate v0.8.4 [INFO] [stderr] Checking tiff v0.4.0 [INFO] [stderr] Checking servo-freetype-sys v4.0.5 [INFO] [stderr] Checking expat-sys v2.1.6 [INFO] [stderr] Compiling servo-fontconfig-sys v4.0.9 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Checking freetype v0.4.1 [INFO] [stderr] Checking dirs v2.0.2 [INFO] [stderr] Checking servo-fontconfig v0.4.0 [INFO] [stderr] Checking crossbeam-queue v0.2.1 [INFO] [stderr] Checking crossbeam-epoch v0.8.2 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Checking png v0.16.3 [INFO] [stderr] Compiling pathfinder_simd v0.5.0 [INFO] [stderr] Checking crossbeam-deque v0.7.3 [INFO] [stderr] Checking rayon-core v1.7.0 [INFO] [stderr] Compiling quote v1.0.6 [INFO] [stderr] Checking rayon v1.3.0 [INFO] [stderr] Checking approx v0.3.2 [INFO] [stderr] Checking ordered-float v1.0.2 [INFO] [stderr] Checking pathfinder_geometry v0.5.1 [INFO] [stderr] Checking rusttype v0.8.3 [INFO] [stderr] Checking num-rational v0.2.4 [INFO] [stderr] Checking chrono v0.4.11 [INFO] [stderr] Checking font-kit v0.7.0 [INFO] [stderr] Checking jpeg-decoder v0.1.19 [INFO] [stderr] Checking image v0.23.4 [INFO] [stderr] Compiling palette_derive v0.5.0 [INFO] [stderr] Checking plotters v0.2.15 [INFO] [stderr] Checking curve_fitting v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::cell::RefCell` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::cell::RefCell; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::BufReader` [INFO] [stdout] --> src/main.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use std::io::BufReader; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ImageFormat`, `imageops::FilterType` [INFO] [stdout] --> src/main.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | use image::{imageops::FilterType, ImageFormat}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::RefCell` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::cell::RefCell; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::BufReader` [INFO] [stdout] --> src/main.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use std::io::BufReader; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ImageFormat`, `imageops::FilterType` [INFO] [stdout] --> src/main.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | use image::{imageops::FilterType, ImageFormat}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/main.rs:54:11 [INFO] [stdout] | [INFO] [stdout] 54 | fn exp_df(x: &rgsl::VectorF64, J: &mut rgsl::MatrixF64, data: &Data) -> rgsl::Value { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `image_path` [INFO] [stdout] --> src/main.rs:93:110 [INFO] [stdout] | [INFO] [stdout] 93 | fn plot_parabola(data: &Data, params: &rgsl::VectorF64, additional_points: Vec>, fig_path: &String, image_path: &String){ [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_image_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `status` is never read [INFO] [stdout] --> src/main.rs:210:13 [INFO] [stdout] | [INFO] [stdout] 210 | let mut status = rgsl::Value::Success; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `J` [INFO] [stdout] --> src/main.rs:212:13 [INFO] [stdout] | [INFO] [stdout] 212 | let mut J = match rgsl::MatrixF64::new(num_params, num_params){ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_J` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rng` [INFO] [stdout] --> src/main.rs:221:13 [INFO] [stdout] | [INFO] [stdout] 221 | let mut rng = match rgsl::Rng::new(&rng_type){ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rng` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `theta_2` is never read [INFO] [stdout] --> src/main.rs:285:17 [INFO] [stdout] | [INFO] [stdout] 285 | let mut theta_2 = 0f64; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `theta` is never read [INFO] [stdout] --> src/main.rs:286:17 [INFO] [stdout] | [INFO] [stdout] 286 | let mut theta = 0f64; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/main.rs:379:29 [INFO] [stdout] | [INFO] [stdout] 379 | Err(e) => panic!("can't reconstruct curve") [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fig_path` [INFO] [stdout] --> src/main.rs:403:25 [INFO] [stdout] | [INFO] [stdout] 403 | let fig_path: String = format!("./figs_mm/{}_{}.png", elements[0], elements[2]); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_fig_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/main.rs:54:11 [INFO] [stdout] | [INFO] [stdout] 54 | fn exp_df(x: &rgsl::VectorF64, J: &mut rgsl::MatrixF64, data: &Data) -> rgsl::Value { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `image_path` [INFO] [stdout] --> src/main.rs:93:110 [INFO] [stdout] | [INFO] [stdout] 93 | fn plot_parabola(data: &Data, params: &rgsl::VectorF64, additional_points: Vec>, fig_path: &String, image_path: &String){ [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_image_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `status` is never read [INFO] [stdout] --> src/main.rs:210:13 [INFO] [stdout] | [INFO] [stdout] 210 | let mut status = rgsl::Value::Success; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `J` [INFO] [stdout] --> src/main.rs:212:13 [INFO] [stdout] | [INFO] [stdout] 212 | let mut J = match rgsl::MatrixF64::new(num_params, num_params){ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_J` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rng` [INFO] [stdout] --> src/main.rs:221:13 [INFO] [stdout] | [INFO] [stdout] 221 | let mut rng = match rgsl::Rng::new(&rng_type){ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rng` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `theta_2` is never read [INFO] [stdout] --> src/main.rs:285:17 [INFO] [stdout] | [INFO] [stdout] 285 | let mut theta_2 = 0f64; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `theta` is never read [INFO] [stdout] --> src/main.rs:286:17 [INFO] [stdout] | [INFO] [stdout] 286 | let mut theta = 0f64; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/main.rs:379:29 [INFO] [stdout] | [INFO] [stdout] 379 | Err(e) => panic!("can't reconstruct curve") [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fig_path` [INFO] [stdout] --> src/main.rs:403:25 [INFO] [stdout] | [INFO] [stdout] 403 | let fig_path: String = format!("./figs_mm/{}_{}.png", elements[0], elements[2]); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_fig_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:24:28 [INFO] [stdout] | [INFO] [stdout] 24 | (@param $x:ident) => ( mut $x ); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] ... [INFO] [stdout] 229 | let expb_f = clone!(data => move |x, f| { [INFO] [stdout] | __________________- [INFO] [stdout] 230 | | exp_f(&x, &mut f, &*data) [INFO] [stdout] 231 | | }); [INFO] [stdout] | |______- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] = note: this warning originates in the macro `clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:24:28 [INFO] [stdout] | [INFO] [stdout] 24 | (@param $x:ident) => ( mut $x ); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] ... [INFO] [stdout] 233 | let expb_df = clone!(data => move |x, J| { [INFO] [stdout] | ___________________- [INFO] [stdout] 234 | | exp_df(&x, &mut J, &*data) [INFO] [stdout] 235 | | }); [INFO] [stdout] | |______- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:24:28 [INFO] [stdout] | [INFO] [stdout] 24 | (@param $x:ident) => ( mut $x ); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] ... [INFO] [stdout] 237 | let expb_fdf = clone!(data => move |x, f, J| { [INFO] [stdout] | ____________________- [INFO] [stdout] 238 | | exp_f(&x, &mut f, &*data); [INFO] [stdout] 239 | | exp_df(&x, &mut J, &*data); [INFO] [stdout] 240 | | [INFO] [stdout] 241 | | rgsl::Value::Success [INFO] [stdout] 242 | | }); [INFO] [stdout] | |______- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:212:9 [INFO] [stdout] | [INFO] [stdout] 212 | let mut J = match rgsl::MatrixF64::new(num_params, num_params){ [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:221:9 [INFO] [stdout] | [INFO] [stdout] 221 | let mut rng = match rgsl::Rng::new(&rng_type){ [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:24:28 [INFO] [stdout] | [INFO] [stdout] 24 | (@param $x:ident) => ( mut $x ); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] ... [INFO] [stdout] 229 | let expb_f = clone!(data => move |x, f| { [INFO] [stdout] | __________________- [INFO] [stdout] 230 | | exp_f(&x, &mut f, &*data) [INFO] [stdout] 231 | | }); [INFO] [stdout] | |______- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] = note: this warning originates in the macro `clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:24:28 [INFO] [stdout] | [INFO] [stdout] 24 | (@param $x:ident) => ( mut $x ); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] ... [INFO] [stdout] 233 | let expb_df = clone!(data => move |x, J| { [INFO] [stdout] | ___________________- [INFO] [stdout] 234 | | exp_df(&x, &mut J, &*data) [INFO] [stdout] 235 | | }); [INFO] [stdout] | |______- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:24:28 [INFO] [stdout] | [INFO] [stdout] 24 | (@param $x:ident) => ( mut $x ); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] ... [INFO] [stdout] 237 | let expb_fdf = clone!(data => move |x, f, J| { [INFO] [stdout] | ____________________- [INFO] [stdout] 238 | | exp_f(&x, &mut f, &*data); [INFO] [stdout] 239 | | exp_df(&x, &mut J, &*data); [INFO] [stdout] 240 | | [INFO] [stdout] 241 | | rgsl::Value::Success [INFO] [stdout] 242 | | }); [INFO] [stdout] | |______- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:212:9 [INFO] [stdout] | [INFO] [stdout] 212 | let mut J = match rgsl::MatrixF64::new(num_params, num_params){ [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:221:9 [INFO] [stdout] | [INFO] [stdout] 221 | let mut rng = match rgsl::Rng::new(&rng_type){ [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:369:21 [INFO] [stdout] | [INFO] [stdout] 369 | let mut data = Rc::new(Data{ [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `bound_in_axis` [INFO] [stdout] --> src/main.rs:86:4 [INFO] [stdout] | [INFO] [stdout] 86 | fn bound_in_axis(x: f32, y: f32) -> bool{ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `plot_parabola` [INFO] [stdout] --> src/main.rs:93:4 [INFO] [stdout] | [INFO] [stdout] 93 | fn plot_parabola(data: &Data, params: &rgsl::VectorF64, additional_points: Vec>, fig_path: &String, image_path: &String){ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:369:21 [INFO] [stdout] | [INFO] [stdout] 369 | let mut data = Rc::new(Data{ [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `bound_in_axis` [INFO] [stdout] --> src/main.rs:86:4 [INFO] [stdout] | [INFO] [stdout] 86 | fn bound_in_axis(x: f32, y: f32) -> bool{ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `plot_parabola` [INFO] [stdout] --> src/main.rs:93:4 [INFO] [stdout] | [INFO] [stdout] 93 | fn plot_parabola(data: &Data, params: &rgsl::VectorF64, additional_points: Vec>, fig_path: &String, image_path: &String){ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `J` should have a snake case name [INFO] [stdout] --> src/main.rs:54:32 [INFO] [stdout] | [INFO] [stdout] 54 | fn exp_df(x: &rgsl::VectorF64, J: &mut rgsl::MatrixF64, data: &Data) -> rgsl::Value { [INFO] [stdout] | ^ help: convert the identifier to snake case: `j` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `J` should have a snake case name [INFO] [stdout] --> src/main.rs:212:13 [INFO] [stdout] | [INFO] [stdout] 212 | let mut J = match rgsl::MatrixF64::new(num_params, num_params){ [INFO] [stdout] | ^ help: convert the identifier to snake case: `j` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `J` should have a snake case name [INFO] [stdout] --> src/main.rs:233:43 [INFO] [stdout] | [INFO] [stdout] 233 | let expb_df = clone!(data => move |x, J| { [INFO] [stdout] | ^ help: convert the identifier to snake case: `j` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `J` should have a snake case name [INFO] [stdout] --> src/main.rs:237:47 [INFO] [stdout] | [INFO] [stdout] 237 | let expb_fdf = clone!(data => move |x, f, J| { [INFO] [stdout] | ^ help: convert the identifier to snake case: `j` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/main.rs:360:9 [INFO] [stdout] | [INFO] [stdout] 360 | file.write_all(b"scanId\teyeId\tbscanId\tpm0xmm\tpm0ymm\tpm0zmm\tpm1xmm\tpm1ymm\tpm1zmm\n"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `J` should have a snake case name [INFO] [stdout] --> src/main.rs:54:32 [INFO] [stdout] | [INFO] [stdout] 54 | fn exp_df(x: &rgsl::VectorF64, J: &mut rgsl::MatrixF64, data: &Data) -> rgsl::Value { [INFO] [stdout] | ^ help: convert the identifier to snake case: `j` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `J` should have a snake case name [INFO] [stdout] --> src/main.rs:212:13 [INFO] [stdout] | [INFO] [stdout] 212 | let mut J = match rgsl::MatrixF64::new(num_params, num_params){ [INFO] [stdout] | ^ help: convert the identifier to snake case: `j` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `J` should have a snake case name [INFO] [stdout] --> src/main.rs:233:43 [INFO] [stdout] | [INFO] [stdout] 233 | let expb_df = clone!(data => move |x, J| { [INFO] [stdout] | ^ help: convert the identifier to snake case: `j` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `J` should have a snake case name [INFO] [stdout] --> src/main.rs:237:47 [INFO] [stdout] | [INFO] [stdout] 237 | let expb_fdf = clone!(data => move |x, f, J| { [INFO] [stdout] | ^ help: convert the identifier to snake case: `j` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/main.rs:360:9 [INFO] [stdout] | [INFO] [stdout] 360 | file.write_all(b"scanId\teyeId\tbscanId\tpm0xmm\tpm0ymm\tpm0zmm\tpm1xmm\tpm1ymm\tpm1zmm\n"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 25 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 25 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 57.19s [INFO] running `Command { std: "docker" "inspect" "3b81cb60914a0a1af4e6fc1c8f9f845f9884974c38e978a52cfa26d3c33fc0fd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3b81cb60914a0a1af4e6fc1c8f9f845f9884974c38e978a52cfa26d3c33fc0fd", kill_on_drop: false }` [INFO] [stdout] 3b81cb60914a0a1af4e6fc1c8f9f845f9884974c38e978a52cfa26d3c33fc0fd