[INFO] cloning repository https://github.com/Tyler-Sch/advent-of-code-23 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Tyler-Sch/advent-of-code-23" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTyler-Sch%2Fadvent-of-code-23", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTyler-Sch%2Fadvent-of-code-23'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ce329e6826f20093bc29406246e6054ff750c64d [INFO] testing Tyler-Sch/advent-of-code-23/ce329e6826f20093bc29406246e6054ff750c64d against master#8dd5cd0bc1d683c30805e1dc831cac546b621a75 for pr-131095 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTyler-Sch%2Fadvent-of-code-23" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Tyler-Sch/advent-of-code-23 on toolchain 8dd5cd0bc1d683c30805e1dc831cac546b621a75 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8dd5cd0bc1d683c30805e1dc831cac546b621a75" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Tyler-Sch/advent-of-code-23 [INFO] finished tweaking git repo https://github.com/Tyler-Sch/advent-of-code-23 [INFO] tweaked toml for git repo https://github.com/Tyler-Sch/advent-of-code-23 written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/Tyler-Sch/advent-of-code-23 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" "+8dd5cd0bc1d683c30805e1dc831cac546b621a75" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+8dd5cd0bc1d683c30805e1dc831cac546b621a75" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 00278bff781f338c8e0ce1eb5dede6df0cb51934288e89364a2019d1eafdf461 [INFO] running `Command { std: "docker" "start" "-a" "00278bff781f338c8e0ce1eb5dede6df0cb51934288e89364a2019d1eafdf461", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "00278bff781f338c8e0ce1eb5dede6df0cb51934288e89364a2019d1eafdf461", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "00278bff781f338c8e0ce1eb5dede6df0cb51934288e89364a2019d1eafdf461", kill_on_drop: false }` [INFO] [stdout] 00278bff781f338c8e0ce1eb5dede6df0cb51934288e89364a2019d1eafdf461 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+8dd5cd0bc1d683c30805e1dc831cac546b621a75" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d067ae1f403f29bbb44d525d30883884a08af7454ce04bebcf29c8eca2360db7 [INFO] running `Command { std: "docker" "start" "-a" "d067ae1f403f29bbb44d525d30883884a08af7454ce04bebcf29c8eca2360db7", kill_on_drop: false }` [INFO] [stderr] Compiling memchr v2.6.4 [INFO] [stderr] Compiling regex-syntax v0.8.2 [INFO] [stderr] Compiling aho-corasick v1.1.2 [INFO] [stderr] Compiling regex-automata v0.4.3 [INFO] [stderr] Compiling regex v1.10.2 [INFO] [stderr] Compiling advent-of-code-23 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `core::num` [INFO] [stdout] --> src/daytwo.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use core::num; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `max` and `min` [INFO] [stdout] --> src/daythree.rs:1:16 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cmp::{max, min}; [INFO] [stdout] | ^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::read_data::read_data` [INFO] [stdout] --> src/daythree.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::read_data::read_data; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `collections::btree_map::Range` and `string::ParseError` [INFO] [stdout] --> src/dayfive.rs:1:23 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{fmt::Error, string::ParseError, collections::btree_map::Range}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Seed_range` should have an upper camel case name [INFO] [stdout] --> src/dayfive.rs:51:8 [INFO] [stdout] | [INFO] [stdout] 51 | struct Seed_range { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `SeedRange` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/dayfive.rs:68:16 [INFO] [stdout] | [INFO] [stdout] 68 | if (seed_num >= source && seed_num < source_upper) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 68 - if (seed_num >= source && seed_num < source_upper) { [INFO] [stdout] 68 + if seed_num >= source && seed_num < source_upper { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::read_data::read_data` [INFO] [stdout] --> src/daysix.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::read_data::read_data; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::iter::zip` [INFO] [stdout] --> src/daysix.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::iter::zip; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::read_data::read_data` [INFO] [stdout] --> src/dayseven.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::read_data::read_data; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `regex::Regex` [INFO] [stdout] --> src/dayseven.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use regex::Regex; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashSet` [INFO] [stdout] --> src/dayeight.rs:2:33 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::{HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::read_data::read_data` [INFO] [stdout] --> src/daynine.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::read_data::read_data; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::read_data::read_data` [INFO] [stdout] --> src/dayten.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::read_data::read_data; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/dayten.rs:131:11 [INFO] [stdout] | [INFO] [stdout] 131 | while (current_pos.row < h && current_pos.col < w) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 131 - while (current_pos.row < h && current_pos.col < w) { [INFO] [stdout] 131 + while current_pos.row < h && current_pos.col < w { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/dayten.rs:135:11 [INFO] [stdout] | [INFO] [stdout] 135 | if (border.contains(¤t_pos) && current_char != '7' && current_char != 'L') { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 135 - if (border.contains(¤t_pos) && current_char != '7' && current_char != 'L') { [INFO] [stdout] 135 + if border.contains(¤t_pos) && current_char != '7' && current_char != 'L' { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::read_data::read_data` [INFO] [stdout] --> src/dayeleven.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::read_data::read_data; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `dayfour::run_part2` [INFO] [stdout] --> src/main.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use dayfour::run_part2; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `dayfive::run_day_5` [INFO] [stdout] --> src/main.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use dayfive::run_day_5; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `dayeight::dayeight_part2` [INFO] [stdout] --> src/main.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use dayeight::dayeight_part2; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `search_list` is never read [INFO] [stdout] --> src/daythree.rs:105:13 [INFO] [stdout] | [INFO] [stdout] 105 | search_list = HashSet::new(); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `potential_num` is never read [INFO] [stdout] --> src/daythree.rs:106:13 [INFO] [stdout] | [INFO] [stdout] 106 | potential_num = vec![]; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `z` [INFO] [stdout] --> src/dayfive.rs:118:38 [INFO] [stdout] | [INFO] [stdout] 118 | .unwrap_or_else(|z| panic!("error parsing int in parse_map")) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_z` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/daysix.rs:30:22 [INFO] [stdout] | [INFO] [stdout] 30 | .fold(0, |x, y| x + 1); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/dayseven.rs:94:55 [INFO] [stdout] | [INFO] [stdout] 94 | let mut vectorized = parsed.into_iter().map(|(x, y)| y).collect::>(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `all_zero` [INFO] [stdout] --> src/daynine.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | let mut all_zero = false; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_all_zero` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/daynine.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | let mut all_zero = false; [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: unreachable pattern [INFO] [stdout] --> src/dayten.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | _ => panic!("Error in traverse") [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/dayten.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 23 | Direction::Up => newCoords = (self.row - 1,self.col), [INFO] [stdout] | ------------- matches some of the same values [INFO] [stdout] 24 | Direction::Down => newCoords = (self.row + 1, self.col), [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] 25 | Direction::Left => newCoords = (self.row, self.col - 1), [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] 26 | Direction::Right => newCoords = (self.row, self.col + 1), [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] 27 | _ => panic!("Error in traverse") [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `newCoords` is never read [INFO] [stdout] --> src/dayten.rs:21:17 [INFO] [stdout] | [INFO] [stdout] 21 | let mut newCoords = (0, 0); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/dayten.rs:22:13 [INFO] [stdout] | [INFO] [stdout] 22 | let x = match dir { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `col` [INFO] [stdout] --> src/dayten.rs:105:16 [INFO] [stdout] | [INFO] [stdout] 105 | for (j, col) in row.iter().enumerate() { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_col` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/dayeleven.rs:32:19 [INFO] [stdout] | [INFO] [stdout] 32 | .filter(|(x, y)| !y.iter().any(|x| *x == '#')) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/dayeleven.rs:42:17 [INFO] [stdout] | [INFO] [stdout] 42 | for i in 0..num_rows_to_add { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_input` is never used [INFO] [stdout] --> src/main.rs:43:4 [INFO] [stdout] | [INFO] [stdout] 43 | fn parse_input(s: &str) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `translate_number` is never used [INFO] [stdout] --> src/main.rs:56:4 [INFO] [stdout] | [INFO] [stdout] 56 | fn translate_number(word: &str) -> char { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `MVals` is never used [INFO] [stdout] --> src/daythree.rs:6:6 [INFO] [stdout] | [INFO] [stdout] 6 | enum MVals { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/daythree.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 12 | impl MVals { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 13 | fn new(c: char) -> MVals { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_matrix` is never used [INFO] [stdout] --> src/daythree.rs:24:4 [INFO] [stdout] | [INFO] [stdout] 24 | fn create_matrix(s: &str) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_matrix` is never used [INFO] [stdout] --> src/daythree.rs:34:4 [INFO] [stdout] | [INFO] [stdout] 34 | fn parse_matrix(m: Vec>) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `search` is never used [INFO] [stdout] --> src/daythree.rs:112:4 [INFO] [stdout] | [INFO] [stdout] 112 | fn search( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `do_math` is never used [INFO] [stdout] --> src/dayfour.rs:61:8 [INFO] [stdout] | [INFO] [stdout] 11 | impl Card<'_> { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 61 | fn do_math(&self) -> usize { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `name` is never read [INFO] [stdout] --> src/dayfive.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 46 | struct SeedMap<'a> { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 47 | name: &'a str, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SeedMap` 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 `Seed_range` is never constructed [INFO] [stdout] --> src/dayfive.rs:51:8 [INFO] [stdout] | [INFO] [stdout] 51 | struct Seed_range { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/dayfive.rs:57:8 [INFO] [stdout] | [INFO] [stdout] 56 | impl Seed_range { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 57 | fn new(l: i64, h: i64) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/dayfive.rs:91:8 [INFO] [stdout] | [INFO] [stdout] 90 | impl SeedRange { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] 91 | fn new(d: i64, s: i64, r: i64) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_input` is never used [INFO] [stdout] --> src/daysix.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn parse_input(s: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `does_complete` is never used [INFO] [stdout] --> src/daysix.rs:17:4 [INFO] [stdout] | [INFO] [stdout] 17 | fn does_complete(speed: i64, time: i64, d: i64) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `compute` is never used [INFO] [stdout] --> src/daysix.rs:26:4 [INFO] [stdout] | [INFO] [stdout] 26 | fn compute(t: i64, d: i64) -> i64 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Hand` is never constructed [INFO] [stdout] --> src/dayseven.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | struct Hand<'a> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `parse` are never used [INFO] [stdout] --> src/dayseven.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 51 | impl<'a> Hand<'a> { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 52 | fn new(hand: &'a str, bet: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | fn parse(&self) -> HashMap { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `HandType` is never used [INFO] [stdout] --> src/dayseven.rs:80:6 [INFO] [stdout] | [INFO] [stdout] 80 | enum HandType<'b> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `get_bet` are never used [INFO] [stdout] --> src/dayseven.rs:92:8 [INFO] [stdout] | [INFO] [stdout] 91 | impl<'b> HandType<'b> { [INFO] [stdout] | --------------------- associated items in this implementation [INFO] [stdout] 92 | fn new(s: Hand<'b>) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 109 | fn get_bet(&self) -> i32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_input` is never used [INFO] [stdout] --> src/dayseven.rs:123:4 [INFO] [stdout] | [INFO] [stdout] 123 | fn parse_input(s: &str) -> Hand { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `traverse_graph` is never used [INFO] [stdout] --> src/dayeight.rs:32:4 [INFO] [stdout] | [INFO] [stdout] 32 | fn traverse_graph(instructions: &str, graph: &HashMap<&str, Node>) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_diff` is never used [INFO] [stdout] --> src/daynine.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn get_diff(s: &Vec) -> Option>> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_last_sequence` is never used [INFO] [stdout] --> src/daynine.rs:18:4 [INFO] [stdout] | [INFO] [stdout] 18 | fn get_last_sequence(s: Vec) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_first_sequence` is never used [INFO] [stdout] --> src/daynine.rs:35:4 [INFO] [stdout] | [INFO] [stdout] 35 | fn get_first_sequence(s: Vec) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_data` is never used [INFO] [stdout] --> src/daynine.rs:52:4 [INFO] [stdout] | [INFO] [stdout] 52 | fn parse_data(s: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_matrix` is never used [INFO] [stdout] --> src/dayten.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn create_matrix(s: &str) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Pos` is never constructed [INFO] [stdout] --> src/dayten.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | struct Pos { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `traverse` are never used [INFO] [stdout] --> src/dayten.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 16 | impl Pos { [INFO] [stdout] | -------- associated items in this implementation [INFO] [stdout] 17 | fn new(row: usize, col: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | fn traverse(&self, dir: Direction) -> Pos { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Direction` is never used [INFO] [stdout] --> src/dayten.rs:34:6 [INFO] [stdout] | [INFO] [stdout] 34 | enum Direction { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Node` is never constructed [INFO] [stdout] --> src/dayten.rs:42:8 [INFO] [stdout] | [INFO] [stdout] 42 | struct Node { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new` and `from_previous` are never used [INFO] [stdout] --> src/dayten.rs:48:8 [INFO] [stdout] | [INFO] [stdout] 47 | impl Node { [INFO] [stdout] | --------- associated functions in this implementation [INFO] [stdout] 48 | fn new(ch: char, enter: Pos, loc: Pos) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | fn from_previous(previous: &Node, matrix:&Vec>) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_start_coord` is never used [INFO] [stdout] --> src/dayten.rs:103:4 [INFO] [stdout] | [INFO] [stdout] 103 | fn find_start_coord(matrix: &Vec>) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `traverse_until_start` is never used [INFO] [stdout] --> src/dayten.rs:114:4 [INFO] [stdout] | [INFO] [stdout] 114 | fn traverse_until_start(n: Node, m: &Vec>) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check_is_in` is never used [INFO] [stdout] --> src/dayten.rs:125:4 [INFO] [stdout] | [INFO] [stdout] 125 | fn check_is_in(n: &Node, border: &HashSet, m: &Vec>) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `count_pixel_in` is never used [INFO] [stdout] --> src/dayten.rs:144:4 [INFO] [stdout] | [INFO] [stdout] 144 | fn count_pixel_in(start: Node, m: &Vec>) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `traverse_path` is never used [INFO] [stdout] --> src/dayten.rs:163:4 [INFO] [stdout] | [INFO] [stdout] 163 | fn traverse_path(first_start:Node, second_start:Node, matrix: &Vec>) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Pos` is never constructed [INFO] [stdout] --> src/dayeleven.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | struct Pos { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `get_distance` are never used [INFO] [stdout] --> src/dayeleven.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 9 | impl Pos { [INFO] [stdout] | -------- associated items in this implementation [INFO] [stdout] 10 | fn new(row: usize, col: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 13 | fn get_distance(&self, other: &Pos) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `transpose` is never used [INFO] [stdout] --> src/dayeleven.rs:18:4 [INFO] [stdout] | [INFO] [stdout] 18 | fn transpose(d: Vec>) -> Vec> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_dot_lines_pos` is never used [INFO] [stdout] --> src/dayeleven.rs:28:4 [INFO] [stdout] | [INFO] [stdout] 28 | fn get_dot_lines_pos(matrix: &Vec>) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add_rows` is never used [INFO] [stdout] --> src/dayeleven.rs:37:4 [INFO] [stdout] | [INFO] [stdout] 37 | fn add_rows(num_rows_to_add: usize, d: Vec>) -> Vec> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `expand` is never used [INFO] [stdout] --> src/dayeleven.rs:51:4 [INFO] [stdout] | [INFO] [stdout] 51 | fn expand(s: &str) -> Vec> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_pos` is never used [INFO] [stdout] --> src/dayeleven.rs:61:4 [INFO] [stdout] | [INFO] [stdout] 61 | fn get_pos(m: &Vec>) -> Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_differences` is never used [INFO] [stdout] --> src/dayeleven.rs:73:4 [INFO] [stdout] | [INFO] [stdout] 73 | fn get_differences(a: &Vec) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_differences_part2` is never used [INFO] [stdout] --> src/dayeleven.rs:121:4 [INFO] [stdout] | [INFO] [stdout] 121 | fn get_differences_part2( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/read_data.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | file.read_to_string(&mut s); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 8 | let _ = file.read_to_string(&mut s); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `newCoords` should have a snake case name [INFO] [stdout] --> src/dayten.rs:21:17 [INFO] [stdout] | [INFO] [stdout] 21 | let mut newCoords = (0, 0); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `new_coords` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.41s [INFO] running `Command { std: "docker" "inspect" "d067ae1f403f29bbb44d525d30883884a08af7454ce04bebcf29c8eca2360db7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d067ae1f403f29bbb44d525d30883884a08af7454ce04bebcf29c8eca2360db7", kill_on_drop: false }` [INFO] [stdout] d067ae1f403f29bbb44d525d30883884a08af7454ce04bebcf29c8eca2360db7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+8dd5cd0bc1d683c30805e1dc831cac546b621a75" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a68d98bf2585113e0bc423fde660e95d4b26386e2dcf372135e48e52c534451c [INFO] running `Command { std: "docker" "start" "-a" "a68d98bf2585113e0bc423fde660e95d4b26386e2dcf372135e48e52c534451c", kill_on_drop: false }` [INFO] [stderr] Compiling advent-of-code-23 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `core::num` [INFO] [stdout] --> src/daytwo.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use core::num; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `max` and `min` [INFO] [stdout] --> src/daythree.rs:1:16 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cmp::{max, min}; [INFO] [stdout] | ^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `collections::btree_map::Range` and `string::ParseError` [INFO] [stdout] --> src/dayfive.rs:1:23 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{fmt::Error, string::ParseError, collections::btree_map::Range}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Seed_range` should have an upper camel case name [INFO] [stdout] --> src/dayfive.rs:51:8 [INFO] [stdout] | [INFO] [stdout] 51 | struct Seed_range { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `SeedRange` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/dayfive.rs:68:16 [INFO] [stdout] | [INFO] [stdout] 68 | if (seed_num >= source && seed_num < source_upper) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 68 - if (seed_num >= source && seed_num < source_upper) { [INFO] [stdout] 68 + if seed_num >= source && seed_num < source_upper { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `regex::Regex` [INFO] [stdout] --> src/dayseven.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use regex::Regex; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashSet` [INFO] [stdout] --> src/dayeight.rs:2:33 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::{HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/dayten.rs:131:11 [INFO] [stdout] | [INFO] [stdout] 131 | while (current_pos.row < h && current_pos.col < w) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 131 - while (current_pos.row < h && current_pos.col < w) { [INFO] [stdout] 131 + while current_pos.row < h && current_pos.col < w { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/dayten.rs:135:11 [INFO] [stdout] | [INFO] [stdout] 135 | if (border.contains(¤t_pos) && current_char != '7' && current_char != 'L') { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 135 - if (border.contains(¤t_pos) && current_char != '7' && current_char != 'L') { [INFO] [stdout] 135 + if border.contains(¤t_pos) && current_char != '7' && current_char != 'L' { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `dayfour::run_part2` [INFO] [stdout] --> src/main.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use dayfour::run_part2; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `dayfive::run_day_5` [INFO] [stdout] --> src/main.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use dayfive::run_day_5; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `dayeight::dayeight_part2` [INFO] [stdout] --> src/main.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use dayeight::dayeight_part2; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `search_list` is never read [INFO] [stdout] --> src/daythree.rs:105:13 [INFO] [stdout] | [INFO] [stdout] 105 | search_list = HashSet::new(); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `potential_num` is never read [INFO] [stdout] --> src/daythree.rs:106:13 [INFO] [stdout] | [INFO] [stdout] 106 | potential_num = vec![]; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `z` [INFO] [stdout] --> src/dayfive.rs:118:38 [INFO] [stdout] | [INFO] [stdout] 118 | .unwrap_or_else(|z| panic!("error parsing int in parse_map")) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_z` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/dayfive.rs:178:13 [INFO] [stdout] | [INFO] [stdout] 178 | let mut a = 1..4; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/dayfive.rs:178:9 [INFO] [stdout] | [INFO] [stdout] 178 | let mut a = 1..4; [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: variable does not need to be mutable [INFO] [stdout] --> src/dayfive.rs:179:9 [INFO] [stdout] | [INFO] [stdout] 179 | let mut b = 5i64..1_000_000_000_000; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/daysix.rs:30:22 [INFO] [stdout] | [INFO] [stdout] 30 | .fold(0, |x, y| x + 1); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/dayseven.rs:94:55 [INFO] [stdout] | [INFO] [stdout] 94 | let mut vectorized = parsed.into_iter().map(|(x, y)| y).collect::>(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/dayseven.rs:138:9 [INFO] [stdout] | [INFO] [stdout] 138 | let mut r = data.lines().collect::>(); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `all_zero` [INFO] [stdout] --> src/daynine.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | let mut all_zero = false; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_all_zero` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/daynine.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | let mut all_zero = false; [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/dayten.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | _ => panic!("Error in traverse") [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/dayten.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 23 | Direction::Up => newCoords = (self.row - 1,self.col), [INFO] [stdout] | ------------- matches some of the same values [INFO] [stdout] 24 | Direction::Down => newCoords = (self.row + 1, self.col), [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] 25 | Direction::Left => newCoords = (self.row, self.col - 1), [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] 26 | Direction::Right => newCoords = (self.row, self.col + 1), [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] 27 | _ => panic!("Error in traverse") [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `newCoords` is never read [INFO] [stdout] --> src/dayten.rs:21:17 [INFO] [stdout] | [INFO] [stdout] 21 | let mut newCoords = (0, 0); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/dayten.rs:22:13 [INFO] [stdout] | [INFO] [stdout] 22 | let x = match dir { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `col` [INFO] [stdout] --> src/dayten.rs:105:16 [INFO] [stdout] | [INFO] [stdout] 105 | for (j, col) in row.iter().enumerate() { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_col` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/dayeleven.rs:32:19 [INFO] [stdout] | [INFO] [stdout] 32 | .filter(|(x, y)| !y.iter().any(|x| *x == '#')) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/dayeleven.rs:42:17 [INFO] [stdout] | [INFO] [stdout] 42 | for i in 0..num_rows_to_add { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `name` is never read [INFO] [stdout] --> src/dayfive.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 46 | struct SeedMap<'a> { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 47 | name: &'a str, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SeedMap` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Seed_range` is never constructed [INFO] [stdout] --> src/dayfive.rs:51:8 [INFO] [stdout] | [INFO] [stdout] 51 | struct Seed_range { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/dayfive.rs:57:8 [INFO] [stdout] | [INFO] [stdout] 56 | impl Seed_range { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 57 | fn new(l: i64, h: i64) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/read_data.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | file.read_to_string(&mut s); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 8 | let _ = file.read_to_string(&mut s); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `gameMarbles` should have a snake case name [INFO] [stdout] --> src/daytwo.rs:234:4 [INFO] [stdout] | [INFO] [stdout] 234 | fn gameMarbles() { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `game_marbles` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_Mval` should have a snake case name [INFO] [stdout] --> src/daythree.rs:198:4 [INFO] [stdout] | [INFO] [stdout] 198 | fn test_Mval() { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `test_mval` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `newCoords` should have a snake case name [INFO] [stdout] --> src/dayten.rs:21:17 [INFO] [stdout] | [INFO] [stdout] 21 | let mut newCoords = (0, 0); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `new_coords` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.72s [INFO] running `Command { std: "docker" "inspect" "a68d98bf2585113e0bc423fde660e95d4b26386e2dcf372135e48e52c534451c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a68d98bf2585113e0bc423fde660e95d4b26386e2dcf372135e48e52c534451c", kill_on_drop: false }` [INFO] [stdout] a68d98bf2585113e0bc423fde660e95d4b26386e2dcf372135e48e52c534451c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+8dd5cd0bc1d683c30805e1dc831cac546b621a75" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 4ca9477c1e92fb1174095ca6302c7f7a8b3d6cadf59fedd986b75f64a61c6e3b [INFO] running `Command { std: "docker" "start" "-a" "4ca9477c1e92fb1174095ca6302c7f7a8b3d6cadf59fedd986b75f64a61c6e3b", kill_on_drop: false }` [INFO] [stderr] time="2024-10-03T14:44:36Z" level=error msg="error waiting for container: " [INFO] [stderr] Error response from daemon: mkdir /var/lib/docker/overlay2/c1078c1d9243de9b05db19d12fc74318b4f1edd935e7b18b53d50efb8f691df8/merged: no space left on device [INFO] running `Command { std: "docker" "inspect" "4ca9477c1e92fb1174095ca6302c7f7a8b3d6cadf59fedd986b75f64a61c6e3b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4ca9477c1e92fb1174095ca6302c7f7a8b3d6cadf59fedd986b75f64a61c6e3b", kill_on_drop: false }` [INFO] [stdout] 4ca9477c1e92fb1174095ca6302c7f7a8b3d6cadf59fedd986b75f64a61c6e3b