[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 try#d534db0721b23cf977073bf4cd306dbf501e6b4d for pr-138499 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgissleh%2Faoc2020" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/gissleh/aoc2020 on toolchain d534db0721b23cf977073bf4cd306dbf501e6b4d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d534db0721b23cf977073bf4cd306dbf501e6b4d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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-1-tc2/source/Cargo.toml [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" "+d534db0721b23cf977073bf4cd306dbf501e6b4d" "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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/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:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+d534db0721b23cf977073bf4cd306dbf501e6b4d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f06998232c16bdae20e79ca3496e7a64d8097df479b195b1a59a6d3f7167b61f [INFO] running `Command { std: "docker" "start" "-a" "f06998232c16bdae20e79ca3496e7a64d8097df479b195b1a59a6d3f7167b61f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f06998232c16bdae20e79ca3496e7a64d8097df479b195b1a59a6d3f7167b61f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f06998232c16bdae20e79ca3496e7a64d8097df479b195b1a59a6d3f7167b61f", kill_on_drop: false }` [INFO] [stdout] f06998232c16bdae20e79ca3496e7a64d8097df479b195b1a59a6d3f7167b61f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/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:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+d534db0721b23cf977073bf4cd306dbf501e6b4d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c2f293ce9c057a04e3f525407eaeb313ce95f88bf90a170d1ecef6ca2e617cbe [INFO] running `Command { std: "docker" "start" "-a" "c2f293ce9c057a04e3f525407eaeb313ce95f88bf90a170d1ecef6ca2e617cbe", 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 smallvec v1.5.1 [INFO] [stderr] Checking rustc-hash v1.1.0 [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: elided lifetime has a name [INFO] [stdout] --> src/day21.rs:139:37 [INFO] [stdout] | [INFO] [stdout] 138 | impl<'a> Input<'a> { [INFO] [stdout] | -- lifetime `'a` declared here [INFO] [stdout] 139 | fn parse(input_str: &'a str) -> Input { [INFO] [stdout] | ^^^^^ this elided lifetime gets resolved as `'a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(elided_named_lifetimes)]` 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: 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: `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: 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: 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: 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: 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/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: 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: elided lifetime has a name [INFO] [stdout] --> src/day16.rs:115:33 [INFO] [stdout] | [INFO] [stdout] 114 | impl<'a> Input<'a> { [INFO] [stdout] | -- lifetime `'a` declared here [INFO] [stdout] 115 | fn parse(input: &'a str) -> Input { [INFO] [stdout] | ^^^^^ this elided lifetime gets resolved as `'a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(elided_named_lifetimes)]` on by default [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: elided lifetime has a name [INFO] [stdout] --> src/day21.rs:139:37 [INFO] [stdout] | [INFO] [stdout] 138 | impl<'a> Input<'a> { [INFO] [stdout] | -- lifetime `'a` declared here [INFO] [stdout] 139 | fn parse(input_str: &'a str) -> Input { [INFO] [stdout] | ^^^^^ this elided lifetime gets resolved as `'a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(elided_named_lifetimes)]` 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: 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: 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: 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: 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: 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/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: `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: elided lifetime has a name [INFO] [stdout] --> src/day16.rs:115:33 [INFO] [stdout] | [INFO] [stdout] 114 | impl<'a> Input<'a> { [INFO] [stdout] | -- lifetime `'a` declared here [INFO] [stdout] 115 | fn parse(input: &'a str) -> Input { [INFO] [stdout] | ^^^^^ this elided lifetime gets resolved as `'a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(elided_named_lifetimes)]` on by default [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: 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: 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: 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: 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: 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: 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] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 5.81s [INFO] running `Command { std: "docker" "inspect" "c2f293ce9c057a04e3f525407eaeb313ce95f88bf90a170d1ecef6ca2e617cbe", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c2f293ce9c057a04e3f525407eaeb313ce95f88bf90a170d1ecef6ca2e617cbe", kill_on_drop: false }` [INFO] [stdout] c2f293ce9c057a04e3f525407eaeb313ce95f88bf90a170d1ecef6ca2e617cbe