[INFO] cloning repository https://github.com/gissleh/aoc2020 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/gissleh/aoc2020" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgissleh%2Faoc2020", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgissleh%2Faoc2020'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 3c981ee8531393a21c0a7219dc5415e575376175 [INFO] checking gissleh/aoc2020 against master#f8f6997469237299c1d60814c7b9828602a1f8e4 for pr-143808 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgissleh%2Faoc2020" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/gissleh/aoc2020 [INFO] finished tweaking git repo https://github.com/gissleh/aoc2020 [INFO] tweaked toml for git repo https://github.com/gissleh/aoc2020 written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/gissleh/aoc2020 on toolchain f8f6997469237299c1d60814c7b9828602a1f8e4 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f8f6997469237299c1d60814c7b9828602a1f8e4" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/gissleh/aoc2020 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" "+f8f6997469237299c1d60814c7b9828602a1f8e4" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+f8f6997469237299c1d60814c7b9828602a1f8e4" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a3d5125f2d3d52afa6bf8f12e4ed2a142975e89d608cb2557816e01f3a302394 [INFO] running `Command { std: "docker" "start" "-a" "a3d5125f2d3d52afa6bf8f12e4ed2a142975e89d608cb2557816e01f3a302394", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a3d5125f2d3d52afa6bf8f12e4ed2a142975e89d608cb2557816e01f3a302394", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a3d5125f2d3d52afa6bf8f12e4ed2a142975e89d608cb2557816e01f3a302394", kill_on_drop: false }` [INFO] [stdout] a3d5125f2d3d52afa6bf8f12e4ed2a142975e89d608cb2557816e01f3a302394 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+f8f6997469237299c1d60814c7b9828602a1f8e4" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] fe9b72bf6b615c0256cf388c3e81d608a4960466f9440e96998d3df95dc83d17 [INFO] running `Command { std: "docker" "start" "-a" "fe9b72bf6b615c0256cf388c3e81d608a4960466f9440e96998d3df95dc83d17", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v0.1.7 [INFO] [stderr] Compiling libc v0.2.66 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Checking numtoa v0.1.0 [INFO] [stderr] Checking rustc-hash v1.1.0 [INFO] [stderr] Checking smallvec v1.5.1 [INFO] [stderr] Compiling num-traits v0.2.10 [INFO] [stderr] Compiling num-integer v0.1.41 [INFO] [stderr] Compiling num-bigint v0.2.3 [INFO] [stderr] Compiling num-iter v0.1.39 [INFO] [stderr] Compiling num-complex v0.2.3 [INFO] [stderr] Compiling num-rational v0.2.2 [INFO] [stderr] Checking dirs-sys v0.3.4 [INFO] [stderr] Checking time v0.1.42 [INFO] [stderr] Checking termion v1.5.4 [INFO] [stderr] Checking dirs v2.0.2 [INFO] [stderr] Checking term v0.6.1 [INFO] [stderr] Checking chrono v0.4.10 [INFO] [stderr] Checking num v0.2.0 [INFO] [stderr] Checking aoc2019 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: function `test_part2` is never used [INFO] [stdout] --> src/day16.rs:226:8 [INFO] [stdout] | [INFO] [stdout] 226 | fn test_part2() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/day16.rs:115:22 [INFO] [stdout] | [INFO] [stdout] 115 | fn parse(input: &'a str) -> Input { [INFO] [stdout] | ^^ ----- the lifetime gets resolved as `'a` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 115 | fn parse(input: &'a str) -> Input<'a> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/day18.rs:189:28 [INFO] [stdout] | [INFO] [stdout] 189 | panic!(format!("Unknown token: {}", *b as char)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 189 - panic!(format!("Unknown token: {}", *b as char)); [INFO] [stdout] 189 + panic!("Unknown token: {}", *b as char); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `is_sorted` has been stable since 1.82.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/day21.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(is_sorted)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check_slope` is never used [INFO] [stdout] --> src/day03.rs:37:4 [INFO] [stdout] | [INFO] [stdout] 37 | fn check_slope(grid: &FixedGrid, vx: usize, w: usize, h: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check_slope_vertical` is never used [INFO] [stdout] --> src/day03.rs:43:4 [INFO] [stdout] | [INFO] [stdout] 43 | fn check_slope_vertical(grid: &FixedGrid, vx: usize, vy: usize, w: usize, h: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/day18.rs:189:28 [INFO] [stdout] | [INFO] [stdout] 189 | panic!(format!("Unknown token: {}", *b as char)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 189 - panic!(format!("Unknown token: {}", *b as char)); [INFO] [stdout] 189 + panic!("Unknown token: {}", *b as char); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::BTreeMap` [INFO] [stdout] --> src/day14.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::collections::BTreeMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `is_sorted` has been stable since 1.82.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/day21.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(is_sorted)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/day21.rs:139:26 [INFO] [stdout] | [INFO] [stdout] 139 | fn parse(input_str: &'a str) -> Input { [INFO] [stdout] | ^^ ----- the lifetime gets resolved as `'a` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 139 | fn parse(input_str: &'a str) -> Input<'a> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `sub_indexes` is never read [INFO] [stdout] --> src/day19.rs:150:5 [INFO] [stdout] | [INFO] [stdout] 147 | struct Input { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] ... [INFO] [stdout] 150 | sub_indexes: Vec, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Input` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/year2017-day23.rs:121:27 [INFO] [stdout] | [INFO] [stdout] 121 | fn from(instructions: &[Instruction]) -> Program { [INFO] [stdout] | ^^^^^^^^^^^^^^ ------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 121 | fn from(instructions: &[Instruction]) -> Program<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/year2017-day23.rs:189:29 [INFO] [stdout] | [INFO] [stdout] 189 | _ => panic!(format!("Unknown op {}", command)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 189 - _ => panic!(format!("Unknown op {}", command)), [INFO] [stdout] 189 + _ => panic!("Unknown op {}", command), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::format::Item::Fixed` [INFO] [stdout] --> src/day20.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use chrono::format::Item::Fixed; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `termion::event::Key::Right` [INFO] [stdout] --> src/day20.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use termion::event::Key::Right; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check_slope` is never used [INFO] [stdout] --> src/day03.rs:37:4 [INFO] [stdout] | [INFO] [stdout] 37 | fn check_slope(grid: &FixedGrid, vx: usize, w: usize, h: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check_slope_vertical` is never used [INFO] [stdout] --> src/day03.rs:43:4 [INFO] [stdout] | [INFO] [stdout] 43 | fn check_slope_vertical(grid: &FixedGrid, vx: usize, vy: usize, w: usize, h: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `sub_indexes` is never read [INFO] [stdout] --> src/day19.rs:150:5 [INFO] [stdout] | [INFO] [stdout] 147 | struct Input { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] ... [INFO] [stdout] 150 | sub_indexes: Vec, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Input` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/day12.rs:100:33 [INFO] [stdout] | [INFO] [stdout] 100 | _ => panic!(format!("Unknown instruction: {}", current_inst as char)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 100 - _ => panic!(format!("Unknown instruction: {}", current_inst as char)), [INFO] [stdout] 100 + _ => panic!("Unknown instruction: {}", current_inst as char), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::format::Item::Fixed` [INFO] [stdout] --> src/day20.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use chrono::format::Item::Fixed; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `termion::event::Key::Right` [INFO] [stdout] --> src/day20.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use termion::event::Key::Right; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/day12.rs:100:33 [INFO] [stdout] | [INFO] [stdout] 100 | _ => panic!(format!("Unknown instruction: {}", current_inst as char)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 100 - _ => panic!(format!("Unknown instruction: {}", current_inst as char)), [INFO] [stdout] 100 + _ => panic!("Unknown instruction: {}", current_inst as char), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/day21.rs:139:26 [INFO] [stdout] | [INFO] [stdout] 139 | fn parse(input_str: &'a str) -> Input { [INFO] [stdout] | ^^ ----- the lifetime gets resolved as `'a` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 139 | fn parse(input_str: &'a str) -> Input<'a> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/year2017-day23.rs:121:27 [INFO] [stdout] | [INFO] [stdout] 121 | fn from(instructions: &[Instruction]) -> Program { [INFO] [stdout] | ^^^^^^^^^^^^^^ ------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 121 | fn from(instructions: &[Instruction]) -> Program<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/year2017-day23.rs:189:29 [INFO] [stdout] | [INFO] [stdout] 189 | _ => panic!(format!("Unknown op {}", command)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 189 - _ => panic!(format!("Unknown op {}", command)), [INFO] [stdout] 189 + _ => panic!("Unknown op {}", command), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `horizontal` [INFO] [stdout] --> src/day20.rs:90:17 [INFO] [stdout] | [INFO] [stdout] 90 | let horizontal = dir == LEFT || dir == RIGHT; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_horizontal` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/day20.rs:189:23 [INFO] [stdout] | [INFO] [stdout] 189 | .map(|(i, s)| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `horizontal` [INFO] [stdout] --> src/day20.rs:90:17 [INFO] [stdout] | [INFO] [stdout] 90 | let horizontal = dir == LEFT || dir == RIGHT; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_horizontal` [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/day20.rs:91:17 [INFO] [stdout] | [INFO] [stdout] 91 | let mut target_dir = FLIPPED_VH[dir]; [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/day20.rs:92:17 [INFO] [stdout] | [INFO] [stdout] 92 | let mut side = states[index].tile.sides[dir]; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/day20.rs:189:23 [INFO] [stdout] | [INFO] [stdout] 189 | .map(|(i, s)| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day20.rs:91:17 [INFO] [stdout] | [INFO] [stdout] 91 | let mut target_dir = FLIPPED_VH[dir]; [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/day20.rs:92:17 [INFO] [stdout] | [INFO] [stdout] 92 | let mut side = states[index].tile.sides[dir]; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around match arm expression [INFO] [stdout] --> src/day08.rs:53:24 [INFO] [stdout] | [INFO] [stdout] 53 | JMP => (pc = (pc as i32 + n) as usize), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 53 - JMP => (pc = (pc as i32 + n) as usize), [INFO] [stdout] 53 + JMP => pc = (pc as i32 + n) as usize, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around match arm expression [INFO] [stdout] --> src/day08.rs:106:24 [INFO] [stdout] | [INFO] [stdout] 106 | JMP => (pc = (pc as i32 + n) as usize), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 106 - JMP => (pc = (pc as i32 + n) as usize), [INFO] [stdout] 106 + JMP => pc = (pc as i32 + n) as usize, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DIRECTIONS` is never used [INFO] [stdout] --> src/day20.rs:15:7 [INFO] [stdout] | [INFO] [stdout] 15 | const DIRECTIONS: [usize; 4] = [RIGHT, DOWN, LEFT, UP]; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around match arm expression [INFO] [stdout] --> src/day08.rs:53:24 [INFO] [stdout] | [INFO] [stdout] 53 | JMP => (pc = (pc as i32 + n) as usize), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 53 - JMP => (pc = (pc as i32 + n) as usize), [INFO] [stdout] 53 + JMP => pc = (pc as i32 + n) as usize, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/day08.rs:130:29 [INFO] [stdout] | [INFO] [stdout] 130 | _ => panic!(format!("Unknown instruction: {}", line)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 130 - _ => panic!(format!("Unknown instruction: {}", line)), [INFO] [stdout] 130 + _ => panic!("Unknown instruction: {}", line), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FLIPPED_H` is never used [INFO] [stdout] --> src/day20.rs:16:7 [INFO] [stdout] | [INFO] [stdout] 16 | const FLIPPED_H: [usize; 4] = [LEFT, UP, RIGHT, DOWN]; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FLIPPED_V` is never used [INFO] [stdout] --> src/day20.rs:17:7 [INFO] [stdout] | [INFO] [stdout] 17 | const FLIPPED_V: [usize; 4] = [RIGHT, UP, LEFT, DOWN]; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `pos_dir` is never used [INFO] [stdout] --> src/day20.rs:65:4 [INFO] [stdout] | [INFO] [stdout] 65 | fn pos_dir(x: usize, y: usize, dir: usize) -> (usize, usize) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `rotate_right` is never used [INFO] [stdout] --> src/day20.rs:473:4 [INFO] [stdout] | [INFO] [stdout] 473 | fn rotate_right(dir: usize, amount: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `put_padded` is never used [INFO] [stdout] --> src/day20.rs:550:8 [INFO] [stdout] | [INFO] [stdout] 492 | impl Tile { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 550 | fn put_padded(&self, grid: &mut FixedGrid, x: usize, y: usize) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around match arm expression [INFO] [stdout] --> src/day08.rs:106:24 [INFO] [stdout] | [INFO] [stdout] 106 | JMP => (pc = (pc as i32 + n) as usize), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 106 - JMP => (pc = (pc as i32 + n) as usize), [INFO] [stdout] 106 + JMP => pc = (pc as i32 + n) as usize, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/day16.rs:115:22 [INFO] [stdout] | [INFO] [stdout] 115 | fn parse(input: &'a str) -> Input { [INFO] [stdout] | ^^ ----- the lifetime gets resolved as `'a` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 115 | fn parse(input: &'a str) -> Input<'a> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DIRECTIONS` is never used [INFO] [stdout] --> src/day20.rs:15:7 [INFO] [stdout] | [INFO] [stdout] 15 | const DIRECTIONS: [usize; 4] = [RIGHT, DOWN, LEFT, UP]; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FLIPPED_H` is never used [INFO] [stdout] --> src/day20.rs:16:7 [INFO] [stdout] | [INFO] [stdout] 16 | const FLIPPED_H: [usize; 4] = [LEFT, UP, RIGHT, DOWN]; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FLIPPED_V` is never used [INFO] [stdout] --> src/day20.rs:17:7 [INFO] [stdout] | [INFO] [stdout] 17 | const FLIPPED_V: [usize; 4] = [RIGHT, UP, LEFT, DOWN]; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `pos_dir` is never used [INFO] [stdout] --> src/day20.rs:65:4 [INFO] [stdout] | [INFO] [stdout] 65 | fn pos_dir(x: usize, y: usize, dir: usize) -> (usize, usize) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `rotate_right` is never used [INFO] [stdout] --> src/day20.rs:473:4 [INFO] [stdout] | [INFO] [stdout] 473 | fn rotate_right(dir: usize, amount: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `put_padded` is never used [INFO] [stdout] --> src/day20.rs:550:8 [INFO] [stdout] | [INFO] [stdout] 492 | impl Tile { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 550 | fn put_padded(&self, grid: &mut FixedGrid, x: usize, y: usize) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/day08.rs:130:29 [INFO] [stdout] | [INFO] [stdout] 130 | _ => panic!(format!("Unknown instruction: {}", line)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 130 - _ => panic!(format!("Unknown instruction: {}", line)), [INFO] [stdout] 130 + _ => panic!("Unknown instruction: {}", line), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::BTreeMap` [INFO] [stdout] --> src/day14.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::collections::BTreeMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 8.26s [INFO] running `Command { std: "docker" "inspect" "fe9b72bf6b615c0256cf388c3e81d608a4960466f9440e96998d3df95dc83d17", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fe9b72bf6b615c0256cf388c3e81d608a4960466f9440e96998d3df95dc83d17", kill_on_drop: false }` [INFO] [stdout] fe9b72bf6b615c0256cf388c3e81d608a4960466f9440e96998d3df95dc83d17