[INFO] cloning repository https://github.com/Qvist30/AocRust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Qvist30/AocRust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FQvist30%2FAocRust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FQvist30%2FAocRust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1af858300691dc21cf4db1a03d507f68a44a8d9d [INFO] checking Qvist30/AocRust against master#385fa9d845dd326c6bbfd58c22244215e431948a for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FQvist30%2FAocRust" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Qvist30/AocRust on toolchain 385fa9d845dd326c6bbfd58c22244215e431948a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Qvist30/AocRust [INFO] finished tweaking git repo https://github.com/Qvist30/AocRust [INFO] tweaked toml for git repo https://github.com/Qvist30/AocRust written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/Qvist30/AocRust 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" "+385fa9d845dd326c6bbfd58c22244215e431948a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded math v0.0.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 06dcd8d8034bfa0e85f8b74495189c3e0e9ce107fb2690ff324371cc8205a60a [INFO] running `Command { std: "docker" "start" "-a" "06dcd8d8034bfa0e85f8b74495189c3e0e9ce107fb2690ff324371cc8205a60a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "06dcd8d8034bfa0e85f8b74495189c3e0e9ce107fb2690ff324371cc8205a60a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "06dcd8d8034bfa0e85f8b74495189c3e0e9ce107fb2690ff324371cc8205a60a", kill_on_drop: false }` [INFO] [stdout] 06dcd8d8034bfa0e85f8b74495189c3e0e9ce107fb2690ff324371cc8205a60a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 203b01138c90ee3546332a4525ca235b322122f19af836cf55dc5b35f10a7007 [INFO] running `Command { std: "docker" "start" "-a" "203b01138c90ee3546332a4525ca235b322122f19af836cf55dc5b35f10a7007", kill_on_drop: false }` [INFO] [stderr] Checking aho-corasick v0.7.18 [INFO] [stderr] Checking regex-syntax v0.6.26 [INFO] [stderr] Checking math v0.0.2 [INFO] [stderr] Checking regex v1.5.5 [INFO] [stderr] Checking AocRust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `BufReader` [INFO] [stdout] --> src/Day5_2019.rs:2:15 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::{BufReader, BufRead, Error, Read}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Chars`, `FromStr` [INFO] [stdout] --> src/Day5_2019.rs:3:16 [INFO] [stdout] | [INFO] [stdout] 3 | use std::str::{FromStr, Chars}; [INFO] [stdout] | ^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashSet` [INFO] [stdout] --> src/Day5_2019.rs:4:24 [INFO] [stdout] | [INFO] [stdout] 4 | use std::collections::{HashSet, HashMap}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `regex::Regex` [INFO] [stdout] --> src/Day5_2019.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use regex::Regex; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Add` [INFO] [stdout] --> src/Day5_2019.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::ops::Add; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/Day5_2019.rs:43:42 [INFO] [stdout] | [INFO] [stdout] 43 | let mut thirdParamCode:i32 = (operation_obj/10000); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 43 - let mut thirdParamCode:i32 = (operation_obj/10000); [INFO] [stdout] 43 + let mut thirdParamCode:i32 = operation_obj/10000; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BufReader` [INFO] [stdout] --> src/Day5_2019.rs:2:15 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::{BufReader, BufRead, Error, Read}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Chars`, `FromStr` [INFO] [stdout] --> src/Day5_2019.rs:3:16 [INFO] [stdout] | [INFO] [stdout] 3 | use std::str::{FromStr, Chars}; [INFO] [stdout] | ^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashSet` [INFO] [stdout] --> src/Day5_2019.rs:4:24 [INFO] [stdout] | [INFO] [stdout] 4 | use std::collections::{HashSet, HashMap}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `regex::Regex` [INFO] [stdout] --> src/Day5_2019.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use regex::Regex; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Add` [INFO] [stdout] --> src/Day5_2019.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::ops::Add; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/Day5_2019.rs:43:42 [INFO] [stdout] | [INFO] [stdout] 43 | let mut thirdParamCode:i32 = (operation_obj/10000); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 43 - let mut thirdParamCode:i32 = (operation_obj/10000); [INFO] [stdout] 43 + let mut thirdParamCode:i32 = operation_obj/10000; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day5_2019.rs:51:15 [INFO] [stdout] | [INFO] [stdout] 51 | if(prev_op == op) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 51 - if(prev_op == op) { [INFO] [stdout] 51 + if prev_op == op { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day5_2019.rs:56:16 [INFO] [stdout] | [INFO] [stdout] 56 | if (operation == 99) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 56 - if (operation == 99) { [INFO] [stdout] 56 + if operation == 99 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day5_2019.rs:51:15 [INFO] [stdout] | [INFO] [stdout] 51 | if(prev_op == op) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 51 - if(prev_op == op) { [INFO] [stdout] 51 + if prev_op == op { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day5_2019.rs:56:16 [INFO] [stdout] | [INFO] [stdout] 56 | if (operation == 99) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 56 - if (operation == 99) { [INFO] [stdout] 56 + if operation == 99 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day5_2019.rs:60:16 [INFO] [stdout] | [INFO] [stdout] 60 | if (operation == 1) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 60 - if (operation == 1) { [INFO] [stdout] 60 + if operation == 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day5_2019.rs:70:23 [INFO] [stdout] | [INFO] [stdout] 70 | } else if (operation == 2) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 70 - } else if (operation == 2) { [INFO] [stdout] 70 + } else if operation == 2 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day5_2019.rs:60:16 [INFO] [stdout] | [INFO] [stdout] 60 | if (operation == 1) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 60 - if (operation == 1) { [INFO] [stdout] 60 + if operation == 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day5_2019.rs:81:23 [INFO] [stdout] | [INFO] [stdout] 81 | } else if (operation == 3) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 81 - } else if (operation == 3) { [INFO] [stdout] 81 + } else if operation == 3 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day5_2019.rs:70:23 [INFO] [stdout] | [INFO] [stdout] 70 | } else if (operation == 2) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 70 - } else if (operation == 2) { [INFO] [stdout] 70 + } else if operation == 2 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day5_2019.rs:81:23 [INFO] [stdout] | [INFO] [stdout] 81 | } else if (operation == 3) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 81 - } else if (operation == 3) { [INFO] [stdout] 81 + } else if operation == 3 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day5_2019.rs:88:23 [INFO] [stdout] | [INFO] [stdout] 88 | } else if (operation == 4) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 88 - } else if (operation == 4) { [INFO] [stdout] 88 + } else if operation == 4 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day5_2019.rs:94:23 [INFO] [stdout] | [INFO] [stdout] 94 | } else if (operation == 5) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 94 - } else if (operation == 5) { [INFO] [stdout] 94 + } else if operation == 5 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day5_2019.rs:101:19 [INFO] [stdout] | [INFO] [stdout] 101 | if(*var1 != 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 101 - if(*var1 != 0) { [INFO] [stdout] 101 + if *var1 != 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day5_2019.rs:106:23 [INFO] [stdout] | [INFO] [stdout] 106 | } else if (operation == 6) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 106 - } else if (operation == 6) { [INFO] [stdout] 106 + } else if operation == 6 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day5_2019.rs:112:19 [INFO] [stdout] | [INFO] [stdout] 112 | if(*var1 == 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 112 - if(*var1 == 0) { [INFO] [stdout] 112 + if *var1 == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day5_2019.rs:117:23 [INFO] [stdout] | [INFO] [stdout] 117 | } else if (operation == 7) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 117 - } else if (operation == 7) { [INFO] [stdout] 117 + } else if operation == 7 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day5_2019.rs:123:19 [INFO] [stdout] | [INFO] [stdout] 123 | if(*var1 < *var2) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 123 - if(*var1 < *var2) { [INFO] [stdout] 123 + if *var1 < *var2 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day5_2019.rs:129:23 [INFO] [stdout] | [INFO] [stdout] 129 | } else if (operation == 8) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 129 - } else if (operation == 8) { [INFO] [stdout] 129 + } else if operation == 8 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day5_2019.rs:135:19 [INFO] [stdout] | [INFO] [stdout] 135 | if(*var1 == *var2) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 135 - if(*var1 == *var2) { [INFO] [stdout] 135 + if *var1 == *var2 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day5_2019.rs:141:23 [INFO] [stdout] | [INFO] [stdout] 141 | } else if ((operation == 99)) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 141 - } else if ((operation == 99)) { [INFO] [stdout] 141 + } else if (operation == 99) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day5_2019.rs:88:23 [INFO] [stdout] | [INFO] [stdout] 88 | } else if (operation == 4) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 88 - } else if (operation == 4) { [INFO] [stdout] 88 + } else if operation == 4 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day5_2019.rs:94:23 [INFO] [stdout] | [INFO] [stdout] 94 | } else if (operation == 5) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 94 - } else if (operation == 5) { [INFO] [stdout] 94 + } else if operation == 5 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day5_2019.rs:101:19 [INFO] [stdout] | [INFO] [stdout] 101 | if(*var1 != 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 101 - if(*var1 != 0) { [INFO] [stdout] 101 + if *var1 != 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day5_2019.rs:106:23 [INFO] [stdout] | [INFO] [stdout] 106 | } else if (operation == 6) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 106 - } else if (operation == 6) { [INFO] [stdout] 106 + } else if operation == 6 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day5_2019.rs:112:19 [INFO] [stdout] | [INFO] [stdout] 112 | if(*var1 == 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 112 - if(*var1 == 0) { [INFO] [stdout] 112 + if *var1 == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day5_2019.rs:117:23 [INFO] [stdout] | [INFO] [stdout] 117 | } else if (operation == 7) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 117 - } else if (operation == 7) { [INFO] [stdout] 117 + } else if operation == 7 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day5_2019.rs:123:19 [INFO] [stdout] | [INFO] [stdout] 123 | if(*var1 < *var2) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 123 - if(*var1 < *var2) { [INFO] [stdout] 123 + if *var1 < *var2 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day5_2019.rs:129:23 [INFO] [stdout] | [INFO] [stdout] 129 | } else if (operation == 8) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 129 - } else if (operation == 8) { [INFO] [stdout] 129 + } else if operation == 8 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day5_2019.rs:135:19 [INFO] [stdout] | [INFO] [stdout] 135 | if(*var1 == *var2) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 135 - if(*var1 == *var2) { [INFO] [stdout] 135 + if *var1 == *var2 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day5_2019.rs:141:23 [INFO] [stdout] | [INFO] [stdout] 141 | } else if ((operation == 99)) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 141 - } else if ((operation == 99)) { [INFO] [stdout] 141 + } else if (operation == 99) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BufRead` [INFO] [stdout] --> src/Day5_2019.rs:2:26 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::{BufReader, BufRead, Error, Read}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `found` [INFO] [stdout] --> src/Day5_2019.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | let mut found:bool = false; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_found` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `noun` [INFO] [stdout] --> src/Day5_2019.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 15 | let mut noun = 0; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_noun` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `verb` [INFO] [stdout] --> src/Day5_2019.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | let mut verb = 0; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_verb` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `thirdParamCode` [INFO] [stdout] --> src/Day5_2019.rs:43:21 [INFO] [stdout] | [INFO] [stdout] 43 | let mut thirdParamCode:i32 = (operation_obj/10000); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_thirdParamCode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/Day5_2019.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | let mut found:bool = false; [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/Day5_2019.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | let mut noun = 0; [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/Day5_2019.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | let mut verb = 0; [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/Day5_2019.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | let mut input_id:i32 = 5; [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/Day5_2019.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let mut vars: Vec<&str> = line.split(",").collect(); [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/Day5_2019.rs:28:21 [INFO] [stdout] | [INFO] [stdout] 28 | let mut i32Version = vars[var].parse().expect("asdf"); [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/Day5_2019.rs:38:17 [INFO] [stdout] | [INFO] [stdout] 38 | let mut operation_obj = i32s.get(&(op as i32)).expect(""); [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/Day5_2019.rs:40:17 [INFO] [stdout] | [INFO] [stdout] 40 | let mut operation = operation_obj % 100; [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/Day5_2019.rs:41:17 [INFO] [stdout] | [INFO] [stdout] 41 | let mut firstParamCode:i32 = (operation_obj/100) % 10; [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/Day5_2019.rs:42:17 [INFO] [stdout] | [INFO] [stdout] 42 | let mut secondParamCode:i32 = (operation_obj/1000) % 10; [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/Day5_2019.rs:43:17 [INFO] [stdout] | [INFO] [stdout] 43 | let mut thirdParamCode:i32 = (operation_obj/10000); [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/Day5_2019.rs:61:21 [INFO] [stdout] | [INFO] [stdout] 61 | let mut replace = i32s.get(&((op + 3) as i32)).expect(""); [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/Day5_2019.rs:71:21 [INFO] [stdout] | [INFO] [stdout] 71 | let mut replace = i32s.get(&((op + 3) as i32)).expect(""); [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/Day5_2019.rs:82:21 [INFO] [stdout] | [INFO] [stdout] 82 | let mut replace = i32s.get(&((op + 1) as i32)).expect(""); [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/Day5_2019.rs:122:21 [INFO] [stdout] | [INFO] [stdout] 122 | let mut replace = i32s.get(&((op + 3) as i32)).expect(""); [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/Day5_2019.rs:134:21 [INFO] [stdout] | [INFO] [stdout] 134 | let mut replace = i32s.get(&((op + 3) as i32)).expect(""); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Day5_2019` should have a snake case name [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | mod Day5_2019; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `day5_2019` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BufRead` [INFO] [stdout] --> src/Day5_2019.rs:2:26 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::{BufReader, BufRead, Error, Read}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | Day5_2019::main(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 3 | let _ = Day5_2019::main(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `found` [INFO] [stdout] --> src/Day5_2019.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | let mut found:bool = false; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_found` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `noun` [INFO] [stdout] --> src/Day5_2019.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 15 | let mut noun = 0; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_noun` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `i32Version` should have a snake case name [INFO] [stdout] --> src/Day5_2019.rs:28:25 [INFO] [stdout] | [INFO] [stdout] 28 | let mut i32Version = vars[var].parse().expect("asdf"); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `i32_version` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `verb` [INFO] [stdout] --> src/Day5_2019.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | let mut verb = 0; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_verb` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `firstParamCode` should have a snake case name [INFO] [stdout] --> src/Day5_2019.rs:41:21 [INFO] [stdout] | [INFO] [stdout] 41 | let mut firstParamCode:i32 = (operation_obj/100) % 10; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `first_param_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `secondParamCode` should have a snake case name [INFO] [stdout] --> src/Day5_2019.rs:42:21 [INFO] [stdout] | [INFO] [stdout] 42 | let mut secondParamCode:i32 = (operation_obj/1000) % 10; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `second_param_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `thirdParamCode` should have a snake case name [INFO] [stdout] --> src/Day5_2019.rs:43:21 [INFO] [stdout] | [INFO] [stdout] 43 | let mut thirdParamCode:i32 = (operation_obj/10000); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `third_param_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `thirdParamCode` [INFO] [stdout] --> src/Day5_2019.rs:43:21 [INFO] [stdout] | [INFO] [stdout] 43 | let mut thirdParamCode:i32 = (operation_obj/10000); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_thirdParamCode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/Day5_2019.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | let mut found:bool = false; [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/Day5_2019.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | let mut noun = 0; [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/Day5_2019.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | let mut verb = 0; [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/Day5_2019.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | let mut input_id:i32 = 5; [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/Day5_2019.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let mut vars: Vec<&str> = line.split(",").collect(); [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/Day5_2019.rs:28:21 [INFO] [stdout] | [INFO] [stdout] 28 | let mut i32Version = vars[var].parse().expect("asdf"); [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/Day5_2019.rs:38:17 [INFO] [stdout] | [INFO] [stdout] 38 | let mut operation_obj = i32s.get(&(op as i32)).expect(""); [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/Day5_2019.rs:40:17 [INFO] [stdout] | [INFO] [stdout] 40 | let mut operation = operation_obj % 100; [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/Day5_2019.rs:41:17 [INFO] [stdout] | [INFO] [stdout] 41 | let mut firstParamCode:i32 = (operation_obj/100) % 10; [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/Day5_2019.rs:42:17 [INFO] [stdout] | [INFO] [stdout] 42 | let mut secondParamCode:i32 = (operation_obj/1000) % 10; [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/Day5_2019.rs:43:17 [INFO] [stdout] | [INFO] [stdout] 43 | let mut thirdParamCode:i32 = (operation_obj/10000); [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/Day5_2019.rs:61:21 [INFO] [stdout] | [INFO] [stdout] 61 | let mut replace = i32s.get(&((op + 3) as i32)).expect(""); [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/Day5_2019.rs:71:21 [INFO] [stdout] | [INFO] [stdout] 71 | let mut replace = i32s.get(&((op + 3) as i32)).expect(""); [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/Day5_2019.rs:82:21 [INFO] [stdout] | [INFO] [stdout] 82 | let mut replace = i32s.get(&((op + 1) as i32)).expect(""); [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/Day5_2019.rs:122:21 [INFO] [stdout] | [INFO] [stdout] 122 | let mut replace = i32s.get(&((op + 3) as i32)).expect(""); [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/Day5_2019.rs:134:21 [INFO] [stdout] | [INFO] [stdout] 134 | let mut replace = i32s.get(&((op + 3) as i32)).expect(""); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 48 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Day5_2019` should have a snake case name [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | mod Day5_2019; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `day5_2019` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | Day5_2019::main(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 3 | let _ = Day5_2019::main(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `i32Version` should have a snake case name [INFO] [stdout] --> src/Day5_2019.rs:28:25 [INFO] [stdout] | [INFO] [stdout] 28 | let mut i32Version = vars[var].parse().expect("asdf"); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `i32_version` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `firstParamCode` should have a snake case name [INFO] [stdout] --> src/Day5_2019.rs:41:21 [INFO] [stdout] | [INFO] [stdout] 41 | let mut firstParamCode:i32 = (operation_obj/100) % 10; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `first_param_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `secondParamCode` should have a snake case name [INFO] [stdout] --> src/Day5_2019.rs:42:21 [INFO] [stdout] | [INFO] [stdout] 42 | let mut secondParamCode:i32 = (operation_obj/1000) % 10; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `second_param_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `thirdParamCode` should have a snake case name [INFO] [stdout] --> src/Day5_2019.rs:43:21 [INFO] [stdout] | [INFO] [stdout] 43 | let mut thirdParamCode:i32 = (operation_obj/10000); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `third_param_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 48 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.03s [INFO] running `Command { std: "docker" "inspect" "203b01138c90ee3546332a4525ca235b322122f19af836cf55dc5b35f10a7007", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "203b01138c90ee3546332a4525ca235b322122f19af836cf55dc5b35f10a7007", kill_on_drop: false }` [INFO] [stdout] 203b01138c90ee3546332a4525ca235b322122f19af836cf55dc5b35f10a7007 [INFO] checking Qvist30/AocRust against try#645bb72776a6a56a1a8f52631a44bd082b2ba509 for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FQvist30%2FAocRust" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Qvist30/AocRust on toolchain 645bb72776a6a56a1a8f52631a44bd082b2ba509 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Qvist30/AocRust [INFO] finished tweaking git repo https://github.com/Qvist30/AocRust [INFO] tweaked toml for git repo https://github.com/Qvist30/AocRust written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/Qvist30/AocRust 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" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f1c1607e39970c98d3fc7aed57d3876c4770f709d00035073c60e164695b6f08 [INFO] running `Command { std: "docker" "start" "-a" "f1c1607e39970c98d3fc7aed57d3876c4770f709d00035073c60e164695b6f08", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f1c1607e39970c98d3fc7aed57d3876c4770f709d00035073c60e164695b6f08", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f1c1607e39970c98d3fc7aed57d3876c4770f709d00035073c60e164695b6f08", kill_on_drop: false }` [INFO] [stdout] f1c1607e39970c98d3fc7aed57d3876c4770f709d00035073c60e164695b6f08 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 43254fd021fc6c2d1ce102d5d73b3d1b22e92156f0fac3ca4d48af4e27273d22 [INFO] running `Command { std: "docker" "start" "-a" "43254fd021fc6c2d1ce102d5d73b3d1b22e92156f0fac3ca4d48af4e27273d22", kill_on_drop: false }` [INFO] [stderr] Checking regex-syntax v0.6.26 [INFO] [stderr] Checking math v0.0.2 [INFO] [stderr] Checking aho-corasick v0.7.18 [INFO] [stderr] Checking regex v1.5.5 [INFO] [stderr] Checking AocRust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `BufReader` [INFO] [stdout] --> src/Day5_2019.rs:2:15 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::{BufReader, BufRead, Error, Read}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Chars`, `FromStr` [INFO] [stdout] --> src/Day5_2019.rs:3:16 [INFO] [stdout] | [INFO] [stdout] 3 | use std::str::{FromStr, Chars}; [INFO] [stdout] | ^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashSet` [INFO] [stdout] --> src/Day5_2019.rs:4:24 [INFO] [stdout] | [INFO] [stdout] 4 | use std::collections::{HashSet, HashMap}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `regex::Regex` [INFO] [stdout] --> src/Day5_2019.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use regex::Regex; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Add` [INFO] [stdout] --> src/Day5_2019.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::ops::Add; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BufReader` [INFO] [stdout] --> src/Day5_2019.rs:2:15 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::{BufReader, BufRead, Error, Read}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Chars`, `FromStr` [INFO] [stdout] --> src/Day5_2019.rs:3:16 [INFO] [stdout] | [INFO] [stdout] 3 | use std::str::{FromStr, Chars}; [INFO] [stdout] | ^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashSet` [INFO] [stdout] --> src/Day5_2019.rs:4:24 [INFO] [stdout] | [INFO] [stdout] 4 | use std::collections::{HashSet, HashMap}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `regex::Regex` [INFO] [stdout] --> src/Day5_2019.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use regex::Regex; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Add` [INFO] [stdout] --> src/Day5_2019.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::ops::Add; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/Day5_2019.rs:43:42 [INFO] [stdout] | [INFO] [stdout] 43 | let mut thirdParamCode:i32 = (operation_obj/10000); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 43 - let mut thirdParamCode:i32 = (operation_obj/10000); [INFO] [stdout] 43 + let mut thirdParamCode:i32 = operation_obj/10000; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day5_2019.rs:51:15 [INFO] [stdout] | [INFO] [stdout] 51 | if(prev_op == op) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 51 - if(prev_op == op) { [INFO] [stdout] 51 + if prev_op == op { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day5_2019.rs:56:16 [INFO] [stdout] | [INFO] [stdout] 56 | if (operation == 99) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 56 - if (operation == 99) { [INFO] [stdout] 56 + if operation == 99 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day5_2019.rs:60:16 [INFO] [stdout] | [INFO] [stdout] 60 | if (operation == 1) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 60 - if (operation == 1) { [INFO] [stdout] 60 + if operation == 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day5_2019.rs:70:23 [INFO] [stdout] | [INFO] [stdout] 70 | } else if (operation == 2) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 70 - } else if (operation == 2) { [INFO] [stdout] 70 + } else if operation == 2 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day5_2019.rs:81:23 [INFO] [stdout] | [INFO] [stdout] 81 | } else if (operation == 3) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 81 - } else if (operation == 3) { [INFO] [stdout] 81 + } else if operation == 3 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day5_2019.rs:88:23 [INFO] [stdout] | [INFO] [stdout] 88 | } else if (operation == 4) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 88 - } else if (operation == 4) { [INFO] [stdout] 88 + } else if operation == 4 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day5_2019.rs:94:23 [INFO] [stdout] | [INFO] [stdout] 94 | } else if (operation == 5) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 94 - } else if (operation == 5) { [INFO] [stdout] 94 + } else if operation == 5 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day5_2019.rs:101:19 [INFO] [stdout] | [INFO] [stdout] 101 | if(*var1 != 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 101 - if(*var1 != 0) { [INFO] [stdout] 101 + if *var1 != 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day5_2019.rs:106:23 [INFO] [stdout] | [INFO] [stdout] 106 | } else if (operation == 6) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 106 - } else if (operation == 6) { [INFO] [stdout] 106 + } else if operation == 6 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day5_2019.rs:112:19 [INFO] [stdout] | [INFO] [stdout] 112 | if(*var1 == 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 112 - if(*var1 == 0) { [INFO] [stdout] 112 + if *var1 == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day5_2019.rs:117:23 [INFO] [stdout] | [INFO] [stdout] 117 | } else if (operation == 7) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 117 - } else if (operation == 7) { [INFO] [stdout] 117 + } else if operation == 7 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day5_2019.rs:123:19 [INFO] [stdout] | [INFO] [stdout] 123 | if(*var1 < *var2) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 123 - if(*var1 < *var2) { [INFO] [stdout] 123 + if *var1 < *var2 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day5_2019.rs:129:23 [INFO] [stdout] | [INFO] [stdout] 129 | } else if (operation == 8) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 129 - } else if (operation == 8) { [INFO] [stdout] 129 + } else if operation == 8 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day5_2019.rs:135:19 [INFO] [stdout] | [INFO] [stdout] 135 | if(*var1 == *var2) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 135 - if(*var1 == *var2) { [INFO] [stdout] 135 + if *var1 == *var2 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day5_2019.rs:141:23 [INFO] [stdout] | [INFO] [stdout] 141 | } else if ((operation == 99)) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 141 - } else if ((operation == 99)) { [INFO] [stdout] 141 + } else if (operation == 99) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/Day5_2019.rs:43:42 [INFO] [stdout] | [INFO] [stdout] 43 | let mut thirdParamCode:i32 = (operation_obj/10000); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 43 - let mut thirdParamCode:i32 = (operation_obj/10000); [INFO] [stdout] 43 + let mut thirdParamCode:i32 = operation_obj/10000; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day5_2019.rs:51:15 [INFO] [stdout] | [INFO] [stdout] 51 | if(prev_op == op) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 51 - if(prev_op == op) { [INFO] [stdout] 51 + if prev_op == op { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day5_2019.rs:56:16 [INFO] [stdout] | [INFO] [stdout] 56 | if (operation == 99) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 56 - if (operation == 99) { [INFO] [stdout] 56 + if operation == 99 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day5_2019.rs:60:16 [INFO] [stdout] | [INFO] [stdout] 60 | if (operation == 1) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 60 - if (operation == 1) { [INFO] [stdout] 60 + if operation == 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day5_2019.rs:70:23 [INFO] [stdout] | [INFO] [stdout] 70 | } else if (operation == 2) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 70 - } else if (operation == 2) { [INFO] [stdout] 70 + } else if operation == 2 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day5_2019.rs:81:23 [INFO] [stdout] | [INFO] [stdout] 81 | } else if (operation == 3) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 81 - } else if (operation == 3) { [INFO] [stdout] 81 + } else if operation == 3 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day5_2019.rs:88:23 [INFO] [stdout] | [INFO] [stdout] 88 | } else if (operation == 4) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 88 - } else if (operation == 4) { [INFO] [stdout] 88 + } else if operation == 4 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day5_2019.rs:94:23 [INFO] [stdout] | [INFO] [stdout] 94 | } else if (operation == 5) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 94 - } else if (operation == 5) { [INFO] [stdout] 94 + } else if operation == 5 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day5_2019.rs:101:19 [INFO] [stdout] | [INFO] [stdout] 101 | if(*var1 != 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 101 - if(*var1 != 0) { [INFO] [stdout] 101 + if *var1 != 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day5_2019.rs:106:23 [INFO] [stdout] | [INFO] [stdout] 106 | } else if (operation == 6) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 106 - } else if (operation == 6) { [INFO] [stdout] 106 + } else if operation == 6 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day5_2019.rs:112:19 [INFO] [stdout] | [INFO] [stdout] 112 | if(*var1 == 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 112 - if(*var1 == 0) { [INFO] [stdout] 112 + if *var1 == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day5_2019.rs:117:23 [INFO] [stdout] | [INFO] [stdout] 117 | } else if (operation == 7) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 117 - } else if (operation == 7) { [INFO] [stdout] 117 + } else if operation == 7 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day5_2019.rs:123:19 [INFO] [stdout] | [INFO] [stdout] 123 | if(*var1 < *var2) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 123 - if(*var1 < *var2) { [INFO] [stdout] 123 + if *var1 < *var2 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day5_2019.rs:129:23 [INFO] [stdout] | [INFO] [stdout] 129 | } else if (operation == 8) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 129 - } else if (operation == 8) { [INFO] [stdout] 129 + } else if operation == 8 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day5_2019.rs:135:19 [INFO] [stdout] | [INFO] [stdout] 135 | if(*var1 == *var2) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 135 - if(*var1 == *var2) { [INFO] [stdout] 135 + if *var1 == *var2 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day5_2019.rs:141:23 [INFO] [stdout] | [INFO] [stdout] 141 | } else if ((operation == 99)) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 141 - } else if ((operation == 99)) { [INFO] [stdout] 141 + } else if (operation == 99) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BufRead` [INFO] [stdout] --> src/Day5_2019.rs:2:26 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::{BufReader, BufRead, Error, Read}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `found` [INFO] [stdout] --> src/Day5_2019.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | let mut found:bool = false; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_found` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `noun` [INFO] [stdout] --> src/Day5_2019.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 15 | let mut noun = 0; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_noun` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `verb` [INFO] [stdout] --> src/Day5_2019.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | let mut verb = 0; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_verb` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `thirdParamCode` [INFO] [stdout] --> src/Day5_2019.rs:43:21 [INFO] [stdout] | [INFO] [stdout] 43 | let mut thirdParamCode:i32 = (operation_obj/10000); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_thirdParamCode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/Day5_2019.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | let mut found:bool = false; [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/Day5_2019.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | let mut noun = 0; [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/Day5_2019.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | let mut verb = 0; [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/Day5_2019.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | let mut input_id:i32 = 5; [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/Day5_2019.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let mut vars: Vec<&str> = line.split(",").collect(); [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/Day5_2019.rs:28:21 [INFO] [stdout] | [INFO] [stdout] 28 | let mut i32Version = vars[var].parse().expect("asdf"); [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/Day5_2019.rs:38:17 [INFO] [stdout] | [INFO] [stdout] 38 | let mut operation_obj = i32s.get(&(op as i32)).expect(""); [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/Day5_2019.rs:40:17 [INFO] [stdout] | [INFO] [stdout] 40 | let mut operation = operation_obj % 100; [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/Day5_2019.rs:41:17 [INFO] [stdout] | [INFO] [stdout] 41 | let mut firstParamCode:i32 = (operation_obj/100) % 10; [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/Day5_2019.rs:42:17 [INFO] [stdout] | [INFO] [stdout] 42 | let mut secondParamCode:i32 = (operation_obj/1000) % 10; [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/Day5_2019.rs:43:17 [INFO] [stdout] | [INFO] [stdout] 43 | let mut thirdParamCode:i32 = (operation_obj/10000); [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/Day5_2019.rs:61:21 [INFO] [stdout] | [INFO] [stdout] 61 | let mut replace = i32s.get(&((op + 3) as i32)).expect(""); [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/Day5_2019.rs:71:21 [INFO] [stdout] | [INFO] [stdout] 71 | let mut replace = i32s.get(&((op + 3) as i32)).expect(""); [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/Day5_2019.rs:82:21 [INFO] [stdout] | [INFO] [stdout] 82 | let mut replace = i32s.get(&((op + 1) as i32)).expect(""); [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/Day5_2019.rs:122:21 [INFO] [stdout] | [INFO] [stdout] 122 | let mut replace = i32s.get(&((op + 3) as i32)).expect(""); [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/Day5_2019.rs:134:21 [INFO] [stdout] | [INFO] [stdout] 134 | let mut replace = i32s.get(&((op + 3) as i32)).expect(""); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Day5_2019` should have a snake case name [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | mod Day5_2019; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `day5_2019` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | Day5_2019::main(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 3 | let _ = Day5_2019::main(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `i32Version` should have a snake case name [INFO] [stdout] --> src/Day5_2019.rs:28:25 [INFO] [stdout] | [INFO] [stdout] 28 | let mut i32Version = vars[var].parse().expect("asdf"); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `i32_version` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `firstParamCode` should have a snake case name [INFO] [stdout] --> src/Day5_2019.rs:41:21 [INFO] [stdout] | [INFO] [stdout] 41 | let mut firstParamCode:i32 = (operation_obj/100) % 10; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `first_param_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `secondParamCode` should have a snake case name [INFO] [stdout] --> src/Day5_2019.rs:42:21 [INFO] [stdout] | [INFO] [stdout] 42 | let mut secondParamCode:i32 = (operation_obj/1000) % 10; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `second_param_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `thirdParamCode` should have a snake case name [INFO] [stdout] --> src/Day5_2019.rs:43:21 [INFO] [stdout] | [INFO] [stdout] 43 | let mut thirdParamCode:i32 = (operation_obj/10000); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `third_param_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 48 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BufRead` [INFO] [stdout] --> src/Day5_2019.rs:2:26 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::{BufReader, BufRead, Error, Read}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `found` [INFO] [stdout] --> src/Day5_2019.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | let mut found:bool = false; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_found` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `noun` [INFO] [stdout] --> src/Day5_2019.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 15 | let mut noun = 0; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_noun` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `verb` [INFO] [stdout] --> src/Day5_2019.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | let mut verb = 0; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_verb` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `thirdParamCode` [INFO] [stdout] --> src/Day5_2019.rs:43:21 [INFO] [stdout] | [INFO] [stdout] 43 | let mut thirdParamCode:i32 = (operation_obj/10000); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_thirdParamCode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/Day5_2019.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | let mut found:bool = false; [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/Day5_2019.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | let mut noun = 0; [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/Day5_2019.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | let mut verb = 0; [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/Day5_2019.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | let mut input_id:i32 = 5; [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/Day5_2019.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let mut vars: Vec<&str> = line.split(",").collect(); [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/Day5_2019.rs:28:21 [INFO] [stdout] | [INFO] [stdout] 28 | let mut i32Version = vars[var].parse().expect("asdf"); [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/Day5_2019.rs:38:17 [INFO] [stdout] | [INFO] [stdout] 38 | let mut operation_obj = i32s.get(&(op as i32)).expect(""); [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/Day5_2019.rs:40:17 [INFO] [stdout] | [INFO] [stdout] 40 | let mut operation = operation_obj % 100; [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/Day5_2019.rs:41:17 [INFO] [stdout] | [INFO] [stdout] 41 | let mut firstParamCode:i32 = (operation_obj/100) % 10; [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/Day5_2019.rs:42:17 [INFO] [stdout] | [INFO] [stdout] 42 | let mut secondParamCode:i32 = (operation_obj/1000) % 10; [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/Day5_2019.rs:43:17 [INFO] [stdout] | [INFO] [stdout] 43 | let mut thirdParamCode:i32 = (operation_obj/10000); [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/Day5_2019.rs:61:21 [INFO] [stdout] | [INFO] [stdout] 61 | let mut replace = i32s.get(&((op + 3) as i32)).expect(""); [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/Day5_2019.rs:71:21 [INFO] [stdout] | [INFO] [stdout] 71 | let mut replace = i32s.get(&((op + 3) as i32)).expect(""); [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/Day5_2019.rs:82:21 [INFO] [stdout] | [INFO] [stdout] 82 | let mut replace = i32s.get(&((op + 1) as i32)).expect(""); [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/Day5_2019.rs:122:21 [INFO] [stdout] | [INFO] [stdout] 122 | let mut replace = i32s.get(&((op + 3) as i32)).expect(""); [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/Day5_2019.rs:134:21 [INFO] [stdout] | [INFO] [stdout] 134 | let mut replace = i32s.get(&((op + 3) as i32)).expect(""); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Day5_2019` should have a snake case name [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | mod Day5_2019; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `day5_2019` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | Day5_2019::main(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 3 | let _ = Day5_2019::main(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `i32Version` should have a snake case name [INFO] [stdout] --> src/Day5_2019.rs:28:25 [INFO] [stdout] | [INFO] [stdout] 28 | let mut i32Version = vars[var].parse().expect("asdf"); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `i32_version` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `firstParamCode` should have a snake case name [INFO] [stdout] --> src/Day5_2019.rs:41:21 [INFO] [stdout] | [INFO] [stdout] 41 | let mut firstParamCode:i32 = (operation_obj/100) % 10; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `first_param_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `secondParamCode` should have a snake case name [INFO] [stdout] --> src/Day5_2019.rs:42:21 [INFO] [stdout] | [INFO] [stdout] 42 | let mut secondParamCode:i32 = (operation_obj/1000) % 10; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `second_param_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `thirdParamCode` should have a snake case name [INFO] [stdout] --> src/Day5_2019.rs:43:21 [INFO] [stdout] | [INFO] [stdout] 43 | let mut thirdParamCode:i32 = (operation_obj/10000); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `third_param_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 48 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.05s [INFO] running `Command { std: "docker" "inspect" "43254fd021fc6c2d1ce102d5d73b3d1b22e92156f0fac3ca4d48af4e27273d22", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "43254fd021fc6c2d1ce102d5d73b3d1b22e92156f0fac3ca4d48af4e27273d22", kill_on_drop: false }` [INFO] [stdout] 43254fd021fc6c2d1ce102d5d73b3d1b22e92156f0fac3ca4d48af4e27273d22