[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] f5c1282c9c331d4ebabd53911e040ef670cecf1a [INFO] checking Qvist30/AocRust against master#a609fb45efad59dfd459c76e50899be9f0583b5a for pr-80579 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FQvist30%2FAocRust" "/workspace/builds/worker-6/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Qvist30/AocRust on toolchain a609fb45efad59dfd459c76e50899be9f0583b5a [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "read-manifest" "--manifest-path" "Cargo.toml", 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-6/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: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [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-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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" "rustops/crates-build-env@sha256:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a63cfc0ca0f039407c4af4039b207a59b1fb1b7adbf43ccd9fa42e57c7bf9aae [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "a63cfc0ca0f039407c4af4039b207a59b1fb1b7adbf43ccd9fa42e57c7bf9aae", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a63cfc0ca0f039407c4af4039b207a59b1fb1b7adbf43ccd9fa42e57c7bf9aae", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a63cfc0ca0f039407c4af4039b207a59b1fb1b7adbf43ccd9fa42e57c7bf9aae", kill_on_drop: false }` [INFO] [stdout] a63cfc0ca0f039407c4af4039b207a59b1fb1b7adbf43ccd9fa42e57c7bf9aae [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 7c6a523a8290af7205a6b033d57a145548c53f5b32950a044c214d10e9313db6 [INFO] running `Command { std: "docker" "start" "-a" "7c6a523a8290af7205a6b033d57a145548c53f5b32950a044c214d10e9313db6", kill_on_drop: false }` [INFO] [stderr] Compiling memchr v2.2.1 [INFO] [stderr] Checking regex-syntax v0.6.12 [INFO] [stderr] Checking math v0.0.2 [INFO] [stderr] Checking thread_local v0.3.6 [INFO] [stderr] Checking aho-corasick v0.7.6 [INFO] [stderr] Checking regex v1.3.1 [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] | ^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [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] | ^^^^^^^^^^^^^^^ help: remove these parentheses [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] | ^^^^^^^^^^^^^^^^^ help: remove these parentheses [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] | ^^^^^^^^^^^^^^^^ help: remove these parentheses [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] | ^^^^^^^^^^^^^^^^ help: remove these parentheses [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] | ^^^^^^^^^^^^^^^^ help: remove these parentheses [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] | ^^^^^^^^^^^^^^^^ help: remove these parentheses [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] | ^^^^^^^^^^^^^^^^ help: remove these parentheses [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] | ^^^^^^^^^^^^ help: remove these parentheses [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] | ^^^^^^^^^^^^^^^^ help: remove these parentheses [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] | ^^^^^^^^^^^^ help: remove these parentheses [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] | ^^^^^^^^^^^^^^^^ help: remove these parentheses [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] | ^^^^^^^^^^^^^^^ help: remove these parentheses [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] | ^^^^^^^^^^^^^^^^ help: remove these parentheses [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] | ^^^^^^^^^^^^^^^^ help: remove these parentheses [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] | ^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [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] | ^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [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] | ^^^^^^^^^^^^^^^ help: remove these parentheses [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] | ^^^^^^^^^^^^^^^^^ help: remove these parentheses [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] | ^^^^^^^^^^^^^^^^ help: remove these parentheses [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] | ^^^^^^^^^^^^^^^^ help: remove these parentheses [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] | ^^^^^^^^^^^^^^^^ help: remove these parentheses [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] | ^^^^^^^^^^^^^^^^ help: remove these parentheses [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] | ^^^^^^^^^^^^^^^^ help: remove these parentheses [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] | ^^^^^^^^^^^^ help: remove these parentheses [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] | ^^^^^^^^^^^^^^^^ help: remove these parentheses [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] | ^^^^^^^^^^^^ help: remove these parentheses [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] | ^^^^^^^^^^^^^^^^ help: remove these parentheses [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] | ^^^^^^^^^^^^^^^ help: remove these parentheses [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] | ^^^^^^^^^^^^^^^^ help: remove these parentheses [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] | ^^^^^^^^^^^^^^^^ help: remove these parentheses [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] | ^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [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:9 [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:9 [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:9 [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:17 [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: cannot borrow `i32s` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/Day5_2019.rs:68:17 [INFO] [stdout] | [INFO] [stdout] 64 | var1 = if firstParamCode == 0 {i32s.get(&var1).expect("") } else {var1}; [INFO] [stdout] | ---- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 68 | i32s.insert(*replace, var1 + var2); [INFO] [stdout] | ^^^^ ---- immutable borrow later used here [INFO] [stdout] | | [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mutable_borrow_reservation_conflict)]` on by default [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot borrow `i32s` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/Day5_2019.rs:124:21 [INFO] [stdout] | [INFO] [stdout] 122 | let mut replace = i32s.get(&((op + 3) as i32)).expect(""); [INFO] [stdout] | ---- immutable borrow occurs here [INFO] [stdout] 123 | if(*var1 < *var2) { [INFO] [stdout] 124 | i32s.insert(*replace, 1); [INFO] [stdout] | ^^^^ -------- immutable borrow later used here [INFO] [stdout] | | [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot borrow `i32s` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/Day5_2019.rs:79:17 [INFO] [stdout] | [INFO] [stdout] 75 | var1 = if firstParamCode == 0 {i32s.get(&var1).expect("") } else {var1}; [INFO] [stdout] | ---- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 79 | i32s.insert(*replace, var1 * var2); [INFO] [stdout] | ^^^^ ---- immutable borrow later used here [INFO] [stdout] | | [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot borrow `i32s` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/Day5_2019.rs:126:22 [INFO] [stdout] | [INFO] [stdout] 122 | let mut replace = i32s.get(&((op + 3) as i32)).expect(""); [INFO] [stdout] | ---- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 126 | i32s.insert(*replace, 0); [INFO] [stdout] | ^^^^ -------- immutable borrow later used here [INFO] [stdout] | | [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot borrow `i32s` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/Day5_2019.rs:136:21 [INFO] [stdout] | [INFO] [stdout] 134 | let mut replace = i32s.get(&((op + 3) as i32)).expect(""); [INFO] [stdout] | ---- immutable borrow occurs here [INFO] [stdout] 135 | if(*var1 == *var2) { [INFO] [stdout] 136 | i32s.insert(*replace, 1); [INFO] [stdout] | ^^^^ -------- immutable borrow later used here [INFO] [stdout] | | [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot borrow `i32s` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/Day5_2019.rs:138:22 [INFO] [stdout] | [INFO] [stdout] 134 | let mut replace = i32s.get(&((op + 3) as i32)).expect(""); [INFO] [stdout] | ---- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 138 | i32s.insert(*replace, 0); [INFO] [stdout] | ^^^^ -------- immutable borrow later used here [INFO] [stdout] | | [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot borrow `i32s` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/Day5_2019.rs:86:17 [INFO] [stdout] | [INFO] [stdout] 82 | let mut replace = i32s.get(&((op + 1) as i32)).expect(""); [INFO] [stdout] | ---- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 86 | i32s.insert(*replace, input_id); [INFO] [stdout] | ^^^^ -------- immutable borrow later used here [INFO] [stdout] | | [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `AocRust` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] = help: convert the identifier to snake case: `aoc_rust` [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] [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:9 [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:9 [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:9 [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:17 [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: cannot borrow `i32s` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/Day5_2019.rs:68:17 [INFO] [stdout] | [INFO] [stdout] 64 | var1 = if firstParamCode == 0 {i32s.get(&var1).expect("") } else {var1}; [INFO] [stdout] | ---- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 68 | i32s.insert(*replace, var1 + var2); [INFO] [stdout] | ^^^^ ---- immutable borrow later used here [INFO] [stdout] | | [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mutable_borrow_reservation_conflict)]` on by default [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot borrow `i32s` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/Day5_2019.rs:124:21 [INFO] [stdout] | [INFO] [stdout] 122 | let mut replace = i32s.get(&((op + 3) as i32)).expect(""); [INFO] [stdout] | ---- immutable borrow occurs here [INFO] [stdout] 123 | if(*var1 < *var2) { [INFO] [stdout] 124 | i32s.insert(*replace, 1); [INFO] [stdout] | ^^^^ -------- immutable borrow later used here [INFO] [stdout] | | [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot borrow `i32s` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/Day5_2019.rs:79:17 [INFO] [stdout] | [INFO] [stdout] 75 | var1 = if firstParamCode == 0 {i32s.get(&var1).expect("") } else {var1}; [INFO] [stdout] | ---- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 79 | i32s.insert(*replace, var1 * var2); [INFO] [stdout] | ^^^^ ---- immutable borrow later used here [INFO] [stdout] | | [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot borrow `i32s` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/Day5_2019.rs:126:22 [INFO] [stdout] | [INFO] [stdout] 122 | let mut replace = i32s.get(&((op + 3) as i32)).expect(""); [INFO] [stdout] | ---- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 126 | i32s.insert(*replace, 0); [INFO] [stdout] | ^^^^ -------- immutable borrow later used here [INFO] [stdout] | | [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot borrow `i32s` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/Day5_2019.rs:136:21 [INFO] [stdout] | [INFO] [stdout] 134 | let mut replace = i32s.get(&((op + 3) as i32)).expect(""); [INFO] [stdout] | ---- immutable borrow occurs here [INFO] [stdout] 135 | if(*var1 == *var2) { [INFO] [stdout] 136 | i32s.insert(*replace, 1); [INFO] [stdout] | ^^^^ -------- immutable borrow later used here [INFO] [stdout] | | [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot borrow `i32s` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/Day5_2019.rs:138:22 [INFO] [stdout] | [INFO] [stdout] 134 | let mut replace = i32s.get(&((op + 3) as i32)).expect(""); [INFO] [stdout] | ---- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 138 | i32s.insert(*replace, 0); [INFO] [stdout] | ^^^^ -------- immutable borrow later used here [INFO] [stdout] | | [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot borrow `i32s` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/Day5_2019.rs:86:17 [INFO] [stdout] | [INFO] [stdout] 82 | let mut replace = i32s.get(&((op + 1) as i32)).expect(""); [INFO] [stdout] | ---- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 86 | i32s.insert(*replace, input_id); [INFO] [stdout] | ^^^^ -------- immutable borrow later used here [INFO] [stdout] | | [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `AocRust` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] = help: convert the identifier to snake case: `aoc_rust` [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] [INFO] [stdout] warning: unused `std::result::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: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [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: 56 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::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: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [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: 56 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 6.68s [INFO] running `Command { std: "docker" "inspect" "7c6a523a8290af7205a6b033d57a145548c53f5b32950a044c214d10e9313db6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7c6a523a8290af7205a6b033d57a145548c53f5b32950a044c214d10e9313db6", kill_on_drop: false }` [INFO] [stdout] 7c6a523a8290af7205a6b033d57a145548c53f5b32950a044c214d10e9313db6