[INFO] cloning repository https://github.com/jostly/advent-of-code-2020 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/jostly/advent-of-code-2020" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjostly%2Fadvent-of-code-2020", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjostly%2Fadvent-of-code-2020'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b9c24a3f1addc94a48d7f346ee2e8c4b7cf9e752 [INFO] checking jostly/advent-of-code-2020 against master#1f12b9b0fdbe735968ac002792a720f0ba4faca6 for crater-rollup-uwu [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjostly%2Fadvent-of-code-2020" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/jostly/advent-of-code-2020 on toolchain 1f12b9b0fdbe735968ac002792a720f0ba4faca6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/jostly/advent-of-code-2020 [INFO] finished tweaking git repo https://github.com/jostly/advent-of-code-2020 [INFO] tweaked toml for git repo https://github.com/jostly/advent-of-code-2020 written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/jostly/advent-of-code-2020 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" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e4f1e504f0ea51672685c946634b59552a49edfeaa51c99a2d54afe8e60a8f2a [INFO] running `Command { std: "docker" "start" "-a" "e4f1e504f0ea51672685c946634b59552a49edfeaa51c99a2d54afe8e60a8f2a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e4f1e504f0ea51672685c946634b59552a49edfeaa51c99a2d54afe8e60a8f2a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e4f1e504f0ea51672685c946634b59552a49edfeaa51c99a2d54afe8e60a8f2a", kill_on_drop: false }` [INFO] [stdout] e4f1e504f0ea51672685c946634b59552a49edfeaa51c99a2d54afe8e60a8f2a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 840fc13359c587cb6102c37bcb89e9831d4c51308bb9f2b14e987bb1321ff42e [INFO] running `Command { std: "docker" "start" "-a" "840fc13359c587cb6102c37bcb89e9831d4c51308bb9f2b14e987bb1321ff42e", kill_on_drop: false }` [INFO] [stderr] Compiling memchr v2.3.4 [INFO] [stderr] Checking thread_local v1.0.1 [INFO] [stderr] Checking regex-syntax v0.6.21 [INFO] [stderr] Checking aho-corasick v0.7.15 [INFO] [stderr] Checking regex v1.4.2 [INFO] [stderr] Checking year-2020 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: function `read_lines` is never used [INFO] [stdout] --> src/util/mod.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn read_lines

(filename: P) -> io::Result>> [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_records` is never used [INFO] [stdout] --> src/util/mod.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn read_records>(filename: P) -> io::Result>> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_file` is never used [INFO] [stdout] --> src/util/mod.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn read_file(filename: P) -> Result, T::Err> [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hash_set` is never used [INFO] [stdout] --> src/util/mod.rs:45:8 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn hash_set(v: Vec) -> HashSet { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_pair` is never used [INFO] [stdout] --> src/day01/mod.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | pub fn find_pair(target: i64, head: i64, tail: &[i64]) -> Option<(i64, i64)> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_2020_in_2` is never used [INFO] [stdout] --> src/day01/mod.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn find_2020_in_2(numbers: &[i64]) -> Option<(i64, i64)> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_2020_in_3` is never used [INFO] [stdout] --> src/day01/mod.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn find_2020_in_3(numbers: &[i64]) -> Option<(i64, i64, i64)> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `is_valid` are never used [INFO] [stdout] --> src/day02/mod.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 10 | impl PasswordAndPolicy { [INFO] [stdout] | ---------------------- associated items in this implementation [INFO] [stdout] 11 | fn new(input: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | fn is_valid(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Map` is never constructed [INFO] [stdout] --> src/day03/mod.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct Map { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `goal_at`, `tree_at`, and `count_trees` are never used [INFO] [stdout] --> src/day03/mod.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 9 | impl Map { [INFO] [stdout] | -------- associated items in this implementation [INFO] [stdout] 10 | fn new(filename: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 15 | fn goal_at(&self, row: usize) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | fn tree_at(&self, row: usize, column: usize) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | fn count_trees(&self, delta_row: usize, delta_column: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `trees` and `width` are never read [INFO] [stdout] --> src/day03/mod.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 38 | struct Line { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 39 | trees: HashSet, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 40 | width: usize, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `tree_at` is never used [INFO] [stdout] --> src/day03/mod.rs:44:8 [INFO] [stdout] | [INFO] [stdout] 43 | impl Line { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] 44 | fn tree_at(&self, i: usize) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Passport` is never constructed [INFO] [stdout] --> src/day04/mod.rs:134:8 [INFO] [stdout] | [INFO] [stdout] 134 | struct Passport { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_valid` is never used [INFO] [stdout] --> src/day04/mod.rs:139:8 [INFO] [stdout] | [INFO] [stdout] 138 | impl Passport { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] 139 | fn is_valid(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_passports` is never used [INFO] [stdout] --> src/day04/mod.rs:152:4 [INFO] [stdout] | [INFO] [stdout] 152 | fn parse_passports(lines: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `count_answers_in_records` is never used [INFO] [stdout] --> src/day06/mod.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn count_answers_in_records(records: Vec>, initial: u32, join_func: F) -> u32 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `count_answers` is never used [INFO] [stdout] --> src/day06/mod.rs:12:4 [INFO] [stdout] | [INFO] [stdout] 12 | fn count_answers(answers: &[T], initial: u32, join_func: &F) -> u32 [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `answer_to_bitfield` is never used [INFO] [stdout] --> src/day06/mod.rs:21:4 [INFO] [stdout] | [INFO] [stdout] 21 | fn answer_to_bitfield(s: &str) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/day07/mod.rs:36:13 [INFO] [stdout] | [INFO] [stdout] 36 | struct Line(Bag, BagManifest); [INFO] [stdout] | ---- ^^^ ^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing these fields [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: struct `Processor` is never constructed [INFO] [stdout] --> src/day08/mod.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | struct Processor { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `from_file`, `is_terminated`, `execute`, `handle_operation`, `swap_at`, and `change_to_terminate` are never used [INFO] [stdout] --> src/day08/mod.rs:34:8 [INFO] [stdout] | [INFO] [stdout] 33 | impl Processor { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 34 | fn from_file(filename: &str) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | fn is_terminated(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | fn execute(&mut self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | fn handle_operation(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | fn swap_at(&mut self, index: usize) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 84 | fn change_to_terminate(self) -> (Self, usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Validator` is never constructed [INFO] [stdout] --> src/day09/mod.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct Validator { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `check` are never used [INFO] [stdout] --> src/day09/mod.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 7 | impl Validator { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 8 | fn new(preamble: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 12 | fn check(&self, numbers: &[i64]) -> Option { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_contiguous_set_in_list` is never used [INFO] [stdout] --> src/day09/mod.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn find_contiguous_set_in_list(list: &[i64], target: i64) -> Option<&[i64]> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `differences` is never used [INFO] [stdout] --> src/day10/mod.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn differences(input: &[i32]) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `count_entries` is never used [INFO] [stdout] --> src/day10/mod.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn count_entries(input: &[T]) -> HashMap [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `jolts` is never used [INFO] [stdout] --> src/day10/mod.rs:24:4 [INFO] [stdout] | [INFO] [stdout] 24 | fn jolts(mut input: Vec) -> (usize, usize) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `count_consecutive_ones` is never used [INFO] [stdout] --> src/day10/mod.rs:32:4 [INFO] [stdout] | [INFO] [stdout] 32 | fn count_consecutive_ones(diffs: &[i32]) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `combinations` is never used [INFO] [stdout] --> src/day10/mod.rs:50:4 [INFO] [stdout] | [INFO] [stdout] 50 | fn combinations(consec: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FLOOR` is never used [INFO] [stdout] --> src/day11/mod.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | const FLOOR: u8 = '.' as u8; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EMPTY_SEAT` is never used [INFO] [stdout] --> src/day11/mod.rs:7:7 [INFO] [stdout] | [INFO] [stdout] 7 | const EMPTY_SEAT: u8 = 'L' as u8; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TAKEN_SEAT` is never used [INFO] [stdout] --> src/day11/mod.rs:8:7 [INFO] [stdout] | [INFO] [stdout] 8 | const TAKEN_SEAT: u8 = '#' as u8; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `SeatAlgorithm` is never used [INFO] [stdout] --> src/day11/mod.rs:11:6 [INFO] [stdout] | [INFO] [stdout] 11 | enum SeatAlgorithm { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `WaitingArea` is never constructed [INFO] [stdout] --> src/day11/mod.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | struct WaitingArea { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/day11/mod.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 23 | impl WaitingArea { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 24 | fn new(data: &[String]) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | fn from_file(filename: &str) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | fn with_seat_algorithm(mut self, seat_algorithm: SeatAlgorithm) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | fn pos(&self, row: i32, column: i32) -> u8 { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | fn surrounding_taken_seats(&self, row: i32, column: i32) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 96 | fn count_taken_seats(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 106 | fn iterate(&mut self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 130 | fn count_occupied_seats(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Ferry` is never constructed [INFO] [stdout] --> src/day12/mod.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | struct Ferry { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Direction` is never used [INFO] [stdout] --> src/day12/mod.rs:13:6 [INFO] [stdout] | [INFO] [stdout] 13 | enum Direction { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `turn_steps` is never used [INFO] [stdout] --> src/day12/mod.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 20 | impl Direction { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] 21 | fn turn_steps(&self, mut steps: i32) -> Direction { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/day12/mod.rs:46:8 [INFO] [stdout] | [INFO] [stdout] 45 | impl Ferry { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 46 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | fn go(&mut self, instruction: &str) { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 84 | fn apply_turn(&mut self, turns: i32) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 88 | fn apply_movement(&mut self, direction: Direction, distance: i32) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 105 | fn nav(&mut self, instruction: &str) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 135 | fn turn_waypoint(&mut self, mut turns: i32) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 146 | fn move_waypoint(&mut self, direction: Direction, distance: i32) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 163 | fn move_to_waypoint(&mut self, times: i32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 170 | fn manhattan_distance(&self) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_next_bus` is never used [INFO] [stdout] --> src/day13/mod.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn find_next_bus(timestamp: u128, buses: &[u128]) -> (u128, u128) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_it` is never used [INFO] [stdout] --> src/day13/mod.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn parse_it(s: &str) -> Vec<(u128, u128)> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_it` is never used [INFO] [stdout] --> src/day13/mod.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn solve_it(parameters: &[(u128, u128)]) -> u128 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve` is never used [INFO] [stdout] --> src/day13/mod.rs:39:4 [INFO] [stdout] | [INFO] [stdout] 39 | fn solve(s: &str) -> u128 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Mask` is never constructed [INFO] [stdout] --> src/day14/mod.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | struct Mask { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `apply`, `apply_mem`, and `add_mutations` are never used [INFO] [stdout] --> src/day14/mod.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 10 | impl Mask { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 11 | fn new(mask: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | fn apply(&self, value: u64) -> u64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | fn apply_mem(&self, mut address: u64) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | fn add_mutations(out: &mut HashSet, base: u64, floatings: &[u64]) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Processor` is never constructed [INFO] [stdout] --> src/day14/mod.rs:70:8 [INFO] [stdout] | [INFO] [stdout] 70 | struct Processor { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `execute` are never used [INFO] [stdout] --> src/day14/mod.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 75 | impl Processor { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 76 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | fn execute>(&mut self, src: Vec) -> u64 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ProcessorV2` is never constructed [INFO] [stdout] --> src/day14/mod.rs:105:8 [INFO] [stdout] | [INFO] [stdout] 105 | struct ProcessorV2 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `execute` are never used [INFO] [stdout] --> src/day14/mod.rs:111:8 [INFO] [stdout] | [INFO] [stdout] 110 | impl ProcessorV2 { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 111 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 118 | fn execute>(&mut self, src: Vec) -> u64 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 49 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.74s [INFO] running `Command { std: "docker" "inspect" "840fc13359c587cb6102c37bcb89e9831d4c51308bb9f2b14e987bb1321ff42e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "840fc13359c587cb6102c37bcb89e9831d4c51308bb9f2b14e987bb1321ff42e", kill_on_drop: false }` [INFO] [stdout] 840fc13359c587cb6102c37bcb89e9831d4c51308bb9f2b14e987bb1321ff42e [INFO] checking jostly/advent-of-code-2020 against try#f9935d29d867449445ee008640ccca1bf1ae0889+rustflags=-Dtail_expr_drop_order for crater-rollup-uwu [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjostly%2Fadvent-of-code-2020" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/jostly/advent-of-code-2020 on toolchain f9935d29d867449445ee008640ccca1bf1ae0889 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/jostly/advent-of-code-2020 [INFO] finished tweaking git repo https://github.com/jostly/advent-of-code-2020 [INFO] tweaked toml for git repo https://github.com/jostly/advent-of-code-2020 written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/jostly/advent-of-code-2020 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" "+f9935d29d867449445ee008640ccca1bf1ae0889" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e181830bae17bba3e62245852515055ecd41c6660e95ae94c5f3a8c1a0a93904 [INFO] running `Command { std: "docker" "start" "-a" "e181830bae17bba3e62245852515055ecd41c6660e95ae94c5f3a8c1a0a93904", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e181830bae17bba3e62245852515055ecd41c6660e95ae94c5f3a8c1a0a93904", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e181830bae17bba3e62245852515055ecd41c6660e95ae94c5f3a8c1a0a93904", kill_on_drop: false }` [INFO] [stdout] e181830bae17bba3e62245852515055ecd41c6660e95ae94c5f3a8c1a0a93904 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Dtail_expr_drop_order" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] cd1e911fb04a0fadd971e8edc9ae1424649ee32e2bb98587bfab67576a381d62 [INFO] running `Command { std: "docker" "start" "-a" "cd1e911fb04a0fadd971e8edc9ae1424649ee32e2bb98587bfab67576a381d62", kill_on_drop: false }` [INFO] [stderr] Compiling memchr v2.3.4 [INFO] [stderr] Checking thread_local v1.0.1 [INFO] [stderr] Checking regex-syntax v0.6.21 [INFO] [stderr] Checking aho-corasick v0.7.15 [INFO] [stderr] Checking regex v1.4.2 [INFO] [stderr] Checking year-2020 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: function `read_lines` is never used [INFO] [stdout] --> src/util/mod.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn read_lines

(filename: P) -> io::Result>> [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_records` is never used [INFO] [stdout] --> src/util/mod.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn read_records>(filename: P) -> io::Result>> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_file` is never used [INFO] [stdout] --> src/util/mod.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn read_file(filename: P) -> Result, T::Err> [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hash_set` is never used [INFO] [stdout] --> src/util/mod.rs:45:8 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn hash_set(v: Vec) -> HashSet { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_pair` is never used [INFO] [stdout] --> src/day01/mod.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | pub fn find_pair(target: i64, head: i64, tail: &[i64]) -> Option<(i64, i64)> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_2020_in_2` is never used [INFO] [stdout] --> src/day01/mod.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn find_2020_in_2(numbers: &[i64]) -> Option<(i64, i64)> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_2020_in_3` is never used [INFO] [stdout] --> src/day01/mod.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn find_2020_in_3(numbers: &[i64]) -> Option<(i64, i64, i64)> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `is_valid` are never used [INFO] [stdout] --> src/day02/mod.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 10 | impl PasswordAndPolicy { [INFO] [stdout] | ---------------------- associated items in this implementation [INFO] [stdout] 11 | fn new(input: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | fn is_valid(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Map` is never constructed [INFO] [stdout] --> src/day03/mod.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct Map { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `goal_at`, `tree_at`, and `count_trees` are never used [INFO] [stdout] --> src/day03/mod.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 9 | impl Map { [INFO] [stdout] | -------- associated items in this implementation [INFO] [stdout] 10 | fn new(filename: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 15 | fn goal_at(&self, row: usize) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | fn tree_at(&self, row: usize, column: usize) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | fn count_trees(&self, delta_row: usize, delta_column: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `trees` and `width` are never read [INFO] [stdout] --> src/day03/mod.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 38 | struct Line { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 39 | trees: HashSet, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 40 | width: usize, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `tree_at` is never used [INFO] [stdout] --> src/day03/mod.rs:44:8 [INFO] [stdout] | [INFO] [stdout] 43 | impl Line { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] 44 | fn tree_at(&self, i: usize) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Passport` is never constructed [INFO] [stdout] --> src/day04/mod.rs:134:8 [INFO] [stdout] | [INFO] [stdout] 134 | struct Passport { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_valid` is never used [INFO] [stdout] --> src/day04/mod.rs:139:8 [INFO] [stdout] | [INFO] [stdout] 138 | impl Passport { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] 139 | fn is_valid(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_passports` is never used [INFO] [stdout] --> src/day04/mod.rs:152:4 [INFO] [stdout] | [INFO] [stdout] 152 | fn parse_passports(lines: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `count_answers_in_records` is never used [INFO] [stdout] --> src/day06/mod.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn count_answers_in_records(records: Vec>, initial: u32, join_func: F) -> u32 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `count_answers` is never used [INFO] [stdout] --> src/day06/mod.rs:12:4 [INFO] [stdout] | [INFO] [stdout] 12 | fn count_answers(answers: &[T], initial: u32, join_func: &F) -> u32 [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `answer_to_bitfield` is never used [INFO] [stdout] --> src/day06/mod.rs:21:4 [INFO] [stdout] | [INFO] [stdout] 21 | fn answer_to_bitfield(s: &str) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/day07/mod.rs:36:13 [INFO] [stdout] | [INFO] [stdout] 36 | struct Line(Bag, BagManifest); [INFO] [stdout] | ---- ^^^ ^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing these fields [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: struct `Processor` is never constructed [INFO] [stdout] --> src/day08/mod.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | struct Processor { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `from_file`, `is_terminated`, `execute`, `handle_operation`, `swap_at`, and `change_to_terminate` are never used [INFO] [stdout] --> src/day08/mod.rs:34:8 [INFO] [stdout] | [INFO] [stdout] 33 | impl Processor { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 34 | fn from_file(filename: &str) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | fn is_terminated(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | fn execute(&mut self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | fn handle_operation(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | fn swap_at(&mut self, index: usize) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 84 | fn change_to_terminate(self) -> (Self, usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Validator` is never constructed [INFO] [stdout] --> src/day09/mod.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct Validator { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `check` are never used [INFO] [stdout] --> src/day09/mod.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 7 | impl Validator { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 8 | fn new(preamble: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 12 | fn check(&self, numbers: &[i64]) -> Option { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_contiguous_set_in_list` is never used [INFO] [stdout] --> src/day09/mod.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn find_contiguous_set_in_list(list: &[i64], target: i64) -> Option<&[i64]> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `differences` is never used [INFO] [stdout] --> src/day10/mod.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn differences(input: &[i32]) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `count_entries` is never used [INFO] [stdout] --> src/day10/mod.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn count_entries(input: &[T]) -> HashMap [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `jolts` is never used [INFO] [stdout] --> src/day10/mod.rs:24:4 [INFO] [stdout] | [INFO] [stdout] 24 | fn jolts(mut input: Vec) -> (usize, usize) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `count_consecutive_ones` is never used [INFO] [stdout] --> src/day10/mod.rs:32:4 [INFO] [stdout] | [INFO] [stdout] 32 | fn count_consecutive_ones(diffs: &[i32]) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `combinations` is never used [INFO] [stdout] --> src/day10/mod.rs:50:4 [INFO] [stdout] | [INFO] [stdout] 50 | fn combinations(consec: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FLOOR` is never used [INFO] [stdout] --> src/day11/mod.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | const FLOOR: u8 = '.' as u8; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EMPTY_SEAT` is never used [INFO] [stdout] --> src/day11/mod.rs:7:7 [INFO] [stdout] | [INFO] [stdout] 7 | const EMPTY_SEAT: u8 = 'L' as u8; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TAKEN_SEAT` is never used [INFO] [stdout] --> src/day11/mod.rs:8:7 [INFO] [stdout] | [INFO] [stdout] 8 | const TAKEN_SEAT: u8 = '#' as u8; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `SeatAlgorithm` is never used [INFO] [stdout] --> src/day11/mod.rs:11:6 [INFO] [stdout] | [INFO] [stdout] 11 | enum SeatAlgorithm { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `WaitingArea` is never constructed [INFO] [stdout] --> src/day11/mod.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | struct WaitingArea { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/day11/mod.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 23 | impl WaitingArea { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 24 | fn new(data: &[String]) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | fn from_file(filename: &str) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | fn with_seat_algorithm(mut self, seat_algorithm: SeatAlgorithm) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | fn pos(&self, row: i32, column: i32) -> u8 { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | fn surrounding_taken_seats(&self, row: i32, column: i32) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 96 | fn count_taken_seats(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 106 | fn iterate(&mut self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 130 | fn count_occupied_seats(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Ferry` is never constructed [INFO] [stdout] --> src/day12/mod.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | struct Ferry { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Direction` is never used [INFO] [stdout] --> src/day12/mod.rs:13:6 [INFO] [stdout] | [INFO] [stdout] 13 | enum Direction { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `turn_steps` is never used [INFO] [stdout] --> src/day12/mod.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 20 | impl Direction { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] 21 | fn turn_steps(&self, mut steps: i32) -> Direction { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/day12/mod.rs:46:8 [INFO] [stdout] | [INFO] [stdout] 45 | impl Ferry { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 46 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | fn go(&mut self, instruction: &str) { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 84 | fn apply_turn(&mut self, turns: i32) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 88 | fn apply_movement(&mut self, direction: Direction, distance: i32) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 105 | fn nav(&mut self, instruction: &str) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 135 | fn turn_waypoint(&mut self, mut turns: i32) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 146 | fn move_waypoint(&mut self, direction: Direction, distance: i32) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 163 | fn move_to_waypoint(&mut self, times: i32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 170 | fn manhattan_distance(&self) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_next_bus` is never used [INFO] [stdout] --> src/day13/mod.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn find_next_bus(timestamp: u128, buses: &[u128]) -> (u128, u128) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_it` is never used [INFO] [stdout] --> src/day13/mod.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn parse_it(s: &str) -> Vec<(u128, u128)> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_it` is never used [INFO] [stdout] --> src/day13/mod.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn solve_it(parameters: &[(u128, u128)]) -> u128 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve` is never used [INFO] [stdout] --> src/day13/mod.rs:39:4 [INFO] [stdout] | [INFO] [stdout] 39 | fn solve(s: &str) -> u128 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Mask` is never constructed [INFO] [stdout] --> src/day14/mod.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | struct Mask { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `apply`, `apply_mem`, and `add_mutations` are never used [INFO] [stdout] --> src/day14/mod.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 10 | impl Mask { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 11 | fn new(mask: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | fn apply(&self, value: u64) -> u64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | fn apply_mem(&self, mut address: u64) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | fn add_mutations(out: &mut HashSet, base: u64, floatings: &[u64]) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Processor` is never constructed [INFO] [stdout] --> src/day14/mod.rs:70:8 [INFO] [stdout] | [INFO] [stdout] 70 | struct Processor { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `execute` are never used [INFO] [stdout] --> src/day14/mod.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 75 | impl Processor { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 76 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | fn execute>(&mut self, src: Vec) -> u64 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ProcessorV2` is never constructed [INFO] [stdout] --> src/day14/mod.rs:105:8 [INFO] [stdout] | [INFO] [stdout] 105 | struct ProcessorV2 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `execute` are never used [INFO] [stdout] --> src/day14/mod.rs:111:8 [INFO] [stdout] | [INFO] [stdout] 110 | impl ProcessorV2 { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 111 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 118 | fn execute>(&mut self, src: Vec) -> u64 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/util/mod.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn read_lines

(filename: P) -> io::Result>> [INFO] [stdout] | ----------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 9 | where P: AsRef, { [INFO] [stdout] 10 | let file = File::open(filename)?; [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 11 | Ok(io::BufReader::new(file).lines()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/util/mod.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn read_file(filename: P) -> Result, T::Err> [INFO] [stdout] | ----------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 39 | let lines = read_lines(filename).unwrap(); [INFO] [stdout] | ----- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 40 | / lines [INFO] [stdout] 41 | | .map(|line| line.unwrap().parse::()) [INFO] [stdout] | |_______________________________________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/util/mod.rs:46:5 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn hash_set(v: Vec) -> HashSet { [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 46 | v.into_iter().collect() [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/day03/mod.rs:61:12 [INFO] [stdout] | [INFO] [stdout] 53 | let mut trees = HashSet::new(); [INFO] [stdout] | ----- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 61 | Ok(Line { trees, width }) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/day04/mod.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 21 | let mut fields = HashSet::new(); [INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 29 | Ok(Fields(fields)) [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/day14/mod.rs:57:9 [INFO] [stdout] | [INFO] [stdout] 46 | let mut out: HashSet = HashSet::new(); [INFO] [stdout] | --- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 57 | out.into_iter().collect() [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors; 49 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `year-2020` (bin "year-2020") due to 7 previous errors; 49 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/util/mod.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn read_lines

(filename: P) -> io::Result>> [INFO] [stdout] | ----------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 9 | where P: AsRef, { [INFO] [stdout] 10 | let file = File::open(filename)?; [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 11 | Ok(io::BufReader::new(file).lines()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/util/mod.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn read_file(filename: P) -> Result, T::Err> [INFO] [stdout] | ----------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 39 | let lines = read_lines(filename).unwrap(); [INFO] [stdout] | ----- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 40 | / lines [INFO] [stdout] 41 | | .map(|line| line.unwrap().parse::()) [INFO] [stdout] | |_______________________________________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/util/mod.rs:46:5 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn hash_set(v: Vec) -> HashSet { [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 46 | v.into_iter().collect() [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/day03/mod.rs:61:12 [INFO] [stdout] | [INFO] [stdout] 53 | let mut trees = HashSet::new(); [INFO] [stdout] | ----- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 61 | Ok(Line { trees, width }) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/day04/mod.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 21 | let mut fields = HashSet::new(); [INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 29 | Ok(Fields(fields)) [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/day14/mod.rs:57:9 [INFO] [stdout] | [INFO] [stdout] 46 | let mut out: HashSet = HashSet::new(); [INFO] [stdout] | --- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 57 | out.into_iter().collect() [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `year-2020` (bin "year-2020" test) due to 7 previous errors [INFO] running `Command { std: "docker" "inspect" "cd1e911fb04a0fadd971e8edc9ae1424649ee32e2bb98587bfab67576a381d62", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cd1e911fb04a0fadd971e8edc9ae1424649ee32e2bb98587bfab67576a381d62", kill_on_drop: false }` [INFO] [stdout] cd1e911fb04a0fadd971e8edc9ae1424649ee32e2bb98587bfab67576a381d62