[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] building Qvist30/AocRust against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FQvist30%2FAocRust" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Qvist30/AocRust on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/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-1-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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "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-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] bd09a302ada89205c44b962e40f5b2dae1b50814f21381373f9a89908ece6bac [INFO] running `Command { std: "docker" "start" "-a" "bd09a302ada89205c44b962e40f5b2dae1b50814f21381373f9a89908ece6bac", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bd09a302ada89205c44b962e40f5b2dae1b50814f21381373f9a89908ece6bac", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bd09a302ada89205c44b962e40f5b2dae1b50814f21381373f9a89908ece6bac", kill_on_drop: false }` [INFO] [stdout] bd09a302ada89205c44b962e40f5b2dae1b50814f21381373f9a89908ece6bac [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Dtail-expr-drop-order" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9395d05890c6f6bfdb7b67057d62512e9c8bafde343c8ca5483631693db52bc6 [INFO] running `Command { std: "docker" "start" "-a" "9395d05890c6f6bfdb7b67057d62512e9c8bafde343c8ca5483631693db52bc6", kill_on_drop: false }` [INFO] [stderr] Compiling regex-syntax v0.6.26 [INFO] [stderr] Compiling math v0.0.2 [INFO] [stderr] Compiling aho-corasick v0.7.18 [INFO] [stderr] Compiling regex v1.5.5 [INFO] [stderr] Compiling 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` and `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: 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] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 6.67s [INFO] running `Command { std: "docker" "inspect" "9395d05890c6f6bfdb7b67057d62512e9c8bafde343c8ca5483631693db52bc6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9395d05890c6f6bfdb7b67057d62512e9c8bafde343c8ca5483631693db52bc6", kill_on_drop: false }` [INFO] [stdout] 9395d05890c6f6bfdb7b67057d62512e9c8bafde343c8ca5483631693db52bc6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Dtail-expr-drop-order" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9f1e5fa61f49ff57cbc13de348b03489fdd6213ed14eebff26f1687d0cc81300 [INFO] running `Command { std: "docker" "start" "-a" "9f1e5fa61f49ff57cbc13de348b03489fdd6213ed14eebff26f1687d0cc81300", kill_on_drop: false }` [INFO] [stderr] Compiling 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` and `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: 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] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.26s [INFO] running `Command { std: "docker" "inspect" "9f1e5fa61f49ff57cbc13de348b03489fdd6213ed14eebff26f1687d0cc81300", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9f1e5fa61f49ff57cbc13de348b03489fdd6213ed14eebff26f1687d0cc81300", kill_on_drop: false }` [INFO] [stdout] 9f1e5fa61f49ff57cbc13de348b03489fdd6213ed14eebff26f1687d0cc81300