[INFO] cloning repository https://github.com/PeterMaltby/advent-of-code [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/PeterMaltby/advent-of-code" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FPeterMaltby%2Fadvent-of-code", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FPeterMaltby%2Fadvent-of-code'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a8e44fb431e50d655f2ac2f9b7be5e53363cd387 [INFO] building PeterMaltby/advent-of-code against try#9b5e8b16bd1c4acf4cf8e6880368314cf021a987+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FPeterMaltby%2Fadvent-of-code" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/PeterMaltby/advent-of-code on toolchain 9b5e8b16bd1c4acf4cf8e6880368314cf021a987 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9b5e8b16bd1c4acf4cf8e6880368314cf021a987" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/PeterMaltby/advent-of-code [INFO] finished tweaking git repo https://github.com/PeterMaltby/advent-of-code [INFO] tweaked toml for git repo https://github.com/PeterMaltby/advent-of-code written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/PeterMaltby/advent-of-code 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" "+9b5e8b16bd1c4acf4cf8e6880368314cf021a987" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+9b5e8b16bd1c4acf4cf8e6880368314cf021a987" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] bf1a35ff246bd8c295fd16329633b18f83c44698138c2e98d90d9d7271cb7a7c [INFO] running `Command { std: "docker" "start" "-a" "bf1a35ff246bd8c295fd16329633b18f83c44698138c2e98d90d9d7271cb7a7c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bf1a35ff246bd8c295fd16329633b18f83c44698138c2e98d90d9d7271cb7a7c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bf1a35ff246bd8c295fd16329633b18f83c44698138c2e98d90d9d7271cb7a7c", kill_on_drop: false }` [INFO] [stdout] bf1a35ff246bd8c295fd16329633b18f83c44698138c2e98d90d9d7271cb7a7c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+9b5e8b16bd1c4acf4cf8e6880368314cf021a987" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a4c783631626c01e9595410a7276cb4bfb29ea5a8896bf4209d3f80a54b0c522 [INFO] running `Command { std: "docker" "start" "-a" "a4c783631626c01e9595410a7276cb4bfb29ea5a8896bf4209d3f80a54b0c522", kill_on_drop: false }` [INFO] [stderr] Compiling advent-of-code v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/bin/2022_day12.rs:1:24 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::{self, VecDeque}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/bin/2023_day1.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `vec` [INFO] [stdout] --> src/bin/2022_day11.rs:4:18 [INFO] [stdout] | [INFO] [stdout] 4 | use std::{usize, vec}; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around method argument [INFO] [stdout] --> src/bin/2022_day5.rs:101:17 [INFO] [stdout] | [INFO] [stdout] 101 | (v[3].parse::().unwrap() - 1), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 101 - (v[3].parse::().unwrap() - 1), [INFO] [stdout] 101 + v[3].parse::().unwrap() - 1, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around method argument [INFO] [stdout] --> src/bin/2022_day5.rs:102:17 [INFO] [stdout] | [INFO] [stdout] 102 | (v[5].parse::().unwrap() - 1), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 102 - (v[5].parse::().unwrap() - 1), [INFO] [stdout] 102 + v[5].parse::().unwrap() - 1, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around method argument [INFO] [stdout] --> src/bin/2022_day5.rs:127:17 [INFO] [stdout] | [INFO] [stdout] 127 | (v[3].parse::().unwrap() - 1), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 127 - (v[3].parse::().unwrap() - 1), [INFO] [stdout] 127 + v[3].parse::().unwrap() - 1, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around method argument [INFO] [stdout] --> src/bin/2022_day5.rs:128:17 [INFO] [stdout] | [INFO] [stdout] 128 | (v[5].parse::().unwrap() - 1), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 128 - (v[5].parse::().unwrap() - 1), [INFO] [stdout] 128 + v[5].parse::().unwrap() - 1, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `test` [INFO] [stdout] --> src/bin/2023_day1.rs:85:25 [INFO] [stdout] | [INFO] [stdout] 85 | let test = &line[start_index..end_index]; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_test` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashMap` [INFO] [stdout] --> src/bin/2023_day11.rs:1:24 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::{HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Display` [INFO] [stdout] --> src/bin/2022_day16.rs:2:22 [INFO] [stdout] | [INFO] [stdout] 2 | use std::fmt::{self, Display}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/bin/2022_day16.rs:4:26 [INFO] [stdout] | [INFO] [stdout] 4 | use std::time::{Instant, self}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `task2_attempt1` is never used [INFO] [stdout] --> src/bin/2023_day1.rs:130:4 [INFO] [stdout] | [INFO] [stdout] 130 | fn task2_attempt1(file: &Path) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file` [INFO] [stdout] --> src/bin/template.rs:39:10 [INFO] [stdout] | [INFO] [stdout] 39 | fn task2(file: &Path) -> i32 { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_file` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `print`, `print_distance`, and `print_both` are never used [INFO] [stdout] --> src/bin/2022_day12.rs:78:8 [INFO] [stdout] | [INFO] [stdout] 35 | impl Map { [INFO] [stdout] | -------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 78 | fn print(&self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 107 | fn print_distance(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 129 | fn print_both(&self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/bin/2023_day10.rs:169:13 [INFO] [stdout] | [INFO] [stdout] 169 | let mut n = 0; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/2023_day10.rs:169:9 [INFO] [stdout] | [INFO] [stdout] 169 | let mut n = 0; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file` [INFO] [stdout] --> src/bin/2023_day10.rs:178:10 [INFO] [stdout] | [INFO] [stdout] 178 | fn task2(file: &Path) -> i32 { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/2023_day6.rs:30:13 [INFO] [stdout] | [INFO] [stdout] 30 | let mut times: Vec = times [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/bin/2023_day6.rs:37:13 [INFO] [stdout] | [INFO] [stdout] 37 | let mut distance: Vec = distance [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `game_id` is assigned to, but never used [INFO] [stdout] --> src/bin/2023_day2.rs:73:17 [INFO] [stdout] | [INFO] [stdout] 73 | let mut game_id = 0; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_game_id` instead [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `id` is never read [INFO] [stdout] --> src/bin/2023_day4.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 26 | struct Card { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 27 | id: u32, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `Card` 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: function `makeGame` should have a snake case name [INFO] [stdout] --> src/bin/2022_day2.rs:32:4 [INFO] [stdout] | [INFO] [stdout] 32 | fn makeGame(input: &str) -> (RPS, RPS) { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `make_game` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `makeGame2` should have a snake case name [INFO] [stdout] --> src/bin/2022_day2.rs:51:4 [INFO] [stdout] | [INFO] [stdout] 51 | fn makeGame2(input: &str) -> (RPS, RPS) { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `make_game2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/bin/2022_day11.rs:83:13 [INFO] [stdout] | [INFO] [stdout] 83 | for x in 0..monkeys[i].items.len() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/bin/2022_day11.rs:101:13 [INFO] [stdout] | [INFO] [stdout] 101 | for x in 0..monkeys[i].items.len() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `n` is assigned to, but never used [INFO] [stdout] --> src/bin/2022_day11.rs:118:13 [INFO] [stdout] | [INFO] [stdout] 118 | let mut n = 0; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_n` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `n` is assigned to, but never used [INFO] [stdout] --> src/bin/2022_day11.rs:181:13 [INFO] [stdout] | [INFO] [stdout] 181 | let mut n = 0; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_n` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/bin/2022_day16.rs:185:13 [INFO] [stdout] | [INFO] [stdout] 185 | let mut n = 0; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/2022_day16.rs:185:9 [INFO] [stdout] | [INFO] [stdout] 185 | let mut n = 0; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file` [INFO] [stdout] --> src/bin/2022_day16.rs:213:10 [INFO] [stdout] | [INFO] [stdout] 213 | fn task2(file: &Path) -> i32 { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `find_max_from` is never used [INFO] [stdout] --> src/bin/2022_day16.rs:132:8 [INFO] [stdout] | [INFO] [stdout] 48 | impl ValveMap { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 132 | fn find_max_from(&mut self, from: String, currentTime: i32) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `visited` and `time` are never read [INFO] [stdout] --> src/bin/2022_day16.rs:179:5 [INFO] [stdout] | [INFO] [stdout] 178 | struct Route { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 179 | visited: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 180 | score: i32, [INFO] [stdout] 181 | time: i32, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Route` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/bin/2022_day16.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | write!(f, "{} flow: {}, ",self.name, self.flow_rate); [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] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/bin/2022_day16.rs:37:13 [INFO] [stdout] | [INFO] [stdout] 37 | write!(f, "{}:{}, ", l.1, l.0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `hashValues` should have a snake case name [INFO] [stdout] --> src/bin/2022_day16.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 45 | hashValues: HashMap, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `hash_values` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `hashValues` should have a snake case name [INFO] [stdout] --> src/bin/2022_day16.rs:51:17 [INFO] [stdout] | [INFO] [stdout] 51 | let mut hashValues: HashMap = HashMap::new(); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `hash_values` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `currentTime` should have a snake case name [INFO] [stdout] --> src/bin/2022_day16.rs:132:47 [INFO] [stdout] | [INFO] [stdout] 132 | fn find_max_from(&mut self, from: String, currentTime: i32) { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `current_time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `timeLimit` should have a snake case name [INFO] [stdout] --> src/bin/2022_day16.rs:142:40 [INFO] [stdout] | [INFO] [stdout] 142 | fn cal_routes(&self, from: String, timeLimit: i32, mut no_visit: Vec,mut score: i32 ) -> Route { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `time_limit` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/bin/2023_day14.rs:175:9 [INFO] [stdout] | [INFO] [stdout] 175 | for i in 0..1000 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/bin/2022_day3.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 41 | panic!("shouldnt reach here"); [INFO] [stdout] | ----------------------------- any code following this expression is unreachable [INFO] [stdout] 42 | return 0; [INFO] [stdout] | ^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/bin/2022_day3.rs:72:5 [INFO] [stdout] | [INFO] [stdout] 71 | panic!("shouldnt get here!"); [INFO] [stdout] | ---------------------------- any code following this expression is unreachable [INFO] [stdout] 72 | return 0; [INFO] [stdout] | ^^^^^^^^^ unreachable statement [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashMap` [INFO] [stdout] --> src/bin/2022_day15.rs:1:24 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::{HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `min_x_y` and `max_x_y` are never read [INFO] [stdout] --> src/bin/2022_day15.rs:142:5 [INFO] [stdout] | [INFO] [stdout] 140 | struct Map { [INFO] [stdout] | --- fields in this struct [INFO] [stdout] 141 | beacons: Vec, [INFO] [stdout] 142 | min_x_y: Coords, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 143 | max_x_y: Coords, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::hash_map::DefaultHasher` [INFO] [stdout] --> src/bin/2023_day15.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::hash_map::DefaultHasher; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::write` [INFO] [stdout] --> src/bin/2022_day14.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::fmt::write; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/bin/2022_day14.rs:74:40 [INFO] [stdout] | [INFO] [stdout] 74 | fn add_wall(&mut self, walls: &Vec<(Coords)>) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 74 - fn add_wall(&mut self, walls: &Vec<(Coords)>) { [INFO] [stdout] 74 + fn add_wall(&mut self, walls: &Vec) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/bin/2022_day14.rs:75:26 [INFO] [stdout] | [INFO] [stdout] 75 | let walls: Vec<(&(Coords), &(Coords))> = walls.iter().zip(walls.iter().skip(1)).collect(); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 75 - let walls: Vec<(&(Coords), &(Coords))> = walls.iter().zip(walls.iter().skip(1)).collect(); [INFO] [stdout] 75 + let walls: Vec<(&Coords, &(Coords))> = walls.iter().zip(walls.iter().skip(1)).collect(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/bin/2022_day14.rs:75:37 [INFO] [stdout] | [INFO] [stdout] 75 | let walls: Vec<(&(Coords), &(Coords))> = walls.iter().zip(walls.iter().skip(1)).collect(); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 75 - let walls: Vec<(&(Coords), &(Coords))> = walls.iter().zip(walls.iter().skip(1)).collect(); [INFO] [stdout] 75 + let walls: Vec<(&(Coords), &Coords)> = walls.iter().zip(walls.iter().skip(1)).collect(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/bin/2022_day14.rs:176:31 [INFO] [stdout] | [INFO] [stdout] 176 | let mut wall: Vec<(Coords)> = Vec::new(); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 176 - let mut wall: Vec<(Coords)> = Vec::new(); [INFO] [stdout] 176 + let mut wall: Vec = Vec::new(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/bin/2022_day14.rs:207:31 [INFO] [stdout] | [INFO] [stdout] 207 | let mut wall: Vec<(Coords)> = Vec::new(); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 207 - let mut wall: Vec<(Coords)> = Vec::new(); [INFO] [stdout] 207 + let mut wall: Vec = Vec::new(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/bin/2022_day14.rs:222:23 [INFO] [stdout] | [INFO] [stdout] 222 | let mut wall: Vec<(Coords)> = Vec::new(); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 222 - let mut wall: Vec<(Coords)> = Vec::new(); [INFO] [stdout] 222 + let mut wall: Vec = Vec::new(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::usize` [INFO] [stdout] --> src/bin/2023_day8.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::usize; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Hash` and `Hasher` [INFO] [stdout] --> src/bin/2023_day15.rs:2:17 [INFO] [stdout] | [INFO] [stdout] 2 | use std::hash::{Hasher, Hash}; [INFO] [stdout] | ^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::iter::zip` [INFO] [stdout] --> src/bin/2022_day13.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::iter::zip; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: internal compiler error: compiler/rustc_mir_build/src/builder/scope.rs:1724:17: cannot unwind from goto -> bb110 [INFO] [stdout] --> src/bin/2022_day13.rs:164:2 [INFO] [stdout] | [INFO] [stdout] 164 | } [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] thread 'rustc' panicked at compiler/rustc_mir_build/src/builder/scope.rs:1724:17: [INFO] [stderr] Box [INFO] [stderr] stack backtrace: [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/bin/2023_day8.rs:59:26 [INFO] [stdout] | [INFO] [stdout] 59 | _ => !panic!("invalid char {}", c), [INFO] [stdout] | ^---------------------------- [INFO] [stdout] | || [INFO] [stdout] | |any code following this expression is unreachable [INFO] [stdout] | unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::iter::zip` [INFO] [stdout] --> src/bin/2023_day3.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::iter::zip; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/bin/2023_day3.rs:188:20 [INFO] [stdout] | [INFO] [stdout] 188 | if (item.1 == item_to_check.1 && item.0 != item_to_check.0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 188 - if (item.1 == item_to_check.1 && item.0 != item_to_check.0) { [INFO] [stdout] 188 + if item.1 == item_to_check.1 && item.0 != item_to_check.0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/bin/2023_day3.rs:190:26 [INFO] [stdout] | [INFO] [stdout] 190 | n += (item.0 * item_to_check.0); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 190 - n += (item.0 * item_to_check.0); [INFO] [stdout] 190 + n += item.0 * item_to_check.0; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] 0: 0x7767db381caa - ::fmt::h636462e57d5ef1e1 [INFO] [stderr] 1: 0x7767dba13cbc - core::fmt::write::h067060808ac50eb9 [INFO] [stderr] 2: 0x7767dc928e11 - std::io::Write::write_fmt::h4674fa2ed7c0dfdd [INFO] [stderr] 3: 0x7767db381b02 - std::sys::backtrace::BacktraceLock::print::h0c77148acfb0b5e9 [INFO] [stderr] 4: 0x7767db383ffa - std::panicking::default_hook::{{closure}}::h30daa8e7c6ccb09d [INFO] [stderr] 5: 0x7767db383e43 - std::panicking::default_hook::h25f21dc0f2064615 [INFO] [stderr] 6: 0x7767da4eff28 - std[b36e883d67eb0403]::panicking::update_hook::>::{closure#0} [INFO] [stderr] 7: 0x7767db3847b8 - std::panicking::rust_panic_with_hook::hc98438687e833605 [INFO] [stderr] 8: 0x7767da52a341 - std[b36e883d67eb0403]::panicking::begin_panic::::{closure#0} [INFO] [stderr] 9: 0x7767da51f526 - std[b36e883d67eb0403]::sys::backtrace::__rust_end_short_backtrace::::{closure#0}, !> [INFO] [stderr] 10: 0x7767da51f50d - std[b36e883d67eb0403]::panicking::begin_panic:: [INFO] [stderr] 11: 0x7767da5342a1 - ::emit_producing_guarantee [INFO] [stderr] 12: 0x7767daa84fdc - ::span_bug:: [INFO] [stderr] 13: 0x7767dab0a897 - rustc_middle[8ad6e8ce52578819]::util::bug::opt_span_bug_fmt::::{closure#0} [INFO] [stderr] 14: 0x7767daaf006a - rustc_middle[8ad6e8ce52578819]::ty::context::tls::with_opt::::{closure#0}, !>::{closure#0} [INFO] [stderr] 15: 0x7767daaefefb - rustc_middle[8ad6e8ce52578819]::ty::context::tls::with_context_opt::::{closure#0}, !>::{closure#0}, !> [INFO] [stderr] 16: 0x7767d8f34437 - rustc_middle[8ad6e8ce52578819]::util::bug::span_bug_fmt:: [INFO] [stderr] 17: 0x7767dc3d541b - ::build_unwind_tree [INFO] [stderr] 18: 0x7767dc3cd7cd - rustc_mir_build[73684a27b88b946a]::builder::mir_build [INFO] [stderr] 19: 0x7767dba07714 - rustc_mir_transform[857cd804783fef4d]::mir_built [INFO] [stderr] 20: 0x7767dba076d7 - rustc_query_impl[1e55094a59e290f4]::plumbing::__rust_begin_short_backtrace::> [INFO] [stderr] 21: 0x7767dbc953d1 - rustc_query_system[67781f9dc633c543]::query::plumbing::try_execute_query::, rustc_query_system[67781f9dc633c543]::dep_graph::graph::DepNodeIndex>, false, false, false>, rustc_query_impl[1e55094a59e290f4]::plumbing::QueryCtxt, false> [INFO] [stderr] 22: 0x7767dbc94f8d - rustc_query_impl[1e55094a59e290f4]::query_impl::mir_built::get_query_non_incr::__rust_end_short_backtrace [INFO] [stderr] 23: 0x7767d8a67185 - rustc_mir_build[73684a27b88b946a]::check_unsafety::check_unsafety [INFO] [stderr] 24: 0x7767dc2e98a7 - rustc_query_impl[1e55094a59e290f4]::plumbing::__rust_begin_short_backtrace::> [INFO] [stderr] 25: 0x7767dc2e9b69 - rustc_query_system[67781f9dc633c543]::query::plumbing::try_execute_query::, rustc_query_system[67781f9dc633c543]::dep_graph::graph::DepNodeIndex>, false, false, false>, rustc_query_impl[1e55094a59e290f4]::plumbing::QueryCtxt, false> [INFO] [stderr] 26: 0x7767dc2e97d1 - rustc_query_impl[1e55094a59e290f4]::query_impl::check_unsafety::get_query_non_incr::__rust_end_short_backtrace [INFO] [stderr] 27: 0x7767dbe9bd32 - rustc_interface[b59e7ee7606ca029]::passes::run_required_analyses [INFO] [stderr] 28: 0x7767dc92cc9e - rustc_interface[b59e7ee7606ca029]::passes::analysis [INFO] [stderr] 29: 0x7767dc92cc6f - rustc_query_impl[1e55094a59e290f4]::plumbing::__rust_begin_short_backtrace::> [INFO] [stderr] 30: 0x7767dc97b355 - rustc_query_system[67781f9dc633c543]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[1e55094a59e290f4]::plumbing::QueryCtxt, false> [INFO] [stderr] 31: 0x7767dc97b08e - rustc_query_impl[1e55094a59e290f4]::query_impl::analysis::get_query_non_incr::__rust_end_short_backtrace [INFO] [stderr] 32: 0x7767dc9701de - rustc_interface[b59e7ee7606ca029]::passes::create_and_enter_global_ctxt::, rustc_driver_impl[be5855d19ccc8b6c]::run_compiler::{closure#0}::{closure#2}>::{closure#2}::{closure#0} [INFO] [stderr] 33: 0x7767dc9dff51 - rustc_interface[b59e7ee7606ca029]::interface::run_compiler::<(), rustc_driver_impl[be5855d19ccc8b6c]::run_compiler::{closure#0}>::{closure#1} [INFO] [stderr] 34: 0x7767dc8f5087 - std[b36e883d67eb0403]::sys::backtrace::__rust_begin_short_backtrace::::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()> [INFO] [stderr] 35: 0x7767dc8f551c - <::spawn_unchecked_::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>::{closure#1} as core[303105738bd0c2ae]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} [INFO] [stderr] 36: 0x7767dc8f6aef - std::sys::pal::unix::thread::Thread::new::thread_start::ha554cc4ba6335b05 [INFO] [stderr] 37: 0x7767de0d2ac3 - [INFO] [stderr] 38: 0x7767de163a04 - clone [INFO] [stderr] 39: 0x0 - [INFO] [stderr] [INFO] [stderr] note: we would appreciate a bug report: https://github.com/rust-lang/rust/issues/new?labels=C-bug%2C+I-ICE%2C+T-compiler&template=ice.md [INFO] [stderr] [INFO] [stderr] note: please make sure that you have updated to the latest nightly [INFO] [stderr] [INFO] [stderr] warning: the ICE couldn't be written to `/opt/rustwide/workdir/rustc-ice-2024-12-31T21_35_22-450.txt`: Read-only file system (os error 30) [INFO] [stderr] [INFO] [stderr] note: rustc 1.85.0-nightly (9b5e8b16b 2024-12-19) running on x86_64-unknown-linux-gnu [INFO] [stderr] [INFO] [stderr] note: compiler flags: --crate-type bin -C embed-bitcode=no -C debuginfo=2 [INFO] [stderr] [INFO] [stderr] note: some of the compiler flags provided by cargo are hidden [INFO] [stderr] [INFO] [stderr] query stack during panic: [INFO] [stderr] #0 [mir_built] building MIR for `is_smaller` [INFO] [stderr] #1 [check_unsafety] unsafety-checking `is_smaller` [INFO] [stderr] #2 [analysis] running analysis passes on this crate [INFO] [stderr] end of query stack [INFO] [stdout] warning: function `HASHMAP` should have a snake case name [INFO] [stdout] --> src/bin/2023_day15.rs:43:4 [INFO] [stdout] | [INFO] [stdout] 43 | fn HASHMAP(s: &str) -> u32 { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `hashmap` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `advent-of-code` (bin "2022_day13"); 1 warning emitted [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `/opt/rustwide/rustup-home/toolchains/9b5e8b16bd1c4acf4cf8e6880368314cf021a987/bin/rustc --crate-name 2022_day13 --edition=2021 src/bin/2022_day13.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values())' -C metadata=2c32fcf692db82e4 -C extra-filename=-c2fd8174d4ba9092 --out-dir /opt/rustwide/target/debug/deps -L dependency=/opt/rustwide/target/debug/deps --cap-lints=forbid -Dtail-expr-drop-order` (exit status: 101) [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused import: `std::io::Write` [INFO] [stdout] --> src/bin/2023_day3.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::Write; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/2023_day3.rs:50:13 [INFO] [stdout] | [INFO] [stdout] 50 | for mut x in 0..self.map.len() { [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/bin/2023_day3.rs:115:13 [INFO] [stdout] | [INFO] [stdout] 115 | for mut x in 0..self.map.len() { [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/bin/2023_day3.rs:204:17 [INFO] [stdout] | [INFO] [stdout] 204 | write!(f, "{}", c); [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] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/bin/2023_day3.rs:206:13 [INFO] [stdout] | [INFO] [stdout] 206 | write!(f, "\n"); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "a4c783631626c01e9595410a7276cb4bfb29ea5a8896bf4209d3f80a54b0c522", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a4c783631626c01e9595410a7276cb4bfb29ea5a8896bf4209d3f80a54b0c522", kill_on_drop: false }` [INFO] [stdout] a4c783631626c01e9595410a7276cb4bfb29ea5a8896bf4209d3f80a54b0c522