[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 try#c387b04bf028733cd561d62128c8a5eee4bc1458+rustflags=-Dtail_expr_drop_order for pr-130930 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCheesyB%2Frust-advent-2022" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/CheesyB/rust-advent-2022 on toolchain c387b04bf028733cd561d62128c8a5eee4bc1458 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c387b04bf028733cd561d62128c8a5eee4bc1458" "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-7-tc2/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" "+c387b04bf028733cd561d62128c8a5eee4bc1458" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+c387b04bf028733cd561d62128c8a5eee4bc1458" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 90e36180cb9e24805cbbaf7ee0e183fc643256b1b5055eef5c77d4007f4ab9e4 [INFO] running `Command { std: "docker" "start" "-a" "90e36180cb9e24805cbbaf7ee0e183fc643256b1b5055eef5c77d4007f4ab9e4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "90e36180cb9e24805cbbaf7ee0e183fc643256b1b5055eef5c77d4007f4ab9e4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "90e36180cb9e24805cbbaf7ee0e183fc643256b1b5055eef5c77d4007f4ab9e4", kill_on_drop: false }` [INFO] [stdout] 90e36180cb9e24805cbbaf7ee0e183fc643256b1b5055eef5c77d4007f4ab9e4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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 -Dtail_expr_drop_order" "-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+c387b04bf028733cd561d62128c8a5eee4bc1458" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] bbf89b1dda68d6c76af34d2cd589c2a7acc0a4a2e24362894826807fe29fe6f2 [INFO] running `Command { std: "docker" "start" "-a" "bbf89b1dda68d6c76af34d2cd589c2a7acc0a4a2e24362894826807fe29fe6f2", kill_on_drop: false }` [INFO] [stderr] Checking either v1.9.0 [INFO] [stderr] Checking minimal-lexical v0.2.1 [INFO] [stderr] Checking aho-corasick v1.0.4 [INFO] [stderr] Checking nom v7.1.3 [INFO] [stderr] Checking itertools v0.11.0 [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: elided lifetime has a name [INFO] [stdout] --> src/advent11/mod.rs:113:47 [INFO] [stdout] | [INFO] [stdout] 113 | fn heading<'a>(input: &'a str) -> IResult<&str, i64> { [INFO] [stdout] | -- lifetime `'a` declared here ^ this elided lifetime gets resolved as `'a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(elided_named_lifetimes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/advent11/mod.rs:187:52 [INFO] [stdout] | [INFO] [stdout] 187 | fn parse_monkey<'a>(input: &'a str) -> IResult<&str, Monkey> { [INFO] [stdout] | -- lifetime `'a` declared here ^ this elided lifetime gets resolved as `'a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/advent11/mod.rs:204:53 [INFO] [stdout] | [INFO] [stdout] 204 | fn parse_monkey2<'a>(input: &'a str) -> IResult<&str, Monkey2> { [INFO] [stdout] | -- lifetime `'a` declared here ^ this elided lifetime gets resolved as `'a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/advent11/mod.rs:222:49 [INFO] [stdout] | [INFO] [stdout] 222 | pub fn parse<'a>(input: &'a str) -> IResult<&str, Vec> { [INFO] [stdout] | -- lifetime `'a` declared here ^ this elided lifetime gets resolved as `'a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/advent11/mod.rs:226:50 [INFO] [stdout] | [INFO] [stdout] 226 | pub fn parse2<'a>(input: &'a str) -> IResult<&str, Vec> { [INFO] [stdout] | -- lifetime `'a` declared here ^ this elided lifetime gets resolved as `'a` [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: elided lifetime has a name [INFO] [stdout] --> src/advent13/mod.rs:11:43 [INFO] [stdout] | [INFO] [stdout] 11 | fn parse_level<'a>(input: &'a str) -> Vec { [INFO] [stdout] | -- ^^^^^^^ this elided lifetime gets resolved as `'a` [INFO] [stdout] | | [INFO] [stdout] | lifetime `'a` declared here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/advent11/mod.rs:113:47 [INFO] [stdout] | [INFO] [stdout] 113 | fn heading<'a>(input: &'a str) -> IResult<&str, i64> { [INFO] [stdout] | -- lifetime `'a` declared here ^ this elided lifetime gets resolved as `'a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(elided_named_lifetimes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/advent11/mod.rs:187:52 [INFO] [stdout] | [INFO] [stdout] 187 | fn parse_monkey<'a>(input: &'a str) -> IResult<&str, Monkey> { [INFO] [stdout] | -- lifetime `'a` declared here ^ this elided lifetime gets resolved as `'a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/advent11/mod.rs:204:53 [INFO] [stdout] | [INFO] [stdout] 204 | fn parse_monkey2<'a>(input: &'a str) -> IResult<&str, Monkey2> { [INFO] [stdout] | -- lifetime `'a` declared here ^ this elided lifetime gets resolved as `'a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/advent11/mod.rs:222:49 [INFO] [stdout] | [INFO] [stdout] 222 | pub fn parse<'a>(input: &'a str) -> IResult<&str, Vec> { [INFO] [stdout] | -- lifetime `'a` declared here ^ this elided lifetime gets resolved as `'a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/advent11/mod.rs:226:50 [INFO] [stdout] | [INFO] [stdout] 226 | pub fn parse2<'a>(input: &'a str) -> IResult<&str, Vec> { [INFO] [stdout] | -- lifetime `'a` declared here ^ this elided lifetime gets resolved as `'a` [INFO] [stdout] [INFO] [stdout] [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: elided lifetime has a name [INFO] [stdout] --> src/advent13/mod.rs:11:43 [INFO] [stdout] | [INFO] [stdout] 11 | fn parse_level<'a>(input: &'a str) -> Vec { [INFO] [stdout] | -- ^^^^^^^ this elided lifetime gets resolved as `'a` [INFO] [stdout] | | [INFO] [stdout] | lifetime `'a` declared here [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: elided lifetime has a name [INFO] [stdout] --> src/advent16/ele_domain.rs:20:61 [INFO] [stdout] | [INFO] [stdout] 19 | impl<'a> Network<'a> { [INFO] [stdout] | -- lifetime `'a` declared here [INFO] [stdout] 20 | pub fn new(input: Vec<(&'a str, u32, Vec<&'a str>)>) -> Network { [INFO] [stdout] | ^^^^^^^ this elided lifetime gets resolved as `'a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/advent16/ele_domain.rs:62:50 [INFO] [stdout] | [INFO] [stdout] 19 | impl<'a> Network<'a> { [INFO] [stdout] | -- lifetime `'a` declared here [INFO] [stdout] ... [INFO] [stdout] 62 | pub fn get_edges(&'a self, name: &'a str) -> &Vec<(&'a str, u32)> { [INFO] [stdout] | ^ this elided lifetime gets resolved as `'a` [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: elided lifetime has a name [INFO] [stdout] --> src/advent16/ele_domain.rs:20:61 [INFO] [stdout] | [INFO] [stdout] 19 | impl<'a> Network<'a> { [INFO] [stdout] | -- lifetime `'a` declared here [INFO] [stdout] 20 | pub fn new(input: Vec<(&'a str, u32, Vec<&'a str>)>) -> Network { [INFO] [stdout] | ^^^^^^^ this elided lifetime gets resolved as `'a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/advent16/ele_domain.rs:62:50 [INFO] [stdout] | [INFO] [stdout] 19 | impl<'a> Network<'a> { [INFO] [stdout] | -- lifetime `'a` declared here [INFO] [stdout] ... [INFO] [stdout] 62 | pub fn get_edges(&'a self, name: &'a str) -> &Vec<(&'a str, u32)> { [INFO] [stdout] | ^ this elided lifetime gets resolved as `'a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/advent16/ele_domain.rs:70:53 [INFO] [stdout] | [INFO] [stdout] 19 | impl<'a> Network<'a> { [INFO] [stdout] | -- lifetime `'a` declared here [INFO] [stdout] ... [INFO] [stdout] 70 | pub fn get_pressure(&'a self, name: &'a str) -> &pressure { [INFO] [stdout] | ^ this elided lifetime gets resolved as `'a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/advent16/ele_domain.rs:70:53 [INFO] [stdout] | [INFO] [stdout] 19 | impl<'a> Network<'a> { [INFO] [stdout] | -- lifetime `'a` declared here [INFO] [stdout] ... [INFO] [stdout] 70 | pub fn get_pressure(&'a self, name: &'a str) -> &pressure { [INFO] [stdout] | ^ this elided lifetime gets resolved as `'a` [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 `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: 39 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 `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: 39 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 6.11s [INFO] running `Command { std: "docker" "inspect" "bbf89b1dda68d6c76af34d2cd589c2a7acc0a4a2e24362894826807fe29fe6f2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bbf89b1dda68d6c76af34d2cd589c2a7acc0a4a2e24362894826807fe29fe6f2", kill_on_drop: false }` [INFO] [stdout] bbf89b1dda68d6c76af34d2cd589c2a7acc0a4a2e24362894826807fe29fe6f2