[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 try#a7a572ce3edd6d476191fbfe92c9c1986e009b34 for pr-87190-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FQvist30%2FAocRust" "/workspace/builds/worker-14/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-14/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Qvist30/AocRust on toolchain a7a572ce3edd6d476191fbfe92c9c1986e009b34 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "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-14/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" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "fetch" "--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-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d3cf5b2d9a0e1c9991c5921b99e567d6a5ef2fa57c953f97124c1881d36529bb [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" "d3cf5b2d9a0e1c9991c5921b99e567d6a5ef2fa57c953f97124c1881d36529bb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d3cf5b2d9a0e1c9991c5921b99e567d6a5ef2fa57c953f97124c1881d36529bb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d3cf5b2d9a0e1c9991c5921b99e567d6a5ef2fa57c953f97124c1881d36529bb", kill_on_drop: false }` [INFO] [stdout] d3cf5b2d9a0e1c9991c5921b99e567d6a5ef2fa57c953f97124c1881d36529bb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d52365a5b6f4bf0cf70fa49b411622bd8cd920cfeb6af9afd49741d235ae6f07 [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" "d52365a5b6f4bf0cf70fa49b411622bd8cd920cfeb6af9afd49741d235ae6f07", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Compiling memchr v2.2.1 [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 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2018 edition to 2021 [INFO] [stderr] Fixed src/Day5_2019.rs (41 fixes) [INFO] [stdout] warning: unused import: `BufRead` [INFO] [stdout] --> src/Day5_2019.rs:2:15 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::{BufRead, Error, Read}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [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 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] = 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:79:17 [INFO] [stdout] | [INFO] [stdout] 76 | var2 = if secondParamCode == 0 {i32s.get(&var2).expect("") } else {var2}; [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:68:17 [INFO] [stdout] | [INFO] [stdout] 65 | var2 = if secondParamCode == 0 {i32s.get(&var2).expect("") } else {var2}; [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] = 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 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:136:21 [INFO] [stdout] | [INFO] [stdout] 134 | let 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 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 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 `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:21 [INFO] [stdout] | [INFO] [stdout] 28 | let 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:17 [INFO] [stdout] | [INFO] [stdout] 41 | let 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:17 [INFO] [stdout] | [INFO] [stdout] 42 | let 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:17 [INFO] [stdout] | [INFO] [stdout] 43 | let _thirdParamCode:i32 = operation_obj/10000; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `_third_param_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 15 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Fixed src/Day5_2019.rs (1 fix) [INFO] [stdout] warning: unused import: `BufRead` [INFO] [stdout] --> src/Day5_2019.rs:2:15 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::{BufRead, Error, Read}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [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 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] = 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:79:17 [INFO] [stdout] | [INFO] [stdout] 76 | var2 = if secondParamCode == 0 {i32s.get(&var2).expect("") } else {var2}; [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:68:17 [INFO] [stdout] | [INFO] [stdout] 65 | var2 = if secondParamCode == 0 {i32s.get(&var2).expect("") } else {var2}; [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] = 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 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:136:21 [INFO] [stdout] | [INFO] [stdout] 134 | let 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 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 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 `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:21 [INFO] [stdout] | [INFO] [stdout] 28 | let 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:17 [INFO] [stdout] | [INFO] [stdout] 41 | let 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:17 [INFO] [stdout] | [INFO] [stdout] 42 | let 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:17 [INFO] [stdout] | [INFO] [stdout] 43 | let _thirdParamCode:i32 = operation_obj/10000; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `_third_param_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 15 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 5.99s [INFO] [stderr] Running `cargo check` to verify 2021 [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Checking AocRust v0.1.0 (/tmp/fixit) [INFO] [stdout] warning: unused import: `BufRead` [INFO] [stdout] --> src/Day5_2019.rs:2:15 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::{BufRead, Error, Read}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [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 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] = 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:79:17 [INFO] [stdout] | [INFO] [stdout] 76 | var2 = if secondParamCode == 0 {i32s.get(&var2).expect("") } else {var2}; [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:68:17 [INFO] [stdout] | [INFO] [stdout] 65 | var2 = if secondParamCode == 0 {i32s.get(&var2).expect("") } else {var2}; [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] = 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 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:136:21 [INFO] [stdout] | [INFO] [stdout] 134 | let 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 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 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 `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:21 [INFO] [stdout] | [INFO] [stdout] 28 | let 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:17 [INFO] [stdout] | [INFO] [stdout] 41 | let 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:17 [INFO] [stdout] | [INFO] [stdout] 42 | let 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:17 [INFO] [stdout] | [INFO] [stdout] 43 | let _thirdParamCode:i32 = operation_obj/10000; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `_third_param_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 15 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BufRead` [INFO] [stdout] --> src/Day5_2019.rs:2:15 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::{BufRead, Error, Read}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [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 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] = 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:79:17 [INFO] [stdout] | [INFO] [stdout] 76 | var2 = if secondParamCode == 0 {i32s.get(&var2).expect("") } else {var2}; [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:68:17 [INFO] [stdout] | [INFO] [stdout] 65 | var2 = if secondParamCode == 0 {i32s.get(&var2).expect("") } else {var2}; [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] = 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 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:136:21 [INFO] [stdout] | [INFO] [stdout] 134 | let 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 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 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 `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:21 [INFO] [stdout] | [INFO] [stdout] 28 | let 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:17 [INFO] [stdout] | [INFO] [stdout] 41 | let 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:17 [INFO] [stdout] | [INFO] [stdout] 42 | let 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:17 [INFO] [stdout] | [INFO] [stdout] 43 | let _thirdParamCode:i32 = operation_obj/10000; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `_third_param_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 15 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1.28s [INFO] running `Command { std: "docker" "inspect" "d52365a5b6f4bf0cf70fa49b411622bd8cd920cfeb6af9afd49741d235ae6f07", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d52365a5b6f4bf0cf70fa49b411622bd8cd920cfeb6af9afd49741d235ae6f07", kill_on_drop: false }` [INFO] [stdout] d52365a5b6f4bf0cf70fa49b411622bd8cd920cfeb6af9afd49741d235ae6f07