[INFO] cloning repository https://github.com/SE-691-Graphing-Calculator/esoteric_nonsense [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/SE-691-Graphing-Calculator/esoteric_nonsense" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSE-691-Graphing-Calculator%2Fesoteric_nonsense", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSE-691-Graphing-Calculator%2Fesoteric_nonsense'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] eebb8c856f69aabade6ff0ad99095d0dd967dc3a [INFO] checking SE-691-Graphing-Calculator/esoteric_nonsense against master#5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f for pr-87248 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSE-691-Graphing-Calculator%2Fesoteric_nonsense" "/workspace/builds/worker-14/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-14/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/SE-691-Graphing-Calculator/esoteric_nonsense on toolchain 5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/SE-691-Graphing-Calculator/esoteric_nonsense [INFO] finished tweaking git repo https://github.com/SE-691-Graphing-Calculator/esoteric_nonsense [INFO] tweaked toml for git repo https://github.com/SE-691-Graphing-Calculator/esoteric_nonsense written to /workspace/builds/worker-14/source/Cargo.toml [INFO] crate git repo https://github.com/SE-691-Graphing-Calculator/esoteric_nonsense already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: file found to be present in multiple build targets: /workspace/builds/worker-14/source/src/main.rs [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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" "+5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 74ef5f23acd71dd8a1a8f4e7cc51013638521df0afe85d7de526d7fb2e76ceec [INFO] running `Command { std: "docker" "start" "-a" "74ef5f23acd71dd8a1a8f4e7cc51013638521df0afe85d7de526d7fb2e76ceec", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "74ef5f23acd71dd8a1a8f4e7cc51013638521df0afe85d7de526d7fb2e76ceec", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "74ef5f23acd71dd8a1a8f4e7cc51013638521df0afe85d7de526d7fb2e76ceec", kill_on_drop: false }` [INFO] [stdout] 74ef5f23acd71dd8a1a8f4e7cc51013638521df0afe85d7de526d7fb2e76ceec [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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" "+5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c1300b5ce2e59e4bc50a95772d255509667afd496fb19ca020c3f999bff13843 [INFO] running `Command { std: "docker" "start" "-a" "c1300b5ce2e59e4bc50a95772d255509667afd496fb19ca020c3f999bff13843", kill_on_drop: false }` [INFO] [stderr] warning: file found to be present in multiple build targets: /opt/rustwide/workdir/src/main.rs [INFO] [stderr] Compiling libc v0.2.86 [INFO] [stderr] Compiling getrandom v0.2.2 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking ppv-lite86 v0.2.10 [INFO] [stderr] Checking rand_core v0.6.1 [INFO] [stderr] Checking rand_chacha v0.3.0 [INFO] [stderr] Checking rand v0.8.3 [INFO] [stderr] Checking eq_solve v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `y_lower` [INFO] [stdout] --> src/main.rs:163:85 [INFO] [stdout] | [INFO] [stdout] 163 | pub fn func_of_x (expression: String, x_lower: f64, x_upper: f64, x_precision: f64, y_lower: f64, y_upper: f64) -> Vec { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_y_lower` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y_upper` [INFO] [stdout] --> src/main.rs:163:99 [INFO] [stdout] | [INFO] [stdout] 163 | pub fn func_of_x (expression: String, x_lower: f64, x_upper: f64, x_precision: f64, y_lower: f64, y_upper: f64) -> Vec { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_y_upper` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `result` is never read [INFO] [stdout] --> src/matrix.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | let mut result: String = "".to_string(); [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: `rr_mat_b` [INFO] [stdout] --> src/matrix.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | let rr_mat_b = &mut r_mat_b; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rr_mat_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/matrix.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | let mut is_float_a: bool; [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/matrix.rs:38:13 [INFO] [stdout] | [INFO] [stdout] 38 | let mut is_float_a: bool; [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/matrix.rs:39:13 [INFO] [stdout] | [INFO] [stdout] 39 | let mut is_float_b: bool; [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/main.rs:49:27 [INFO] [stdout] | [INFO] [stdout] 48 | pub unsafe extern "C" fn matrices(op_ptr: *const c_char, cmd_1_ptr: *const c_char, mat_1_ptr: *const c_char, cmd_2_ptr: *const c_char, mat_2_ptr: *const c_char, scalar_1: f64, scalar_2: f64, b_empty: *const c_char) -> *mut c_cha... [INFO] [stdout] | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- because it's nested under this `unsafe` fn [INFO] [stdout] 49 | let op_c_str: &CStr = unsafe { CStr::from_ptr(op_ptr) }; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/main.rs:50:30 [INFO] [stdout] | [INFO] [stdout] 48 | pub unsafe extern "C" fn matrices(op_ptr: *const c_char, cmd_1_ptr: *const c_char, mat_1_ptr: *const c_char, cmd_2_ptr: *const c_char, mat_2_ptr: *const c_char, scalar_1: f64, scalar_2: f64, b_empty: *const c_char) -> *mut c_cha... [INFO] [stdout] | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- because it's nested under this `unsafe` fn [INFO] [stdout] 49 | let op_c_str: &CStr = unsafe { CStr::from_ptr(op_ptr) }; [INFO] [stdout] 50 | let cmd_1_c_str: &CStr = unsafe { CStr::from_ptr(cmd_1_ptr) }; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/main.rs:51:30 [INFO] [stdout] | [INFO] [stdout] 48 | pub unsafe extern "C" fn matrices(op_ptr: *const c_char, cmd_1_ptr: *const c_char, mat_1_ptr: *const c_char, cmd_2_ptr: *const c_char, mat_2_ptr: *const c_char, scalar_1: f64, scalar_2: f64, b_empty: *const c_char) -> *mut c_cha... [INFO] [stdout] | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- because it's nested under this `unsafe` fn [INFO] [stdout] ... [INFO] [stdout] 51 | let mat_1_c_str: &CStr = unsafe { CStr::from_ptr(mat_1_ptr) }; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/main.rs:52:30 [INFO] [stdout] | [INFO] [stdout] 48 | pub unsafe extern "C" fn matrices(op_ptr: *const c_char, cmd_1_ptr: *const c_char, mat_1_ptr: *const c_char, cmd_2_ptr: *const c_char, mat_2_ptr: *const c_char, scalar_1: f64, scalar_2: f64, b_empty: *const c_char) -> *mut c_cha... [INFO] [stdout] | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- because it's nested under this `unsafe` fn [INFO] [stdout] ... [INFO] [stdout] 52 | let cmd_2_c_str: &CStr = unsafe { CStr::from_ptr(cmd_2_ptr) }; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/main.rs:53:30 [INFO] [stdout] | [INFO] [stdout] 48 | pub unsafe extern "C" fn matrices(op_ptr: *const c_char, cmd_1_ptr: *const c_char, mat_1_ptr: *const c_char, cmd_2_ptr: *const c_char, mat_2_ptr: *const c_char, scalar_1: f64, scalar_2: f64, b_empty: *const c_char) -> *mut c_cha... [INFO] [stdout] | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- because it's nested under this `unsafe` fn [INFO] [stdout] ... [INFO] [stdout] 53 | let mat_2_c_str: &CStr = unsafe { CStr::from_ptr(mat_2_ptr) }; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/main.rs:55:32 [INFO] [stdout] | [INFO] [stdout] 48 | pub unsafe extern "C" fn matrices(op_ptr: *const c_char, cmd_1_ptr: *const c_char, mat_1_ptr: *const c_char, cmd_2_ptr: *const c_char, mat_2_ptr: *const c_char, scalar_1: f64, scalar_2: f64, b_empty: *const c_char) -> *mut c_cha... [INFO] [stdout] | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- because it's nested under this `unsafe` fn [INFO] [stdout] ... [INFO] [stdout] 55 | let b_empty_c_str: &CStr = unsafe { CStr::from_ptr(b_empty) }; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/main.rs:73:34 [INFO] [stdout] | [INFO] [stdout] 72 | pub unsafe extern "C" fn conversions(conversion_type: *const c_char, from_unit: *const c_char, to_unit: *const c_char, units: f64) -> f64 { [INFO] [stdout] | ----------------------------------------------------------------------------------------------------------------------------------------- because it's nested under this `unsafe` fn [INFO] [stdout] 73 | let conv_type_c_str: &CStr = unsafe { CStr::from_ptr(conversion_type) }; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/main.rs:74:34 [INFO] [stdout] | [INFO] [stdout] 72 | pub unsafe extern "C" fn conversions(conversion_type: *const c_char, from_unit: *const c_char, to_unit: *const c_char, units: f64) -> f64 { [INFO] [stdout] | ----------------------------------------------------------------------------------------------------------------------------------------- because it's nested under this `unsafe` fn [INFO] [stdout] 73 | let conv_type_c_str: &CStr = unsafe { CStr::from_ptr(conversion_type) }; [INFO] [stdout] 74 | let from_unit_c_str: &CStr = unsafe { CStr::from_ptr(from_unit) }; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/main.rs:75:32 [INFO] [stdout] | [INFO] [stdout] 72 | pub unsafe extern "C" fn conversions(conversion_type: *const c_char, from_unit: *const c_char, to_unit: *const c_char, units: f64) -> f64 { [INFO] [stdout] | ----------------------------------------------------------------------------------------------------------------------------------------- because it's nested under this `unsafe` fn [INFO] [stdout] ... [INFO] [stdout] 75 | let to_unit_c_str: &CStr = unsafe { CStr::from_ptr(to_unit) }; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/main.rs:88:30 [INFO] [stdout] | [INFO] [stdout] 87 | pub unsafe extern "C" fn calculate_for_graph(expression_input: *const c_char, some_x: f64) -> f64 { [INFO] [stdout] | ------------------------------------------------------------------------------------------------- because it's nested under this `unsafe` fn [INFO] [stdout] 88 | let input_c_str: &CStr = unsafe { CStr::from_ptr(expression_input) }; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/main.rs:97:30 [INFO] [stdout] | [INFO] [stdout] 96 | pub unsafe extern "C" fn calculate(input: *const c_char) -> f64 { [INFO] [stdout] | --------------------------------------------------------------- because it's nested under this `unsafe` fn [INFO] [stdout] 97 | let input_c_str: &CStr = unsafe { CStr::from_ptr(input)}; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/main.rs:104:30 [INFO] [stdout] | [INFO] [stdout] 103 | pub unsafe extern "C" fn calculate_string(input: *const c_char) -> *mut c_char { [INFO] [stdout] | ------------------------------------------------------------------------------ because it's nested under this `unsafe` fn [INFO] [stdout] 104 | let input_c_str: &CStr = unsafe { CStr::from_ptr(input)}; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `WholeNumber` [INFO] [stdout] --> src/s_y.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | WholeNumber(i64), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `to_string_ast` [INFO] [stdout] --> src/s_y.rs:622:12 [INFO] [stdout] | [INFO] [stdout] 622 | pub fn to_string_ast(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `lower_upper_decomposition` [INFO] [stdout] --> src/matrix.rs:179:8 [INFO] [stdout] | [INFO] [stdout] 179 | pub fn lower_upper_decomposition(matrix: &Vec>) -> (Vec>, Vec>, Vec>, Vec>,) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `pivotize_matrix` [INFO] [stdout] --> src/matrix.rs:211:8 [INFO] [stdout] | [INFO] [stdout] 211 | pub fn pivotize_matrix(matrix: &Vec>) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `identity_matrix` [INFO] [stdout] --> src/matrix.rs:241:8 [INFO] [stdout] | [INFO] [stdout] 241 | pub fn identity_matrix(n: usize) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_square` [INFO] [stdout] --> src/matrix.rs:498:8 [INFO] [stdout] | [INFO] [stdout] 498 | pub fn is_square(matrix: &Vec>) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_rref_compat` [INFO] [stdout] --> src/matrix.rs:502:8 [INFO] [stdout] | [INFO] [stdout] 502 | pub fn is_rref_compat(matrix: &Vec>) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y_lower` [INFO] [stdout] --> src/main.rs:163:85 [INFO] [stdout] | [INFO] [stdout] 163 | pub fn func_of_x (expression: String, x_lower: f64, x_upper: f64, x_precision: f64, y_lower: f64, y_upper: f64) -> Vec { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_y_lower` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y_upper` [INFO] [stdout] --> src/main.rs:163:99 [INFO] [stdout] | [INFO] [stdout] 163 | pub fn func_of_x (expression: String, x_lower: f64, x_upper: f64, x_precision: f64, y_lower: f64, y_upper: f64) -> Vec { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_y_upper` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `result` is never read [INFO] [stdout] --> src/matrix.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | let mut result: String = "".to_string(); [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: `rr_mat_b` [INFO] [stdout] --> src/matrix.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | let rr_mat_b = &mut r_mat_b; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rr_mat_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 26 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y_lower` [INFO] [stdout] --> src/main.rs:163:85 [INFO] [stdout] | [INFO] [stdout] 163 | pub fn func_of_x (expression: String, x_lower: f64, x_upper: f64, x_precision: f64, y_lower: f64, y_upper: f64) -> Vec { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_y_lower` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y_upper` [INFO] [stdout] --> src/main.rs:163:99 [INFO] [stdout] | [INFO] [stdout] 163 | pub fn func_of_x (expression: String, x_lower: f64, x_upper: f64, x_precision: f64, y_lower: f64, y_upper: f64) -> Vec { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_y_upper` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `result` is never read [INFO] [stdout] --> src/matrix.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | let mut result: String = "".to_string(); [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: `rr_mat_b` [INFO] [stdout] --> src/matrix.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | let rr_mat_b = &mut r_mat_b; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rr_mat_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/matrix.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | let mut is_float_a: bool; [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/matrix.rs:38:13 [INFO] [stdout] | [INFO] [stdout] 38 | let mut is_float_a: bool; [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/matrix.rs:39:13 [INFO] [stdout] | [INFO] [stdout] 39 | let mut is_float_b: bool; [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/matrix.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | let mut is_float_a: bool; [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/matrix.rs:38:13 [INFO] [stdout] | [INFO] [stdout] 38 | let mut is_float_a: bool; [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/matrix.rs:39:13 [INFO] [stdout] | [INFO] [stdout] 39 | let mut is_float_b: bool; [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/main.rs:49:27 [INFO] [stdout] | [INFO] [stdout] 48 | pub unsafe extern "C" fn matrices(op_ptr: *const c_char, cmd_1_ptr: *const c_char, mat_1_ptr: *const c_char, cmd_2_ptr: *const c_char, mat_2_ptr: *const c_char, scalar_1: f64, scalar_2: f64, b_empty: *const c_char) -> *mut c_cha... [INFO] [stdout] | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- because it's nested under this `unsafe` fn [INFO] [stdout] 49 | let op_c_str: &CStr = unsafe { CStr::from_ptr(op_ptr) }; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/main.rs:50:30 [INFO] [stdout] | [INFO] [stdout] 48 | pub unsafe extern "C" fn matrices(op_ptr: *const c_char, cmd_1_ptr: *const c_char, mat_1_ptr: *const c_char, cmd_2_ptr: *const c_char, mat_2_ptr: *const c_char, scalar_1: f64, scalar_2: f64, b_empty: *const c_char) -> *mut c_cha... [INFO] [stdout] | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- because it's nested under this `unsafe` fn [INFO] [stdout] 49 | let op_c_str: &CStr = unsafe { CStr::from_ptr(op_ptr) }; [INFO] [stdout] 50 | let cmd_1_c_str: &CStr = unsafe { CStr::from_ptr(cmd_1_ptr) }; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/main.rs:51:30 [INFO] [stdout] | [INFO] [stdout] 48 | pub unsafe extern "C" fn matrices(op_ptr: *const c_char, cmd_1_ptr: *const c_char, mat_1_ptr: *const c_char, cmd_2_ptr: *const c_char, mat_2_ptr: *const c_char, scalar_1: f64, scalar_2: f64, b_empty: *const c_char) -> *mut c_cha... [INFO] [stdout] | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- because it's nested under this `unsafe` fn [INFO] [stdout] ... [INFO] [stdout] 51 | let mat_1_c_str: &CStr = unsafe { CStr::from_ptr(mat_1_ptr) }; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/main.rs:52:30 [INFO] [stdout] | [INFO] [stdout] 48 | pub unsafe extern "C" fn matrices(op_ptr: *const c_char, cmd_1_ptr: *const c_char, mat_1_ptr: *const c_char, cmd_2_ptr: *const c_char, mat_2_ptr: *const c_char, scalar_1: f64, scalar_2: f64, b_empty: *const c_char) -> *mut c_cha... [INFO] [stdout] | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- because it's nested under this `unsafe` fn [INFO] [stdout] ... [INFO] [stdout] 52 | let cmd_2_c_str: &CStr = unsafe { CStr::from_ptr(cmd_2_ptr) }; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/main.rs:53:30 [INFO] [stdout] | [INFO] [stdout] 48 | pub unsafe extern "C" fn matrices(op_ptr: *const c_char, cmd_1_ptr: *const c_char, mat_1_ptr: *const c_char, cmd_2_ptr: *const c_char, mat_2_ptr: *const c_char, scalar_1: f64, scalar_2: f64, b_empty: *const c_char) -> *mut c_cha... [INFO] [stdout] | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- because it's nested under this `unsafe` fn [INFO] [stdout] ... [INFO] [stdout] 53 | let mat_2_c_str: &CStr = unsafe { CStr::from_ptr(mat_2_ptr) }; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/main.rs:55:32 [INFO] [stdout] | [INFO] [stdout] 48 | pub unsafe extern "C" fn matrices(op_ptr: *const c_char, cmd_1_ptr: *const c_char, mat_1_ptr: *const c_char, cmd_2_ptr: *const c_char, mat_2_ptr: *const c_char, scalar_1: f64, scalar_2: f64, b_empty: *const c_char) -> *mut c_cha... [INFO] [stdout] | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- because it's nested under this `unsafe` fn [INFO] [stdout] ... [INFO] [stdout] 55 | let b_empty_c_str: &CStr = unsafe { CStr::from_ptr(b_empty) }; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/main.rs:73:34 [INFO] [stdout] | [INFO] [stdout] 72 | pub unsafe extern "C" fn conversions(conversion_type: *const c_char, from_unit: *const c_char, to_unit: *const c_char, units: f64) -> f64 { [INFO] [stdout] | ----------------------------------------------------------------------------------------------------------------------------------------- because it's nested under this `unsafe` fn [INFO] [stdout] 73 | let conv_type_c_str: &CStr = unsafe { CStr::from_ptr(conversion_type) }; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/main.rs:74:34 [INFO] [stdout] | [INFO] [stdout] 72 | pub unsafe extern "C" fn conversions(conversion_type: *const c_char, from_unit: *const c_char, to_unit: *const c_char, units: f64) -> f64 { [INFO] [stdout] | ----------------------------------------------------------------------------------------------------------------------------------------- because it's nested under this `unsafe` fn [INFO] [stdout] 73 | let conv_type_c_str: &CStr = unsafe { CStr::from_ptr(conversion_type) }; [INFO] [stdout] 74 | let from_unit_c_str: &CStr = unsafe { CStr::from_ptr(from_unit) }; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/main.rs:75:32 [INFO] [stdout] | [INFO] [stdout] 72 | pub unsafe extern "C" fn conversions(conversion_type: *const c_char, from_unit: *const c_char, to_unit: *const c_char, units: f64) -> f64 { [INFO] [stdout] | ----------------------------------------------------------------------------------------------------------------------------------------- because it's nested under this `unsafe` fn [INFO] [stdout] ... [INFO] [stdout] 75 | let to_unit_c_str: &CStr = unsafe { CStr::from_ptr(to_unit) }; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/main.rs:88:30 [INFO] [stdout] | [INFO] [stdout] 87 | pub unsafe extern "C" fn calculate_for_graph(expression_input: *const c_char, some_x: f64) -> f64 { [INFO] [stdout] | ------------------------------------------------------------------------------------------------- because it's nested under this `unsafe` fn [INFO] [stdout] 88 | let input_c_str: &CStr = unsafe { CStr::from_ptr(expression_input) }; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y_lower` [INFO] [stdout] --> src/main.rs:163:85 [INFO] [stdout] | [INFO] [stdout] 163 | pub fn func_of_x (expression: String, x_lower: f64, x_upper: f64, x_precision: f64, y_lower: f64, y_upper: f64) -> Vec { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_y_lower` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/main.rs:97:30 [INFO] [stdout] | [INFO] [stdout] 96 | pub unsafe extern "C" fn calculate(input: *const c_char) -> f64 { [INFO] [stdout] | --------------------------------------------------------------- because it's nested under this `unsafe` fn [INFO] [stdout] 97 | let input_c_str: &CStr = unsafe { CStr::from_ptr(input)}; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y_upper` [INFO] [stdout] --> src/main.rs:163:99 [INFO] [stdout] | [INFO] [stdout] 163 | pub fn func_of_x (expression: String, x_lower: f64, x_upper: f64, x_precision: f64, y_lower: f64, y_upper: f64) -> Vec { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_y_upper` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `result` is never read [INFO] [stdout] --> src/matrix.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | let mut result: String = "".to_string(); [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: unnecessary `unsafe` block [INFO] [stdout] --> src/main.rs:104:30 [INFO] [stdout] | [INFO] [stdout] 103 | pub unsafe extern "C" fn calculate_string(input: *const c_char) -> *mut c_char { [INFO] [stdout] | ------------------------------------------------------------------------------ because it's nested under this `unsafe` fn [INFO] [stdout] 104 | let input_c_str: &CStr = unsafe { CStr::from_ptr(input)}; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rr_mat_b` [INFO] [stdout] --> src/matrix.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | let rr_mat_b = &mut r_mat_b; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rr_mat_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `WholeNumber` [INFO] [stdout] --> src/s_y.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | WholeNumber(i64), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/main.rs:49:27 [INFO] [stdout] | [INFO] [stdout] 48 | pub unsafe extern "C" fn matrices(op_ptr: *const c_char, cmd_1_ptr: *const c_char, mat_1_ptr: *const c_char, cmd_2_ptr: *const c_char, mat_2_ptr: *const c_char, scalar_1: f64, scalar_2: f64, b_empty: *const c_char) -> *mut c_cha... [INFO] [stdout] | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- because it's nested under this `unsafe` fn [INFO] [stdout] 49 | let op_c_str: &CStr = unsafe { CStr::from_ptr(op_ptr) }; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `to_string_ast` [INFO] [stdout] --> src/s_y.rs:622:12 [INFO] [stdout] | [INFO] [stdout] 622 | pub fn to_string_ast(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/main.rs:50:30 [INFO] [stdout] | [INFO] [stdout] 48 | pub unsafe extern "C" fn matrices(op_ptr: *const c_char, cmd_1_ptr: *const c_char, mat_1_ptr: *const c_char, cmd_2_ptr: *const c_char, mat_2_ptr: *const c_char, scalar_1: f64, scalar_2: f64, b_empty: *const c_char) -> *mut c_cha... [INFO] [stdout] | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- because it's nested under this `unsafe` fn [INFO] [stdout] 49 | let op_c_str: &CStr = unsafe { CStr::from_ptr(op_ptr) }; [INFO] [stdout] 50 | let cmd_1_c_str: &CStr = unsafe { CStr::from_ptr(cmd_1_ptr) }; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `lower_upper_decomposition` [INFO] [stdout] --> src/matrix.rs:179:8 [INFO] [stdout] | [INFO] [stdout] 179 | pub fn lower_upper_decomposition(matrix: &Vec>) -> (Vec>, Vec>, Vec>, Vec>,) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `pivotize_matrix` [INFO] [stdout] --> src/matrix.rs:211:8 [INFO] [stdout] | [INFO] [stdout] 211 | pub fn pivotize_matrix(matrix: &Vec>) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/main.rs:51:30 [INFO] [stdout] | [INFO] [stdout] 48 | pub unsafe extern "C" fn matrices(op_ptr: *const c_char, cmd_1_ptr: *const c_char, mat_1_ptr: *const c_char, cmd_2_ptr: *const c_char, mat_2_ptr: *const c_char, scalar_1: f64, scalar_2: f64, b_empty: *const c_char) -> *mut c_cha... [INFO] [stdout] | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- because it's nested under this `unsafe` fn [INFO] [stdout] ... [INFO] [stdout] 51 | let mat_1_c_str: &CStr = unsafe { CStr::from_ptr(mat_1_ptr) }; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `identity_matrix` [INFO] [stdout] --> src/matrix.rs:241:8 [INFO] [stdout] | [INFO] [stdout] 241 | pub fn identity_matrix(n: usize) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_square` [INFO] [stdout] --> src/matrix.rs:498:8 [INFO] [stdout] | [INFO] [stdout] 498 | pub fn is_square(matrix: &Vec>) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/main.rs:52:30 [INFO] [stdout] | [INFO] [stdout] 48 | pub unsafe extern "C" fn matrices(op_ptr: *const c_char, cmd_1_ptr: *const c_char, mat_1_ptr: *const c_char, cmd_2_ptr: *const c_char, mat_2_ptr: *const c_char, scalar_1: f64, scalar_2: f64, b_empty: *const c_char) -> *mut c_cha... [INFO] [stdout] | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- because it's nested under this `unsafe` fn [INFO] [stdout] ... [INFO] [stdout] 52 | let cmd_2_c_str: &CStr = unsafe { CStr::from_ptr(cmd_2_ptr) }; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_rref_compat` [INFO] [stdout] --> src/matrix.rs:502:8 [INFO] [stdout] | [INFO] [stdout] 502 | pub fn is_rref_compat(matrix: &Vec>) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/main.rs:53:30 [INFO] [stdout] | [INFO] [stdout] 48 | pub unsafe extern "C" fn matrices(op_ptr: *const c_char, cmd_1_ptr: *const c_char, mat_1_ptr: *const c_char, cmd_2_ptr: *const c_char, mat_2_ptr: *const c_char, scalar_1: f64, scalar_2: f64, b_empty: *const c_char) -> *mut c_cha... [INFO] [stdout] | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- because it's nested under this `unsafe` fn [INFO] [stdout] ... [INFO] [stdout] 53 | let mat_2_c_str: &CStr = unsafe { CStr::from_ptr(mat_2_ptr) }; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `main` [INFO] [stdout] --> src/main.rs:11:4 [INFO] [stdout] | [INFO] [stdout] 11 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/main.rs:55:32 [INFO] [stdout] | [INFO] [stdout] 48 | pub unsafe extern "C" fn matrices(op_ptr: *const c_char, cmd_1_ptr: *const c_char, mat_1_ptr: *const c_char, cmd_2_ptr: *const c_char, mat_2_ptr: *const c_char, scalar_1: f64, scalar_2: f64, b_empty: *const c_char) -> *mut c_cha... [INFO] [stdout] | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- because it's nested under this `unsafe` fn [INFO] [stdout] ... [INFO] [stdout] 55 | let b_empty_c_str: &CStr = unsafe { CStr::from_ptr(b_empty) }; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/main.rs:73:34 [INFO] [stdout] | [INFO] [stdout] 72 | pub unsafe extern "C" fn conversions(conversion_type: *const c_char, from_unit: *const c_char, to_unit: *const c_char, units: f64) -> f64 { [INFO] [stdout] | ----------------------------------------------------------------------------------------------------------------------------------------- because it's nested under this `unsafe` fn [INFO] [stdout] 73 | let conv_type_c_str: &CStr = unsafe { CStr::from_ptr(conversion_type) }; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/main.rs:74:34 [INFO] [stdout] | [INFO] [stdout] 72 | pub unsafe extern "C" fn conversions(conversion_type: *const c_char, from_unit: *const c_char, to_unit: *const c_char, units: f64) -> f64 { [INFO] [stdout] | ----------------------------------------------------------------------------------------------------------------------------------------- because it's nested under this `unsafe` fn [INFO] [stdout] 73 | let conv_type_c_str: &CStr = unsafe { CStr::from_ptr(conversion_type) }; [INFO] [stdout] 74 | let from_unit_c_str: &CStr = unsafe { CStr::from_ptr(from_unit) }; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/main.rs:75:32 [INFO] [stdout] | [INFO] [stdout] 72 | pub unsafe extern "C" fn conversions(conversion_type: *const c_char, from_unit: *const c_char, to_unit: *const c_char, units: f64) -> f64 { [INFO] [stdout] | ----------------------------------------------------------------------------------------------------------------------------------------- because it's nested under this `unsafe` fn [INFO] [stdout] ... [INFO] [stdout] 75 | let to_unit_c_str: &CStr = unsafe { CStr::from_ptr(to_unit) }; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/main.rs:88:30 [INFO] [stdout] | [INFO] [stdout] 87 | pub unsafe extern "C" fn calculate_for_graph(expression_input: *const c_char, some_x: f64) -> f64 { [INFO] [stdout] | ------------------------------------------------------------------------------------------------- because it's nested under this `unsafe` fn [INFO] [stdout] 88 | let input_c_str: &CStr = unsafe { CStr::from_ptr(expression_input) }; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/main.rs:97:30 [INFO] [stdout] | [INFO] [stdout] 96 | pub unsafe extern "C" fn calculate(input: *const c_char) -> f64 { [INFO] [stdout] | --------------------------------------------------------------- because it's nested under this `unsafe` fn [INFO] [stdout] 97 | let input_c_str: &CStr = unsafe { CStr::from_ptr(input)}; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/main.rs:104:30 [INFO] [stdout] | [INFO] [stdout] 103 | pub unsafe extern "C" fn calculate_string(input: *const c_char) -> *mut c_char { [INFO] [stdout] | ------------------------------------------------------------------------------ because it's nested under this `unsafe` fn [INFO] [stdout] 104 | let input_c_str: &CStr = unsafe { CStr::from_ptr(input)}; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `WholeNumber` [INFO] [stdout] --> src/s_y.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | WholeNumber(i64), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 27 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 20 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/matrix.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | let mut is_float_a: bool; [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/matrix.rs:38:13 [INFO] [stdout] | [INFO] [stdout] 38 | let mut is_float_a: bool; [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/matrix.rs:39:13 [INFO] [stdout] | [INFO] [stdout] 39 | let mut is_float_b: bool; [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/main.rs:49:27 [INFO] [stdout] | [INFO] [stdout] 48 | pub unsafe extern "C" fn matrices(op_ptr: *const c_char, cmd_1_ptr: *const c_char, mat_1_ptr: *const c_char, cmd_2_ptr: *const c_char, mat_2_ptr: *const c_char, scalar_1: f64, scalar_2: f64, b_empty: *const c_char) -> *mut c_cha... [INFO] [stdout] | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- because it's nested under this `unsafe` fn [INFO] [stdout] 49 | let op_c_str: &CStr = unsafe { CStr::from_ptr(op_ptr) }; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/main.rs:50:30 [INFO] [stdout] | [INFO] [stdout] 48 | pub unsafe extern "C" fn matrices(op_ptr: *const c_char, cmd_1_ptr: *const c_char, mat_1_ptr: *const c_char, cmd_2_ptr: *const c_char, mat_2_ptr: *const c_char, scalar_1: f64, scalar_2: f64, b_empty: *const c_char) -> *mut c_cha... [INFO] [stdout] | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- because it's nested under this `unsafe` fn [INFO] [stdout] 49 | let op_c_str: &CStr = unsafe { CStr::from_ptr(op_ptr) }; [INFO] [stdout] 50 | let cmd_1_c_str: &CStr = unsafe { CStr::from_ptr(cmd_1_ptr) }; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/main.rs:51:30 [INFO] [stdout] | [INFO] [stdout] 48 | pub unsafe extern "C" fn matrices(op_ptr: *const c_char, cmd_1_ptr: *const c_char, mat_1_ptr: *const c_char, cmd_2_ptr: *const c_char, mat_2_ptr: *const c_char, scalar_1: f64, scalar_2: f64, b_empty: *const c_char) -> *mut c_cha... [INFO] [stdout] | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- because it's nested under this `unsafe` fn [INFO] [stdout] ... [INFO] [stdout] 51 | let mat_1_c_str: &CStr = unsafe { CStr::from_ptr(mat_1_ptr) }; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/main.rs:52:30 [INFO] [stdout] | [INFO] [stdout] 48 | pub unsafe extern "C" fn matrices(op_ptr: *const c_char, cmd_1_ptr: *const c_char, mat_1_ptr: *const c_char, cmd_2_ptr: *const c_char, mat_2_ptr: *const c_char, scalar_1: f64, scalar_2: f64, b_empty: *const c_char) -> *mut c_cha... [INFO] [stdout] | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- because it's nested under this `unsafe` fn [INFO] [stdout] ... [INFO] [stdout] 52 | let cmd_2_c_str: &CStr = unsafe { CStr::from_ptr(cmd_2_ptr) }; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/main.rs:53:30 [INFO] [stdout] | [INFO] [stdout] 48 | pub unsafe extern "C" fn matrices(op_ptr: *const c_char, cmd_1_ptr: *const c_char, mat_1_ptr: *const c_char, cmd_2_ptr: *const c_char, mat_2_ptr: *const c_char, scalar_1: f64, scalar_2: f64, b_empty: *const c_char) -> *mut c_cha... [INFO] [stdout] | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- because it's nested under this `unsafe` fn [INFO] [stdout] ... [INFO] [stdout] 53 | let mat_2_c_str: &CStr = unsafe { CStr::from_ptr(mat_2_ptr) }; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/main.rs:55:32 [INFO] [stdout] | [INFO] [stdout] 48 | pub unsafe extern "C" fn matrices(op_ptr: *const c_char, cmd_1_ptr: *const c_char, mat_1_ptr: *const c_char, cmd_2_ptr: *const c_char, mat_2_ptr: *const c_char, scalar_1: f64, scalar_2: f64, b_empty: *const c_char) -> *mut c_cha... [INFO] [stdout] | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- because it's nested under this `unsafe` fn [INFO] [stdout] ... [INFO] [stdout] 55 | let b_empty_c_str: &CStr = unsafe { CStr::from_ptr(b_empty) }; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/main.rs:73:34 [INFO] [stdout] | [INFO] [stdout] 72 | pub unsafe extern "C" fn conversions(conversion_type: *const c_char, from_unit: *const c_char, to_unit: *const c_char, units: f64) -> f64 { [INFO] [stdout] | ----------------------------------------------------------------------------------------------------------------------------------------- because it's nested under this `unsafe` fn [INFO] [stdout] 73 | let conv_type_c_str: &CStr = unsafe { CStr::from_ptr(conversion_type) }; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/main.rs:74:34 [INFO] [stdout] | [INFO] [stdout] 72 | pub unsafe extern "C" fn conversions(conversion_type: *const c_char, from_unit: *const c_char, to_unit: *const c_char, units: f64) -> f64 { [INFO] [stdout] | ----------------------------------------------------------------------------------------------------------------------------------------- because it's nested under this `unsafe` fn [INFO] [stdout] 73 | let conv_type_c_str: &CStr = unsafe { CStr::from_ptr(conversion_type) }; [INFO] [stdout] 74 | let from_unit_c_str: &CStr = unsafe { CStr::from_ptr(from_unit) }; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/main.rs:75:32 [INFO] [stdout] | [INFO] [stdout] 72 | pub unsafe extern "C" fn conversions(conversion_type: *const c_char, from_unit: *const c_char, to_unit: *const c_char, units: f64) -> f64 { [INFO] [stdout] | ----------------------------------------------------------------------------------------------------------------------------------------- because it's nested under this `unsafe` fn [INFO] [stdout] ... [INFO] [stdout] 75 | let to_unit_c_str: &CStr = unsafe { CStr::from_ptr(to_unit) }; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/main.rs:88:30 [INFO] [stdout] | [INFO] [stdout] 87 | pub unsafe extern "C" fn calculate_for_graph(expression_input: *const c_char, some_x: f64) -> f64 { [INFO] [stdout] | ------------------------------------------------------------------------------------------------- because it's nested under this `unsafe` fn [INFO] [stdout] 88 | let input_c_str: &CStr = unsafe { CStr::from_ptr(expression_input) }; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/main.rs:97:30 [INFO] [stdout] | [INFO] [stdout] 96 | pub unsafe extern "C" fn calculate(input: *const c_char) -> f64 { [INFO] [stdout] | --------------------------------------------------------------- because it's nested under this `unsafe` fn [INFO] [stdout] 97 | let input_c_str: &CStr = unsafe { CStr::from_ptr(input)}; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/main.rs:104:30 [INFO] [stdout] | [INFO] [stdout] 103 | pub unsafe extern "C" fn calculate_string(input: *const c_char) -> *mut c_char { [INFO] [stdout] | ------------------------------------------------------------------------------ because it's nested under this `unsafe` fn [INFO] [stdout] 104 | let input_c_str: &CStr = unsafe { CStr::from_ptr(input)}; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `WholeNumber` [INFO] [stdout] --> src/s_y.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | WholeNumber(i64), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 20 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 4.61s [INFO] running `Command { std: "docker" "inspect" "c1300b5ce2e59e4bc50a95772d255509667afd496fb19ca020c3f999bff13843", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c1300b5ce2e59e4bc50a95772d255509667afd496fb19ca020c3f999bff13843", kill_on_drop: false }` [INFO] [stdout] c1300b5ce2e59e4bc50a95772d255509667afd496fb19ca020c3f999bff13843