[INFO] cloning repository https://github.com/epochcoder/adventofcode [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/epochcoder/adventofcode" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fepochcoder%2Fadventofcode", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fepochcoder%2Fadventofcode'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a4f8007d971e7c849b9697585000e1df0be62ff0 [INFO] testing epochcoder/adventofcode against 1.60.0 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fepochcoder%2Fadventofcode" "/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/epochcoder/adventofcode on toolchain 1.60.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/epochcoder/adventofcode [INFO] finished tweaking git repo https://github.com/epochcoder/adventofcode [INFO] tweaked toml for git repo https://github.com/epochcoder/adventofcode written to /workspace/builds/worker-3/source/Cargo.toml [INFO] crate git repo https://github.com/epochcoder/adventofcode already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4eb51965424e9c13bd02464eeb943242bf6c1a8217f7848f0dc6d088d6e95c18 [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" "4eb51965424e9c13bd02464eeb943242bf6c1a8217f7848f0dc6d088d6e95c18", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4eb51965424e9c13bd02464eeb943242bf6c1a8217f7848f0dc6d088d6e95c18", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4eb51965424e9c13bd02464eeb943242bf6c1a8217f7848f0dc6d088d6e95c18", kill_on_drop: false }` [INFO] [stdout] 4eb51965424e9c13bd02464eeb943242bf6c1a8217f7848f0dc6d088d6e95c18 [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=warn" "-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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "build" "--frozen" "--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] e330495a36fbccbaa6171387f515ea7b2a9153fe649e2741894b000811a5b60c [INFO] running `Command { std: "docker" "start" "-a" "e330495a36fbccbaa6171387f515ea7b2a9153fe649e2741894b000811a5b60c", kill_on_drop: false }` [INFO] [stderr] Compiling utils v0.1.0 (/opt/rustwide/workdir/libs/utils) [INFO] [stderr] Compiling year-2020 v0.1.0 (/opt/rustwide/workdir/libs/year-2020) [INFO] [stdout] warning: function is never used: `day_1` [INFO] [stdout] --> libs/year-2020/src/lib.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn day_1() -> () { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling year-2021 v0.1.0 (/opt/rustwide/workdir/libs/year-2021) [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> libs/year-2021/src/day_three_extra.rs:69:9 [INFO] [stdout] | [INFO] [stdout] 69 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `day` [INFO] [stdout] --> libs/year-2021/src/day_six.rs:14:26 [INFO] [stdout] | [INFO] [stdout] 14 | (1..=days).for_each(|day| { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_day` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> libs/year-2021/src/day_one.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | fn new(line: &String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `read_lines` [INFO] [stdout] --> libs/year-2021/src/day_one.rs:32:4 [INFO] [stdout] | [INFO] [stdout] 32 | fn read_lines() -> Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `count_increases` [INFO] [stdout] --> libs/year-2021/src/day_one.rs:40:4 [INFO] [stdout] | [INFO] [stdout] 40 | fn count_increases(depths: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `from_string` [INFO] [stdout] --> libs/year-2021/src/day_one_extra.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | fn from_string(line: &String) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `read_lines` [INFO] [stdout] --> libs/year-2021/src/day_one_extra.rs:12:4 [INFO] [stdout] | [INFO] [stdout] 12 | fn read_lines() -> Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sum_depths` [INFO] [stdout] --> libs/year-2021/src/day_one_extra.rs:19:4 [INFO] [stdout] | [INFO] [stdout] 19 | fn sum_depths(depths: &Vec<&Depth>) -> i32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `count_increases` [INFO] [stdout] --> libs/year-2021/src/day_one_extra.rs:35:4 [INFO] [stdout] | [INFO] [stdout] 35 | fn count_increases(depths: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `start` [INFO] [stdout] --> libs/year-2021/src/day_five.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | start: Point, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Line` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> libs/year-2021/src/day_five.rs:11:10 [INFO] [stdout] | [INFO] [stdout] 11 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `end` [INFO] [stdout] --> libs/year-2021/src/day_five.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | end: Point, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Line` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> libs/year-2021/src/day_five.rs:11:10 [INFO] [stdout] | [INFO] [stdout] 11 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_vertical` [INFO] [stdout] --> libs/year-2021/src/day_five.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 52 | fn is_vertical(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_horizontal` [INFO] [stdout] --> libs/year-2021/src/day_five.rs:56:8 [INFO] [stdout] | [INFO] [stdout] 56 | fn is_horizontal(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `plot` [INFO] [stdout] --> libs/year-2021/src/day_five.rs:62:8 [INFO] [stdout] | [INFO] [stdout] 62 | fn plot(&self, width: usize, map: &mut Vec) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `calculate` [INFO] [stdout] --> libs/year-2021/src/day_five.rs:121:4 [INFO] [stdout] | [INFO] [stdout] 121 | fn calculate() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `num` [INFO] [stdout] --> libs/year-2021/src/day_four.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | num: i32, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Piece` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> libs/year-2021/src/day_four.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(Debug, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `chosen` [INFO] [stdout] --> libs/year-2021/src/day_four.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | chosen: bool, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Piece` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> libs/year-2021/src/day_four.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(Debug, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> libs/year-2021/src/day_four.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `width` [INFO] [stdout] --> libs/year-2021/src/day_four.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | width: usize, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Board` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> libs/year-2021/src/day_four.rs:18:10 [INFO] [stdout] | [INFO] [stdout] 18 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `height` [INFO] [stdout] --> libs/year-2021/src/day_four.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | height: usize, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Board` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> libs/year-2021/src/day_four.rs:18:10 [INFO] [stdout] | [INFO] [stdout] 18 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `content` [INFO] [stdout] --> libs/year-2021/src/day_four.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | content: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Board` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> libs/year-2021/src/day_four.rs:18:10 [INFO] [stdout] | [INFO] [stdout] 18 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `bingo` [INFO] [stdout] --> libs/year-2021/src/day_four.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | bingo: bool, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Board` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> libs/year-2021/src/day_four.rs:18:10 [INFO] [stdout] | [INFO] [stdout] 18 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> libs/year-2021/src/day_four.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | fn new(w: usize, h: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `piece_idx` [INFO] [stdout] --> libs/year-2021/src/day_four.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 36 | fn piece_idx(&self, x: usize, y: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `piece_at_mut` [INFO] [stdout] --> libs/year-2021/src/day_four.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 40 | fn piece_at_mut(&mut self, x: usize, y: usize) -> &mut Piece { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `piece_at` [INFO] [stdout] --> libs/year-2021/src/day_four.rs:45:8 [INFO] [stdout] | [INFO] [stdout] 45 | fn piece_at(&self, x: usize, y: usize) -> &Piece { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `intialize_row` [INFO] [stdout] --> libs/year-2021/src/day_four.rs:50:8 [INFO] [stdout] | [INFO] [stdout] 50 | fn intialize_row(&mut self, row: usize, line: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `mark_board` [INFO] [stdout] --> libs/year-2021/src/day_four.rs:59:8 [INFO] [stdout] | [INFO] [stdout] 59 | fn mark_board(&mut self, num: i32) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `has_row_marked` [INFO] [stdout] --> libs/year-2021/src/day_four.rs:66:8 [INFO] [stdout] | [INFO] [stdout] 66 | fn has_row_marked(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `has_column_marked` [INFO] [stdout] --> libs/year-2021/src/day_four.rs:87:8 [INFO] [stdout] | [INFO] [stdout] 87 | fn has_column_marked(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `bingo` [INFO] [stdout] --> libs/year-2021/src/day_four.rs:107:8 [INFO] [stdout] | [INFO] [stdout] 107 | fn bingo(&mut self) -> bool { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `split_by_comma` [INFO] [stdout] --> libs/year-2021/src/day_four.rs:120:4 [INFO] [stdout] | [INFO] [stdout] 120 | fn split_by_comma(line: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `split_by_whitespace` [INFO] [stdout] --> libs/year-2021/src/day_four.rs:126:4 [INFO] [stdout] | [INFO] [stdout] 126 | fn split_by_whitespace(line: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `bingo_baby` [INFO] [stdout] --> libs/year-2021/src/day_four.rs:132:4 [INFO] [stdout] | [INFO] [stdout] 132 | fn bingo_baby() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `load_boards` [INFO] [stdout] --> libs/year-2021/src/day_four.rs:172:4 [INFO] [stdout] | [INFO] [stdout] 172 | fn load_boards(lines: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `fish_ages` [INFO] [stdout] --> libs/year-2021/src/day_six.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn fish_ages() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `WIDTH` [INFO] [stdout] --> libs/year-2021/src/day_three.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | static WIDTH: usize = 12; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `ones` [INFO] [stdout] --> libs/year-2021/src/day_three.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | ones: i32, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `ColumnCount` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> libs/year-2021/src/day_three.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `zeros` [INFO] [stdout] --> libs/year-2021/src/day_three.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | zeros: i32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `ColumnCount` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> libs/year-2021/src/day_three.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> libs/year-2021/src/day_three.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `update` [INFO] [stdout] --> libs/year-2021/src/day_three.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | fn update(&mut self, ch: &char) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_most_significant` [INFO] [stdout] --> libs/year-2021/src/day_three.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | fn get_most_significant(&self) -> char { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_binary` [INFO] [stdout] --> libs/year-2021/src/day_three.rs:34:8 [INFO] [stdout] | [INFO] [stdout] 34 | fn get_binary(column_counts: HashMap) -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `calculate_gamma_rate` [INFO] [stdout] --> libs/year-2021/src/day_three.rs:48:4 [INFO] [stdout] | [INFO] [stdout] 48 | fn calculate_gamma_rate(bin: &String) -> isize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `calculate_epsilon_rate` [INFO] [stdout] --> libs/year-2021/src/day_three.rs:52:4 [INFO] [stdout] | [INFO] [stdout] 52 | fn calculate_epsilon_rate(bin: &String) -> isize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `calculate_power_consumption` [INFO] [stdout] --> libs/year-2021/src/day_three.rs:61:4 [INFO] [stdout] | [INFO] [stdout] 61 | fn calculate_power_consumption() -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `WIDTH` [INFO] [stdout] --> libs/year-2021/src/day_three_extra.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | static WIDTH: usize = 12; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> libs/year-2021/src/day_three_extra.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | fn new(line: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `as_decimal` [INFO] [stdout] --> libs/year-2021/src/day_three_extra.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | fn as_decimal(&self) -> isize { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `char_at_column` [INFO] [stdout] --> libs/year-2021/src/day_three_extra.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | fn char_at_column(&self, col: usize, character: char) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `calculate_life_support_rating` [INFO] [stdout] --> libs/year-2021/src/day_three_extra.rs:24:4 [INFO] [stdout] | [INFO] [stdout] 24 | fn calculate_life_support_rating() -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `calculate_rating` [INFO] [stdout] --> libs/year-2021/src/day_three_extra.rs:39:4 [INFO] [stdout] | [INFO] [stdout] 39 | fn calculate_rating(lines: &Vec, filter: impl Fn(usize, usize) -> bool) -> isize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `read_lines` [INFO] [stdout] --> libs/year-2021/src/day_two.rs:60:4 [INFO] [stdout] | [INFO] [stdout] 60 | fn read_lines() -> Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `calculate_position` [INFO] [stdout] --> libs/year-2021/src/day_two.rs:69:4 [INFO] [stdout] | [INFO] [stdout] 69 | fn calculate_position() -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `calculate_position_aim` [INFO] [stdout] --> libs/year-2021/src/day_two.rs:85:4 [INFO] [stdout] | [INFO] [stdout] 85 | fn calculate_position_aim() -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 55 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 3.45s [INFO] running `Command { std: "docker" "inspect" "e330495a36fbccbaa6171387f515ea7b2a9153fe649e2741894b000811a5b60c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e330495a36fbccbaa6171387f515ea7b2a9153fe649e2741894b000811a5b60c", kill_on_drop: false }` [INFO] [stdout] e330495a36fbccbaa6171387f515ea7b2a9153fe649e2741894b000811a5b60c [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=warn" "-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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "test" "--frozen" "--no-run" "--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] e1072280998fa7384add573cf581fa87f252a3481b2ac15a109f749985be15fb [INFO] running `Command { std: "docker" "start" "-a" "e1072280998fa7384add573cf581fa87f252a3481b2ac15a109f749985be15fb", kill_on_drop: false }` [INFO] [stderr] Compiling utils v0.1.0 (/opt/rustwide/workdir/libs/utils) [INFO] [stderr] Compiling year-2020 v0.1.0 (/opt/rustwide/workdir/libs/year-2020) [INFO] [stdout] warning: function is never used: `day_1` [INFO] [stdout] --> libs/year-2020/src/lib.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn day_1() -> () { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> libs/year-2021/src/day_three_extra.rs:69:9 [INFO] [stdout] | [INFO] [stdout] 69 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `day` [INFO] [stdout] --> libs/year-2021/src/day_six.rs:14:26 [INFO] [stdout] | [INFO] [stdout] 14 | (1..=days).for_each(|day| { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_day` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> libs/year-2021/src/day_one.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | fn new(line: &String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `read_lines` [INFO] [stdout] --> libs/year-2021/src/day_one.rs:32:4 [INFO] [stdout] | [INFO] [stdout] 32 | fn read_lines() -> Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `count_increases` [INFO] [stdout] --> libs/year-2021/src/day_one.rs:40:4 [INFO] [stdout] | [INFO] [stdout] 40 | fn count_increases(depths: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `from_string` [INFO] [stdout] --> libs/year-2021/src/day_one_extra.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | fn from_string(line: &String) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `read_lines` [INFO] [stdout] --> libs/year-2021/src/day_one_extra.rs:12:4 [INFO] [stdout] | [INFO] [stdout] 12 | fn read_lines() -> Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sum_depths` [INFO] [stdout] --> libs/year-2021/src/day_one_extra.rs:19:4 [INFO] [stdout] | [INFO] [stdout] 19 | fn sum_depths(depths: &Vec<&Depth>) -> i32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `count_increases` [INFO] [stdout] --> libs/year-2021/src/day_one_extra.rs:35:4 [INFO] [stdout] | [INFO] [stdout] 35 | fn count_increases(depths: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `start` [INFO] [stdout] --> libs/year-2021/src/day_five.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | start: Point, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Line` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> libs/year-2021/src/day_five.rs:11:10 [INFO] [stdout] | [INFO] [stdout] 11 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `end` [INFO] [stdout] --> libs/year-2021/src/day_five.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | end: Point, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Line` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> libs/year-2021/src/day_five.rs:11:10 [INFO] [stdout] | [INFO] [stdout] 11 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_vertical` [INFO] [stdout] --> libs/year-2021/src/day_five.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 52 | fn is_vertical(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_horizontal` [INFO] [stdout] --> libs/year-2021/src/day_five.rs:56:8 [INFO] [stdout] | [INFO] [stdout] 56 | fn is_horizontal(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `plot` [INFO] [stdout] --> libs/year-2021/src/day_five.rs:62:8 [INFO] [stdout] | [INFO] [stdout] 62 | fn plot(&self, width: usize, map: &mut Vec) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `calculate` [INFO] [stdout] --> libs/year-2021/src/day_five.rs:121:4 [INFO] [stdout] | [INFO] [stdout] 121 | fn calculate() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `num` [INFO] [stdout] --> libs/year-2021/src/day_four.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | num: i32, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Piece` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> libs/year-2021/src/day_four.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(Debug, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `chosen` [INFO] [stdout] --> libs/year-2021/src/day_four.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | chosen: bool, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Piece` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> libs/year-2021/src/day_four.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(Debug, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> libs/year-2021/src/day_four.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `width` [INFO] [stdout] --> libs/year-2021/src/day_four.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | width: usize, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Board` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> libs/year-2021/src/day_four.rs:18:10 [INFO] [stdout] | [INFO] [stdout] 18 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `height` [INFO] [stdout] --> libs/year-2021/src/day_four.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | height: usize, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Board` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> libs/year-2021/src/day_four.rs:18:10 [INFO] [stdout] | [INFO] [stdout] 18 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `content` [INFO] [stdout] --> libs/year-2021/src/day_four.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | content: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Board` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> libs/year-2021/src/day_four.rs:18:10 [INFO] [stdout] | [INFO] [stdout] 18 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `bingo` [INFO] [stdout] --> libs/year-2021/src/day_four.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | bingo: bool, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Board` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> libs/year-2021/src/day_four.rs:18:10 [INFO] [stdout] | [INFO] [stdout] 18 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> libs/year-2021/src/day_four.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | fn new(w: usize, h: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `piece_idx` [INFO] [stdout] --> libs/year-2021/src/day_four.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 36 | fn piece_idx(&self, x: usize, y: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `piece_at_mut` [INFO] [stdout] --> libs/year-2021/src/day_four.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 40 | fn piece_at_mut(&mut self, x: usize, y: usize) -> &mut Piece { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `piece_at` [INFO] [stdout] --> libs/year-2021/src/day_four.rs:45:8 [INFO] [stdout] | [INFO] [stdout] 45 | fn piece_at(&self, x: usize, y: usize) -> &Piece { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `intialize_row` [INFO] [stdout] --> libs/year-2021/src/day_four.rs:50:8 [INFO] [stdout] | [INFO] [stdout] 50 | fn intialize_row(&mut self, row: usize, line: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `mark_board` [INFO] [stdout] --> libs/year-2021/src/day_four.rs:59:8 [INFO] [stdout] | [INFO] [stdout] 59 | fn mark_board(&mut self, num: i32) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `has_row_marked` [INFO] [stdout] --> libs/year-2021/src/day_four.rs:66:8 [INFO] [stdout] | [INFO] [stdout] 66 | fn has_row_marked(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `has_column_marked` [INFO] [stdout] --> libs/year-2021/src/day_four.rs:87:8 [INFO] [stdout] | [INFO] [stdout] 87 | fn has_column_marked(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `bingo` [INFO] [stdout] --> libs/year-2021/src/day_four.rs:107:8 [INFO] [stdout] | [INFO] [stdout] 107 | fn bingo(&mut self) -> bool { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `split_by_comma` [INFO] [stdout] --> libs/year-2021/src/day_four.rs:120:4 [INFO] [stdout] | [INFO] [stdout] 120 | fn split_by_comma(line: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `split_by_whitespace` [INFO] [stdout] --> libs/year-2021/src/day_four.rs:126:4 [INFO] [stdout] | [INFO] [stdout] 126 | fn split_by_whitespace(line: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `bingo_baby` [INFO] [stdout] --> libs/year-2021/src/day_four.rs:132:4 [INFO] [stdout] | [INFO] [stdout] 132 | fn bingo_baby() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `load_boards` [INFO] [stdout] --> libs/year-2021/src/day_four.rs:172:4 [INFO] [stdout] | [INFO] [stdout] 172 | fn load_boards(lines: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `fish_ages` [INFO] [stdout] --> libs/year-2021/src/day_six.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn fish_ages() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `WIDTH` [INFO] [stdout] --> libs/year-2021/src/day_three.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | static WIDTH: usize = 12; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `ones` [INFO] [stdout] --> libs/year-2021/src/day_three.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | ones: i32, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `ColumnCount` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> libs/year-2021/src/day_three.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `zeros` [INFO] [stdout] --> libs/year-2021/src/day_three.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | zeros: i32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `ColumnCount` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> libs/year-2021/src/day_three.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> libs/year-2021/src/day_three.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `update` [INFO] [stdout] --> libs/year-2021/src/day_three.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | fn update(&mut self, ch: &char) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_most_significant` [INFO] [stdout] --> libs/year-2021/src/day_three.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | fn get_most_significant(&self) -> char { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_binary` [INFO] [stdout] --> libs/year-2021/src/day_three.rs:34:8 [INFO] [stdout] | [INFO] [stdout] 34 | fn get_binary(column_counts: HashMap) -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `calculate_gamma_rate` [INFO] [stdout] --> libs/year-2021/src/day_three.rs:48:4 [INFO] [stdout] | [INFO] [stdout] 48 | fn calculate_gamma_rate(bin: &String) -> isize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `calculate_epsilon_rate` [INFO] [stdout] --> libs/year-2021/src/day_three.rs:52:4 [INFO] [stdout] | [INFO] [stdout] 52 | fn calculate_epsilon_rate(bin: &String) -> isize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `calculate_power_consumption` [INFO] [stdout] --> libs/year-2021/src/day_three.rs:61:4 [INFO] [stdout] | [INFO] [stdout] 61 | fn calculate_power_consumption() -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `WIDTH` [INFO] [stdout] --> libs/year-2021/src/day_three_extra.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | static WIDTH: usize = 12; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> libs/year-2021/src/day_three_extra.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | fn new(line: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `as_decimal` [INFO] [stdout] --> libs/year-2021/src/day_three_extra.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | fn as_decimal(&self) -> isize { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `char_at_column` [INFO] [stdout] --> libs/year-2021/src/day_three_extra.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | fn char_at_column(&self, col: usize, character: char) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `calculate_life_support_rating` [INFO] [stdout] --> libs/year-2021/src/day_three_extra.rs:24:4 [INFO] [stdout] | [INFO] [stdout] 24 | fn calculate_life_support_rating() -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `calculate_rating` [INFO] [stdout] --> libs/year-2021/src/day_three_extra.rs:39:4 [INFO] [stdout] | [INFO] [stdout] 39 | fn calculate_rating(lines: &Vec, filter: impl Fn(usize, usize) -> bool) -> isize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `read_lines` [INFO] [stdout] --> libs/year-2021/src/day_two.rs:60:4 [INFO] [stdout] | [INFO] [stdout] 60 | fn read_lines() -> Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `calculate_position` [INFO] [stdout] --> libs/year-2021/src/day_two.rs:69:4 [INFO] [stdout] | [INFO] [stdout] 69 | fn calculate_position() -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling year-2021 v0.1.0 (/opt/rustwide/workdir/libs/year-2021) [INFO] [stdout] warning: function is never used: `calculate_position_aim` [INFO] [stdout] --> libs/year-2021/src/day_two.rs:85:4 [INFO] [stdout] | [INFO] [stdout] 85 | fn calculate_position_aim() -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 55 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `day` [INFO] [stdout] --> libs/year-2021/src/day_six.rs:14:26 [INFO] [stdout] | [INFO] [stdout] 14 | (1..=days).for_each(|day| { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_day` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 5.95s [INFO] running `Command { std: "docker" "inspect" "e1072280998fa7384add573cf581fa87f252a3481b2ac15a109f749985be15fb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e1072280998fa7384add573cf581fa87f252a3481b2ac15a109f749985be15fb", kill_on_drop: false }` [INFO] [stdout] e1072280998fa7384add573cf581fa87f252a3481b2ac15a109f749985be15fb [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=warn" "-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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "test" "--frozen", 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] b26e123e6ebea1e77488a07958a1d6ca83b46693ec5993011777aa3b28ee4d54 [INFO] running `Command { std: "docker" "start" "-a" "b26e123e6ebea1e77488a07958a1d6ca83b46693ec5993011777aa3b28ee4d54", kill_on_drop: false }` [INFO] [stderr] warning: function is never used: `day_1` [INFO] [stderr] --> libs/year-2020/src/lib.rs:5:4 [INFO] [stderr] | [INFO] [stderr] 5 | fn day_1() -> () { [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `year-2020` (lib) generated 1 warning [INFO] [stderr] warning: unused import: `super::*` [INFO] [stderr] --> libs/year-2021/src/day_three_extra.rs:69:9 [INFO] [stderr] | [INFO] [stderr] 69 | use super::*; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `day` [INFO] [stderr] --> libs/year-2021/src/day_six.rs:14:26 [INFO] [stderr] | [INFO] [stderr] 14 | (1..=days).for_each(|day| { [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_day` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> libs/year-2021/src/day_one.rs:9:8 [INFO] [stderr] | [INFO] [stderr] 9 | fn new(line: &String) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: function is never used: `read_lines` [INFO] [stderr] --> libs/year-2021/src/day_one.rs:32:4 [INFO] [stderr] | [INFO] [stderr] 32 | fn read_lines() -> Vec { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `count_increases` [INFO] [stderr] --> libs/year-2021/src/day_one.rs:40:4 [INFO] [stderr] | [INFO] [stderr] 40 | fn count_increases(depths: Vec) -> i32 { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `from_string` [INFO] [stderr] --> libs/year-2021/src/day_one_extra.rs:7:8 [INFO] [stderr] | [INFO] [stderr] 7 | fn from_string(line: &String) -> Self { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `read_lines` [INFO] [stderr] --> libs/year-2021/src/day_one_extra.rs:12:4 [INFO] [stderr] | [INFO] [stderr] 12 | fn read_lines() -> Vec { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `sum_depths` [INFO] [stderr] --> libs/year-2021/src/day_one_extra.rs:19:4 [INFO] [stderr] | [INFO] [stderr] 19 | fn sum_depths(depths: &Vec<&Depth>) -> i32 { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `count_increases` [INFO] [stderr] --> libs/year-2021/src/day_one_extra.rs:35:4 [INFO] [stderr] | [INFO] [stderr] 35 | fn count_increases(depths: Vec) -> i32 { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `start` [INFO] [stderr] --> libs/year-2021/src/day_five.rs:13:5 [INFO] [stderr] | [INFO] [stderr] 13 | start: Point, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Line` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> libs/year-2021/src/day_five.rs:11:10 [INFO] [stderr] | [INFO] [stderr] 11 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `end` [INFO] [stderr] --> libs/year-2021/src/day_five.rs:14:5 [INFO] [stderr] | [INFO] [stderr] 14 | end: Point, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Line` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> libs/year-2021/src/day_five.rs:11:10 [INFO] [stderr] | [INFO] [stderr] 11 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `is_vertical` [INFO] [stderr] --> libs/year-2021/src/day_five.rs:52:8 [INFO] [stderr] | [INFO] [stderr] 52 | fn is_vertical(&self) -> bool { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `is_horizontal` [INFO] [stderr] --> libs/year-2021/src/day_five.rs:56:8 [INFO] [stderr] | [INFO] [stderr] 56 | fn is_horizontal(&self) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `plot` [INFO] [stderr] --> libs/year-2021/src/day_five.rs:62:8 [INFO] [stderr] | [INFO] [stderr] 62 | fn plot(&self, width: usize, map: &mut Vec) { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `calculate` [INFO] [stderr] --> libs/year-2021/src/day_five.rs:121:4 [INFO] [stderr] | [INFO] [stderr] 121 | fn calculate() { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `num` [INFO] [stderr] --> libs/year-2021/src/day_four.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | num: i32, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Piece` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] --> libs/year-2021/src/day_four.rs:3:10 [INFO] [stderr] | [INFO] [stderr] 3 | #[derive(Debug, Clone)] [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `chosen` [INFO] [stderr] --> libs/year-2021/src/day_four.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 6 | chosen: bool, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Piece` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] --> libs/year-2021/src/day_four.rs:3:10 [INFO] [stderr] | [INFO] [stderr] 3 | #[derive(Debug, Clone)] [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> libs/year-2021/src/day_four.rs:10:8 [INFO] [stderr] | [INFO] [stderr] 10 | fn new() -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `width` [INFO] [stderr] --> libs/year-2021/src/day_four.rs:20:5 [INFO] [stderr] | [INFO] [stderr] 20 | width: usize, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Board` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> libs/year-2021/src/day_four.rs:18:10 [INFO] [stderr] | [INFO] [stderr] 18 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `height` [INFO] [stderr] --> libs/year-2021/src/day_four.rs:21:5 [INFO] [stderr] | [INFO] [stderr] 21 | height: usize, [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Board` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> libs/year-2021/src/day_four.rs:18:10 [INFO] [stderr] | [INFO] [stderr] 18 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `content` [INFO] [stderr] --> libs/year-2021/src/day_four.rs:22:5 [INFO] [stderr] | [INFO] [stderr] 22 | content: Vec, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Board` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> libs/year-2021/src/day_four.rs:18:10 [INFO] [stderr] | [INFO] [stderr] 18 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `bingo` [INFO] [stderr] --> libs/year-2021/src/day_four.rs:23:5 [INFO] [stderr] | [INFO] [stderr] 23 | bingo: bool, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Board` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> libs/year-2021/src/day_four.rs:18:10 [INFO] [stderr] | [INFO] [stderr] 18 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> libs/year-2021/src/day_four.rs:27:8 [INFO] [stderr] | [INFO] [stderr] 27 | fn new(w: usize, h: usize) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `piece_idx` [INFO] [stderr] --> libs/year-2021/src/day_four.rs:36:8 [INFO] [stderr] | [INFO] [stderr] 36 | fn piece_idx(&self, x: usize, y: usize) -> usize { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `piece_at_mut` [INFO] [stderr] --> libs/year-2021/src/day_four.rs:40:8 [INFO] [stderr] | [INFO] [stderr] 40 | fn piece_at_mut(&mut self, x: usize, y: usize) -> &mut Piece { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `piece_at` [INFO] [stderr] --> libs/year-2021/src/day_four.rs:45:8 [INFO] [stderr] | [INFO] [stderr] 45 | fn piece_at(&self, x: usize, y: usize) -> &Piece { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `intialize_row` [INFO] [stderr] --> libs/year-2021/src/day_four.rs:50:8 [INFO] [stderr] | [INFO] [stderr] 50 | fn intialize_row(&mut self, row: usize, line: &str) { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `mark_board` [INFO] [stderr] --> libs/year-2021/src/day_four.rs:59:8 [INFO] [stderr] | [INFO] [stderr] 59 | fn mark_board(&mut self, num: i32) { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `has_row_marked` [INFO] [stderr] --> libs/year-2021/src/day_four.rs:66:8 [INFO] [stderr] | [INFO] [stderr] 66 | fn has_row_marked(&self) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `has_column_marked` [INFO] [stderr] --> libs/year-2021/src/day_four.rs:87:8 [INFO] [stderr] | [INFO] [stderr] 87 | fn has_column_marked(&self) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `bingo` [INFO] [stderr] --> libs/year-2021/src/day_four.rs:107:8 [INFO] [stderr] | [INFO] [stderr] 107 | fn bingo(&mut self) -> bool { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `split_by_comma` [INFO] [stderr] --> libs/year-2021/src/day_four.rs:120:4 [INFO] [stderr] | [INFO] [stderr] 120 | fn split_by_comma(line: &str) -> Vec { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `split_by_whitespace` [INFO] [stderr] --> libs/year-2021/src/day_four.rs:126:4 [INFO] [stderr] | [INFO] [stderr] 126 | fn split_by_whitespace(line: &str) -> Vec { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `bingo_baby` [INFO] [stderr] --> libs/year-2021/src/day_four.rs:132:4 [INFO] [stderr] | [INFO] [stderr] 132 | fn bingo_baby() { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `load_boards` [INFO] [stderr] --> libs/year-2021/src/day_four.rs:172:4 [INFO] [stderr] | [INFO] [stderr] 172 | fn load_boards(lines: Vec) -> Vec { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `fish_ages` [INFO] [stderr] --> libs/year-2021/src/day_six.rs:3:4 [INFO] [stderr] | [INFO] [stderr] 3 | fn fish_ages() { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: static is never used: `WIDTH` [INFO] [stderr] --> libs/year-2021/src/day_three.rs:5:1 [INFO] [stderr] | [INFO] [stderr] 5 | static WIDTH: usize = 12; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `ones` [INFO] [stderr] --> libs/year-2021/src/day_three.rs:9:5 [INFO] [stderr] | [INFO] [stderr] 9 | ones: i32, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `ColumnCount` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> libs/year-2021/src/day_three.rs:7:10 [INFO] [stderr] | [INFO] [stderr] 7 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `zeros` [INFO] [stderr] --> libs/year-2021/src/day_three.rs:10:5 [INFO] [stderr] | [INFO] [stderr] 10 | zeros: i32, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `ColumnCount` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> libs/year-2021/src/day_three.rs:7:10 [INFO] [stderr] | [INFO] [stderr] 7 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> libs/year-2021/src/day_three.rs:14:8 [INFO] [stderr] | [INFO] [stderr] 14 | fn new() -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `update` [INFO] [stderr] --> libs/year-2021/src/day_three.rs:18:8 [INFO] [stderr] | [INFO] [stderr] 18 | fn update(&mut self, ch: &char) { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_most_significant` [INFO] [stderr] --> libs/year-2021/src/day_three.rs:26:8 [INFO] [stderr] | [INFO] [stderr] 26 | fn get_most_significant(&self) -> char { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_binary` [INFO] [stderr] --> libs/year-2021/src/day_three.rs:34:8 [INFO] [stderr] | [INFO] [stderr] 34 | fn get_binary(column_counts: HashMap) -> String { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `calculate_gamma_rate` [INFO] [stderr] --> libs/year-2021/src/day_three.rs:48:4 [INFO] [stderr] | [INFO] [stderr] 48 | fn calculate_gamma_rate(bin: &String) -> isize { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `calculate_epsilon_rate` [INFO] [stderr] --> libs/year-2021/src/day_three.rs:52:4 [INFO] [stderr] | [INFO] [stderr] 52 | fn calculate_epsilon_rate(bin: &String) -> isize { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `calculate_power_consumption` [INFO] [stderr] --> libs/year-2021/src/day_three.rs:61:4 [INFO] [stderr] | [INFO] [stderr] 61 | fn calculate_power_consumption() -> i32 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: static is never used: `WIDTH` [INFO] [stderr] --> libs/year-2021/src/day_three_extra.rs:3:1 [INFO] [stderr] | [INFO] [stderr] 3 | static WIDTH: usize = 12; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> libs/year-2021/src/day_three_extra.rs:11:8 [INFO] [stderr] | [INFO] [stderr] 11 | fn new(line: String) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `as_decimal` [INFO] [stderr] --> libs/year-2021/src/day_three_extra.rs:15:8 [INFO] [stderr] | [INFO] [stderr] 15 | fn as_decimal(&self) -> isize { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `char_at_column` [INFO] [stderr] --> libs/year-2021/src/day_three_extra.rs:19:8 [INFO] [stderr] | [INFO] [stderr] 19 | fn char_at_column(&self, col: usize, character: char) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `calculate_life_support_rating` [INFO] [stderr] --> libs/year-2021/src/day_three_extra.rs:24:4 [INFO] [stderr] | [INFO] [stderr] 24 | fn calculate_life_support_rating() -> i32 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `calculate_rating` [INFO] [stderr] --> libs/year-2021/src/day_three_extra.rs:39:4 [INFO] [stderr] | [INFO] [stderr] 39 | fn calculate_rating(lines: &Vec, filter: impl Fn(usize, usize) -> bool) -> isize { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `read_lines` [INFO] [stderr] --> libs/year-2021/src/day_two.rs:60:4 [INFO] [stderr] | [INFO] [stderr] 60 | fn read_lines() -> Vec { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `calculate_position` [INFO] [stderr] --> libs/year-2021/src/day_two.rs:69:4 [INFO] [stderr] | [INFO] [stderr] 69 | fn calculate_position() -> i32 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `calculate_position_aim` [INFO] [stderr] --> libs/year-2021/src/day_two.rs:85:4 [INFO] [stderr] | [INFO] [stderr] 85 | fn calculate_position_aim() -> i32 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `year-2021` (lib) generated 55 warnings [INFO] [stderr] warning: `year-2021` (lib test) generated 1 warning (1 duplicate) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.03s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/utils-a4b406a7e60d35ad) [INFO] [stdout] [INFO] [stdout] running 5 tests [INFO] [stdout] test scanner::tests::test_consume ... ok [INFO] [stdout] test scanner::tests::test_peek ... ok [INFO] [stdout] test scanner::tests::test_pop ... ok [INFO] [stdout] test scanner::tests::test_take ... ok [INFO] [stdout] test scanner::tests::test_transform ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 5 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/year_2020-4cc678a73f9e80ee) [INFO] [stdout] running 1 test [INFO] [stdout] test tests::day_1::test_day_one ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/year_2021-39c4335f86d4e46b) [INFO] [stdout] [INFO] [stdout] running 12 tests [INFO] [stdout] test day_two::tests::test_parse_bad ... ok [INFO] [stdout] test day_two::tests::test_parse_good ... ok [INFO] [stdout] test day_one::tests::test ... ok [INFO] [stdout] test day_three_extra::tests::test_binary_shift ... ok [INFO] [stdout] test day_one_extra::tests::test ... ok [INFO] [stdout] test day_three::tests::test ... ok [INFO] [stdout] test day_two::tests::get_answer_extra ... ok [INFO] [stdout] test day_two::tests::get_answer ... ok [INFO] [stdout] test day_four::tests::test ... ok [INFO] [stdout] test day_five::tests::test ... ok [INFO] [stdout] test day_three_extra::tests::test_calculate_life_support_rating ... ok [INFO] [stdout] test day_six::tests::test ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 12 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.91s [INFO] [stdout] [INFO] [stderr] Doc-tests utils [INFO] [stdout] [INFO] [stdout] running 2 tests [INFO] [stdout] test src/lib.rs - map_idx (line 19) ... FAILED [INFO] [stdout] test src/lib.rs - map_idx (line 15) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - map_idx (line 19) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `index` in this scope [INFO] [stdout] --> src/lib.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 3 | let x = index % WIDTH; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WIDTH` in this scope [INFO] [stdout] --> src/lib.rs:20:17 [INFO] [stdout] | [INFO] [stdout] 3 | let x = index % WIDTH; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `index` in this scope [INFO] [stdout] --> src/lib.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 4 | let y = index / WIDTH; // int division rounds down [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WIDTH` in this scope [INFO] [stdout] --> src/lib.rs:21:17 [INFO] [stdout] | [INFO] [stdout] 4 | let y = index / WIDTH; // int division rounds down [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - map_idx (line 15) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `y` in this scope [INFO] [stdout] --> src/lib.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 3 | let idx = (y * WIDTH) + x; [INFO] [stdout] | ^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WIDTH` in this scope [INFO] [stdout] --> src/lib.rs:16:16 [INFO] [stdout] | [INFO] [stdout] 3 | let idx = (y * WIDTH) + x; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `x` in this scope [INFO] [stdout] --> src/lib.rs:16:25 [INFO] [stdout] | [INFO] [stdout] 3 | let idx = (y * WIDTH) + x; [INFO] [stdout] | ^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - map_idx (line 15) [INFO] [stdout] src/lib.rs - map_idx (line 19) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 2 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.29s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `Command { std: "docker" "inspect" "b26e123e6ebea1e77488a07958a1d6ca83b46693ec5993011777aa3b28ee4d54", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b26e123e6ebea1e77488a07958a1d6ca83b46693ec5993011777aa3b28ee4d54", kill_on_drop: false }` [INFO] [stdout] b26e123e6ebea1e77488a07958a1d6ca83b46693ec5993011777aa3b28ee4d54