[INFO] cloning repository https://github.com/musmuris/AdventOfCode2024 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/musmuris/AdventOfCode2024" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmusmuris%2FAdventOfCode2024", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmusmuris%2FAdventOfCode2024'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 5f8bdc35093bd771593739d4ccbcc8b4574ef69b [INFO] testing musmuris/AdventOfCode2024 against try#2440211fe03bc45c89b6dc1a3df18382ce91e32b for pr-146098-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmusmuris%2FAdventOfCode2024" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/musmuris/AdventOfCode2024 [INFO] finished tweaking git repo https://github.com/musmuris/AdventOfCode2024 [INFO] tweaked toml for git repo https://github.com/musmuris/AdventOfCode2024 written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/musmuris/AdventOfCode2024 on toolchain 2440211fe03bc45c89b6dc1a3df18382ce91e32b [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/musmuris/AdventOfCode2024 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" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d22f970e5c48cd15f222edad0d084ca0cc71527f361fcd35f016a2d2d972ecac [INFO] running `Command { std: "docker" "start" "-a" "d22f970e5c48cd15f222edad0d084ca0cc71527f361fcd35f016a2d2d972ecac", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d22f970e5c48cd15f222edad0d084ca0cc71527f361fcd35f016a2d2d972ecac", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d22f970e5c48cd15f222edad0d084ca0cc71527f361fcd35f016a2d2d972ecac", kill_on_drop: false }` [INFO] [stdout] d22f970e5c48cd15f222edad0d084ca0cc71527f361fcd35f016a2d2d972ecac [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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" "-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 06b380150a372706aad3abda1880e9786405d00ac6f5baf76c122fb76ee75caa [INFO] running `Command { std: "docker" "start" "-a" "06b380150a372706aad3abda1880e9786405d00ac6f5baf76c122fb76ee75caa", kill_on_drop: false }` [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling either v1.13.0 [INFO] [stderr] Compiling itertools v0.13.0 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling advent-of-code-2024 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: couldn't read `src/bin/inputs/day16.txt`: No such file or directory (os error 2) [INFO] [stdout] --> src/bin/day16.rs:1:21 [INFO] [stdout] | [INFO] [stdout] 1 | const INPUT: &str = include_str!("inputs/day16.txt"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: couldn't read `src/bin/inputs/day12.txt`: No such file or directory (os error 2) [INFO] [stdout] --> src/bin/day12.rs:1:21 [INFO] [stdout] | [INFO] [stdout] 1 | const INPUT: &str = include_str!("inputs/day12.txt"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: couldn't read `src/bin/inputs/day13.txt`: No such file or directory (os error 2) [INFO] [stdout] --> src/bin/day13.rs:1:21 [INFO] [stdout] | [INFO] [stdout] 1 | const INPUT: &str = include_str!("inputs/day13.txt"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: couldn't read `src/bin/inputs/day9.txt`: No such file or directory (os error 2) [INFO] [stdout] --> src/bin/day9.rs:1:21 [INFO] [stdout] | [INFO] [stdout] 1 | const INPUT: &str = include_str!("inputs/day9.txt"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: couldn't read `src/bin/inputs/day7.txt`: No such file or directory (os error 2) [INFO] [stdout] --> src/bin/day7.rs:1:21 [INFO] [stdout] | [INFO] [stdout] 1 | const INPUT: &str = include_str!("inputs/day7.txt"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: couldn't read `src/bin/inputs/day15.txt`: No such file or directory (os error 2) [INFO] [stdout] --> src/bin/day15.rs:1:21 [INFO] [stdout] | [INFO] [stdout] 1 | const INPUT: &str = include_str!("inputs/day15.txt"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: couldn't read `src/bin/inputs/day1.txt`: No such file or directory (os error 2) [INFO] [stdout] --> src/bin/day1.rs:3:21 [INFO] [stdout] | [INFO] [stdout] 3 | const INPUT: &str = include_str!("inputs/day1.txt"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: couldn't read `src/bin/inputs/day14.txt`: No such file or directory (os error 2) [INFO] [stdout] --> src/bin/day14.rs:1:21 [INFO] [stdout] | [INFO] [stdout] 1 | const INPUT: &str = include_str!("inputs/day14.txt"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0428]: the name `INPUT` is defined multiple times [INFO] [stdout] --> src/bin/day10.rs:34:1 [INFO] [stdout] | [INFO] [stdout] 1 | const INPUT: &str = include_str!("inputs/day10.txt"); [INFO] [stdout] | ----------------------------------------------------- previous definition of the value `INPUT` here [INFO] [stdout] ... [INFO] [stdout] 34 | const INPUT: &str = include_str!("inputs/day10.txt"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `INPUT` redefined here [INFO] [stdout] | [INFO] [stdout] = note: `INPUT` must be defined only once in the value namespace of this module [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0428]: the name `day10` is defined multiple times [INFO] [stdout] --> src/bin/day10.rs:36:1 [INFO] [stdout] | [INFO] [stdout] 3 | fn day10(input: &str) -> (usize, usize) { [INFO] [stdout] | --------------------------------------- previous definition of the value `day10` here [INFO] [stdout] ... [INFO] [stdout] 36 | fn day10(input: &str) -> (usize, usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `day10` redefined here [INFO] [stdout] | [INFO] [stdout] = note: `day10` must be defined only once in the value namespace of this module [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0428]: the name `main` is defined multiple times [INFO] [stdout] --> src/bin/day10.rs:40:1 [INFO] [stdout] | [INFO] [stdout] 7 | fn main() { [INFO] [stdout] | --------- previous definition of the value `main` here [INFO] [stdout] ... [INFO] [stdout] 40 | fn main() { [INFO] [stdout] | ^^^^^^^^^ `main` redefined here [INFO] [stdout] | [INFO] [stdout] = note: `main` must be defined only once in the value namespace of this module [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: couldn't read `src/bin/inputs/day10.txt`: No such file or directory (os error 2) [INFO] [stdout] --> src/bin/day10.rs:1:21 [INFO] [stdout] | [INFO] [stdout] 1 | const INPUT: &str = include_str!("inputs/day10.txt"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: couldn't read `src/bin/inputs/day6.txt`: No such file or directory (os error 2) [INFO] [stdout] --> src/bin/day6.rs:3:21 [INFO] [stdout] | [INFO] [stdout] 3 | const INPUT: &str = include_str!("inputs/day6.txt"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: couldn't read `src/bin/inputs/day3.txt`: No such file or directory (os error 2) [INFO] [stdout] --> src/bin/day3.rs:3:21 [INFO] [stdout] | [INFO] [stdout] 3 | const INPUT: &str = include_str!("inputs/day3.txt"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: couldn't read `src/bin/inputs/day11.txt`: No such file or directory (os error 2) [INFO] [stdout] --> src/bin/day11.rs:1:21 [INFO] [stdout] | [INFO] [stdout] 1 | const INPUT: &str = include_str!("inputs/day11.txt"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: couldn't read `src/bin/inputs/day10.txt`: No such file or directory (os error 2) [INFO] [stdout] --> src/bin/day10.rs:34:21 [INFO] [stdout] | [INFO] [stdout] 34 | const INPUT: &str = include_str!("inputs/day10.txt"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: couldn't read `src/bin/inputs/day2.txt`: No such file or directory (os error 2) [INFO] [stdout] --> src/bin/day2.rs:1:21 [INFO] [stdout] | [INFO] [stdout] 1 | const INPUT: &str = include_str!("inputs/day2.txt"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `advent-of-code-2024` (bin "day12") due to 1 previous error [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `advent-of-code-2024` (bin "day16") due to 1 previous error [INFO] [stdout] error: couldn't read `src/bin/inputs/day4.txt`: No such file or directory (os error 2) [INFO] [stdout] --> src/bin/day4.rs:2:21 [INFO] [stdout] | [INFO] [stdout] 2 | const INPUT: &str = include_str!("inputs/day4.txt"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0428`. [INFO] [stdout] [INFO] [stderr] error: could not compile `advent-of-code-2024` (bin "day15") due to 1 previous error [INFO] [stderr] error: could not compile `advent-of-code-2024` (bin "day9") due to 1 previous error [INFO] [stdout] error: couldn't read `src/bin/inputs/day8.txt`: No such file or directory (os error 2) [INFO] [stdout] --> src/bin/day8.rs:4:21 [INFO] [stdout] | [INFO] [stdout] 4 | const INPUT: &str = include_str!("inputs/day8.txt"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `advent-of-code-2024` (bin "day13") due to 1 previous error [INFO] [stdout] error[E0424]: expected value, found module `self` [INFO] [stdout] --> src/bin/day8.rs:26:18 [INFO] [stdout] | [INFO] [stdout] 19 | fn find_pair_nodes( nodes: &mut HashSet<(usize,usize)>, [INFO] [stdout] | --------------- this function can't have a `self` parameter [INFO] [stdout] ... [INFO] [stdout] 26 | if !((0..self.height).contains(&nr) && (0..).contains(&nc)) { [INFO] [stdout] | ^^^^ `self` value is a keyword only available in methods with a `self` parameter [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `advent-of-code-2024` (bin "day14") due to 1 previous error [INFO] [stderr] error: could not compile `advent-of-code-2024` (bin "day11") due to 1 previous error [INFO] [stderr] error: could not compile `advent-of-code-2024` (bin "day10") due to 5 previous errors [INFO] [stderr] error: could not compile `advent-of-code-2024` (bin "day7") due to 1 previous error [INFO] [stderr] error: could not compile `advent-of-code-2024` (bin "day1") due to 1 previous error [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/bin/day8.rs:24:20 [INFO] [stdout] | [INFO] [stdout] 24 | let nr = r+(dr*d); [INFO] [stdout] | ^^^^^^ expected `usize`, found `isize` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `advent-of-code-2024` (bin "day2") due to 1 previous error [INFO] [stderr] error: could not compile `advent-of-code-2024` (bin "day3") due to 1 previous error [INFO] [stderr] error: could not compile `advent-of-code-2024` (bin "day6") due to 1 previous error [INFO] [stdout] error[E0277]: cannot add `isize` to `usize` [INFO] [stdout] --> src/bin/day8.rs:24:19 [INFO] [stdout] | [INFO] [stdout] 24 | let nr = r+(dr*d); [INFO] [stdout] | ^ no implementation for `usize + isize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Add` is not implemented for `usize` [INFO] [stdout] = help: the following other types implement trait `Add`: [INFO] [stdout] `&usize` implements `Add` [INFO] [stdout] `&usize` implements `Add` [INFO] [stdout] `usize` implements `Add<&usize>` [INFO] [stdout] `usize` implements `Add` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/bin/day8.rs:25:20 [INFO] [stdout] | [INFO] [stdout] 25 | let nc = c+(dc*d); [INFO] [stdout] | ^^^^^^ expected `usize`, found `isize` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: cannot add `isize` to `usize` [INFO] [stdout] --> src/bin/day8.rs:25:19 [INFO] [stdout] | [INFO] [stdout] 25 | let nc = c+(dc*d); [INFO] [stdout] | ^ no implementation for `usize + isize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Add` is not implemented for `usize` [INFO] [stdout] = help: the following other types implement trait `Add`: [INFO] [stdout] `&usize` implements `Add` [INFO] [stdout] `&usize` implements `Add` [INFO] [stdout] `usize` implements `Add<&usize>` [INFO] [stdout] `usize` implements `Add` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `advent-of-code-2024` (bin "day4") due to 1 previous error [INFO] [stdout] warning: unused variable: `nodes` [INFO] [stdout] --> src/bin/day8.rs:38:13 [INFO] [stdout] | [INFO] [stdout] 38 | let mut nodes: HashSet<(usize,usize)> = HashSet::new(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_nodes` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `harmonic_nodes` [INFO] [stdout] --> src/bin/day8.rs:39:13 [INFO] [stdout] | [INFO] [stdout] 39 | let mut harmonic_nodes: HashSet<(usize,usize)> = HashSet::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_harmonic_nodes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dr` [INFO] [stdout] --> src/bin/day8.rs:44:17 [INFO] [stdout] | [INFO] [stdout] 44 | let dr = (r1-r2) as isize; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_dr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dc` [INFO] [stdout] --> src/bin/day8.rs:45:17 [INFO] [stdout] | [INFO] [stdout] 45 | let dc = (c1-c2) as isize; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_dc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `map` [INFO] [stdout] --> src/bin/day8.rs:37:15 [INFO] [stdout] | [INFO] [stdout] 37 | fn find_nodes(map: &[&[u8]], ants: &HashMap>) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_map` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/day8.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | let mut nodes: HashSet<(usize,usize)> = HashSet::new(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/day8.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | let mut harmonic_nodes: HashSet<(usize,usize)> = HashSet::new(); [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0424. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `advent-of-code-2024` (bin "day8") due to 6 previous errors; 7 warnings emitted [INFO] running `Command { std: "docker" "inspect" "06b380150a372706aad3abda1880e9786405d00ac6f5baf76c122fb76ee75caa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "06b380150a372706aad3abda1880e9786405d00ac6f5baf76c122fb76ee75caa", kill_on_drop: false }` [INFO] [stdout] 06b380150a372706aad3abda1880e9786405d00ac6f5baf76c122fb76ee75caa