[INFO] cloning repository https://github.com/shrav-k/aoc_2022 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/shrav-k/aoc_2022" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fshrav-k%2Faoc_2022", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fshrav-k%2Faoc_2022'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c9243928403dc7872ff5fac4a0d69ed6cdd37b23 [INFO] checking shrav-k/aoc_2022 against master#1f12b9b0fdbe735968ac002792a720f0ba4faca6 for crater-rollup-uwu [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fshrav-k%2Faoc_2022" "/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/shrav-k/aoc_2022 on toolchain 1f12b9b0fdbe735968ac002792a720f0ba4faca6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/shrav-k/aoc_2022 [INFO] finished tweaking git repo https://github.com/shrav-k/aoc_2022 [INFO] tweaked toml for git repo https://github.com/shrav-k/aoc_2022 written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/shrav-k/aoc_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" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded min-max-heap v1.3.0 [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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 244472be47852df15d091c8c2a035d756f50d3e319f2725a9c6086258091aa51 [INFO] running `Command { std: "docker" "start" "-a" "244472be47852df15d091c8c2a035d756f50d3e319f2725a9c6086258091aa51", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "244472be47852df15d091c8c2a035d756f50d3e319f2725a9c6086258091aa51", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "244472be47852df15d091c8c2a035d756f50d3e319f2725a9c6086258091aa51", kill_on_drop: false }` [INFO] [stdout] 244472be47852df15d091c8c2a035d756f50d3e319f2725a9c6086258091aa51 [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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ebf4023fdf620c7bb06ee74b5124887a98a9c3bdf90ff7c646e3e95146e708ce [INFO] running `Command { std: "docker" "start" "-a" "ebf4023fdf620c7bb06ee74b5124887a98a9c3bdf90ff7c646e3e95146e708ce", kill_on_drop: false }` [INFO] [stderr] Checking min-max-heap v1.3.0 [INFO] [stderr] Checking aoc_2022 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::cmp::Ordering` [INFO] [stdout] --> src/solutions/expedition/snack.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cmp::Ordering; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp::Ordering` [INFO] [stdout] --> src/solutions/expedition/snack.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cmp::Ordering; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/solutions/directory.rs:52:21 [INFO] [stdout] | [INFO] [stdout] 52 | let mut dir = dir_map.get_mut(&curr_dir).unwrap(); [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/solutions/directory.rs:52:21 [INFO] [stdout] | [INFO] [stdout] 52 | let mut dir = dir_map.get_mut(&curr_dir).unwrap(); [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/solutions/directory.rs:124:9 [INFO] [stdout] | [INFO] [stdout] 124 | let mut dir = dir_map.get_mut(curr_dir).unwrap(); [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/solutions/directory.rs:124:9 [INFO] [stdout] | [INFO] [stdout] 124 | let mut dir = dir_map.get_mut(curr_dir).unwrap(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Directory` is more private than the item `DirectoryMap` [INFO] [stdout] --> src/solutions/directory.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | pub type DirectoryMap = Arc>>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ type alias `DirectoryMap` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `Directory` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/solutions/directory.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | struct Directory { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Directory` is more private than the item `DirectoryMap` [INFO] [stdout] --> src/solutions/directory.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | pub type DirectoryMap = Arc>>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ type alias `DirectoryMap` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `Directory` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/solutions/directory.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | struct Directory { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_cleanup` is never used [INFO] [stdout] --> src/solutions/cleanup.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn read_cleanup(path: &str) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_cleanup_2` is never used [INFO] [stdout] --> src/solutions/cleanup.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn read_cleanup_2(path: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_cleanup` is never used [INFO] [stdout] --> src/solutions/cleanup.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn read_cleanup(path: &str) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_cleanup_2` is never used [INFO] [stdout] --> src/solutions/cleanup.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn read_cleanup_2(path: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `overlap` is never used [INFO] [stdout] --> src/solutions/cleanup.rs:33:4 [INFO] [stdout] | [INFO] [stdout] 33 | fn overlap(ranges: Vec) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `contained` is never used [INFO] [stdout] --> src/solutions/cleanup.rs:40:4 [INFO] [stdout] | [INFO] [stdout] 40 | fn contained(ranges: Vec) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `overlap` is never used [INFO] [stdout] --> src/solutions/cleanup.rs:33:4 [INFO] [stdout] | [INFO] [stdout] 33 | fn overlap(ranges: Vec) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_ranges` is never used [INFO] [stdout] --> src/solutions/cleanup.rs:45:4 [INFO] [stdout] | [INFO] [stdout] 45 | fn get_ranges(sections: String) -> Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `contained` is never used [INFO] [stdout] --> src/solutions/cleanup.rs:40:4 [INFO] [stdout] | [INFO] [stdout] 40 | fn contained(ranges: Vec) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_crates` is never used [INFO] [stdout] --> src/solutions/crates.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn read_crates(path: &str) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `index_map` is never used [INFO] [stdout] --> src/solutions/crates.rs:87:4 [INFO] [stdout] | [INFO] [stdout] 87 | fn index_map(index: &str, original: &str) -> usize { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_ranges` is never used [INFO] [stdout] --> src/solutions/cleanup.rs:45:4 [INFO] [stdout] | [INFO] [stdout] 45 | fn get_ranges(sections: String) -> Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `addr_of` is never used [INFO] [stdout] --> src/solutions/crates.rs:91:4 [INFO] [stdout] | [INFO] [stdout] 91 | fn addr_of(s: &str) -> usize { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_crates` is never used [INFO] [stdout] --> src/solutions/crates.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn read_crates(path: &str) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_datastream` is never used [INFO] [stdout] --> src/solutions/datastream.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn read_datastream(path: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `non_repeating` is never used [INFO] [stdout] --> src/solutions/datastream.rs:9:4 [INFO] [stdout] | [INFO] [stdout] 9 | fn non_repeating(line: String) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `index_map` is never used [INFO] [stdout] --> src/solutions/crates.rs:87:4 [INFO] [stdout] | [INFO] [stdout] 87 | fn index_map(index: &str, original: &str) -> usize { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `DirectoryMap` is never used [INFO] [stdout] --> src/solutions/directory.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 9 | pub type DirectoryMap = Arc>>; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `addr_of` is never used [INFO] [stdout] --> src/solutions/crates.rs:91:4 [INFO] [stdout] | [INFO] [stdout] 91 | fn addr_of(s: &str) -> usize { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Directory` is never constructed [INFO] [stdout] --> src/solutions/directory.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | struct Directory { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_directory` is never used [INFO] [stdout] --> src/solutions/directory.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn read_directory(path: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_datastream` is never used [INFO] [stdout] --> src/solutions/datastream.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn read_datastream(path: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `small_sizes` is never used [INFO] [stdout] --> src/solutions/directory.rs:102:4 [INFO] [stdout] | [INFO] [stdout] 102 | fn small_sizes(dir_map_lock: DirectoryMap, curr_dir: &str) -> (u64, u64) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parent` is never used [INFO] [stdout] --> src/solutions/directory.rs:131:4 [INFO] [stdout] | [INFO] [stdout] 131 | fn parent(path: &str) -> &str { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `elves` is never read [INFO] [stdout] --> src/solutions/expedition.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct Expedition { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 12 | elves: MinMaxHeap [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `non_repeating` is never used [INFO] [stdout] --> src/solutions/datastream.rs:9:4 [INFO] [stdout] | [INFO] [stdout] 9 | fn non_repeating(line: String) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `DirectoryMap` is never used [INFO] [stdout] --> src/solutions/directory.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 9 | pub type DirectoryMap = Arc>>; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `add_elf`, `most_calories`, and `top_k_calories` are never used [INFO] [stdout] --> src/solutions/expedition.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl Expedition { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] 16 | pub fn add_elf(&mut self, elf: Elf) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | pub fn most_calories(&self) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn top_k_calories(&mut self, k: u64) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Directory` is never constructed [INFO] [stdout] --> src/solutions/directory.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | struct Directory { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_directory` is never used [INFO] [stdout] --> src/solutions/directory.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn read_directory(path: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_expedition` is never used [INFO] [stdout] --> src/solutions/expedition.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn read_expedition(path: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `small_sizes` is never used [INFO] [stdout] --> src/solutions/directory.rs:102:4 [INFO] [stdout] | [INFO] [stdout] 102 | fn small_sizes(dir_map_lock: DirectoryMap, curr_dir: &str) -> (u64, u64) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `snacks` is never read [INFO] [stdout] --> src/solutions/expedition/elf.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Elf { [INFO] [stdout] | --- field in this struct [INFO] [stdout] 8 | snacks: MinMaxHeap, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parent` is never used [INFO] [stdout] --> src/solutions/directory.rs:131:4 [INFO] [stdout] | [INFO] [stdout] 131 | fn parent(path: &str) -> &str { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `add_snack` and `add_snacks` are never used [INFO] [stdout] --> src/solutions/expedition/elf.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 32 | impl Elf { [INFO] [stdout] | -------- methods in this implementation [INFO] [stdout] 33 | pub fn add_snack(&mut self, calories: u64) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | pub fn add_snacks(&mut self, cal_vec: &Vec) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `elves` is never read [INFO] [stdout] --> src/solutions/expedition.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct Expedition { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 12 | elves: MinMaxHeap [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_rope` is never used [INFO] [stdout] --> src/solutions/rope.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn read_rope(path: &str) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_rope_2` is never used [INFO] [stdout] --> src/solutions/rope.rs:50:8 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn read_rope_2(path: &str) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `add_elf`, `most_calories`, and `top_k_calories` are never used [INFO] [stdout] --> src/solutions/expedition.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl Expedition { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] 16 | pub fn add_elf(&mut self, elf: Elf) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | pub fn most_calories(&self) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn top_k_calories(&mut self, k: u64) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `tail_move` is never used [INFO] [stdout] --> src/solutions/rope.rs:104:4 [INFO] [stdout] | [INFO] [stdout] 104 | fn tail_move(head: (i32, i32), tail: (i32, i32)) -> (i32, i32) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_expedition` is never used [INFO] [stdout] --> src/solutions/expedition.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn read_expedition(path: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_rps` is never used [INFO] [stdout] --> src/solutions/rps.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn read_rps(path: &str) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `snacks` is never read [INFO] [stdout] --> src/solutions/expedition/elf.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Elf { [INFO] [stdout] | --- field in this struct [INFO] [stdout] 8 | snacks: MinMaxHeap, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_rps_2` is never used [INFO] [stdout] --> src/solutions/rps.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn read_rps_2(path: &str) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_rucksack_2` is never used [INFO] [stdout] --> src/solutions/rucksack.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn read_rucksack_2(path: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `add_snack` and `add_snacks` are never used [INFO] [stdout] --> src/solutions/expedition/elf.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 32 | impl Elf { [INFO] [stdout] | -------- methods in this implementation [INFO] [stdout] 33 | pub fn add_snack(&mut self, calories: u64) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | pub fn add_snacks(&mut self, cal_vec: &Vec) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_badge_value` is never used [INFO] [stdout] --> src/solutions/rucksack.rs:21:4 [INFO] [stdout] | [INFO] [stdout] 21 | fn get_badge_value(rucksacks: &Vec) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_rope` is never used [INFO] [stdout] --> src/solutions/rope.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn read_rope(path: &str) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_badge` is never used [INFO] [stdout] --> src/solutions/rucksack.rs:34:4 [INFO] [stdout] | [INFO] [stdout] 34 | fn get_badge(first: &str, second: &str, third: &str) -> char { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_rope_2` is never used [INFO] [stdout] --> src/solutions/rope.rs:50:8 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn read_rope_2(path: &str) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_rucksack` is never used [INFO] [stdout] --> src/solutions/rucksack.rs:43:8 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn read_rucksack(path: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `tail_move` is never used [INFO] [stdout] --> src/solutions/rope.rs:104:4 [INFO] [stdout] | [INFO] [stdout] 104 | fn tail_move(head: (i32, i32), tail: (i32, i32)) -> (i32, i32) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_shared_priority` is never used [INFO] [stdout] --> src/solutions/rucksack.rs:56:4 [INFO] [stdout] | [INFO] [stdout] 56 | fn get_shared_priority(items: String) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_rps` is never used [INFO] [stdout] --> src/solutions/rps.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn read_rps(path: &str) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_shared_char` is never used [INFO] [stdout] --> src/solutions/rucksack.rs:67:4 [INFO] [stdout] | [INFO] [stdout] 67 | fn get_shared_char(first: &str, second: &str) -> char { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_rps_2` is never used [INFO] [stdout] --> src/solutions/rps.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn read_rps_2(path: &str) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_priority` is never used [INFO] [stdout] --> src/solutions/rucksack.rs:76:4 [INFO] [stdout] | [INFO] [stdout] 76 | fn get_priority(c: char) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_rucksack_2` is never used [INFO] [stdout] --> src/solutions/rucksack.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn read_rucksack_2(path: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_signal` is never used [INFO] [stdout] --> src/solutions/signal.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn read_signal(path: &str) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_badge_value` is never used [INFO] [stdout] --> src/solutions/rucksack.rs:21:4 [INFO] [stdout] | [INFO] [stdout] 21 | fn get_badge_value(rucksacks: &Vec) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_trees` is never used [INFO] [stdout] --> src/solutions/trees.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn read_trees(path: &str) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_badge` is never used [INFO] [stdout] --> src/solutions/rucksack.rs:34:4 [INFO] [stdout] | [INFO] [stdout] 34 | fn get_badge(first: &str, second: &str, third: &str) -> char { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `visible_trees` is never used [INFO] [stdout] --> src/solutions/trees.rs:21:4 [INFO] [stdout] | [INFO] [stdout] 21 | fn visible_trees(trees: Vec>) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_rucksack` is never used [INFO] [stdout] --> src/solutions/rucksack.rs:43:8 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn read_rucksack(path: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `max_scenic_score` is never used [INFO] [stdout] --> src/solutions/trees.rs:99:4 [INFO] [stdout] | [INFO] [stdout] 99 | fn max_scenic_score(trees: Vec>) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_shared_priority` is never used [INFO] [stdout] --> src/solutions/rucksack.rs:56:4 [INFO] [stdout] | [INFO] [stdout] 56 | fn get_shared_priority(items: String) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_shared_char` is never used [INFO] [stdout] --> src/solutions/rucksack.rs:67:4 [INFO] [stdout] | [INFO] [stdout] 67 | fn get_shared_char(first: &str, second: &str) -> char { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_priority` is never used [INFO] [stdout] --> src/solutions/rucksack.rs:76:4 [INFO] [stdout] | [INFO] [stdout] 76 | fn get_priority(c: char) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_signal` is never used [INFO] [stdout] --> src/solutions/signal.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn read_signal(path: &str) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_trees` is never used [INFO] [stdout] --> src/solutions/trees.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn read_trees(path: &str) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `visible_trees` is never used [INFO] [stdout] --> src/solutions/trees.rs:21:4 [INFO] [stdout] | [INFO] [stdout] 21 | fn visible_trees(trees: Vec>) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `max_scenic_score` is never used [INFO] [stdout] --> src/solutions/trees.rs:99:4 [INFO] [stdout] | [INFO] [stdout] 99 | fn max_scenic_score(trees: Vec>) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 40 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 40 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.22s [INFO] running `Command { std: "docker" "inspect" "ebf4023fdf620c7bb06ee74b5124887a98a9c3bdf90ff7c646e3e95146e708ce", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ebf4023fdf620c7bb06ee74b5124887a98a9c3bdf90ff7c646e3e95146e708ce", kill_on_drop: false }` [INFO] [stdout] ebf4023fdf620c7bb06ee74b5124887a98a9c3bdf90ff7c646e3e95146e708ce