[INFO] fetching crate ap_calc 0.1.1... [INFO] checking ap_calc-0.1.1 against master#350d0ef0ec0493e6d21cfb265cb8211a0e74d766 for pr-145342-1 [INFO] extracting crate ap_calc 0.1.1 into /workspace/builds/worker-4-tc1/source [INFO] started tweaking crates.io crate ap_calc 0.1.1 [INFO] finished tweaking crates.io crate ap_calc 0.1.1 [INFO] tweaked toml for crates.io crate ap_calc 0.1.1 written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate ap_calc 0.1.1 on toolchain 350d0ef0ec0493e6d21cfb265cb8211a0e74d766 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 10 packages to latest compatible versions [INFO] [stderr] Adding fraction v0.12.2 (available: v0.15.3) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded fraction v0.12.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 21db088b9f6ba7d2d53dc0ee584b6dd78bf8e09e4980bcc8b4a514f03459aa11 [INFO] running `Command { std: "docker" "start" "-a" "21db088b9f6ba7d2d53dc0ee584b6dd78bf8e09e4980bcc8b4a514f03459aa11", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "21db088b9f6ba7d2d53dc0ee584b6dd78bf8e09e4980bcc8b4a514f03459aa11", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "21db088b9f6ba7d2d53dc0ee584b6dd78bf8e09e4980bcc8b4a514f03459aa11", kill_on_drop: false }` [INFO] [stdout] 21db088b9f6ba7d2d53dc0ee584b6dd78bf8e09e4980bcc8b4a514f03459aa11 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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" "-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e7a2d36861cfb0330280d231cd1470c38894bd1355e666f964cfdd6df78b8dfa [INFO] running `Command { std: "docker" "start" "-a" "e7a2d36861cfb0330280d231cd1470c38894bd1355e666f964cfdd6df78b8dfa", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.5.0 [INFO] [stderr] Checking lazy_static v1.5.0 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking num-complex v0.4.6 [INFO] [stderr] Checking num-bigint v0.4.6 [INFO] [stderr] Checking num-iter v0.1.45 [INFO] [stderr] Checking num-rational v0.4.2 [INFO] [stderr] Checking num v0.4.3 [INFO] [stderr] Checking fraction v0.12.2 [INFO] [stderr] Checking ap_calc v0.1.1 (/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] [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 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 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 `dev` profile [unoptimized + debuginfo] target(s) in 5.22s [INFO] running `Command { std: "docker" "inspect" "e7a2d36861cfb0330280d231cd1470c38894bd1355e666f964cfdd6df78b8dfa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e7a2d36861cfb0330280d231cd1470c38894bd1355e666f964cfdd6df78b8dfa", kill_on_drop: false }` [INFO] [stdout] e7a2d36861cfb0330280d231cd1470c38894bd1355e666f964cfdd6df78b8dfa