[INFO] cloning repository https://github.com/migerh/aoc2018-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/migerh/aoc2018-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmigerh%2Faoc2018-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmigerh%2Faoc2018-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 566d81609c521a1a5658005f490fde85a9d5bda3 [INFO] checking migerh/aoc2018-rs against master#385fa9d845dd326c6bbfd58c22244215e431948a for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmigerh%2Faoc2018-rs" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/migerh/aoc2018-rs 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] started tweaking git repo https://github.com/migerh/aoc2018-rs [INFO] finished tweaking git repo https://github.com/migerh/aoc2018-rs [INFO] tweaked toml for git repo https://github.com/migerh/aoc2018-rs written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/migerh/aoc2018-rs 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] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded memchr v2.1.1 [INFO] [stderr] Downloaded cfg-if v0.1.6 [INFO] [stderr] Downloaded lazy_static v1.2.0 [INFO] [stderr] Downloaded aho-corasick v0.6.9 [INFO] [stderr] Downloaded regex-syntax v0.6.4 [INFO] [stderr] Downloaded regex v1.1.0 [INFO] [stderr] Downloaded libc v0.2.44 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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] d094cbe2e75e7fc364da5462de12714bdb5ae8c40afc1e879b3812f89e2f8f04 [INFO] running `Command { std: "docker" "start" "-a" "d094cbe2e75e7fc364da5462de12714bdb5ae8c40afc1e879b3812f89e2f8f04", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d094cbe2e75e7fc364da5462de12714bdb5ae8c40afc1e879b3812f89e2f8f04", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d094cbe2e75e7fc364da5462de12714bdb5ae8c40afc1e879b3812f89e2f8f04", kill_on_drop: false }` [INFO] [stdout] d094cbe2e75e7fc364da5462de12714bdb5ae8c40afc1e879b3812f89e2f8f04 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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] ae4db7d40be791cef0d6381555ce9d06088855ec38c4ed59521ef6ee19d52f98 [INFO] running `Command { std: "docker" "start" "-a" "ae4db7d40be791cef0d6381555ce9d06088855ec38c4ed59521ef6ee19d52f98", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.44 [INFO] [stderr] Compiling version_check v0.1.5 [INFO] [stderr] Checking cfg-if v0.1.6 [INFO] [stderr] Compiling regex v1.1.0 [INFO] [stderr] Checking lazy_static v1.2.0 [INFO] [stderr] Checking regex-syntax v0.6.4 [INFO] [stderr] Checking thread_local v0.3.6 [INFO] [stderr] Compiling memchr v2.1.1 [INFO] [stderr] Checking aho-corasick v0.6.9 [INFO] [stderr] Checking y2018 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: the item `Option` is imported redundantly [INFO] [stdout] --> src/day2/mod.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::option::Option; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/385fa9d845dd326c6bbfd58c22244215e431948a/library/std/src/prelude/mod.rs:134:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Option` is already defined here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Option` is imported redundantly [INFO] [stdout] --> src/day6/mod.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::option::Option; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/385fa9d845dd326c6bbfd58c22244215e431948a/library/std/src/prelude/mod.rs:134:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Option` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Iterator` is imported redundantly [INFO] [stdout] --> src/day8/mod.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::iter::Iterator; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/385fa9d845dd326c6bbfd58c22244215e431948a/library/std/src/prelude/mod.rs:134:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Iterator` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Vec` is imported redundantly [INFO] [stdout] --> src/day14/mod.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::vec::Vec; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/385fa9d845dd326c6bbfd58c22244215e431948a/library/std/src/prelude/mod.rs:134:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Vec` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Option` is imported redundantly [INFO] [stdout] --> src/day2/mod.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::option::Option; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/385fa9d845dd326c6bbfd58c22244215e431948a/library/std/src/prelude/mod.rs:134:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Option` is already defined here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Option` is imported redundantly [INFO] [stdout] --> src/day6/mod.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::option::Option; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/385fa9d845dd326c6bbfd58c22244215e431948a/library/std/src/prelude/mod.rs:134:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Option` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Iterator` is imported redundantly [INFO] [stdout] --> src/day8/mod.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::iter::Iterator; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/385fa9d845dd326c6bbfd58c22244215e431948a/library/std/src/prelude/mod.rs:134:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Iterator` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Vec` is imported redundantly [INFO] [stdout] --> src/day14/mod.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::vec::Vec; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/385fa9d845dd326c6bbfd58c22244215e431948a/library/std/src/prelude/mod.rs:134:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Vec` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/day16/ops.rs:6:52 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn op_map() -> BTreeMap<&'static str, &'static Fn(State, i32, i32, i32) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 6 | pub fn op_map() -> BTreeMap<&'static str, &'static dyn Fn(State, i32, i32, i32) -> Option> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/day19/ops.rs:6:52 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn op_map() -> BTreeMap<&'static str, &'static Fn(State, i128, i128, i128) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 6 | pub fn op_map() -> BTreeMap<&'static str, &'static dyn Fn(State, i128, i128, i128) -> Option> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/day16/ops.rs:6:52 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn op_map() -> BTreeMap<&'static str, &'static Fn(State, i32, i32, i32) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 6 | pub fn op_map() -> BTreeMap<&'static str, &'static dyn Fn(State, i32, i32, i32) -> Option> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/day19/ops.rs:6:52 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn op_map() -> BTreeMap<&'static str, &'static Fn(State, i128, i128, i128) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 6 | pub fn op_map() -> BTreeMap<&'static str, &'static dyn Fn(State, i128, i128, i128) -> Option> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/utils/mod.rs:66:30 [INFO] [stdout] | [INFO] [stdout] 66 | fn cause(&self) -> Option<&std::error::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 66 | fn cause(&self) -> Option<&dyn std::error::Error> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/utils/mod.rs:66:30 [INFO] [stdout] | [INFO] [stdout] 66 | fn cause(&self) -> Option<&std::error::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 66 | fn cause(&self) -> Option<&dyn std::error::Error> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day21/ops.rs:87:16 [INFO] [stdout] | [INFO] [stdout] 87 | fn apply_rr(mut state: &mut State, a: i128, b: i128, c: i128, f: F) [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/day21/ops.rs:94:16 [INFO] [stdout] | [INFO] [stdout] 94 | fn apply_ri(mut state: &mut State, a: i128, b: i128, c: i128, f: F) [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/day21/ops.rs:101:16 [INFO] [stdout] | [INFO] [stdout] 101 | fn apply_ii(mut state: &mut State, a: i128, b: i128, c: i128, f: F) [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/day21/ops.rs:108:16 [INFO] [stdout] | [INFO] [stdout] 108 | fn apply_ir(mut state: &mut State, a: i128, b: i128, c: i128, f: F) [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/day21/ops.rs:87:16 [INFO] [stdout] | [INFO] [stdout] 87 | fn apply_rr(mut state: &mut State, a: i128, b: i128, c: i128, f: F) [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/day21/ops.rs:94:16 [INFO] [stdout] | [INFO] [stdout] 94 | fn apply_ri(mut state: &mut State, a: i128, b: i128, c: i128, f: F) [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/day21/ops.rs:101:16 [INFO] [stdout] | [INFO] [stdout] 101 | fn apply_ii(mut state: &mut State, a: i128, b: i128, c: i128, f: F) [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/day21/ops.rs:108:16 [INFO] [stdout] | [INFO] [stdout] 108 | fn apply_ir(mut state: &mut State, a: i128, b: i128, c: i128, f: F) [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `tick` is never read [INFO] [stdout] --> src/day15/unit.rs:25:7 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct Unit { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 25 | pub tick: u64, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Unit` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `tick` is never read [INFO] [stdout] --> src/day15/unit.rs:25:7 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct Unit { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 25 | pub tick: u64, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Unit` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `REFallsAsleep` should have an upper case name [INFO] [stdout] --> src/day4/mod.rs:34:18 [INFO] [stdout] | [INFO] [stdout] 34 | static ref REFallsAsleep: Regex = Regex::new(r"falls asleep").unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper case: `REFALLS_ASLEEP` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `REFallsAsleep` should have an upper case name [INFO] [stdout] --> src/day4/mod.rs:34:18 [INFO] [stdout] | [INFO] [stdout] 34 | static ref REFallsAsleep: Regex = Regex::new(r"falls asleep").unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper case: `REFALLS_ASLEEP` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `REWakesUp` should have an upper case name [INFO] [stdout] --> src/day4/mod.rs:35:18 [INFO] [stdout] | [INFO] [stdout] 35 | static ref REWakesUp: Regex = Regex::new(r"wakes up").unwrap(); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `REWAKES_UP` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `REWakesUp` should have an upper case name [INFO] [stdout] --> src/day4/mod.rs:35:18 [INFO] [stdout] | [INFO] [stdout] 35 | static ref REWakesUp: Regex = Regex::new(r"wakes up").unwrap(); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `REWAKES_UP` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `REStarts` should have an upper case name [INFO] [stdout] --> src/day4/mod.rs:36:18 [INFO] [stdout] | [INFO] [stdout] 36 | static ref REStarts: Regex = Regex::new(r"Guard \#(\d+) begins shift").unwrap(); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper case: `RESTARTS` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `REStarts` should have an upper case name [INFO] [stdout] --> src/day4/mod.rs:36:18 [INFO] [stdout] | [INFO] [stdout] 36 | static ref REStarts: Regex = Regex::new(r"Guard \#(\d+) begins shift").unwrap(); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper case: `RESTARTS` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `REEdge` should have an upper case name [INFO] [stdout] --> src/day7/common.rs:16:18 [INFO] [stdout] | [INFO] [stdout] 16 | static ref REEdge: Regex = Regex::new(r"Step (.) must be finished before step (.) can begin\.").unwrap(); [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper case: `REEDGE` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `REEdge` should have an upper case name [INFO] [stdout] --> src/day7/common.rs:16:18 [INFO] [stdout] | [INFO] [stdout] 16 | static ref REEdge: Regex = Regex::new(r"Step (.) must be finished before step (.) can begin\.").unwrap(); [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper case: `REEDGE` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `RE_state` should have an upper case name [INFO] [stdout] --> src/day16/problems.rs:26:16 [INFO] [stdout] | [INFO] [stdout] 26 | static ref RE_state: Regex = Regex::new(r"\[(\d+), (\d+), (\d+), (\d+)\]").unwrap(); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper case: `RE_STATE` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `RE_state` should have an upper case name [INFO] [stdout] --> src/day16/problems.rs:26:16 [INFO] [stdout] | [INFO] [stdout] 26 | static ref RE_state: Regex = Regex::new(r"\[(\d+), (\d+), (\d+), (\d+)\]").unwrap(); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper case: `RE_STATE` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `RE_instruction` should have an upper case name [INFO] [stdout] --> src/day16/problems.rs:39:16 [INFO] [stdout] | [INFO] [stdout] 39 | static ref RE_instruction: Regex = Regex::new(r"(\d+) (\d+) (\d+) (\d+)").unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to upper case: `RE_INSTRUCTION` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `RE_before` should have an upper case name [INFO] [stdout] --> src/day16/problems.rs:84:16 [INFO] [stdout] | [INFO] [stdout] 84 | static ref RE_before: Regex = Regex::new(r"Before:").unwrap(); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `RE_BEFORE` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `RE_x` should have an upper case name [INFO] [stdout] --> src/day17/mod.rs:64:16 [INFO] [stdout] | [INFO] [stdout] 64 | static ref RE_x: Regex = Regex::new(r"x=(\d+)(\.\.)?(\d+)?").unwrap(); [INFO] [stdout] | ^^^^ help: convert the identifier to upper case (notice the capitalization): `RE_X` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `RE_y` should have an upper case name [INFO] [stdout] --> src/day17/mod.rs:65:16 [INFO] [stdout] | [INFO] [stdout] 65 | static ref RE_y: Regex = Regex::new(r"y=(\d+)(\.\.)?(\d+)?").unwrap(); [INFO] [stdout] | ^^^^ help: convert the identifier to upper case (notice the capitalization): `RE_Y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `RE_ip` should have an upper case name [INFO] [stdout] --> src/day19/problems.rs:16:16 [INFO] [stdout] | [INFO] [stdout] 16 | static ref RE_ip: Regex = Regex::new(r"#ip (\d+)").unwrap(); [INFO] [stdout] | ^^^^^ help: convert the identifier to upper case: `RE_IP` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `RE_instruction` should have an upper case name [INFO] [stdout] --> src/day19/problems.rs:29:16 [INFO] [stdout] | [INFO] [stdout] 29 | static ref RE_instruction: Regex = Regex::new(r"([a-z]{4}) (\d+) (\d+) (\d+)").unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to upper case: `RE_INSTRUCTION` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `RE_ip` should have an upper case name [INFO] [stdout] --> src/day21/problems.rs:17:16 [INFO] [stdout] | [INFO] [stdout] 17 | static ref RE_ip: Regex = Regex::new(r"#ip (\d+)").unwrap(); [INFO] [stdout] | ^^^^^ help: convert the identifier to upper case: `RE_IP` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `RE_instruction` should have an upper case name [INFO] [stdout] --> src/day21/problems.rs:30:16 [INFO] [stdout] | [INFO] [stdout] 30 | static ref RE_instruction: Regex = Regex::new(r"([a-z]{4}) (\d+) (\d+) (\d+)").unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to upper case: `RE_INSTRUCTION` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `RE_bot` should have an upper case name [INFO] [stdout] --> src/day23/mod.rs:25:18 [INFO] [stdout] | [INFO] [stdout] 25 | static ref RE_bot: Regex = Regex::new(r"pos=<(-?\d+),(-?\d+),(-?\d+)>, r=(\d+)").unwrap(); [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper case: `RE_BOT` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `RE_weak` should have an upper case name [INFO] [stdout] --> src/day24/parse.rs:39:16 [INFO] [stdout] | [INFO] [stdout] 39 | static ref RE_weak: Regex = Regex::new(r"weak to (\w+),?\s?(\w+)?,?\s?(\w+)?,?\s?(\w+)?").unwrap(); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper case: `RE_WEAK` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `RE_immune` should have an upper case name [INFO] [stdout] --> src/day24/parse.rs:47:16 [INFO] [stdout] | [INFO] [stdout] 47 | static ref RE_immune: Regex = Regex::new(r"immune to (\w+),?\s?(\w+)?,?\s?(\w+)?,?\s?(\w+)?").unwrap(); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `RE_IMMUNE` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `RE_group` should have an upper case name [INFO] [stdout] --> src/day24/parse.rs:55:16 [INFO] [stdout] | [INFO] [stdout] 55 | static ref RE_group: Regex = Regex::new(r"(\d+) units each with (\d+) hit points (\(.*\))? with an attack that does (\d+) (\w+) damag... [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper case: `RE_GROUP` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `RE_group_nospecial` should have an upper case name [INFO] [stdout] --> src/day24/parse.rs:56:16 [INFO] [stdout] | [INFO] [stdout] 56 | static ref RE_group_nospecial: Regex = Regex::new(r"(\d+) units each with (\d+) hit points (with) an attack that does (\d+) (\w+) dam... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `RE_GROUP_NOSPECIAL` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `RE_instruction` should have an upper case name [INFO] [stdout] --> src/day16/problems.rs:39:16 [INFO] [stdout] | [INFO] [stdout] 39 | static ref RE_instruction: Regex = Regex::new(r"(\d+) (\d+) (\d+) (\d+)").unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to upper case: `RE_INSTRUCTION` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `RE_before` should have an upper case name [INFO] [stdout] --> src/day16/problems.rs:84:16 [INFO] [stdout] | [INFO] [stdout] 84 | static ref RE_before: Regex = Regex::new(r"Before:").unwrap(); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `RE_BEFORE` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `RE_x` should have an upper case name [INFO] [stdout] --> src/day17/mod.rs:64:16 [INFO] [stdout] | [INFO] [stdout] 64 | static ref RE_x: Regex = Regex::new(r"x=(\d+)(\.\.)?(\d+)?").unwrap(); [INFO] [stdout] | ^^^^ help: convert the identifier to upper case (notice the capitalization): `RE_X` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `RE_y` should have an upper case name [INFO] [stdout] --> src/day17/mod.rs:65:16 [INFO] [stdout] | [INFO] [stdout] 65 | static ref RE_y: Regex = Regex::new(r"y=(\d+)(\.\.)?(\d+)?").unwrap(); [INFO] [stdout] | ^^^^ help: convert the identifier to upper case (notice the capitalization): `RE_Y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `RE_ip` should have an upper case name [INFO] [stdout] --> src/day19/problems.rs:16:16 [INFO] [stdout] | [INFO] [stdout] 16 | static ref RE_ip: Regex = Regex::new(r"#ip (\d+)").unwrap(); [INFO] [stdout] | ^^^^^ help: convert the identifier to upper case: `RE_IP` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `RE_instruction` should have an upper case name [INFO] [stdout] --> src/day19/problems.rs:29:16 [INFO] [stdout] | [INFO] [stdout] 29 | static ref RE_instruction: Regex = Regex::new(r"([a-z]{4}) (\d+) (\d+) (\d+)").unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to upper case: `RE_INSTRUCTION` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `RE_ip` should have an upper case name [INFO] [stdout] --> src/day21/problems.rs:17:16 [INFO] [stdout] | [INFO] [stdout] 17 | static ref RE_ip: Regex = Regex::new(r"#ip (\d+)").unwrap(); [INFO] [stdout] | ^^^^^ help: convert the identifier to upper case: `RE_IP` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `RE_instruction` should have an upper case name [INFO] [stdout] --> src/day21/problems.rs:30:16 [INFO] [stdout] | [INFO] [stdout] 30 | static ref RE_instruction: Regex = Regex::new(r"([a-z]{4}) (\d+) (\d+) (\d+)").unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to upper case: `RE_INSTRUCTION` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `RE_bot` should have an upper case name [INFO] [stdout] --> src/day23/mod.rs:25:18 [INFO] [stdout] | [INFO] [stdout] 25 | static ref RE_bot: Regex = Regex::new(r"pos=<(-?\d+),(-?\d+),(-?\d+)>, r=(\d+)").unwrap(); [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper case: `RE_BOT` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `RE_weak` should have an upper case name [INFO] [stdout] --> src/day24/parse.rs:39:16 [INFO] [stdout] | [INFO] [stdout] 39 | static ref RE_weak: Regex = Regex::new(r"weak to (\w+),?\s?(\w+)?,?\s?(\w+)?,?\s?(\w+)?").unwrap(); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper case: `RE_WEAK` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `RE_immune` should have an upper case name [INFO] [stdout] --> src/day24/parse.rs:47:16 [INFO] [stdout] | [INFO] [stdout] 47 | static ref RE_immune: Regex = Regex::new(r"immune to (\w+),?\s?(\w+)?,?\s?(\w+)?,?\s?(\w+)?").unwrap(); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `RE_IMMUNE` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `RE_group` should have an upper case name [INFO] [stdout] --> src/day24/parse.rs:55:16 [INFO] [stdout] | [INFO] [stdout] 55 | static ref RE_group: Regex = Regex::new(r"(\d+) units each with (\d+) hit points (\(.*\))? with an attack that does (\d+) (\w+) damag... [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper case: `RE_GROUP` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `RE_group_nospecial` should have an upper case name [INFO] [stdout] --> src/day24/parse.rs:56:16 [INFO] [stdout] | [INFO] [stdout] 56 | static ref RE_group_nospecial: Regex = Regex::new(r"(\d+) units each with (\d+) hit points (with) an attack that does (\d+) (\w+) dam... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `RE_GROUP_NOSPECIAL` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 30 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 30 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.67s [INFO] running `Command { std: "docker" "inspect" "ae4db7d40be791cef0d6381555ce9d06088855ec38c4ed59521ef6ee19d52f98", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ae4db7d40be791cef0d6381555ce9d06088855ec38c4ed59521ef6ee19d52f98", kill_on_drop: false }` [INFO] [stdout] ae4db7d40be791cef0d6381555ce9d06088855ec38c4ed59521ef6ee19d52f98 [INFO] checking migerh/aoc2018-rs against try#645bb72776a6a56a1a8f52631a44bd082b2ba509 for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmigerh%2Faoc2018-rs" "/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/migerh/aoc2018-rs on toolchain 645bb72776a6a56a1a8f52631a44bd082b2ba509 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/migerh/aoc2018-rs [INFO] finished tweaking git repo https://github.com/migerh/aoc2018-rs [INFO] tweaked toml for git repo https://github.com/migerh/aoc2018-rs written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/migerh/aoc2018-rs 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" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e654648f19e1776370d9f20b87f6374d71f6c93d21bfc153e381f19f1b67436f [INFO] running `Command { std: "docker" "start" "-a" "e654648f19e1776370d9f20b87f6374d71f6c93d21bfc153e381f19f1b67436f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e654648f19e1776370d9f20b87f6374d71f6c93d21bfc153e381f19f1b67436f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e654648f19e1776370d9f20b87f6374d71f6c93d21bfc153e381f19f1b67436f", kill_on_drop: false }` [INFO] [stdout] e654648f19e1776370d9f20b87f6374d71f6c93d21bfc153e381f19f1b67436f [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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d3b4a42ef52f9df819055123e7bb508e69de028a2710f7a759f027be83f56610 [INFO] running `Command { std: "docker" "start" "-a" "d3b4a42ef52f9df819055123e7bb508e69de028a2710f7a759f027be83f56610", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.44 [INFO] [stderr] Compiling version_check v0.1.5 [INFO] [stderr] Checking cfg-if v0.1.6 [INFO] [stderr] Checking lazy_static v1.2.0 [INFO] [stderr] Compiling regex v1.1.0 [INFO] [stderr] Checking regex-syntax v0.6.4 [INFO] [stderr] Checking thread_local v0.3.6 [INFO] [stderr] Compiling memchr v2.1.1 [INFO] [stderr] Checking aho-corasick v0.6.9 [INFO] [stderr] Checking y2018 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: the item `Option` is imported redundantly [INFO] [stdout] --> src/day2/mod.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::option::Option; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/645bb72776a6a56a1a8f52631a44bd082b2ba509/library/std/src/prelude/mod.rs:134:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Option` is already defined here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Option` is imported redundantly [INFO] [stdout] --> src/day6/mod.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::option::Option; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/645bb72776a6a56a1a8f52631a44bd082b2ba509/library/std/src/prelude/mod.rs:134:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Option` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Iterator` is imported redundantly [INFO] [stdout] --> src/day8/mod.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::iter::Iterator; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/645bb72776a6a56a1a8f52631a44bd082b2ba509/library/std/src/prelude/mod.rs:134:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Iterator` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Vec` is imported redundantly [INFO] [stdout] --> src/day14/mod.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::vec::Vec; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/645bb72776a6a56a1a8f52631a44bd082b2ba509/library/std/src/prelude/mod.rs:134:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Vec` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Option` is imported redundantly [INFO] [stdout] --> src/day2/mod.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::option::Option; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/645bb72776a6a56a1a8f52631a44bd082b2ba509/library/std/src/prelude/mod.rs:134:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Option` is already defined here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Option` is imported redundantly [INFO] [stdout] --> src/day6/mod.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::option::Option; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/645bb72776a6a56a1a8f52631a44bd082b2ba509/library/std/src/prelude/mod.rs:134:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Option` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Iterator` is imported redundantly [INFO] [stdout] --> src/day8/mod.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::iter::Iterator; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/645bb72776a6a56a1a8f52631a44bd082b2ba509/library/std/src/prelude/mod.rs:134:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Iterator` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Vec` is imported redundantly [INFO] [stdout] --> src/day14/mod.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::vec::Vec; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/645bb72776a6a56a1a8f52631a44bd082b2ba509/library/std/src/prelude/mod.rs:134:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Vec` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/day16/ops.rs:6:52 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn op_map() -> BTreeMap<&'static str, &'static Fn(State, i32, i32, i32) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 6 | pub fn op_map() -> BTreeMap<&'static str, &'static dyn Fn(State, i32, i32, i32) -> Option> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/day19/ops.rs:6:52 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn op_map() -> BTreeMap<&'static str, &'static Fn(State, i128, i128, i128) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 6 | pub fn op_map() -> BTreeMap<&'static str, &'static dyn Fn(State, i128, i128, i128) -> Option> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/utils/mod.rs:66:30 [INFO] [stdout] | [INFO] [stdout] 66 | fn cause(&self) -> Option<&std::error::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 66 | fn cause(&self) -> Option<&dyn std::error::Error> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/day16/ops.rs:6:52 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn op_map() -> BTreeMap<&'static str, &'static Fn(State, i32, i32, i32) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 6 | pub fn op_map() -> BTreeMap<&'static str, &'static dyn Fn(State, i32, i32, i32) -> Option> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/day19/ops.rs:6:52 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn op_map() -> BTreeMap<&'static str, &'static Fn(State, i128, i128, i128) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 6 | pub fn op_map() -> BTreeMap<&'static str, &'static dyn Fn(State, i128, i128, i128) -> Option> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/utils/mod.rs:66:30 [INFO] [stdout] | [INFO] [stdout] 66 | fn cause(&self) -> Option<&std::error::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 66 | fn cause(&self) -> Option<&dyn std::error::Error> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day21/ops.rs:87:16 [INFO] [stdout] | [INFO] [stdout] 87 | fn apply_rr(mut state: &mut State, a: i128, b: i128, c: i128, f: F) [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/day21/ops.rs:94:16 [INFO] [stdout] | [INFO] [stdout] 94 | fn apply_ri(mut state: &mut State, a: i128, b: i128, c: i128, f: F) [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/day21/ops.rs:101:16 [INFO] [stdout] | [INFO] [stdout] 101 | fn apply_ii(mut state: &mut State, a: i128, b: i128, c: i128, f: F) [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/day21/ops.rs:108:16 [INFO] [stdout] | [INFO] [stdout] 108 | fn apply_ir(mut state: &mut State, a: i128, b: i128, c: i128, f: F) [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `tick` is never read [INFO] [stdout] --> src/day15/unit.rs:25:7 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct Unit { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 25 | pub tick: u64, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Unit` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `REFallsAsleep` should have an upper case name [INFO] [stdout] --> src/day4/mod.rs:34:18 [INFO] [stdout] | [INFO] [stdout] 34 | static ref REFallsAsleep: Regex = Regex::new(r"falls asleep").unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper case: `REFALLS_ASLEEP` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `REWakesUp` should have an upper case name [INFO] [stdout] --> src/day4/mod.rs:35:18 [INFO] [stdout] | [INFO] [stdout] 35 | static ref REWakesUp: Regex = Regex::new(r"wakes up").unwrap(); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `REWAKES_UP` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `REStarts` should have an upper case name [INFO] [stdout] --> src/day4/mod.rs:36:18 [INFO] [stdout] | [INFO] [stdout] 36 | static ref REStarts: Regex = Regex::new(r"Guard \#(\d+) begins shift").unwrap(); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper case: `RESTARTS` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `REEdge` should have an upper case name [INFO] [stdout] --> src/day7/common.rs:16:18 [INFO] [stdout] | [INFO] [stdout] 16 | static ref REEdge: Regex = Regex::new(r"Step (.) must be finished before step (.) can begin\.").unwrap(); [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper case: `REEDGE` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day21/ops.rs:87:16 [INFO] [stdout] | [INFO] [stdout] 87 | fn apply_rr(mut state: &mut State, a: i128, b: i128, c: i128, f: F) [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/day21/ops.rs:94:16 [INFO] [stdout] | [INFO] [stdout] 94 | fn apply_ri(mut state: &mut State, a: i128, b: i128, c: i128, f: F) [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/day21/ops.rs:101:16 [INFO] [stdout] | [INFO] [stdout] 101 | fn apply_ii(mut state: &mut State, a: i128, b: i128, c: i128, f: F) [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/day21/ops.rs:108:16 [INFO] [stdout] | [INFO] [stdout] 108 | fn apply_ir(mut state: &mut State, a: i128, b: i128, c: i128, f: F) [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `RE_state` should have an upper case name [INFO] [stdout] --> src/day16/problems.rs:26:16 [INFO] [stdout] | [INFO] [stdout] 26 | static ref RE_state: Regex = Regex::new(r"\[(\d+), (\d+), (\d+), (\d+)\]").unwrap(); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper case: `RE_STATE` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `RE_instruction` should have an upper case name [INFO] [stdout] --> src/day16/problems.rs:39:16 [INFO] [stdout] | [INFO] [stdout] 39 | static ref RE_instruction: Regex = Regex::new(r"(\d+) (\d+) (\d+) (\d+)").unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to upper case: `RE_INSTRUCTION` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `RE_before` should have an upper case name [INFO] [stdout] --> src/day16/problems.rs:84:16 [INFO] [stdout] | [INFO] [stdout] 84 | static ref RE_before: Regex = Regex::new(r"Before:").unwrap(); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `RE_BEFORE` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `RE_x` should have an upper case name [INFO] [stdout] --> src/day17/mod.rs:64:16 [INFO] [stdout] | [INFO] [stdout] 64 | static ref RE_x: Regex = Regex::new(r"x=(\d+)(\.\.)?(\d+)?").unwrap(); [INFO] [stdout] | ^^^^ help: convert the identifier to upper case (notice the capitalization): `RE_X` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `RE_y` should have an upper case name [INFO] [stdout] --> src/day17/mod.rs:65:16 [INFO] [stdout] | [INFO] [stdout] 65 | static ref RE_y: Regex = Regex::new(r"y=(\d+)(\.\.)?(\d+)?").unwrap(); [INFO] [stdout] | ^^^^ help: convert the identifier to upper case (notice the capitalization): `RE_Y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `RE_ip` should have an upper case name [INFO] [stdout] --> src/day19/problems.rs:16:16 [INFO] [stdout] | [INFO] [stdout] 16 | static ref RE_ip: Regex = Regex::new(r"#ip (\d+)").unwrap(); [INFO] [stdout] | ^^^^^ help: convert the identifier to upper case: `RE_IP` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `RE_instruction` should have an upper case name [INFO] [stdout] --> src/day19/problems.rs:29:16 [INFO] [stdout] | [INFO] [stdout] 29 | static ref RE_instruction: Regex = Regex::new(r"([a-z]{4}) (\d+) (\d+) (\d+)").unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to upper case: `RE_INSTRUCTION` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `RE_ip` should have an upper case name [INFO] [stdout] --> src/day21/problems.rs:17:16 [INFO] [stdout] | [INFO] [stdout] 17 | static ref RE_ip: Regex = Regex::new(r"#ip (\d+)").unwrap(); [INFO] [stdout] | ^^^^^ help: convert the identifier to upper case: `RE_IP` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `RE_instruction` should have an upper case name [INFO] [stdout] --> src/day21/problems.rs:30:16 [INFO] [stdout] | [INFO] [stdout] 30 | static ref RE_instruction: Regex = Regex::new(r"([a-z]{4}) (\d+) (\d+) (\d+)").unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to upper case: `RE_INSTRUCTION` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `RE_bot` should have an upper case name [INFO] [stdout] --> src/day23/mod.rs:25:18 [INFO] [stdout] | [INFO] [stdout] 25 | static ref RE_bot: Regex = Regex::new(r"pos=<(-?\d+),(-?\d+),(-?\d+)>, r=(\d+)").unwrap(); [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper case: `RE_BOT` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `RE_weak` should have an upper case name [INFO] [stdout] --> src/day24/parse.rs:39:16 [INFO] [stdout] | [INFO] [stdout] 39 | static ref RE_weak: Regex = Regex::new(r"weak to (\w+),?\s?(\w+)?,?\s?(\w+)?,?\s?(\w+)?").unwrap(); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper case: `RE_WEAK` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `RE_immune` should have an upper case name [INFO] [stdout] --> src/day24/parse.rs:47:16 [INFO] [stdout] | [INFO] [stdout] 47 | static ref RE_immune: Regex = Regex::new(r"immune to (\w+),?\s?(\w+)?,?\s?(\w+)?,?\s?(\w+)?").unwrap(); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `RE_IMMUNE` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `RE_group` should have an upper case name [INFO] [stdout] --> src/day24/parse.rs:55:16 [INFO] [stdout] | [INFO] [stdout] 55 | static ref RE_group: Regex = Regex::new(r"(\d+) units each with (\d+) hit points (\(.*\))? with an attack that does (\d+) (\w+) damag... [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper case: `RE_GROUP` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `RE_group_nospecial` should have an upper case name [INFO] [stdout] --> src/day24/parse.rs:56:16 [INFO] [stdout] | [INFO] [stdout] 56 | static ref RE_group_nospecial: Regex = Regex::new(r"(\d+) units each with (\d+) hit points (with) an attack that does (\d+) (\w+) dam... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `RE_GROUP_NOSPECIAL` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 30 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `tick` is never read [INFO] [stdout] --> src/day15/unit.rs:25:7 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct Unit { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 25 | pub tick: u64, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Unit` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `REFallsAsleep` should have an upper case name [INFO] [stdout] --> src/day4/mod.rs:34:18 [INFO] [stdout] | [INFO] [stdout] 34 | static ref REFallsAsleep: Regex = Regex::new(r"falls asleep").unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper case: `REFALLS_ASLEEP` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `REWakesUp` should have an upper case name [INFO] [stdout] --> src/day4/mod.rs:35:18 [INFO] [stdout] | [INFO] [stdout] 35 | static ref REWakesUp: Regex = Regex::new(r"wakes up").unwrap(); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `REWAKES_UP` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `REStarts` should have an upper case name [INFO] [stdout] --> src/day4/mod.rs:36:18 [INFO] [stdout] | [INFO] [stdout] 36 | static ref REStarts: Regex = Regex::new(r"Guard \#(\d+) begins shift").unwrap(); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper case: `RESTARTS` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `REEdge` should have an upper case name [INFO] [stdout] --> src/day7/common.rs:16:18 [INFO] [stdout] | [INFO] [stdout] 16 | static ref REEdge: Regex = Regex::new(r"Step (.) must be finished before step (.) can begin\.").unwrap(); [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper case: `REEDGE` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `RE_state` should have an upper case name [INFO] [stdout] --> src/day16/problems.rs:26:16 [INFO] [stdout] | [INFO] [stdout] 26 | static ref RE_state: Regex = Regex::new(r"\[(\d+), (\d+), (\d+), (\d+)\]").unwrap(); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper case: `RE_STATE` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `RE_instruction` should have an upper case name [INFO] [stdout] --> src/day16/problems.rs:39:16 [INFO] [stdout] | [INFO] [stdout] 39 | static ref RE_instruction: Regex = Regex::new(r"(\d+) (\d+) (\d+) (\d+)").unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to upper case: `RE_INSTRUCTION` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `RE_before` should have an upper case name [INFO] [stdout] --> src/day16/problems.rs:84:16 [INFO] [stdout] | [INFO] [stdout] 84 | static ref RE_before: Regex = Regex::new(r"Before:").unwrap(); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `RE_BEFORE` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `RE_x` should have an upper case name [INFO] [stdout] --> src/day17/mod.rs:64:16 [INFO] [stdout] | [INFO] [stdout] 64 | static ref RE_x: Regex = Regex::new(r"x=(\d+)(\.\.)?(\d+)?").unwrap(); [INFO] [stdout] | ^^^^ help: convert the identifier to upper case (notice the capitalization): `RE_X` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `RE_y` should have an upper case name [INFO] [stdout] --> src/day17/mod.rs:65:16 [INFO] [stdout] | [INFO] [stdout] 65 | static ref RE_y: Regex = Regex::new(r"y=(\d+)(\.\.)?(\d+)?").unwrap(); [INFO] [stdout] | ^^^^ help: convert the identifier to upper case (notice the capitalization): `RE_Y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `RE_ip` should have an upper case name [INFO] [stdout] --> src/day19/problems.rs:16:16 [INFO] [stdout] | [INFO] [stdout] 16 | static ref RE_ip: Regex = Regex::new(r"#ip (\d+)").unwrap(); [INFO] [stdout] | ^^^^^ help: convert the identifier to upper case: `RE_IP` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `RE_instruction` should have an upper case name [INFO] [stdout] --> src/day19/problems.rs:29:16 [INFO] [stdout] | [INFO] [stdout] 29 | static ref RE_instruction: Regex = Regex::new(r"([a-z]{4}) (\d+) (\d+) (\d+)").unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to upper case: `RE_INSTRUCTION` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `RE_ip` should have an upper case name [INFO] [stdout] --> src/day21/problems.rs:17:16 [INFO] [stdout] | [INFO] [stdout] 17 | static ref RE_ip: Regex = Regex::new(r"#ip (\d+)").unwrap(); [INFO] [stdout] | ^^^^^ help: convert the identifier to upper case: `RE_IP` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `RE_instruction` should have an upper case name [INFO] [stdout] --> src/day21/problems.rs:30:16 [INFO] [stdout] | [INFO] [stdout] 30 | static ref RE_instruction: Regex = Regex::new(r"([a-z]{4}) (\d+) (\d+) (\d+)").unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to upper case: `RE_INSTRUCTION` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `RE_bot` should have an upper case name [INFO] [stdout] --> src/day23/mod.rs:25:18 [INFO] [stdout] | [INFO] [stdout] 25 | static ref RE_bot: Regex = Regex::new(r"pos=<(-?\d+),(-?\d+),(-?\d+)>, r=(\d+)").unwrap(); [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper case: `RE_BOT` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `RE_weak` should have an upper case name [INFO] [stdout] --> src/day24/parse.rs:39:16 [INFO] [stdout] | [INFO] [stdout] 39 | static ref RE_weak: Regex = Regex::new(r"weak to (\w+),?\s?(\w+)?,?\s?(\w+)?,?\s?(\w+)?").unwrap(); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper case: `RE_WEAK` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `RE_immune` should have an upper case name [INFO] [stdout] --> src/day24/parse.rs:47:16 [INFO] [stdout] | [INFO] [stdout] 47 | static ref RE_immune: Regex = Regex::new(r"immune to (\w+),?\s?(\w+)?,?\s?(\w+)?,?\s?(\w+)?").unwrap(); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `RE_IMMUNE` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `RE_group` should have an upper case name [INFO] [stdout] --> src/day24/parse.rs:55:16 [INFO] [stdout] | [INFO] [stdout] 55 | static ref RE_group: Regex = Regex::new(r"(\d+) units each with (\d+) hit points (\(.*\))? with an attack that does (\d+) (\w+) damag... [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper case: `RE_GROUP` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `RE_group_nospecial` should have an upper case name [INFO] [stdout] --> src/day24/parse.rs:56:16 [INFO] [stdout] | [INFO] [stdout] 56 | static ref RE_group_nospecial: Regex = Regex::new(r"(\d+) units each with (\d+) hit points (with) an attack that does (\d+) (\w+) dam... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `RE_GROUP_NOSPECIAL` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 30 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 5.21s [INFO] running `Command { std: "docker" "inspect" "d3b4a42ef52f9df819055123e7bb508e69de028a2710f7a759f027be83f56610", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d3b4a42ef52f9df819055123e7bb508e69de028a2710f7a759f027be83f56610", kill_on_drop: false }` [INFO] [stdout] d3b4a42ef52f9df819055123e7bb508e69de028a2710f7a759f027be83f56610