[INFO] cloning repository https://github.com/IwuvDoggos/ap_calc [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/IwuvDoggos/ap_calc" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FIwuvDoggos%2Fap_calc", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FIwuvDoggos%2Fap_calc'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 3f8464ad45bca8f2760ecaa4e5a14475adf67a64 [INFO] building IwuvDoggos/ap_calc against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FIwuvDoggos%2Fap_calc" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/IwuvDoggos/ap_calc on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/IwuvDoggos/ap_calc [INFO] finished tweaking git repo https://github.com/IwuvDoggos/ap_calc [INFO] tweaked toml for git repo https://github.com/IwuvDoggos/ap_calc written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/IwuvDoggos/ap_calc already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded fraction v0.12.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 952055cf949934bc5726bbe4d2d056a97b7ff2ac72eab9a4a63671af0cee4233 [INFO] running `Command { std: "docker" "start" "-a" "952055cf949934bc5726bbe4d2d056a97b7ff2ac72eab9a4a63671af0cee4233", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "952055cf949934bc5726bbe4d2d056a97b7ff2ac72eab9a4a63671af0cee4233", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "952055cf949934bc5726bbe4d2d056a97b7ff2ac72eab9a4a63671af0cee4233", kill_on_drop: false }` [INFO] [stdout] 952055cf949934bc5726bbe4d2d056a97b7ff2ac72eab9a4a63671af0cee4233 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Dtail-expr-drop-order" "-e" "RUSTDOCFLAGS=--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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0fcc0a0927fc5857131aa734d88aded27d5b833cb5152b0146ea968f3af834bc [INFO] running `Command { std: "docker" "start" "-a" "0fcc0a0927fc5857131aa734d88aded27d5b833cb5152b0146ea968f3af834bc", kill_on_drop: false }` [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling num-bigint v0.4.3 [INFO] [stderr] Compiling num-rational v0.4.1 [INFO] [stderr] Compiling num-iter v0.1.43 [INFO] [stderr] Compiling num-complex v0.4.2 [INFO] [stderr] Compiling num v0.4.0 [INFO] [stderr] Compiling fraction v0.12.1 [INFO] [stderr] Compiling ap_calc v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Sign` [INFO] [stdout] --> src/lib.rs:2:25 [INFO] [stdout] | [INFO] [stdout] 2 | use fraction::{Fraction,Sign,ToPrimitive}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `num::pow` [INFO] [stdout] --> src/lib.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use num::pow; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/derivative.rs:48:13 [INFO] [stdout] | [INFO] [stdout] 48 | _ => panic!("Operation not covered by ddx in match expression"), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/derivative.rs:48:13 [INFO] [stdout] | [INFO] [stdout] 14 | Operation::Add => [INFO] [stdout] | -------------- matches some of the same values [INFO] [stdout] 15 | format!("({fp})+({gp})"), [INFO] [stdout] 16 | Operation::Sub => [INFO] [stdout] | -------------- matches some of the same values [INFO] [stdout] 17 | format!("({fp})-({gp})"), [INFO] [stdout] 18 | Operation::Mult => [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] 19 | format!("(({g})({fp}))+(({f})({gp}))"), [INFO] [stdout] 20 | Operation::Div => [INFO] [stdout] | -------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 48 | _ => panic!("Operation not covered by ddx in match expression"), [INFO] [stdout] | ^ ...and 5 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/derivative.rs:84:9 [INFO] [stdout] | [INFO] [stdout] 84 | _ => panic!("its in the match of the eval_deriv") [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/derivative.rs:84:9 [INFO] [stdout] | [INFO] [stdout] 73 | Expression::Constant(_c) => Expression::from("0"), [INFO] [stdout] | ------------------------ matches some of the same values [INFO] [stdout] 74 | Expression::Variable('x') => Expression::from("1"), [INFO] [stdout] | ------------------------- matches some of the same values [INFO] [stdout] 75 | Expression::Variable(f) => ddx(&get_expression(bank, &exp_cpy)), [INFO] [stdout] | ----------------------- matches some of the same values [INFO] [stdout] 76 | Expression::Equa(e) => { [INFO] [stdout] | ------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 84 | _ => panic!("its in the match of the eval_deriv") [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/derivative.rs:75:30 [INFO] [stdout] | [INFO] [stdout] 75 | Expression::Variable(f) => ddx(&get_expression(bank, &exp_cpy)), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/lib.rs:209:17 [INFO] [stdout] | [INFO] [stdout] 209 | let x = &string[..last_implied]; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/lib.rs:210:17 [INFO] [stdout] | [INFO] [stdout] 210 | let y = &string[last_implied..]; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `error` [INFO] [stdout] --> src/lib.rs:260:20 [INFO] [stdout] | [INFO] [stdout] 260 | Err(error) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/lib.rs:304:17 [INFO] [stdout] | [INFO] [stdout] 304 | _ => panic!("No OP BUT EQUATION"), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/lib.rs:304:17 [INFO] [stdout] | [INFO] [stdout] 270 | Operation::Add => [INFO] [stdout] | -------------- matches some of the same values [INFO] [stdout] 271 | equation.element1.evaluate(bank, x) + equation.element2.evaluate(bank, x), [INFO] [stdout] 272 | Operation::Sub => [INFO] [stdout] | -------------- matches some of the same values [INFO] [stdout] 273 | equation.element1.evaluate(bank, x) - equation.element2.evaluate(bank, x), [INFO] [stdout] 274 | Operation::Mult => [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] 275 | equation.element1.evaluate(bank, x) * equation.element2.evaluate(bank, x), [INFO] [stdout] 276 | Operation::Div => [INFO] [stdout] | -------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 304 | _ => panic!("No OP BUT EQUATION"), [INFO] [stdout] | ^ ...and 5 other patterns collectively make this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/lib.rs:385:18 [INFO] [stdout] | [INFO] [stdout] 385 | _ => panic!("No OP BUT EQUATION"), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/lib.rs:385:18 [INFO] [stdout] | [INFO] [stdout] 351 | Operation::Add => write!(f,"({})+({})",*equation.element1,*equation.element2), [INFO] [stdout] | -------------- matches some of the same values [INFO] [stdout] 352 | Operation::Sub => write!(f,"({})-({})",*equation.element1,*equation.element2), [INFO] [stdout] | -------------- matches some of the same values [INFO] [stdout] 353 | Operation::Mult => write!(f,"({})({})",*equation.element1,*equation.element2), //× [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] 354 | Operation::Div => write!(f,"({})/({})",*equation.element1,*equation.element2), [INFO] [stdout] | -------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 385 | _ => panic!("No OP BUT EQUATION"), [INFO] [stdout] | ^ ...and 5 other patterns collectively make this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/lib.rs:454:22 [INFO] [stdout] | [INFO] [stdout] 454 | let name = string.clone(); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.57s [INFO] running `Command { std: "docker" "inspect" "0fcc0a0927fc5857131aa734d88aded27d5b833cb5152b0146ea968f3af834bc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0fcc0a0927fc5857131aa734d88aded27d5b833cb5152b0146ea968f3af834bc", kill_on_drop: false }` [INFO] [stdout] 0fcc0a0927fc5857131aa734d88aded27d5b833cb5152b0146ea968f3af834bc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Dtail-expr-drop-order" "-e" "RUSTDOCFLAGS=--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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] da0753aa68742276990ed9f7734c6e2d9710da4599c9e1ea70fb58013bd06f9d [INFO] running `Command { std: "docker" "start" "-a" "da0753aa68742276990ed9f7734c6e2d9710da4599c9e1ea70fb58013bd06f9d", kill_on_drop: false }` [INFO] [stdout] warning: unused import: `Sign` [INFO] [stdout] --> src/lib.rs:2:25 [INFO] [stdout] | [INFO] [stdout] 2 | use fraction::{Fraction,Sign,ToPrimitive}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `num::pow` [INFO] [stdout] --> src/lib.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use num::pow; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/derivative.rs:48:13 [INFO] [stdout] | [INFO] [stdout] 48 | _ => panic!("Operation not covered by ddx in match expression"), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/derivative.rs:48:13 [INFO] [stdout] | [INFO] [stdout] 14 | Operation::Add => [INFO] [stdout] | -------------- matches some of the same values [INFO] [stdout] 15 | format!("({fp})+({gp})"), [INFO] [stdout] 16 | Operation::Sub => [INFO] [stdout] | -------------- matches some of the same values [INFO] [stdout] 17 | format!("({fp})-({gp})"), [INFO] [stdout] 18 | Operation::Mult => [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] 19 | format!("(({g})({fp}))+(({f})({gp}))"), [INFO] [stdout] 20 | Operation::Div => [INFO] [stdout] | -------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 48 | _ => panic!("Operation not covered by ddx in match expression"), [INFO] [stdout] | ^ ...and 5 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/derivative.rs:84:9 [INFO] [stdout] | [INFO] [stdout] 84 | _ => panic!("its in the match of the eval_deriv") [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/derivative.rs:84:9 [INFO] [stdout] | [INFO] [stdout] 73 | Expression::Constant(_c) => Expression::from("0"), [INFO] [stdout] | ------------------------ matches some of the same values [INFO] [stdout] 74 | Expression::Variable('x') => Expression::from("1"), [INFO] [stdout] | ------------------------- matches some of the same values [INFO] [stdout] 75 | Expression::Variable(f) => ddx(&get_expression(bank, &exp_cpy)), [INFO] [stdout] | ----------------------- matches some of the same values [INFO] [stdout] 76 | Expression::Equa(e) => { [INFO] [stdout] | ------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 84 | _ => panic!("its in the match of the eval_deriv") [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/derivative.rs:75:30 [INFO] [stdout] | [INFO] [stdout] 75 | Expression::Variable(f) => ddx(&get_expression(bank, &exp_cpy)), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/lib.rs:209:17 [INFO] [stdout] | [INFO] [stdout] 209 | let x = &string[..last_implied]; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/lib.rs:210:17 [INFO] [stdout] | [INFO] [stdout] 210 | let y = &string[last_implied..]; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `error` [INFO] [stdout] --> src/lib.rs:260:20 [INFO] [stdout] | [INFO] [stdout] 260 | Err(error) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/lib.rs:304:17 [INFO] [stdout] | [INFO] [stdout] 304 | _ => panic!("No OP BUT EQUATION"), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/lib.rs:304:17 [INFO] [stdout] | [INFO] [stdout] 270 | Operation::Add => [INFO] [stdout] | -------------- matches some of the same values [INFO] [stdout] 271 | equation.element1.evaluate(bank, x) + equation.element2.evaluate(bank, x), [INFO] [stdout] 272 | Operation::Sub => [INFO] [stdout] | -------------- matches some of the same values [INFO] [stdout] 273 | equation.element1.evaluate(bank, x) - equation.element2.evaluate(bank, x), [INFO] [stdout] 274 | Operation::Mult => [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] 275 | equation.element1.evaluate(bank, x) * equation.element2.evaluate(bank, x), [INFO] [stdout] 276 | Operation::Div => [INFO] [stdout] | -------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 304 | _ => panic!("No OP BUT EQUATION"), [INFO] [stdout] | ^ ...and 5 other patterns collectively make this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/lib.rs:385:18 [INFO] [stdout] | [INFO] [stdout] 385 | _ => panic!("No OP BUT EQUATION"), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/lib.rs:385:18 [INFO] [stdout] | [INFO] [stdout] 351 | Operation::Add => write!(f,"({})+({})",*equation.element1,*equation.element2), [INFO] [stdout] | -------------- matches some of the same values [INFO] [stdout] 352 | Operation::Sub => write!(f,"({})-({})",*equation.element1,*equation.element2), [INFO] [stdout] | -------------- matches some of the same values [INFO] [stdout] 353 | Operation::Mult => write!(f,"({})({})",*equation.element1,*equation.element2), //× [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] 354 | Operation::Div => write!(f,"({})/({})",*equation.element1,*equation.element2), [INFO] [stdout] | -------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 385 | _ => panic!("No OP BUT EQUATION"), [INFO] [stdout] | ^ ...and 5 other patterns collectively make this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/lib.rs:454:22 [INFO] [stdout] | [INFO] [stdout] 454 | let name = string.clone(); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling ap_calc v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::cell::RefCell` [INFO] [stdout] --> tests/parsing_tests.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | 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::collections::HashMap` [INFO] [stdout] --> tests/parsing_tests.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> tests/parsing_tests.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Sign` [INFO] [stdout] --> tests/parsing_tests.rs:4:25 [INFO] [stdout] | [INFO] [stdout] 4 | use fraction::{Fraction,Sign}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Sign` [INFO] [stdout] --> src/lib.rs:2:25 [INFO] [stdout] | [INFO] [stdout] 2 | use fraction::{Fraction,Sign,ToPrimitive}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `num::pow` [INFO] [stdout] --> src/lib.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use num::pow; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bank` [INFO] [stdout] --> tests/parsing_tests.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | let mut bank = ap_calc::new_bank('f', wanted); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_bank` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tests/parsing_tests.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | let mut bank = ap_calc::new_bank('f', wanted); [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: unused variable: `f_of_5` [INFO] [stdout] --> tests/parsing_tests.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | let f_of_5 = bank.get(&'f').unwrap().evaluate(&bank, Fraction::from(5)); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_f_of_5` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tests/parsing_tests.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | let mut bank = ap_calc::new_bank('f', "2(2-30)2"); [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] --> tests/parsing_tests.rs:61:27 [INFO] [stdout] | [INFO] [stdout] 61 | fn test_exponents() { let mut bank = ap_calc::new_bank('f',"x^2"); [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] --> tests/parsing_tests.rs:139:13 [INFO] [stdout] | [INFO] [stdout] 139 | let mut bank = ap_calc::new_bank('f',"x''"); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/derivative.rs:48:13 [INFO] [stdout] | [INFO] [stdout] 48 | _ => panic!("Operation not covered by ddx in match expression"), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/derivative.rs:48:13 [INFO] [stdout] | [INFO] [stdout] 14 | Operation::Add => [INFO] [stdout] | -------------- matches some of the same values [INFO] [stdout] 15 | format!("({fp})+({gp})"), [INFO] [stdout] 16 | Operation::Sub => [INFO] [stdout] | -------------- matches some of the same values [INFO] [stdout] 17 | format!("({fp})-({gp})"), [INFO] [stdout] 18 | Operation::Mult => [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] 19 | format!("(({g})({fp}))+(({f})({gp}))"), [INFO] [stdout] 20 | Operation::Div => [INFO] [stdout] | -------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 48 | _ => panic!("Operation not covered by ddx in match expression"), [INFO] [stdout] | ^ ...and 5 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/derivative.rs:84:9 [INFO] [stdout] | [INFO] [stdout] 84 | _ => panic!("its in the match of the eval_deriv") [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/derivative.rs:84:9 [INFO] [stdout] | [INFO] [stdout] 73 | Expression::Constant(_c) => Expression::from("0"), [INFO] [stdout] | ------------------------ matches some of the same values [INFO] [stdout] 74 | Expression::Variable('x') => Expression::from("1"), [INFO] [stdout] | ------------------------- matches some of the same values [INFO] [stdout] 75 | Expression::Variable(f) => ddx(&get_expression(bank, &exp_cpy)), [INFO] [stdout] | ----------------------- matches some of the same values [INFO] [stdout] 76 | Expression::Equa(e) => { [INFO] [stdout] | ------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 84 | _ => panic!("its in the match of the eval_deriv") [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/derivative.rs:75:30 [INFO] [stdout] | [INFO] [stdout] 75 | Expression::Variable(f) => ddx(&get_expression(bank, &exp_cpy)), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/lib.rs:209:17 [INFO] [stdout] | [INFO] [stdout] 209 | let x = &string[..last_implied]; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/lib.rs:210:17 [INFO] [stdout] | [INFO] [stdout] 210 | let y = &string[last_implied..]; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `error` [INFO] [stdout] --> src/lib.rs:260:20 [INFO] [stdout] | [INFO] [stdout] 260 | Err(error) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/lib.rs:304:17 [INFO] [stdout] | [INFO] [stdout] 304 | _ => panic!("No OP BUT EQUATION"), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/lib.rs:304:17 [INFO] [stdout] | [INFO] [stdout] 270 | Operation::Add => [INFO] [stdout] | -------------- matches some of the same values [INFO] [stdout] 271 | equation.element1.evaluate(bank, x) + equation.element2.evaluate(bank, x), [INFO] [stdout] 272 | Operation::Sub => [INFO] [stdout] | -------------- matches some of the same values [INFO] [stdout] 273 | equation.element1.evaluate(bank, x) - equation.element2.evaluate(bank, x), [INFO] [stdout] 274 | Operation::Mult => [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] 275 | equation.element1.evaluate(bank, x) * equation.element2.evaluate(bank, x), [INFO] [stdout] 276 | Operation::Div => [INFO] [stdout] | -------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 304 | _ => panic!("No OP BUT EQUATION"), [INFO] [stdout] | ^ ...and 5 other patterns collectively make this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/lib.rs:385:18 [INFO] [stdout] | [INFO] [stdout] 385 | _ => panic!("No OP BUT EQUATION"), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/lib.rs:385:18 [INFO] [stdout] | [INFO] [stdout] 351 | Operation::Add => write!(f,"({})+({})",*equation.element1,*equation.element2), [INFO] [stdout] | -------------- matches some of the same values [INFO] [stdout] 352 | Operation::Sub => write!(f,"({})-({})",*equation.element1,*equation.element2), [INFO] [stdout] | -------------- matches some of the same values [INFO] [stdout] 353 | Operation::Mult => write!(f,"({})({})",*equation.element1,*equation.element2), //× [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] 354 | Operation::Div => write!(f,"({})/({})",*equation.element1,*equation.element2), [INFO] [stdout] | -------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 385 | _ => panic!("No OP BUT EQUATION"), [INFO] [stdout] | ^ ...and 5 other patterns collectively make this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/lib.rs:454:22 [INFO] [stdout] | [INFO] [stdout] 454 | let name = string.clone(); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.18s [INFO] running `Command { std: "docker" "inspect" "da0753aa68742276990ed9f7734c6e2d9710da4599c9e1ea70fb58013bd06f9d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "da0753aa68742276990ed9f7734c6e2d9710da4599c9e1ea70fb58013bd06f9d", kill_on_drop: false }` [INFO] [stdout] da0753aa68742276990ed9f7734c6e2d9710da4599c9e1ea70fb58013bd06f9d