[INFO] cloning repository https://github.com/acrucetta/advent-of-code-2022 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/acrucetta/advent-of-code-2022" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Facrucetta%2Fadvent-of-code-2022", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Facrucetta%2Fadvent-of-code-2022'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] f7b1b4c04e9e0ce6372ae9b65a798ad22afa1452 [INFO] checking acrucetta/advent-of-code-2022 against master#385fa9d845dd326c6bbfd58c22244215e431948a for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Facrucetta%2Fadvent-of-code-2022" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/acrucetta/advent-of-code-2022 on toolchain 385fa9d845dd326c6bbfd58c22244215e431948a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-3-tc1/source/.cargo/config [INFO] started tweaking git repo https://github.com/acrucetta/advent-of-code-2022 [INFO] finished tweaking git repo https://github.com/acrucetta/advent-of-code-2022 [INFO] tweaked toml for git repo https://github.com/acrucetta/advent-of-code-2022 written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/acrucetta/advent-of-code-2022 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" "+385fa9d845dd326c6bbfd58c22244215e431948a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d7135f0ad05e63956f7400e1a71d974bf69d36a244c4ca9a2e5f5d843bcd8eb4 [INFO] running `Command { std: "docker" "start" "-a" "d7135f0ad05e63956f7400e1a71d974bf69d36a244c4ca9a2e5f5d843bcd8eb4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d7135f0ad05e63956f7400e1a71d974bf69d36a244c4ca9a2e5f5d843bcd8eb4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d7135f0ad05e63956f7400e1a71d974bf69d36a244c4ca9a2e5f5d843bcd8eb4", kill_on_drop: false }` [INFO] [stdout] d7135f0ad05e63956f7400e1a71d974bf69d36a244c4ca9a2e5f5d843bcd8eb4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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" "-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 78b50f451f89ae7b396cce4e4b0a342f07d9070649f76c10687863163f75b9c2 [INFO] running `Command { std: "docker" "start" "-a" "78b50f451f89ae7b396cce4e4b0a342f07d9070649f76c10687863163f75b9c2", kill_on_drop: false }` [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Checking either v1.8.0 [INFO] [stderr] Checking regex-syntax v0.6.28 [INFO] [stderr] Checking pico-args v0.5.0 [INFO] [stderr] Checking itertools v0.10.5 [INFO] [stderr] Checking aho-corasick v0.7.20 [INFO] [stderr] Checking nom v7.1.1 [INFO] [stderr] Checking regex v1.7.0 [INFO] [stderr] Checking advent_of_code v0.8.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: variant `addx` should have an upper camel case name [INFO] [stdout] --> src/bin/10.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | addx, [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case: `Addx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `noop` should have an upper camel case name [INFO] [stdout] --> src/bin/10.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | noop, [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case: `Noop` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `buffer` should have an upper camel case name [INFO] [stdout] --> src/bin/10.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | buffer, [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `Buffer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/bin/10.rs:77:29 [INFO] [stdout] | [INFO] [stdout] 77 | signal_strengths += (register * cycle as i32); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 77 - signal_strengths += (register * cycle as i32); [INFO] [stdout] 77 + signal_strengths += register * cycle as i32; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ALL_DIRECTIONS`, `CARDINAL_DIRECTIONS`, `self` [INFO] [stdout] --> src/bin/08.rs:20:43 [INFO] [stdout] | [INFO] [stdout] 20 | use advent_of_code::helpers::grid::{Grid, ALL_DIRECTIONS, CARDINAL_DIRECTIONS, self}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/10.rs:28:13 [INFO] [stdout] | [INFO] [stdout] 28 | let mut parts = line.split_whitespace().collect_vec(); [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 imports: `ALL_DIRECTIONS`, `CARDINAL_DIRECTIONS`, `self` [INFO] [stdout] --> src/bin/08.rs:20:43 [INFO] [stdout] | [INFO] [stdout] 20 | use advent_of_code::helpers::grid::{Grid, ALL_DIRECTIONS, CARDINAL_DIRECTIONS, self}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `crt_drawing` [INFO] [stdout] --> src/bin/10.rs:70:9 [INFO] [stdout] | [INFO] [stdout] 70 | let crt_drawing : Vec> = vec![vec![' ';40];6]; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_crt_drawing` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashMap` [INFO] [stdout] --> src/bin/06.rs:12:33 [INFO] [stdout] | [INFO] [stdout] 12 | use std::collections::{HashSet, HashMap}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `overlap` is never used [INFO] [stdout] --> src/bin/04.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 35 | impl Range { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 40 | fn overlap (&self, other: &Range) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HashMap`, `cmp::max`, `hash::Hash` [INFO] [stdout] --> src/bin/09.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{cmp::max, collections::{HashMap, HashSet}, hash::Hash}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/bin/08.rs:108:34 [INFO] [stdout] | [INFO] [stdout] 108 | Direction::UP(x, y) => current_node.0 = (current_node.0 as i32 + x) as usize, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/bin/08.rs:109:36 [INFO] [stdout] | [INFO] [stdout] 109 | Direction::DOWN(x, y) => current_node.0 = (current_node.0 as i32 + x) as usize, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/bin/08.rs:110:33 [INFO] [stdout] | [INFO] [stdout] 110 | Direction::LEFT(x, y) => current_node.1 = (current_node.1 as i32 + y) as usize, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/bin/08.rs:111:34 [INFO] [stdout] | [INFO] [stdout] 111 | Direction::RIGHT(x, y) => current_node.1 = (current_node.1 as i32 + y) as usize, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `curr_tree_height` [INFO] [stdout] --> src/bin/08.rs:116:17 [INFO] [stdout] | [INFO] [stdout] 116 | let curr_tree_height = grid.grid[current_node.0][current_node.1].to_digit(10).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_curr_tree_height` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `prev_tree_height` [INFO] [stdout] --> src/bin/08.rs:117:17 [INFO] [stdout] | [INFO] [stdout] 117 | let prev_tree_height = grid.grid[previous_node.0][previous_node.1].to_digit(10).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_prev_tree_height` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/bin/08.rs:155:23 [INFO] [stdout] | [INFO] [stdout] 155 | Direction::UP(x, y) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/bin/08.rs:155:26 [INFO] [stdout] | [INFO] [stdout] 155 | Direction::UP(x, y) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/bin/08.rs:160:25 [INFO] [stdout] | [INFO] [stdout] 160 | Direction::DOWN(x, y) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/bin/08.rs:160:28 [INFO] [stdout] | [INFO] [stdout] 160 | Direction::DOWN(x, y) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/bin/08.rs:165:25 [INFO] [stdout] | [INFO] [stdout] 165 | Direction::LEFT(x, y) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/bin/08.rs:165:28 [INFO] [stdout] | [INFO] [stdout] 165 | Direction::LEFT(x, y) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/bin/08.rs:170:26 [INFO] [stdout] | [INFO] [stdout] 170 | Direction::RIGHT(x, y) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/bin/08.rs:170:29 [INFO] [stdout] | [INFO] [stdout] 170 | Direction::RIGHT(x, y) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `overlap` is never used [INFO] [stdout] --> src/bin/04.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 35 | impl Range { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 40 | fn overlap (&self, other: &Range) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/bin/08.rs:108:34 [INFO] [stdout] | [INFO] [stdout] 108 | Direction::UP(x, y) => current_node.0 = (current_node.0 as i32 + x) as usize, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/bin/08.rs:109:36 [INFO] [stdout] | [INFO] [stdout] 109 | Direction::DOWN(x, y) => current_node.0 = (current_node.0 as i32 + x) as usize, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/bin/08.rs:110:33 [INFO] [stdout] | [INFO] [stdout] 110 | Direction::LEFT(x, y) => current_node.1 = (current_node.1 as i32 + y) as usize, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/bin/08.rs:111:34 [INFO] [stdout] | [INFO] [stdout] 111 | Direction::RIGHT(x, y) => current_node.1 = (current_node.1 as i32 + y) as usize, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `curr_tree_height` [INFO] [stdout] --> src/bin/08.rs:116:17 [INFO] [stdout] | [INFO] [stdout] 116 | let curr_tree_height = grid.grid[current_node.0][current_node.1].to_digit(10).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_curr_tree_height` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `prev_tree_height` [INFO] [stdout] --> src/bin/08.rs:117:17 [INFO] [stdout] | [INFO] [stdout] 117 | let prev_tree_height = grid.grid[previous_node.0][previous_node.1].to_digit(10).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_prev_tree_height` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/bin/08.rs:155:23 [INFO] [stdout] | [INFO] [stdout] 155 | Direction::UP(x, y) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/bin/08.rs:155:26 [INFO] [stdout] | [INFO] [stdout] 155 | Direction::UP(x, y) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/bin/08.rs:160:25 [INFO] [stdout] | [INFO] [stdout] 160 | Direction::DOWN(x, y) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/bin/08.rs:160:28 [INFO] [stdout] | [INFO] [stdout] 160 | Direction::DOWN(x, y) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/bin/08.rs:165:25 [INFO] [stdout] | [INFO] [stdout] 165 | Direction::LEFT(x, y) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/bin/08.rs:165:28 [INFO] [stdout] | [INFO] [stdout] 165 | Direction::LEFT(x, y) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/bin/08.rs:170:26 [INFO] [stdout] | [INFO] [stdout] 170 | Direction::RIGHT(x, y) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/bin/08.rs:170:29 [INFO] [stdout] | [INFO] [stdout] 170 | Direction::RIGHT(x, y) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 15 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `movements` [INFO] [stdout] --> src/bin/09.rs:110:9 [INFO] [stdout] | [INFO] [stdout] 110 | let movements = parse_directions(input); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_movements` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/bin/05.rs:96:10 [INFO] [stdout] | [INFO] [stdout] 96 | for (y, line) in input.lines().rev().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/bin/11.rs:294:17 [INFO] [stdout] | [INFO] [stdout] 294 | pub fn part_two(input: &str) -> Option { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashMap` [INFO] [stdout] --> src/bin/06.rs:12:33 [INFO] [stdout] | [INFO] [stdout] 12 | use std::collections::{HashSet, HashMap}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HashMap`, `cmp::max`, `hash::Hash` [INFO] [stdout] --> src/bin/09.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{cmp::max, collections::{HashMap, HashSet}, hash::Hash}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 15 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `movements` [INFO] [stdout] --> src/bin/09.rs:110:9 [INFO] [stdout] | [INFO] [stdout] 110 | let movements = parse_directions(input); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_movements` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `addx` should have an upper camel case name [INFO] [stdout] --> src/bin/10.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | addx, [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case: `Addx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `noop` should have an upper camel case name [INFO] [stdout] --> src/bin/10.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | noop, [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case: `Noop` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `buffer` should have an upper camel case name [INFO] [stdout] --> src/bin/10.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | buffer, [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `Buffer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/bin/10.rs:77:29 [INFO] [stdout] | [INFO] [stdout] 77 | signal_strengths += (register * cycle as i32); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 77 - signal_strengths += (register * cycle as i32); [INFO] [stdout] 77 + signal_strengths += register * cycle as i32; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/bin/05.rs:96:10 [INFO] [stdout] | [INFO] [stdout] 96 | for (y, line) in input.lines().rev().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [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/10.rs:28:13 [INFO] [stdout] | [INFO] [stdout] 28 | let mut parts = line.split_whitespace().collect_vec(); [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: `crt_drawing` [INFO] [stdout] --> src/bin/10.rs:70:9 [INFO] [stdout] | [INFO] [stdout] 70 | let crt_drawing : Vec> = vec![vec![' ';40];6]; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_crt_drawing` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/bin/11.rs:294:17 [INFO] [stdout] | [INFO] [stdout] 294 | pub fn part_two(input: &str) -> Option { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 5.35s [INFO] running `Command { std: "docker" "inspect" "78b50f451f89ae7b396cce4e4b0a342f07d9070649f76c10687863163f75b9c2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "78b50f451f89ae7b396cce4e4b0a342f07d9070649f76c10687863163f75b9c2", kill_on_drop: false }` [INFO] [stdout] 78b50f451f89ae7b396cce4e4b0a342f07d9070649f76c10687863163f75b9c2