[INFO] cloning repository https://github.com/garethellis0/advent-of-code-2019 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/garethellis0/advent-of-code-2019" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgarethellis0%2Fadvent-of-code-2019", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgarethellis0%2Fadvent-of-code-2019'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c71403f3a9496c34c6faf323b54d33f9d2b3184d [INFO] checking garethellis0/advent-of-code-2019 against try#8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgarethellis0%2Fadvent-of-code-2019" "/workspace/builds/worker-5/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/garethellis0/advent-of-code-2019 on toolchain 8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/garethellis0/advent-of-code-2019 [INFO] finished tweaking git repo https://github.com/garethellis0/advent-of-code-2019 [INFO] tweaked toml for git repo https://github.com/garethellis0/advent-of-code-2019 written to /workspace/builds/worker-5/source/Cargo.toml [INFO] crate git repo https://github.com/garethellis0/advent-of-code-2019 already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--no-deps" "--format-version=1", 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] a8fd92a11be8c961bd644202f95a558b807199b22b031d261e63f17217921e0c [INFO] running `Command { std: "docker" "start" "-a" "a8fd92a11be8c961bd644202f95a558b807199b22b031d261e63f17217921e0c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a8fd92a11be8c961bd644202f95a558b807199b22b031d261e63f17217921e0c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a8fd92a11be8c961bd644202f95a558b807199b22b031d261e63f17217921e0c", kill_on_drop: false }` [INFO] [stdout] a8fd92a11be8c961bd644202f95a558b807199b22b031d261e63f17217921e0c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 74f9c32285bd9e770fb729df28e78ec282a43c49e51f42fd272f3ddab54c717f [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" "74f9c32285bd9e770fb729df28e78ec282a43c49e51f42fd272f3ddab54c717f", kill_on_drop: false }` [INFO] [stderr] Checking advent-of-code-2019 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/bin/day_2/main.rs:35:18 [INFO] [stdout] | [INFO] [stdout] 35 | while(i < data.len()){ [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/bin/day_2/main.rs:58:16 [INFO] [stdout] | [INFO] [stdout] 58 | if (data[0] == 19690720){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/bin/day_2/main.rs:35:18 [INFO] [stdout] | [INFO] [stdout] 35 | while(i < data.len()){ [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/bin/day_2/main.rs:58:16 [INFO] [stdout] | [INFO] [stdout] 58 | if (data[0] == 19690720){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Write` [INFO] [stdout] --> src/bin/day_1/main.rs:2:15 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::{Write, BufReader, BufRead, Error}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread::current` [INFO] [stdout] --> src/bin/day_1/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::thread::current; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/bin/day_1/main.rs:31:23 [INFO] [stdout] | [INFO] [stdout] 31 | while (current_fuel > 0) { [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/bin/day_1/main.rs:33:24 [INFO] [stdout] | [INFO] [stdout] 33 | if (current_fuel > 0){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/bin/day_3/main.rs:96:51 [INFO] [stdout] | [INFO] [stdout] 96 | Orientation::UpDown => curr_cell.y += (segment.length), [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 assigned value [INFO] [stdout] --> src/bin/day_3/main.rs:97:54 [INFO] [stdout] | [INFO] [stdout] 97 | Orientation::LeftRight => curr_cell.x += (segment.length), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/bin/day_3/main.rs:133:12 [INFO] [stdout] | [INFO] [stdout] 133 | if ((leftright.start_point.y > updown_min_y) && (leftright.start_point.y < updown_max_y)) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/bin/day_3/main.rs:138:16 [INFO] [stdout] | [INFO] [stdout] 138 | if ((updown.start_point.x > leftright_min_x) && (updown.start_point.x < leftright_max_x)) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/bin/day_3/main.rs:156:16 [INFO] [stdout] | [INFO] [stdout] 156 | if (path1 != path2) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/bin/day_3/main.rs:194:15 [INFO] [stdout] | [INFO] [stdout] 194 | while (length > 0) { [INFO] [stdout] | ^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/bin/day_3/main.rs:242:8 [INFO] [stdout] | [INFO] [stdout] 242 | if (wires_result.len() != wires.len()) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/bin/day_2/main.rs:22:17 [INFO] [stdout] | [INFO] [stdout] 22 | Err(e) => return Err(String::from("Int parsing failed!")), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/bin/day_2/main.rs:103:13 [INFO] [stdout] | [INFO] [stdout] 103 | Err(e) => Err(String::from("FAILED TO READ FILE!")), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/bin/day_1/main.rs:56:21 [INFO] [stdout] | [INFO] [stdout] 56 | Err(e) => println!("Int parsing failed"), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/day_1/main.rs:29:16 [INFO] [stdout] | [INFO] [stdout] 29 | Ok(mut i) => { [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: function is never used: `part1` [INFO] [stdout] --> src/bin/day_1/main.rs:6:4 [INFO] [stdout] | [INFO] [stdout] 6 | fn part1(f: &File) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/day_2/main.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | let mut split = str.split(","); [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/bin/day_2/main.rs:39:29 [INFO] [stdout] | [INFO] [stdout] 39 | let mut target_index = data[i+3] as usize; [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/bin/day_2/main.rs:40:29 [INFO] [stdout] | [INFO] [stdout] 40 | let mut operand_index_1 = data[i+1] as usize; [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/bin/day_2/main.rs:41:29 [INFO] [stdout] | [INFO] [stdout] 41 | let mut operand_index_2 = data[i+2] as usize; [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/bin/day_2/main.rs:45:29 [INFO] [stdout] | [INFO] [stdout] 45 | let mut target_index = data[i+3] as usize; [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/bin/day_2/main.rs:46:29 [INFO] [stdout] | [INFO] [stdout] 46 | let mut operand_index_1 = data[i+1] as usize; [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/bin/day_2/main.rs:47:29 [INFO] [stdout] | [INFO] [stdout] 47 | let mut operand_index_2 = data[i+2] as usize; [INFO] [stdout] | ----^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parseInstructionsAndData` should have a snake case name [INFO] [stdout] --> src/bin/day_2/main.rs:17:4 [INFO] [stdout] | [INFO] [stdout] 17 | fn parseInstructionsAndData(str: String) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `parse_instructions_and_data` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `readIntcodeProgram` should have a snake case name [INFO] [stdout] --> src/bin/day_2/main.rs:73:4 [INFO] [stdout] | [INFO] [stdout] 73 | fn readIntcodeProgram(f: &File) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `read_intcode_program` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Write` [INFO] [stdout] --> src/bin/day_1/main.rs:2:15 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::{Write, BufReader, BufRead, Error}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread::current` [INFO] [stdout] --> src/bin/day_1/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::thread::current; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/bin/day_1/main.rs:31:23 [INFO] [stdout] | [INFO] [stdout] 31 | while (current_fuel > 0) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0463]: can't find crate for `itertools` [INFO] [stdout] --> src/bin/day_4/main.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | #[macro_use] extern crate itertools; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ can't find crate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/bin/day_1/main.rs:33:24 [INFO] [stdout] | [INFO] [stdout] 33 | if (current_fuel > 0){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0463]: can't find crate for `itertools` [INFO] [stdout] --> src/bin/day_4/main.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | #[macro_use] extern crate itertools; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ can't find crate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0463`. [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0463`. [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/bin/day_2/main.rs:105:13 [INFO] [stdout] | [INFO] [stdout] 105 | readIntcodeProgram(&f); [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] [stderr] error: could not compile `advent-of-code-2019` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/bin/day_1/main.rs:56:21 [INFO] [stdout] | [INFO] [stdout] 56 | Err(e) => println!("Int parsing failed"), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/bin/day_2/main.rs:22:17 [INFO] [stdout] | [INFO] [stdout] 22 | Err(e) => return Err(String::from("Int parsing failed!")), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/day_1/main.rs:29:16 [INFO] [stdout] | [INFO] [stdout] 29 | Ok(mut i) => { [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/bin/day_2/main.rs:103:13 [INFO] [stdout] | [INFO] [stdout] 103 | Err(e) => Err(String::from("FAILED TO READ FILE!")), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/bin/day_3/main.rs:90:21 [INFO] [stdout] | [INFO] [stdout] 90 | Err(e) => return Err(format!("Failed to get length from: {}", length_str)) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/bin/day_3/main.rs:277:13 [INFO] [stdout] | [INFO] [stdout] 277 | Err(e) => Err(String::from("Failed to open file")) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/bin/day_3/main.rs:96:51 [INFO] [stdout] | [INFO] [stdout] 96 | Orientation::UpDown => curr_cell.y += (segment.length), [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 assigned value [INFO] [stdout] --> src/bin/day_3/main.rs:97:54 [INFO] [stdout] | [INFO] [stdout] 97 | Orientation::LeftRight => curr_cell.x += (segment.length), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/bin/day_3/main.rs:133:12 [INFO] [stdout] | [INFO] [stdout] 133 | if ((leftright.start_point.y > updown_min_y) && (leftright.start_point.y < updown_max_y)) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/bin/day_3/main.rs:138:16 [INFO] [stdout] | [INFO] [stdout] 138 | if ((updown.start_point.x > leftright_min_x) && (updown.start_point.x < leftright_max_x)) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/bin/day_3/main.rs:156:16 [INFO] [stdout] | [INFO] [stdout] 156 | if (path1 != path2) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/bin/day_3/main.rs:194:15 [INFO] [stdout] | [INFO] [stdout] 194 | while (length > 0) { [INFO] [stdout] | ^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/bin/day_3/main.rs:242:8 [INFO] [stdout] | [INFO] [stdout] 242 | if (wires_result.len() != wires.len()) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/day_2/main.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | let mut split = str.split(","); [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: function is never used: `part1` [INFO] [stdout] --> src/bin/day_1/main.rs:6:4 [INFO] [stdout] | [INFO] [stdout] 6 | fn part1(f: &File) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/day_2/main.rs:39:29 [INFO] [stdout] | [INFO] [stdout] 39 | let mut target_index = data[i+3] as usize; [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/bin/day_2/main.rs:40:29 [INFO] [stdout] | [INFO] [stdout] 40 | let mut operand_index_1 = data[i+1] as usize; [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/bin/day_2/main.rs:41:29 [INFO] [stdout] | [INFO] [stdout] 41 | let mut operand_index_2 = data[i+2] as usize; [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/bin/day_2/main.rs:45:29 [INFO] [stdout] | [INFO] [stdout] 45 | let mut target_index = data[i+3] as usize; [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/bin/day_2/main.rs:46:29 [INFO] [stdout] | [INFO] [stdout] 46 | let mut operand_index_1 = data[i+1] as usize; [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/bin/day_2/main.rs:47:29 [INFO] [stdout] | [INFO] [stdout] 47 | let mut operand_index_2 = data[i+2] as usize; [INFO] [stdout] | ----^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parseInstructionsAndData` should have a snake case name [INFO] [stdout] --> src/bin/day_2/main.rs:17:4 [INFO] [stdout] | [INFO] [stdout] 17 | fn parseInstructionsAndData(str: String) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `parse_instructions_and_data` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `readIntcodeProgram` should have a snake case name [INFO] [stdout] --> src/bin/day_2/main.rs:73:4 [INFO] [stdout] | [INFO] [stdout] 73 | fn readIntcodeProgram(f: &File) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `read_intcode_program` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `manhatten_distance` [INFO] [stdout] --> src/bin/day_3/main.rs:176:4 [INFO] [stdout] | [INFO] [stdout] 176 | fn manhatten_distance(cell: &Cell) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `closer_cell` [INFO] [stdout] --> src/bin/day_3/main.rs:180:4 [INFO] [stdout] | [INFO] [stdout] 180 | fn closer_cell<'a>(cell1: &'a Cell, cell2: &'a Cell) -> &'a Cell { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `segmentsIntersection` should have a snake case name [INFO] [stdout] --> src/bin/day_3/main.rs:106:4 [INFO] [stdout] | [INFO] [stdout] 106 | fn segmentsIntersection(seg1: &PathSegment, seg2: &PathSegment) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `segments_intersection` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `findIntersections` should have a snake case name [INFO] [stdout] --> src/bin/day_3/main.rs:150:4 [INFO] [stdout] | [INFO] [stdout] 150 | fn findIntersections(paths: Vec<&Path>) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_intersections` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `wireLengthToPoint` should have a snake case name [INFO] [stdout] --> src/bin/day_3/main.rs:189:4 [INFO] [stdout] | [INFO] [stdout] 189 | fn wireLengthToPoint(cell: &Cell, path: &Path) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `wire_length_to_point` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cumulativeWireLength` should have a snake case name [INFO] [stdout] --> src/bin/day_3/main.rs:217:4 [INFO] [stdout] | [INFO] [stdout] 217 | fn cumulativeWireLength(inter: &Intersection) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `cumulative_wire_length` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 15 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/bin/day_2/main.rs:105:13 [INFO] [stdout] | [INFO] [stdout] 105 | readIntcodeProgram(&f); [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: 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/bin/day_3/main.rs:90:21 [INFO] [stdout] | [INFO] [stdout] 90 | Err(e) => return Err(format!("Failed to get length from: {}", length_str)) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/bin/day_3/main.rs:277:13 [INFO] [stdout] | [INFO] [stdout] 277 | Err(e) => Err(String::from("Failed to open file")) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `manhatten_distance` [INFO] [stdout] --> src/bin/day_3/main.rs:176:4 [INFO] [stdout] | [INFO] [stdout] 176 | fn manhatten_distance(cell: &Cell) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `closer_cell` [INFO] [stdout] --> src/bin/day_3/main.rs:180:4 [INFO] [stdout] | [INFO] [stdout] 180 | fn closer_cell<'a>(cell1: &'a Cell, cell2: &'a Cell) -> &'a Cell { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `segmentsIntersection` should have a snake case name [INFO] [stdout] --> src/bin/day_3/main.rs:106:4 [INFO] [stdout] | [INFO] [stdout] 106 | fn segmentsIntersection(seg1: &PathSegment, seg2: &PathSegment) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `segments_intersection` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `findIntersections` should have a snake case name [INFO] [stdout] --> src/bin/day_3/main.rs:150:4 [INFO] [stdout] | [INFO] [stdout] 150 | fn findIntersections(paths: Vec<&Path>) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_intersections` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `wireLengthToPoint` should have a snake case name [INFO] [stdout] --> src/bin/day_3/main.rs:189:4 [INFO] [stdout] | [INFO] [stdout] 189 | fn wireLengthToPoint(cell: &Cell, path: &Path) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `wire_length_to_point` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cumulativeWireLength` should have a snake case name [INFO] [stdout] --> src/bin/day_3/main.rs:217:4 [INFO] [stdout] | [INFO] [stdout] 217 | fn cumulativeWireLength(inter: &Intersection) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `cumulative_wire_length` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 15 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "74f9c32285bd9e770fb729df28e78ec282a43c49e51f42fd272f3ddab54c717f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "74f9c32285bd9e770fb729df28e78ec282a43c49e51f42fd272f3ddab54c717f", kill_on_drop: false }` [INFO] [stdout] 74f9c32285bd9e770fb729df28e78ec282a43c49e51f42fd272f3ddab54c717f