[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#a7a572ce3edd6d476191fbfe92c9c1986e009b34 for pr-87190-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FsiliangQ%2Fcurve_fitting_rs" "/workspace/builds/worker-105/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-105/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/siliangQ/curve_fitting_rs on toolchain a7a572ce3edd6d476191fbfe92c9c1986e009b34 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "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-105/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" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-105/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-105/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" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 711bbf66d40e348fbfe389faef25560223b13db41028174c4ae970f7fa0fbc79 [INFO] running `Command { std: "docker" "start" "-a" "711bbf66d40e348fbfe389faef25560223b13db41028174c4ae970f7fa0fbc79", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "711bbf66d40e348fbfe389faef25560223b13db41028174c4ae970f7fa0fbc79", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "711bbf66d40e348fbfe389faef25560223b13db41028174c4ae970f7fa0fbc79", kill_on_drop: false }` [INFO] [stdout] 711bbf66d40e348fbfe389faef25560223b13db41028174c4ae970f7fa0fbc79 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-105/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-105/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" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2a103c6dc17b2bc5256d779c9ef8c19a49c201c8429d3445c432e9b13f63b227 [INFO] running `Command { std: "docker" "start" "-a" "2a103c6dc17b2bc5256d779c9ef8c19a49c201c8429d3445c432e9b13f63b227", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] note: Switching to Edition 2021 will enable the use of the version 2 feature resolver in Cargo. [INFO] [stderr] This may cause some dependencies to be built with fewer features enabled than previously. [INFO] [stderr] More information about the resolver changes may be found at https://doc.rust-lang.org/nightly/edition-guide/rust-2021/default-cargo-resolver.html [INFO] [stderr] When building the following dependencies, the given features will no longer be used: [INFO] [stderr] [INFO] [stderr] syn v1.0.27 (as host dependency): full, visit [INFO] [stderr] [INFO] [stderr] Compiling autocfg v1.0.0 [INFO] [stderr] Compiling pkg-config v0.3.17 [INFO] [stderr] Compiling libc v0.2.71 [INFO] [stderr] Compiling cc v1.0.54 [INFO] [stderr] Compiling maybe-uninit v2.0.0 [INFO] [stderr] Compiling proc-macro2 v1.0.17 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Compiling rayon-core v1.7.0 [INFO] [stderr] Compiling unicode-xid v0.2.0 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Compiling syn v1.0.27 [INFO] [stderr] Checking lzw v0.10.0 [INFO] [stderr] Checking either v1.5.3 [INFO] [stderr] Compiling palette v0.5.0 [INFO] [stderr] Checking color_quant v1.0.1 [INFO] [stderr] Checking same-file v1.0.6 [INFO] [stderr] Checking scoped_threadpool v0.1.9 [INFO] [stderr] Checking float-ord v0.2.0 [INFO] [stderr] Checking bytemuck v1.2.0 [INFO] [stderr] Checking c_vec v1.0.12 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Checking miniz_oxide v0.3.6 [INFO] [stderr] Checking crc32fast v1.2.0 [INFO] [stderr] Checking deflate v0.8.4 [INFO] [stderr] Checking stb_truetype v0.3.1 [INFO] [stderr] Checking gif v0.10.3 [INFO] [stderr] Checking png v0.16.3 [INFO] [stderr] Checking walkdir v2.3.1 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Compiling cmake v0.1.44 [INFO] [stderr] Compiling num-traits v0.2.11 [INFO] [stderr] Compiling crossbeam-utils v0.7.2 [INFO] [stderr] Compiling memoffset v0.5.4 [INFO] [stderr] Compiling crossbeam-epoch v0.8.2 [INFO] [stderr] Compiling num-integer v0.1.42 [INFO] [stderr] Compiling num-rational v0.2.4 [INFO] [stderr] Compiling num-iter v0.1.40 [INFO] [stderr] Checking tiff v0.4.0 [INFO] [stderr] Compiling quote v1.0.6 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking dirs-sys v0.3.4 [INFO] [stderr] Checking time v0.1.43 [INFO] [stderr] Compiling servo-fontconfig-sys v4.0.9 [INFO] [stderr] Compiling GSL v1.1.0 [INFO] [stderr] Checking dirs v2.0.2 [INFO] [stderr] Compiling pathfinder_simd v0.5.0 [INFO] [stderr] Compiling servo-freetype-sys v4.0.5 [INFO] [stderr] Compiling expat-sys v2.1.6 [INFO] [stderr] Checking crossbeam-queue v0.2.1 [INFO] [stderr] Checking approx v0.3.2 [INFO] [stderr] Checking ordered-float v1.0.2 [INFO] [stderr] Checking chrono v0.4.11 [INFO] [stderr] Checking rusttype v0.8.3 [INFO] [stderr] Checking crossbeam-deque v0.7.3 [INFO] [stderr] Checking pathfinder_geometry v0.5.1 [INFO] [stderr] Checking freetype v0.4.1 [INFO] [stderr] Checking servo-fontconfig v0.4.0 [INFO] [stderr] Checking font-kit v0.7.0 [INFO] [stderr] Checking rayon v1.3.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 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2018 edition to 2021 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `curve_fitting` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/main.rs [INFO] [stderr] [INFO] [stderr] This likely indicates a bug in either rustc or cargo itself, [INFO] [stderr] and we would appreciate a bug report! You're likely to see [INFO] [stderr] a number of compiler warnings after this message which cargo [INFO] [stderr] attempted to fix but failed. If you could open an issue at [INFO] [stderr] https://github.com/rust-lang/rust/issues [INFO] [stderr] quoting the full output of this command we'd be very appreciative! [INFO] [stderr] Note that you may be able to make some more progress in the near-term [INFO] [stderr] fixing code with the `--broken-code` flag [INFO] [stderr] [INFO] [stderr] The following errors were reported: [INFO] [stderr] warning: value assigned to `status` is never read [INFO] [stderr] --> src/main.rs:210:13 [INFO] [stderr] | [INFO] [stderr] 210 | let mut status = rgsl::Value::Success; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_assignments)]` on by default [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] [INFO] [stderr] warning: value assigned to `theta_2` is never read [INFO] [stderr] --> src/main.rs:285:17 [INFO] [stderr] | [INFO] [stderr] 285 | let mut theta_2 = 0f64; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] [INFO] [stderr] warning: value assigned to `theta` is never read [INFO] [stderr] --> src/main.rs:286:17 [INFO] [stderr] | [INFO] [stderr] 286 | let mut theta = 0f64; [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] [INFO] [stderr] error[E0596]: cannot borrow `f` as mutable, as it is not declared as mutable [INFO] [stderr] --> src/main.rs:230:19 [INFO] [stderr] | [INFO] [stderr] 24 | (@param $x:ident) => ( $x ); [INFO] [stderr] | -- help: consider changing this to be mutable: `mut f` [INFO] [stderr] ... [INFO] [stderr] 230 | exp_f(&x, &mut f, &*data) [INFO] [stderr] | ^^^^^^ cannot borrow as mutable [INFO] [stderr] [INFO] [stderr] error[E0596]: cannot borrow `J` as mutable, as it is not declared as mutable [INFO] [stderr] --> src/main.rs:234:20 [INFO] [stderr] | [INFO] [stderr] 24 | (@param $x:ident) => ( $x ); [INFO] [stderr] | -- help: consider changing this to be mutable: `mut J` [INFO] [stderr] ... [INFO] [stderr] 234 | exp_df(&x, &mut J, &*data) [INFO] [stderr] | ^^^^^^ cannot borrow as mutable [INFO] [stderr] [INFO] [stderr] error[E0596]: cannot borrow `f` as mutable, as it is not declared as mutable [INFO] [stderr] --> src/main.rs:238:19 [INFO] [stderr] | [INFO] [stderr] 24 | (@param $x:ident) => ( $x ); [INFO] [stderr] | -- help: consider changing this to be mutable: `mut f` [INFO] [stderr] ... [INFO] [stderr] 238 | exp_f(&x, &mut f, &*data); [INFO] [stderr] | ^^^^^^ cannot borrow as mutable [INFO] [stderr] [INFO] [stderr] error[E0596]: cannot borrow `J` as mutable, as it is not declared as mutable [INFO] [stderr] --> src/main.rs:239:20 [INFO] [stderr] | [INFO] [stderr] 24 | (@param $x:ident) => ( $x ); [INFO] [stderr] | -- help: consider changing this to be mutable: `mut J` [INFO] [stderr] ... [INFO] [stderr] 239 | exp_df(&x, &mut J, &*data); [INFO] [stderr] | ^^^^^^ cannot borrow as mutable [INFO] [stderr] [INFO] [stderr] error: aborting due to 4 previous errors; 3 warnings emitted [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0596`. [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [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: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: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: 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: 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: 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: 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] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 19.28s [INFO] [stderr] Running `cargo check` to verify 2021 [INFO] [stderr] Compiling syn v1.0.27 [INFO] [stderr] Compiling palette_derive v0.5.0 [INFO] [stderr] Checking palette v0.5.0 [INFO] [stderr] Checking plotters v0.2.15 [INFO] [stderr] Checking curve_fitting v0.1.0 (/tmp/fixit) [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: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: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 `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 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: 25 warnings emitted [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] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 7.96s [INFO] running `Command { std: "docker" "inspect" "2a103c6dc17b2bc5256d779c9ef8c19a49c201c8429d3445c432e9b13f63b227", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2a103c6dc17b2bc5256d779c9ef8c19a49c201c8429d3445c432e9b13f63b227", kill_on_drop: false }` [INFO] [stdout] 2a103c6dc17b2bc5256d779c9ef8c19a49c201c8429d3445c432e9b13f63b227