[INFO] cloning repository https://github.com/mdacach/advent_of_code_2022 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/mdacach/advent_of_code_2022" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmdacach%2Fadvent_of_code_2022", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmdacach%2Fadvent_of_code_2022'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 4fdad19c6de316afad283c93f55977f94848a56f [INFO] building mdacach/advent_of_code_2022 against master#ad85bc524b1ad696e42061ad8338d382dffbdbe5 for pr-146237-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmdacach%2Fadvent_of_code_2022" "/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/mdacach/advent_of_code_2022 [INFO] finished tweaking git repo https://github.com/mdacach/advent_of_code_2022 [INFO] tweaked toml for git repo https://github.com/mdacach/advent_of_code_2022 written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/mdacach/advent_of_code_2022 on toolchain ad85bc524b1ad696e42061ad8338d382dffbdbe5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/mdacach/advent_of_code_2022 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded tracing-core v0.1.30 [INFO] [stderr] Downloaded owo-colors v3.5.0 [INFO] [stderr] Downloaded thread_local v1.1.4 [INFO] [stderr] Downloaded either v1.8.1 [INFO] [stderr] Downloaded rustc-demangle v0.1.21 [INFO] [stderr] Downloaded eyre v0.6.8 [INFO] [stderr] Downloaded once_cell v1.17.0 [INFO] [stderr] Downloaded color-spantrace v0.2.0 [INFO] [stderr] Downloaded tracing-subscriber v0.3.16 [INFO] [stderr] Downloaded object v0.30.3 [INFO] [stderr] Downloaded color-eyre v0.6.2 [INFO] [stderr] Downloaded libc v0.2.139 [INFO] [stderr] Downloaded gimli v0.27.1 [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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d2e60943de697f2507ec7fc0c2e3a79cc8f44dfa5e27419851c5c02f060ca525 [INFO] running `Command { std: "docker" "start" "-a" "d2e60943de697f2507ec7fc0c2e3a79cc8f44dfa5e27419851c5c02f060ca525", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d2e60943de697f2507ec7fc0c2e3a79cc8f44dfa5e27419851c5c02f060ca525", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d2e60943de697f2507ec7fc0c2e3a79cc8f44dfa5e27419851c5c02f060ca525", kill_on_drop: false }` [INFO] [stdout] d2e60943de697f2507ec7fc0c2e3a79cc8f44dfa5e27419851c5c02f060ca525 [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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ea9de2b087e42d5dc7c3d46fe331a354fa36649d56b4dc03762db88db0ab8575 [INFO] running `Command { std: "docker" "start" "-a" "ea9de2b087e42d5dc7c3d46fe331a354fa36649d56b4dc03762db88db0ab8575", kill_on_drop: false }` [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] [stderr] Compiling once_cell v1.17.0 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling cc v1.0.79 [INFO] [stderr] Compiling libc v0.2.139 [INFO] [stderr] Compiling pin-project-lite v0.2.9 [INFO] [stderr] Compiling gimli v0.27.1 [INFO] [stderr] Compiling eyre v0.6.8 [INFO] [stderr] Compiling either v1.8.1 [INFO] [stderr] Compiling owo-colors v3.5.0 [INFO] [stderr] Compiling rustc-demangle v0.1.21 [INFO] [stderr] Compiling indenter v0.3.3 [INFO] [stderr] Compiling miniz_oxide v0.6.2 [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Compiling sharded-slab v0.1.4 [INFO] [stderr] Compiling tracing-core v0.1.30 [INFO] [stderr] Compiling thread_local v1.1.4 [INFO] [stderr] Compiling object v0.30.3 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling backtrace v0.3.67 [INFO] [stderr] Compiling tracing v0.1.37 [INFO] [stderr] Compiling tracing-subscriber v0.3.16 [INFO] [stderr] Compiling day_06 v0.1.0 (/opt/rustwide/workdir/day_06) [INFO] [stderr] Compiling day_01 v0.1.0 (/opt/rustwide/workdir/day_01) [INFO] [stdout] warning: unused import: `itertools::Itertools` [INFO] [stdout] --> day_06/src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use itertools::Itertools; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling tracing-error v0.2.0 [INFO] [stderr] Compiling color-spantrace v0.2.0 [INFO] [stderr] Compiling addr2line v0.19.0 [INFO] [stderr] Compiling color-eyre v0.6.2 [INFO] [stderr] Compiling day_02 v0.1.0 (/opt/rustwide/workdir/day_02) [INFO] [stderr] Compiling day_04 v0.1.0 (/opt/rustwide/workdir/day_04) [INFO] [stderr] Compiling day_03 v0.1.0 (/opt/rustwide/workdir/day_03) [INFO] [stderr] Compiling day_05 v0.1.0 (/opt/rustwide/workdir/day_05) [INFO] [stdout] warning: unused import: `Parser` [INFO] [stdout] --> day_05/src/main.rs:5:20 [INFO] [stdout] | [INFO] [stdout] 5 | use nom::{IResult, Parser}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> day_05/src/main.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | let mut parser = delimited(tag("["), take(1_usize), tag("]")); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> day_05/src/main.rs:8:14 [INFO] [stdout] | [INFO] [stdout] 8 | struct Crate(char); [INFO] [stdout] | ----- ^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] = note: `Crate` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Move` is never constructed [INFO] [stdout] --> day_05/src/main.rs:76:12 [INFO] [stdout] | [INFO] [stdout] 76 | struct Move { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `State` is never constructed [INFO] [stdout] --> day_05/src/main.rs:103:12 [INFO] [stdout] | [INFO] [stdout] 103 | struct State { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `add_to_front_of_stack`, `perform_move`, `perform_batch_move`, and `get_topmost_crates` are never used [INFO] [stdout] --> day_05/src/main.rs:108:12 [INFO] [stdout] | [INFO] [stdout] 107 | impl State { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 108 | fn new(number_stacks: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 117 | fn add_to_front_of_stack(&mut self, stack_number: usize, to_add: char) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 122 | fn perform_move(&mut self, m: Move) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 136 | fn perform_batch_move(&mut self, m: Move) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 154 | fn get_topmost_crates(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> day_05/src/main.rs:164:8 [INFO] [stdout] | [INFO] [stdout] 164 | fn main() -> color_eyre::Result<()> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_for_group` is never used [INFO] [stdout] --> day_03/src/main.rs:30:4 [INFO] [stdout] | [INFO] [stdout] 30 | fn solve_for_group(group: &[&str]) -> char { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Range` is never constructed [INFO] [stdout] --> day_04/src/main.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct Range { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `is_contained` and `overlap` are never used [INFO] [stdout] --> day_04/src/main.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 22 | impl Range { [INFO] [stdout] | ---------- associated functions in this implementation [INFO] [stdout] 23 | fn is_contained(first: Range, second: Range) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | fn overlap(first: Range, second: Range) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Assignment` is never constructed [INFO] [stdout] --> day_04/src/main.rs:34:8 [INFO] [stdout] | [INFO] [stdout] 34 | struct Assignment { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `has_contained_ranges` and `has_overlapping_ranges` are never used [INFO] [stdout] --> day_04/src/main.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 39 | impl Assignment { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] 40 | fn has_contained_ranges(self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | fn has_overlapping_ranges(self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `contains_range` and `contains_or_is_contained` are never used [INFO] [stdout] --> day_04/src/main.rs:62:8 [INFO] [stdout] | [INFO] [stdout] 61 | trait RangeInclusiveExt { [INFO] [stdout] | ----------------- methods in this trait [INFO] [stdout] 62 | fn contains_range(&self, other: &Self) -> bool; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 63 | [INFO] [stdout] 64 | fn contains_or_is_contained(&self, other: &Self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mine` is never used [INFO] [stdout] --> day_04/src/main.rs:88:4 [INFO] [stdout] | [INFO] [stdout] 88 | fn mine() -> color_eyre::Result<()> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> day_04/src/main.rs:101:5 [INFO] [stdout] | [INFO] [stdout] 101 | dbg!(answer); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 101 | let _ = dbg!(answer); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 14.42s [INFO] running `Command { std: "docker" "inspect" "ea9de2b087e42d5dc7c3d46fe331a354fa36649d56b4dc03762db88db0ab8575", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ea9de2b087e42d5dc7c3d46fe331a354fa36649d56b4dc03762db88db0ab8575", kill_on_drop: false }` [INFO] [stdout] ea9de2b087e42d5dc7c3d46fe331a354fa36649d56b4dc03762db88db0ab8575 [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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c41bbb87508df57f4d01aaf547f659d8cbd9184517b7e14b428ee515ba63156e [INFO] running `Command { std: "docker" "start" "-a" "c41bbb87508df57f4d01aaf547f659d8cbd9184517b7e14b428ee515ba63156e", kill_on_drop: false }` [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] [stderr] Compiling day_05 v0.1.0 (/opt/rustwide/workdir/day_05) [INFO] [stderr] Compiling day_04 v0.1.0 (/opt/rustwide/workdir/day_04) [INFO] [stderr] Compiling day_02 v0.1.0 (/opt/rustwide/workdir/day_02) [INFO] [stderr] Compiling day_03 v0.1.0 (/opt/rustwide/workdir/day_03) [INFO] [stderr] Compiling day_06 v0.1.0 (/opt/rustwide/workdir/day_06) [INFO] [stderr] Compiling day_01 v0.1.0 (/opt/rustwide/workdir/day_01) [INFO] [stdout] warning: function `solve_for_group` is never used [INFO] [stdout] --> day_03/src/main.rs:30:4 [INFO] [stdout] | [INFO] [stdout] 30 | fn solve_for_group(group: &[&str]) -> char { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `itertools::Itertools` [INFO] [stdout] --> day_06/src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use itertools::Itertools; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Parser` [INFO] [stdout] --> day_05/src/main.rs:5:20 [INFO] [stdout] | [INFO] [stdout] 5 | use nom::{IResult, Parser}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> day_05/src/main.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | let mut parser = delimited(tag("["), take(1_usize), tag("]")); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> day_05/src/main.rs:8:14 [INFO] [stdout] | [INFO] [stdout] 8 | struct Crate(char); [INFO] [stdout] | ----- ^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] = note: `Crate` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Move` is never constructed [INFO] [stdout] --> day_05/src/main.rs:76:12 [INFO] [stdout] | [INFO] [stdout] 76 | struct Move { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `State` is never constructed [INFO] [stdout] --> day_05/src/main.rs:103:12 [INFO] [stdout] | [INFO] [stdout] 103 | struct State { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `add_to_front_of_stack`, `perform_move`, `perform_batch_move`, and `get_topmost_crates` are never used [INFO] [stdout] --> day_05/src/main.rs:108:12 [INFO] [stdout] | [INFO] [stdout] 107 | impl State { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 108 | fn new(number_stacks: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 117 | fn add_to_front_of_stack(&mut self, stack_number: usize, to_add: char) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 122 | fn perform_move(&mut self, m: Move) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 136 | fn perform_batch_move(&mut self, m: Move) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 154 | fn get_topmost_crates(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> day_05/src/main.rs:164:8 [INFO] [stdout] | [INFO] [stdout] 164 | fn main() -> color_eyre::Result<()> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Range` is never constructed [INFO] [stdout] --> day_04/src/main.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct Range { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `is_contained` and `overlap` are never used [INFO] [stdout] --> day_04/src/main.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 22 | impl Range { [INFO] [stdout] | ---------- associated functions in this implementation [INFO] [stdout] 23 | fn is_contained(first: Range, second: Range) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | fn overlap(first: Range, second: Range) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Assignment` is never constructed [INFO] [stdout] --> day_04/src/main.rs:34:8 [INFO] [stdout] | [INFO] [stdout] 34 | struct Assignment { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `has_contained_ranges` and `has_overlapping_ranges` are never used [INFO] [stdout] --> day_04/src/main.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 39 | impl Assignment { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] 40 | fn has_contained_ranges(self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | fn has_overlapping_ranges(self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `contains_range` and `contains_or_is_contained` are never used [INFO] [stdout] --> day_04/src/main.rs:62:8 [INFO] [stdout] | [INFO] [stdout] 61 | trait RangeInclusiveExt { [INFO] [stdout] | ----------------- methods in this trait [INFO] [stdout] 62 | fn contains_range(&self, other: &Self) -> bool; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 63 | [INFO] [stdout] 64 | fn contains_or_is_contained(&self, other: &Self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mine` is never used [INFO] [stdout] --> day_04/src/main.rs:88:4 [INFO] [stdout] | [INFO] [stdout] 88 | fn mine() -> color_eyre::Result<()> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> day_04/src/main.rs:101:5 [INFO] [stdout] | [INFO] [stdout] 101 | dbg!(answer); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 101 | let _ = dbg!(answer); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.91s [INFO] running `Command { std: "docker" "inspect" "c41bbb87508df57f4d01aaf547f659d8cbd9184517b7e14b428ee515ba63156e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c41bbb87508df57f4d01aaf547f659d8cbd9184517b7e14b428ee515ba63156e", kill_on_drop: false }` [INFO] [stdout] c41bbb87508df57f4d01aaf547f659d8cbd9184517b7e14b428ee515ba63156e