[INFO] cloning repository https://github.com/BillOTei/rustyAoc20 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/BillOTei/rustyAoc20" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FBillOTei%2FrustyAoc20", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FBillOTei%2FrustyAoc20'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 3d5b8c79c562ead04a171f95def7ccfb36d2f3c9 [INFO] checking BillOTei/rustyAoc20 against try#8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FBillOTei%2FrustyAoc20" "/workspace/builds/worker-3/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/BillOTei/rustyAoc20 on toolchain 8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/BillOTei/rustyAoc20 [INFO] finished tweaking git repo https://github.com/BillOTei/rustyAoc20 [INFO] tweaked toml for git repo https://github.com/BillOTei/rustyAoc20 written to /workspace/builds/worker-3/source/Cargo.toml [INFO] crate git repo https://github.com/BillOTei/rustyAoc20 already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded serde_scan v0.4.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] cfed05fadb6e35793ea6b9627d28b8599c9d65864eba19d6febb3e8a72ac2f33 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "cfed05fadb6e35793ea6b9627d28b8599c9d65864eba19d6febb3e8a72ac2f33", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "cfed05fadb6e35793ea6b9627d28b8599c9d65864eba19d6febb3e8a72ac2f33", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cfed05fadb6e35793ea6b9627d28b8599c9d65864eba19d6febb3e8a72ac2f33", kill_on_drop: false }` [INFO] [stdout] cfed05fadb6e35793ea6b9627d28b8599c9d65864eba19d6febb3e8a72ac2f33 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 79392fa2279d363f896b53d82934f1e7ce71301c3979fcafee7486cd71c6e971 [INFO] running `Command { std: "docker" "start" "-a" "79392fa2279d363f896b53d82934f1e7ce71301c3979fcafee7486cd71c6e971", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling syn v1.0.53 [INFO] [stderr] Compiling memchr v2.3.4 [INFO] [stderr] Compiling ucd-trie v0.1.3 [INFO] [stderr] Compiling serde v1.0.117 [INFO] [stderr] Compiling maplit v1.0.2 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking itertools v0.9.0 [INFO] [stderr] Checking thread_local v1.0.1 [INFO] [stderr] Checking pest v2.1.3 [INFO] [stderr] Checking aho-corasick v0.7.15 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Checking regex v1.4.2 [INFO] [stderr] Compiling pest_meta v2.1.3 [INFO] [stderr] Compiling pest_generator v2.1.3 [INFO] [stderr] Compiling pest_derive v2.1.0 [INFO] [stderr] Checking serde_scan v0.4.1 [INFO] [stderr] Checking aoc20 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `HashSet` [INFO] [stdout] --> src/main.rs:5:33 [INFO] [stdout] | [INFO] [stdout] 5 | use std::collections::{HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::hash_map::RandomState` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::collections::hash_map::RandomState; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashSet` [INFO] [stdout] --> src/main.rs:5:33 [INFO] [stdout] | [INFO] [stdout] 5 | use std::collections::{HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::hash_map::RandomState` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::collections::hash_map::RandomState; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/main.rs:59:15 [INFO] [stdout] | [INFO] [stdout] 59 | for (key, value) in &bags { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bags` [INFO] [stdout] --> src/main.rs:70:17 [INFO] [stdout] | [INFO] [stdout] 70 | fn recurse_bags(bags: &HashMap<&str, HashMap<&str, usize>>, color: &str) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_bags` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `color` [INFO] [stdout] --> src/main.rs:70:61 [INFO] [stdout] | [INFO] [stdout] 70 | fn recurse_bags(bags: &HashMap<&str, HashMap<&str, usize>>, color: &str) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/main.rs:59:15 [INFO] [stdout] | [INFO] [stdout] 59 | for (key, value) in &bags { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bags` [INFO] [stdout] --> src/main.rs:70:17 [INFO] [stdout] | [INFO] [stdout] 70 | fn recurse_bags(bags: &HashMap<&str, HashMap<&str, usize>>, color: &str) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_bags` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `color` [INFO] [stdout] --> src/main.rs:70:61 [INFO] [stdout] | [INFO] [stdout] 70 | fn recurse_bags(bags: &HashMap<&str, HashMap<&str, usize>>, color: &str) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get` [INFO] [stdout] --> src/day_01/mod.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn get(first_number_str: &str, second_number_str: &str) -> Result<(i32, i32), ParseIntError> { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get2` [INFO] [stdout] --> src/day_01/mod.rs:10:4 [INFO] [stdout] | [INFO] [stdout] 10 | fn get2(first_number_str: &str, second_number_str: &str, third_number_str: &str) -> Result<(i32, i32, i32), ParseIntError> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `solve_step_1` [INFO] [stdout] --> src/day_01/mod.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn solve_step_1() -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `solve_step_2` [INFO] [stdout] --> src/day_01/mod.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn solve_step_2() -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `lines_from_file` [INFO] [stdout] --> src/day_02/mod.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn lines_from_file(filename: impl AsRef) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `parse_line` [INFO] [stdout] --> src/day_02/mod.rs:13:4 [INFO] [stdout] | [INFO] [stdout] 13 | fn parse_line(line: &str) -> (usize, usize, char, String) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_valid` [INFO] [stdout] --> src/day_02/mod.rs:17:4 [INFO] [stdout] | [INFO] [stdout] 17 | fn is_valid(line: &str) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_valid2` [INFO] [stdout] --> src/day_02/mod.rs:24:4 [INFO] [stdout] | [INFO] [stdout] 24 | fn is_valid2(line: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `solve_step_1` [INFO] [stdout] --> src/day_02/mod.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn solve_step_1() -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `solve_step_2` [INFO] [stdout] --> src/day_02/mod.rs:47:8 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn solve_step_2() -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `lines_from_file` [INFO] [stdout] --> src/day_03/mod.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn lines_from_file(filename: impl AsRef) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `count_trees` [INFO] [stdout] --> src/day_03/mod.rs:11:4 [INFO] [stdout] | [INFO] [stdout] 11 | fn count_trees(map: impl Iterator, slope: (usize, usize)) -> usize { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `solve_step_1` [INFO] [stdout] --> src/day_03/mod.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn solve_step_1() -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `solve_step_2` [INFO] [stdout] --> src/day_03/mod.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn solve_step_2() -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `INPUT` [INFO] [stdout] --> src/day_04/mod.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | const INPUT: &str = include_str!("./04_in"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `HEADERS` [INFO] [stdout] --> src/day_04/mod.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | / const HEADERS: &[&str; 7] = &[ [INFO] [stdout] 5 | | r"byr:", [INFO] [stdout] 6 | | r"iyr:", [INFO] [stdout] 7 | | r"eyr:", [INFO] [stdout] ... | [INFO] [stdout] 11 | | r"pid:" [INFO] [stdout] 12 | | ]; [INFO] [stdout] | |__^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `HEADERS_LEN` [INFO] [stdout] --> src/day_04/mod.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | const HEADERS_LEN: &usize = &HEADERS.len(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `solve_step_1` [INFO] [stdout] --> src/day_04/mod.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn solve_step_1() -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_valid_byr` [INFO] [stdout] --> src/day_04/mod.rs:29:4 [INFO] [stdout] | [INFO] [stdout] 29 | fn is_valid_byr(l: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_valid_iyr` [INFO] [stdout] --> src/day_04/mod.rs:43:4 [INFO] [stdout] | [INFO] [stdout] 43 | fn is_valid_iyr(l: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_valid_eyr` [INFO] [stdout] --> src/day_04/mod.rs:57:4 [INFO] [stdout] | [INFO] [stdout] 57 | fn is_valid_eyr(l: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_valid_hgt` [INFO] [stdout] --> src/day_04/mod.rs:71:4 [INFO] [stdout] | [INFO] [stdout] 71 | fn is_valid_hgt(l: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_valid_hcl` [INFO] [stdout] --> src/day_04/mod.rs:94:4 [INFO] [stdout] | [INFO] [stdout] 94 | fn is_valid_hcl(l: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_valid_ecl` [INFO] [stdout] --> src/day_04/mod.rs:105:4 [INFO] [stdout] | [INFO] [stdout] 105 | fn is_valid_ecl(l: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_valid_pid` [INFO] [stdout] --> src/day_04/mod.rs:116:4 [INFO] [stdout] | [INFO] [stdout] 116 | fn is_valid_pid(l: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `solve_step_2` [INFO] [stdout] --> src/day_04/mod.rs:127:8 [INFO] [stdout] | [INFO] [stdout] 127 | pub fn solve_step_2() -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `INPUT` [INFO] [stdout] --> src/day_05/mod.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | const INPUT: &str = include_str!("05_in"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `front` [INFO] [stdout] --> src/day_05/mod.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn front(low_y: usize, hi_y: usize) -> (usize, usize) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `back` [INFO] [stdout] --> src/day_05/mod.rs:9:4 [INFO] [stdout] | [INFO] [stdout] 9 | fn back(low_y: usize, hi_y: usize) -> (usize, usize) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `left` [INFO] [stdout] --> src/day_05/mod.rs:15:4 [INFO] [stdout] | [INFO] [stdout] 15 | fn left(low_x: usize, hi_x: usize) -> (usize, usize) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `right` [INFO] [stdout] --> src/day_05/mod.rs:21:4 [INFO] [stdout] | [INFO] [stdout] 21 | fn right(low_x: usize, hi_x: usize) -> (usize, usize) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `process_rows` [INFO] [stdout] --> src/day_05/mod.rs:27:4 [INFO] [stdout] | [INFO] [stdout] 27 | fn process_rows(l: &str, low_y: usize, hi_y: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `process_columns` [INFO] [stdout] --> src/day_05/mod.rs:54:4 [INFO] [stdout] | [INFO] [stdout] 54 | fn process_columns(l: &str, low_x: usize, hi_x: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `solve_step_1` [INFO] [stdout] --> src/day_05/mod.rs:82:8 [INFO] [stdout] | [INFO] [stdout] 82 | pub fn solve_step_1() -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `solve_step_2` [INFO] [stdout] --> src/day_05/mod.rs:95:8 [INFO] [stdout] | [INFO] [stdout] 95 | pub fn solve_step_2() -> isize { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `INPUT` [INFO] [stdout] --> src/day_06/mod.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | const INPUT: &str = include_str!("06_in"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `solve_step_1` [INFO] [stdout] --> src/day_06/mod.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn solve_step_1() -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `questions_map` [INFO] [stdout] --> src/day_06/mod.rs:17:4 [INFO] [stdout] | [INFO] [stdout] 17 | fn questions_map(l: &str) -> HashSet { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `solve_step_2` [INFO] [stdout] --> src/day_06/mod.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn solve_step_2() -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `recurse_bags` [INFO] [stdout] --> src/main.rs:70:4 [INFO] [stdout] | [INFO] [stdout] 70 | fn recurse_bags(bags: &HashMap<&str, HashMap<&str, usize>>, color: &str) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/day_05/mod.rs:43:29 [INFO] [stdout] | [INFO] [stdout] 43 | x => panic!(format!("wrong format with {}", x)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_fmt_panic)]` on by default [INFO] [stdout] = note: this is no longer accepted in Rust 2021 [INFO] [stdout] = note: the panic!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 43 | x => panic!("wrong format with {}", x) [INFO] [stdout] | -- -- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/day_05/mod.rs:50:21 [INFO] [stdout] | [INFO] [stdout] 50 | x => panic!(format!("wrong format with {}", x)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this is no longer accepted in Rust 2021 [INFO] [stdout] = note: the panic!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 50 | x => panic!("wrong format with {}", x) [INFO] [stdout] | -- -- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/day_05/mod.rs:71:29 [INFO] [stdout] | [INFO] [stdout] 71 | x => panic!(format!("wrong format with {}", x)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this is no longer accepted in Rust 2021 [INFO] [stdout] = note: the panic!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 71 | x => panic!("wrong format with {}", x) [INFO] [stdout] | -- -- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/day_05/mod.rs:78:21 [INFO] [stdout] | [INFO] [stdout] 78 | x => panic!(format!("wrong format with {}", x)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this is no longer accepted in Rust 2021 [INFO] [stdout] = note: the panic!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 78 | x => panic!("wrong format with {}", x) [INFO] [stdout] | -- -- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 49 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get` [INFO] [stdout] --> src/day_01/mod.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn get(first_number_str: &str, second_number_str: &str) -> Result<(i32, i32), ParseIntError> { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get2` [INFO] [stdout] --> src/day_01/mod.rs:10:4 [INFO] [stdout] | [INFO] [stdout] 10 | fn get2(first_number_str: &str, second_number_str: &str, third_number_str: &str) -> Result<(i32, i32, i32), ParseIntError> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `solve_step_1` [INFO] [stdout] --> src/day_01/mod.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn solve_step_1() -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `solve_step_2` [INFO] [stdout] --> src/day_01/mod.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn solve_step_2() -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `lines_from_file` [INFO] [stdout] --> src/day_02/mod.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn lines_from_file(filename: impl AsRef) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `parse_line` [INFO] [stdout] --> src/day_02/mod.rs:13:4 [INFO] [stdout] | [INFO] [stdout] 13 | fn parse_line(line: &str) -> (usize, usize, char, String) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_valid` [INFO] [stdout] --> src/day_02/mod.rs:17:4 [INFO] [stdout] | [INFO] [stdout] 17 | fn is_valid(line: &str) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_valid2` [INFO] [stdout] --> src/day_02/mod.rs:24:4 [INFO] [stdout] | [INFO] [stdout] 24 | fn is_valid2(line: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `solve_step_1` [INFO] [stdout] --> src/day_02/mod.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn solve_step_1() -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `solve_step_2` [INFO] [stdout] --> src/day_02/mod.rs:47:8 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn solve_step_2() -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `lines_from_file` [INFO] [stdout] --> src/day_03/mod.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn lines_from_file(filename: impl AsRef) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `count_trees` [INFO] [stdout] --> src/day_03/mod.rs:11:4 [INFO] [stdout] | [INFO] [stdout] 11 | fn count_trees(map: impl Iterator, slope: (usize, usize)) -> usize { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `solve_step_1` [INFO] [stdout] --> src/day_03/mod.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn solve_step_1() -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `solve_step_2` [INFO] [stdout] --> src/day_03/mod.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn solve_step_2() -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `INPUT` [INFO] [stdout] --> src/day_04/mod.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | const INPUT: &str = include_str!("./04_in"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `HEADERS` [INFO] [stdout] --> src/day_04/mod.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | / const HEADERS: &[&str; 7] = &[ [INFO] [stdout] 5 | | r"byr:", [INFO] [stdout] 6 | | r"iyr:", [INFO] [stdout] 7 | | r"eyr:", [INFO] [stdout] ... | [INFO] [stdout] 11 | | r"pid:" [INFO] [stdout] 12 | | ]; [INFO] [stdout] | |__^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `HEADERS_LEN` [INFO] [stdout] --> src/day_04/mod.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | const HEADERS_LEN: &usize = &HEADERS.len(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `solve_step_1` [INFO] [stdout] --> src/day_04/mod.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn solve_step_1() -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_valid_byr` [INFO] [stdout] --> src/day_04/mod.rs:29:4 [INFO] [stdout] | [INFO] [stdout] 29 | fn is_valid_byr(l: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_valid_iyr` [INFO] [stdout] --> src/day_04/mod.rs:43:4 [INFO] [stdout] | [INFO] [stdout] 43 | fn is_valid_iyr(l: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_valid_eyr` [INFO] [stdout] --> src/day_04/mod.rs:57:4 [INFO] [stdout] | [INFO] [stdout] 57 | fn is_valid_eyr(l: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_valid_hgt` [INFO] [stdout] --> src/day_04/mod.rs:71:4 [INFO] [stdout] | [INFO] [stdout] 71 | fn is_valid_hgt(l: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_valid_hcl` [INFO] [stdout] --> src/day_04/mod.rs:94:4 [INFO] [stdout] | [INFO] [stdout] 94 | fn is_valid_hcl(l: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_valid_ecl` [INFO] [stdout] --> src/day_04/mod.rs:105:4 [INFO] [stdout] | [INFO] [stdout] 105 | fn is_valid_ecl(l: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_valid_pid` [INFO] [stdout] --> src/day_04/mod.rs:116:4 [INFO] [stdout] | [INFO] [stdout] 116 | fn is_valid_pid(l: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `solve_step_2` [INFO] [stdout] --> src/day_04/mod.rs:127:8 [INFO] [stdout] | [INFO] [stdout] 127 | pub fn solve_step_2() -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `INPUT` [INFO] [stdout] --> src/day_05/mod.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | const INPUT: &str = include_str!("05_in"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `front` [INFO] [stdout] --> src/day_05/mod.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn front(low_y: usize, hi_y: usize) -> (usize, usize) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `back` [INFO] [stdout] --> src/day_05/mod.rs:9:4 [INFO] [stdout] | [INFO] [stdout] 9 | fn back(low_y: usize, hi_y: usize) -> (usize, usize) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `left` [INFO] [stdout] --> src/day_05/mod.rs:15:4 [INFO] [stdout] | [INFO] [stdout] 15 | fn left(low_x: usize, hi_x: usize) -> (usize, usize) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `right` [INFO] [stdout] --> src/day_05/mod.rs:21:4 [INFO] [stdout] | [INFO] [stdout] 21 | fn right(low_x: usize, hi_x: usize) -> (usize, usize) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `process_rows` [INFO] [stdout] --> src/day_05/mod.rs:27:4 [INFO] [stdout] | [INFO] [stdout] 27 | fn process_rows(l: &str, low_y: usize, hi_y: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `process_columns` [INFO] [stdout] --> src/day_05/mod.rs:54:4 [INFO] [stdout] | [INFO] [stdout] 54 | fn process_columns(l: &str, low_x: usize, hi_x: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `solve_step_1` [INFO] [stdout] --> src/day_05/mod.rs:82:8 [INFO] [stdout] | [INFO] [stdout] 82 | pub fn solve_step_1() -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `solve_step_2` [INFO] [stdout] --> src/day_05/mod.rs:95:8 [INFO] [stdout] | [INFO] [stdout] 95 | pub fn solve_step_2() -> isize { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `INPUT` [INFO] [stdout] --> src/day_06/mod.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | const INPUT: &str = include_str!("06_in"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `solve_step_1` [INFO] [stdout] --> src/day_06/mod.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn solve_step_1() -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `questions_map` [INFO] [stdout] --> src/day_06/mod.rs:17:4 [INFO] [stdout] | [INFO] [stdout] 17 | fn questions_map(l: &str) -> HashSet { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `solve_step_2` [INFO] [stdout] --> src/day_06/mod.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn solve_step_2() -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `recurse_bags` [INFO] [stdout] --> src/main.rs:70:4 [INFO] [stdout] | [INFO] [stdout] 70 | fn recurse_bags(bags: &HashMap<&str, HashMap<&str, usize>>, color: &str) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/day_05/mod.rs:43:29 [INFO] [stdout] | [INFO] [stdout] 43 | x => panic!(format!("wrong format with {}", x)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_fmt_panic)]` on by default [INFO] [stdout] = note: this is no longer accepted in Rust 2021 [INFO] [stdout] = note: the panic!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 43 | x => panic!("wrong format with {}", x) [INFO] [stdout] | -- -- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/day_05/mod.rs:50:21 [INFO] [stdout] | [INFO] [stdout] 50 | x => panic!(format!("wrong format with {}", x)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this is no longer accepted in Rust 2021 [INFO] [stdout] = note: the panic!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 50 | x => panic!("wrong format with {}", x) [INFO] [stdout] | -- -- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/day_05/mod.rs:71:29 [INFO] [stdout] | [INFO] [stdout] 71 | x => panic!(format!("wrong format with {}", x)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this is no longer accepted in Rust 2021 [INFO] [stdout] = note: the panic!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 71 | x => panic!("wrong format with {}", x) [INFO] [stdout] | -- -- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/day_05/mod.rs:78:21 [INFO] [stdout] | [INFO] [stdout] 78 | x => panic!(format!("wrong format with {}", x)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this is no longer accepted in Rust 2021 [INFO] [stdout] = note: the panic!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 78 | x => panic!("wrong format with {}", x) [INFO] [stdout] | -- -- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 49 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 23.90s [INFO] running `Command { std: "docker" "inspect" "79392fa2279d363f896b53d82934f1e7ce71301c3979fcafee7486cd71c6e971", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "79392fa2279d363f896b53d82934f1e7ce71301c3979fcafee7486cd71c6e971", kill_on_drop: false }` [INFO] [stdout] 79392fa2279d363f896b53d82934f1e7ce71301c3979fcafee7486cd71c6e971