[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] building garethellis0/advent-of-code-2019 against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgarethellis0%2Fadvent-of-code-2019" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/garethellis0/advent-of-code-2019 on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/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-2-tc1/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: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4eef806905096cbbf077d87656877180ee4e0dd55ae8acd3bc967084e8677757 [INFO] running `Command { std: "docker" "start" "-a" "4eef806905096cbbf077d87656877180ee4e0dd55ae8acd3bc967084e8677757", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4eef806905096cbbf077d87656877180ee4e0dd55ae8acd3bc967084e8677757", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4eef806905096cbbf077d87656877180ee4e0dd55ae8acd3bc967084e8677757", kill_on_drop: false }` [INFO] [stdout] 4eef806905096cbbf077d87656877180ee4e0dd55ae8acd3bc967084e8677757 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Dtail-expr-drop-order" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f18f93a035cdeafe9127bfe905cd5c411ff7d266ff5f90e1fe4ef98a8fdfc581 [INFO] running `Command { std: "docker" "start" "-a" "f18f93a035cdeafe9127bfe905cd5c411ff7d266ff5f90e1fe4ef98a8fdfc581", kill_on_drop: false }` [INFO] [stderr] Compiling advent-of-code-2019 v0.1.0 (/opt/rustwide/workdir) [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: unused doc comment [INFO] [stdout] --> src/bin/day_4/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | / /// Convert the given integer into an vector of integers [INFO] [stdout] 6 | | /// Example: `1234` -> `{1, 2, 3, 4}` [INFO] [stdout] | |_________________________________________^ [INFO] [stdout] 7 | [INFO] [stdout] 8 | let mut result = Vec::new(); [INFO] [stdout] | ---------------------------- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 96 - Orientation::UpDown => curr_cell.y += (segment.length), [INFO] [stdout] 96 + Orientation::UpDown => curr_cell.y += segment.length, [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 97 - Orientation::LeftRight => curr_cell.x += (segment.length), [INFO] [stdout] 97 + Orientation::LeftRight => curr_cell.x += segment.length, [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 133 - if ((leftright.start_point.y > updown_min_y) && (leftright.start_point.y < updown_max_y)) { [INFO] [stdout] 133 + if (leftright.start_point.y > updown_min_y) && (leftright.start_point.y < updown_max_y) { [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 138 - if ((updown.start_point.x > leftright_min_x) && (updown.start_point.x < leftright_max_x)) { [INFO] [stdout] 138 + if (updown.start_point.x > leftright_min_x) && (updown.start_point.x < leftright_max_x) { [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 156 - if (path1 != path2) { [INFO] [stdout] 156 + if path1 != path2 { [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 194 - while (length > 0) { [INFO] [stdout] 194 + while length > 0 { [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 242 - if (wires_result.len() != wires.len()) { [INFO] [stdout] 242 + if wires_result.len() != wires.len() { [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 35 - while(i < data.len()){ [INFO] [stdout] 35 + while i < data.len() { [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 58 - if (data[0] == 19690720){ [INFO] [stdout] 58 + if data[0] == 19690720 { [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 31 - while (current_fuel > 0) { [INFO] [stdout] 31 + while current_fuel > 0 { [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 33 - if (current_fuel > 0){ [INFO] [stdout] 33 + if current_fuel > 0 { [INFO] [stdout] | [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_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: `result` [INFO] [stdout] --> src/bin/day_4/main.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | let mut result = false; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [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_4/main.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | let mut result = 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: 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 `manhatten_distance` is never used [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] For more information about this error, try `rustc --explain E0463`. [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 `closer_cell` is never used [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: 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: 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: 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_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: 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: function `part1` is never used [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] [stderr] error: could not compile `advent-of-code-2019` (bin "day_4") due to 1 previous error; 3 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [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 `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: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 105 | let _ = readIntcodeProgram(&f); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "f18f93a035cdeafe9127bfe905cd5c411ff7d266ff5f90e1fe4ef98a8fdfc581", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f18f93a035cdeafe9127bfe905cd5c411ff7d266ff5f90e1fe4ef98a8fdfc581", kill_on_drop: false }` [INFO] [stdout] f18f93a035cdeafe9127bfe905cd5c411ff7d266ff5f90e1fe4ef98a8fdfc581