[INFO] cloning repository https://github.com/CheesyB/rust-advent-2022 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/CheesyB/rust-advent-2022" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCheesyB%2Frust-advent-2022", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCheesyB%2Frust-advent-2022'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 912614f93edd92d2cdfc68446147ac260baaa648 [INFO] checking CheesyB/rust-advent-2022/912614f93edd92d2cdfc68446147ac260baaa648 against master#ab869e094a907cc5d19b4080f22eccaf347f1f95 for pr-129604 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCheesyB%2Frust-advent-2022" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/CheesyB/rust-advent-2022 on toolchain ab869e094a907cc5d19b4080f22eccaf347f1f95 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/CheesyB/rust-advent-2022 [INFO] finished tweaking git repo https://github.com/CheesyB/rust-advent-2022 [INFO] tweaked toml for git repo https://github.com/CheesyB/rust-advent-2022 written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/CheesyB/rust-advent-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" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5c1dbcef53710cc203bc8cc4ca72eceb4569c91576b82c0a56da36e84553f22a [INFO] running `Command { std: "docker" "start" "-a" "5c1dbcef53710cc203bc8cc4ca72eceb4569c91576b82c0a56da36e84553f22a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5c1dbcef53710cc203bc8cc4ca72eceb4569c91576b82c0a56da36e84553f22a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5c1dbcef53710cc203bc8cc4ca72eceb4569c91576b82c0a56da36e84553f22a", kill_on_drop: false }` [INFO] [stdout] 5c1dbcef53710cc203bc8cc4ca72eceb4569c91576b82c0a56da36e84553f22a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7c94bcaccd1f065c3695476ac15dd4e67384ce667f5b7ebe06294f29d6a8d89a [INFO] running `Command { std: "docker" "start" "-a" "7c94bcaccd1f065c3695476ac15dd4e67384ce667f5b7ebe06294f29d6a8d89a", kill_on_drop: false }` [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Checking regex-syntax v0.7.4 [INFO] [stderr] Checking itertools v0.11.0 [INFO] [stderr] Checking aho-corasick v1.0.4 [INFO] [stderr] Checking nom v7.1.3 [INFO] [stderr] Checking regex-automata v0.3.6 [INFO] [stderr] Checking regex v1.9.3 [INFO] [stderr] Checking advent_of_code v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `tree::print_node` [INFO] [stdout] --> src/advent12/mod.rs:312:17 [INFO] [stdout] | [INFO] [stdout] 312 | use super::{tree::print_node, *}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `fmt::format` [INFO] [stdout] --> src/advent13/mod.rs:1:26 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{cmp::Ordering, fmt::format, vec}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `fmt::format` [INFO] [stdout] --> src/advent13/mod.rs:1:26 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{cmp::Ordering, fmt::format, vec}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HashSet` and `ops::Sub` [INFO] [stdout] --> src/advent16/ele_domain.rs:2:38 [INFO] [stdout] | [INFO] [stdout] 2 | collections::{BTreeSet, HashMap, HashSet}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 3 | ops::Sub, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `pressure` should have an upper camel case name [INFO] [stdout] --> src/advent16/ele_domain.rs:10:6 [INFO] [stdout] | [INFO] [stdout] 10 | type pressure = u32; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Pressure` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `weight` should have an upper camel case name [INFO] [stdout] --> src/advent16/ele_domain.rs:11:6 [INFO] [stdout] | [INFO] [stdout] 11 | type weight = u32; [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Weight` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HashSet` and `ops::Sub` [INFO] [stdout] --> src/advent16/ele_domain.rs:2:38 [INFO] [stdout] | [INFO] [stdout] 2 | collections::{BTreeSet, HashMap, HashSet}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 3 | ops::Sub, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `pressure` should have an upper camel case name [INFO] [stdout] --> src/advent16/ele_domain.rs:10:6 [INFO] [stdout] | [INFO] [stdout] 10 | type pressure = u32; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Pressure` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `weight` should have an upper camel case name [INFO] [stdout] --> src/advent16/ele_domain.rs:11:6 [INFO] [stdout] | [INFO] [stdout] 11 | type weight = u32; [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Weight` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `itertools::Itertools` [INFO] [stdout] --> src/advent16/ele_algo.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use itertools::Itertools; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `itertools::Itertools` [INFO] [stdout] --> src/advent16/ele_algo.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use itertools::Itertools; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `previouse_position` is never read [INFO] [stdout] --> src/advent14/domain.rs:72:13 [INFO] [stdout] | [INFO] [stdout] 72 | let mut previouse_position = start_position.clone(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `previouse_position` is never read [INFO] [stdout] --> src/advent14/domain.rs:105:13 [INFO] [stdout] | [INFO] [stdout] 105 | let mut previouse_position = start_position.clone(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `previouse_position` is never read [INFO] [stdout] --> src/advent14/domain.rs:72:13 [INFO] [stdout] | [INFO] [stdout] 72 | let mut previouse_position = start_position.clone(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `previouse_position` is never read [INFO] [stdout] --> src/advent14/domain.rs:105:13 [INFO] [stdout] | [INFO] [stdout] 105 | let mut previouse_position = start_position.clone(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `advent12_2` is never used [INFO] [stdout] --> src/advent12/mod.rs:254:8 [INFO] [stdout] | [INFO] [stdout] 254 | pub fn advent12_2() -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `capsule_bfs` is never used [INFO] [stdout] --> src/advent12/mod.rs:192:12 [INFO] [stdout] | [INFO] [stdout] 192 | pub fn capsule_bfs(start_position: &Position, grid: &Grid) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `manhattan_distance` is never used [INFO] [stdout] --> src/advent15/mod.rs:10:4 [INFO] [stdout] | [INFO] [stdout] 10 | fn manhattan_distance(source: Coord, target: Coord) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_not_occupied` is never used [INFO] [stdout] --> src/advent15/mod.rs:14:4 [INFO] [stdout] | [INFO] [stdout] 14 | fn is_not_occupied(sb: &Vec<(Coord, Coord, u64)>, other: Coord) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `advent15` is never used [INFO] [stdout] --> src/advent15/mod.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn advent15() -> String { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `advent15_2` is never used [INFO] [stdout] --> src/advent15/mod.rs:50:8 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn advent15_2() -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `norm` is never used [INFO] [stdout] --> src/advent15/domain.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 22 | impl Coord { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] 23 | fn norm(self, rhs: Coord) -> i64 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `potential_beacon` is never used [INFO] [stdout] --> src/advent15/domain.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn potential_beacon(sensor: Coord, mhd: i64) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `distance` is never used [INFO] [stdout] --> src/advent15/domain.rs:56:8 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn distance(m: i64, c1: i64, c2: i64) -> f64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_line` is never used [INFO] [stdout] --> src/advent15/parsing.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn parse_line(line: &str) -> (Coord, Coord) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `advent16` is never used [INFO] [stdout] --> src/advent16/mod.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn advent16() -> String { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `advent16_2` is never used [INFO] [stdout] --> src/advent16/mod.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn advent16_2() -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `reduce_network` is never used [INFO] [stdout] --> src/advent16/ele_algo.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn reduce_network<'a>(network: &Network, reduced_nodes: &Vec<&'a str>) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `network_bfs` is never used [INFO] [stdout] --> src/advent16/ele_algo.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn network_bfs<'a>(network: &'a Network, start: &'a str, end: &'a str) -> Vec<&'a str> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `agent_bfs` is never used [INFO] [stdout] --> src/advent16/ele_algo.rs:50:8 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn agent_bfs<'a>( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `two_agent_bfs` is never used [INFO] [stdout] --> src/advent16/ele_algo.rs:84:8 [INFO] [stdout] | [INFO] [stdout] 84 | pub fn two_agent_bfs<'a>(network: &'a Network, start: &'a str, total_min: u32) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `get_edges`, and `get_pressure` are never used [INFO] [stdout] --> src/advent16/ele_domain.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl<'a> Network<'a> { [INFO] [stdout] | -------------------- associated items in this implementation [INFO] [stdout] 20 | pub fn new(input: Vec<(&'a str, u32, Vec<&'a str>)>) -> Network { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | pub fn get_edges(&'a self, name: &'a str) -> &Vec<(&'a str, u32)> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | pub fn get_pressure(&'a self, name: &'a str) -> &pressure { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `is_exhausted`, and `append_next` are never used [INFO] [stdout] --> src/advent16/ele_domain.rs:85:12 [INFO] [stdout] | [INFO] [stdout] 84 | impl<'a> ERoute<'a> { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 85 | pub fn new(current_valve: &'a str, min_remaining: u32) -> ERoute<'a> { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 94 | pub fn is_exhausted(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | pub fn append_next<'b>(&'b mut self, next: &(&'a str, weight), pressure: pressure) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_line` is never used [INFO] [stdout] --> src/advent16/parsing.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn parse_line(line: &str) -> IResult<&str, (&str, u32, Vec<&str>)> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `advent17` is never used [INFO] [stdout] --> src/advent17/mod.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn advent17() -> String { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `simulate` is never used [INFO] [stdout] --> src/advent17/algo.rs:87:8 [INFO] [stdout] | [INFO] [stdout] 87 | pub fn simulate(input: &str, iterrations: usize) -> i64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_crack` is never used [INFO] [stdout] --> src/advent17/algo.rs:122:4 [INFO] [stdout] | [INFO] [stdout] 122 | fn print_crack(rested_shapes: &Vec, shape: &Shape) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/advent16/ele_algo.rs:39:38 [INFO] [stdout] | [INFO] [stdout] 39 | new_path.push(next_stop.0.clone()); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 30 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `advent12_2` is never used [INFO] [stdout] --> src/advent12/mod.rs:254:8 [INFO] [stdout] | [INFO] [stdout] 254 | pub fn advent12_2() -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `capsule_bfs` is never used [INFO] [stdout] --> src/advent12/mod.rs:192:12 [INFO] [stdout] | [INFO] [stdout] 192 | pub fn capsule_bfs(start_position: &Position, grid: &Grid) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_not_occupied` is never used [INFO] [stdout] --> src/advent15/mod.rs:14:4 [INFO] [stdout] | [INFO] [stdout] 14 | fn is_not_occupied(sb: &Vec<(Coord, Coord, u64)>, other: Coord) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `advent15` is never used [INFO] [stdout] --> src/advent15/mod.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn advent15() -> String { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `advent15_2` is never used [INFO] [stdout] --> src/advent15/mod.rs:50:8 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn advent15_2() -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `norm` is never used [INFO] [stdout] --> src/advent15/domain.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 22 | impl Coord { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] 23 | fn norm(self, rhs: Coord) -> i64 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `potential_beacon` is never used [INFO] [stdout] --> src/advent15/domain.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn potential_beacon(sensor: Coord, mhd: i64) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `distance` is never used [INFO] [stdout] --> src/advent15/domain.rs:56:8 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn distance(m: i64, c1: i64, c2: i64) -> f64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_line` is never used [INFO] [stdout] --> src/advent15/parsing.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn parse_line(line: &str) -> (Coord, Coord) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `advent16` is never used [INFO] [stdout] --> src/advent16/mod.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn advent16() -> String { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `advent16_2` is never used [INFO] [stdout] --> src/advent16/mod.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn advent16_2() -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `reduce_network` is never used [INFO] [stdout] --> src/advent16/ele_algo.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn reduce_network<'a>(network: &Network, reduced_nodes: &Vec<&'a str>) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `network_bfs` is never used [INFO] [stdout] --> src/advent16/ele_algo.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn network_bfs<'a>(network: &'a Network, start: &'a str, end: &'a str) -> Vec<&'a str> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `agent_bfs` is never used [INFO] [stdout] --> src/advent16/ele_algo.rs:50:8 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn agent_bfs<'a>( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `two_agent_bfs` is never used [INFO] [stdout] --> src/advent16/ele_algo.rs:84:8 [INFO] [stdout] | [INFO] [stdout] 84 | pub fn two_agent_bfs<'a>(network: &'a Network, start: &'a str, total_min: u32) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `get_edges`, and `get_pressure` are never used [INFO] [stdout] --> src/advent16/ele_domain.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl<'a> Network<'a> { [INFO] [stdout] | -------------------- associated items in this implementation [INFO] [stdout] 20 | pub fn new(input: Vec<(&'a str, u32, Vec<&'a str>)>) -> Network { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | pub fn get_edges(&'a self, name: &'a str) -> &Vec<(&'a str, u32)> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | pub fn get_pressure(&'a self, name: &'a str) -> &pressure { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `is_exhausted`, and `append_next` are never used [INFO] [stdout] --> src/advent16/ele_domain.rs:85:12 [INFO] [stdout] | [INFO] [stdout] 84 | impl<'a> ERoute<'a> { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 85 | pub fn new(current_valve: &'a str, min_remaining: u32) -> ERoute<'a> { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 94 | pub fn is_exhausted(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | pub fn append_next<'b>(&'b mut self, next: &(&'a str, weight), pressure: pressure) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_line` is never used [INFO] [stdout] --> src/advent16/parsing.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn parse_line(line: &str) -> IResult<&str, (&str, u32, Vec<&str>)> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `advent17` is never used [INFO] [stdout] --> src/advent17/mod.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn advent17() -> String { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `simulate` is never used [INFO] [stdout] --> src/advent17/algo.rs:87:8 [INFO] [stdout] | [INFO] [stdout] 87 | pub fn simulate(input: &str, iterrations: usize) -> i64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_crack` is never used [INFO] [stdout] --> src/advent17/algo.rs:122:4 [INFO] [stdout] | [INFO] [stdout] 122 | fn print_crack(rested_shapes: &Vec, shape: &Shape) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/advent16/ele_algo.rs:39:38 [INFO] [stdout] | [INFO] [stdout] 39 | new_path.push(next_stop.0.clone()); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 30 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 6.36s [INFO] running `Command { std: "docker" "inspect" "7c94bcaccd1f065c3695476ac15dd4e67384ce667f5b7ebe06294f29d6a8d89a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7c94bcaccd1f065c3695476ac15dd4e67384ce667f5b7ebe06294f29d6a8d89a", kill_on_drop: false }` [INFO] [stdout] 7c94bcaccd1f065c3695476ac15dd4e67384ce667f5b7ebe06294f29d6a8d89a