[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] building epochcoder/adventofcode against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fepochcoder%2Fadventofcode" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/epochcoder/adventofcode on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "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-7-tc1/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: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ecb6ba286da4b6bcb1b26bede5c7da74c21093ffee78c0060631531e2b0fa2b5 [INFO] running `Command { std: "docker" "start" "-a" "ecb6ba286da4b6bcb1b26bede5c7da74c21093ffee78c0060631531e2b0fa2b5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ecb6ba286da4b6bcb1b26bede5c7da74c21093ffee78c0060631531e2b0fa2b5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ecb6ba286da4b6bcb1b26bede5c7da74c21093ffee78c0060631531e2b0fa2b5", kill_on_drop: false }` [INFO] [stdout] ecb6ba286da4b6bcb1b26bede5c7da74c21093ffee78c0060631531e2b0fa2b5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Dtail-expr-drop-order" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d72660049e4dbfecdb7d30b23ee79b097b7882ae0ff6cb3e5d5a8fe0bf78f42a [INFO] running `Command { std: "docker" "start" "-a" "d72660049e4dbfecdb7d30b23ee79b097b7882ae0ff6cb3e5d5a8fe0bf78f42a", kill_on_drop: false }` [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling regex-syntax v0.6.25 [INFO] [stderr] Compiling utils v0.1.0 (/opt/rustwide/workdir/libs/utils) [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling year-2020 v0.1.0 (/opt/rustwide/workdir/libs/year-2020) [INFO] [stdout] warning: function `day_1` is never used [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] [stderr] Compiling aho-corasick v0.7.18 [INFO] [stderr] Compiling regex v1.5.4 [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: variable does not need to be mutable [INFO] [stdout] --> libs/year-2021/src/day_four.rs:53:17 [INFO] [stdout] | [INFO] [stdout] 53 | let mut piece = self.piece_at_mut(i, row); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 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: struct `Depth` is never constructed [INFO] [stdout] --> libs/year-2021/src/day_one.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | struct Depth(i32); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> libs/year-2021/src/day_one.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 8 | impl Depth { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 9 | fn new(line: &String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_lines` is never used [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 `count_increases` is never used [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: struct `Depth` is never constructed [INFO] [stdout] --> libs/year-2021/src/day_one_extra.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | struct Depth(i32); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_string` is never used [INFO] [stdout] --> libs/year-2021/src/day_one_extra.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 6 | impl Depth { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 7 | fn from_string(line: &String) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_lines` is never used [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 `sum_depths` is never used [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 `count_increases` is never used [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: fields `start` and `end` are never read [INFO] [stdout] --> libs/year-2021/src/day_five.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 12 | struct Line { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 13 | start: Point, [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] [INFO] [stdout] [INFO] [stdout] warning: methods `is_vertical`, `is_horizontal`, and `plot` are never used [INFO] [stdout] --> libs/year-2021/src/day_five.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 40 | impl Line { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 52 | fn is_vertical(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | fn is_horizontal(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | fn plot(&self, width: usize, map: &mut Vec) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate` is never used [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: struct `Piece` is never constructed [INFO] [stdout] --> libs/year-2021/src/day_four.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | struct Piece { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> libs/year-2021/src/day_four.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 9 | impl Piece { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 10 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Board` is never constructed [INFO] [stdout] --> libs/year-2021/src/day_four.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | struct Board { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> libs/year-2021/src/day_four.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 26 | impl Board { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 27 | fn new(w: usize, h: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | fn piece_idx(&self, x: usize, y: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | fn piece_at_mut(&mut self, x: usize, y: usize) -> &mut Piece { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | fn piece_at(&self, x: usize, y: usize) -> &Piece { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | fn intialize_row(&mut self, row: usize, line: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | fn mark_board(&mut self, num: i32) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | fn has_row_marked(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 87 | fn has_column_marked(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 107 | fn bingo(&mut self) -> bool { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `split_by_comma` is never used [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 `split_by_whitespace` is never used [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 `bingo_baby` is never used [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 `load_boards` is never used [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 `fish_ages` is never used [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 `WIDTH` is never used [INFO] [stdout] --> libs/year-2021/src/day_three.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | static WIDTH: usize = 12; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ColumnCount` is never constructed [INFO] [stdout] --> libs/year-2021/src/day_three.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | struct ColumnCount { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `update`, `get_most_significant`, and `get_binary` are never used [INFO] [stdout] --> libs/year-2021/src/day_three.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 13 | impl ColumnCount { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 14 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | fn update(&mut self, ch: &char) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | fn get_most_significant(&self) -> char { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | fn get_binary(column_counts: HashMap) -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate_gamma_rate` is never used [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 `calculate_epsilon_rate` is never used [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 `calculate_power_consumption` is never used [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 `WIDTH` is never used [INFO] [stdout] --> libs/year-2021/src/day_three_extra.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | static WIDTH: usize = 12; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Line` is never constructed [INFO] [stdout] --> libs/year-2021/src/day_three_extra.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | struct Line { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `as_decimal`, and `char_at_column` are never used [INFO] [stdout] --> libs/year-2021/src/day_three_extra.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 10 | impl Line { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 11 | fn new(line: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 15 | fn as_decimal(&self) -> isize { [INFO] [stdout] | ^^^^^^^^^^ [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 `calculate_life_support_rating` is never used [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 `calculate_rating` is never used [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 `read_lines` is never used [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 `calculate_position` is never used [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 `calculate_position_aim` is never used [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] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.57s [INFO] running `Command { std: "docker" "inspect" "d72660049e4dbfecdb7d30b23ee79b097b7882ae0ff6cb3e5d5a8fe0bf78f42a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d72660049e4dbfecdb7d30b23ee79b097b7882ae0ff6cb3e5d5a8fe0bf78f42a", kill_on_drop: false }` [INFO] [stdout] d72660049e4dbfecdb7d30b23ee79b097b7882ae0ff6cb3e5d5a8fe0bf78f42a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Dtail-expr-drop-order" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] feeb322121f4c3d60447ea3532eec55667221752333b46033925b6d13faeee08 [INFO] running `Command { std: "docker" "start" "-a" "feeb322121f4c3d60447ea3532eec55667221752333b46033925b6d13faeee08", kill_on_drop: false }` [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: variable does not need to be mutable [INFO] [stdout] --> libs/year-2021/src/day_four.rs:53:17 [INFO] [stdout] | [INFO] [stdout] 53 | let mut piece = self.piece_at_mut(i, row); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 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: struct `Depth` is never constructed [INFO] [stdout] --> libs/year-2021/src/day_one.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | struct Depth(i32); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> libs/year-2021/src/day_one.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 8 | impl Depth { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 9 | fn new(line: &String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_lines` is never used [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 `count_increases` is never used [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: struct `Depth` is never constructed [INFO] [stdout] --> libs/year-2021/src/day_one_extra.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | struct Depth(i32); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling year-2021 v0.1.0 (/opt/rustwide/workdir/libs/year-2021) [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: associated function `from_string` is never used [INFO] [stdout] --> libs/year-2021/src/day_one_extra.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 6 | impl Depth { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 7 | fn from_string(line: &String) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_lines` is never used [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 `sum_depths` is never used [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 `count_increases` is never used [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: fields `start` and `end` are never read [INFO] [stdout] --> libs/year-2021/src/day_five.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 12 | struct Line { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 13 | start: Point, [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] [INFO] [stdout] [INFO] [stdout] warning: methods `is_vertical`, `is_horizontal`, and `plot` are never used [INFO] [stdout] --> libs/year-2021/src/day_five.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 40 | impl Line { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 52 | fn is_vertical(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | fn is_horizontal(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | fn plot(&self, width: usize, map: &mut Vec) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate` is never used [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: struct `Piece` is never constructed [INFO] [stdout] --> libs/year-2021/src/day_four.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | struct Piece { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> libs/year-2021/src/day_four.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 9 | impl Piece { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 10 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Board` is never constructed [INFO] [stdout] --> libs/year-2021/src/day_four.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | struct Board { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> libs/year-2021/src/day_four.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 26 | impl Board { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 27 | fn new(w: usize, h: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | fn piece_idx(&self, x: usize, y: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | fn piece_at_mut(&mut self, x: usize, y: usize) -> &mut Piece { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | fn piece_at(&self, x: usize, y: usize) -> &Piece { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | fn intialize_row(&mut self, row: usize, line: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | fn mark_board(&mut self, num: i32) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | fn has_row_marked(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 87 | fn has_column_marked(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 107 | fn bingo(&mut self) -> bool { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `split_by_comma` is never used [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 `split_by_whitespace` is never used [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 `bingo_baby` is never used [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 `load_boards` is never used [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 `fish_ages` is never used [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 `WIDTH` is never used [INFO] [stdout] --> libs/year-2021/src/day_three.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | static WIDTH: usize = 12; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ColumnCount` is never constructed [INFO] [stdout] --> libs/year-2021/src/day_three.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | struct ColumnCount { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `update`, `get_most_significant`, and `get_binary` are never used [INFO] [stdout] --> libs/year-2021/src/day_three.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 13 | impl ColumnCount { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 14 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | fn update(&mut self, ch: &char) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | fn get_most_significant(&self) -> char { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | fn get_binary(column_counts: HashMap) -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate_gamma_rate` is never used [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 `calculate_epsilon_rate` is never used [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 `calculate_power_consumption` is never used [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 `WIDTH` is never used [INFO] [stdout] --> libs/year-2021/src/day_three_extra.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | static WIDTH: usize = 12; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Line` is never constructed [INFO] [stdout] --> libs/year-2021/src/day_three_extra.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | struct Line { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `as_decimal`, and `char_at_column` are never used [INFO] [stdout] --> libs/year-2021/src/day_three_extra.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 10 | impl Line { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 11 | fn new(line: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 15 | fn as_decimal(&self) -> isize { [INFO] [stdout] | ^^^^^^^^^^ [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 `calculate_life_support_rating` is never used [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 `calculate_rating` is never used [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 `read_lines` is never used [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 `calculate_position` is never used [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 `calculate_position_aim` is never used [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: function `day_1` is never used [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: variable does not need to be mutable [INFO] [stdout] --> libs/year-2021/src/day_four.rs:53:17 [INFO] [stdout] | [INFO] [stdout] 53 | let mut piece = self.piece_at_mut(i, row); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 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] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.12s [INFO] running `Command { std: "docker" "inspect" "feeb322121f4c3d60447ea3532eec55667221752333b46033925b6d13faeee08", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "feeb322121f4c3d60447ea3532eec55667221752333b46033925b6d13faeee08", kill_on_drop: false }` [INFO] [stdout] feeb322121f4c3d60447ea3532eec55667221752333b46033925b6d13faeee08