[INFO] cloning repository https://github.com/emmyleaf/advent-of-code-2023 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/emmyleaf/advent-of-code-2023" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Femmyleaf%2Fadvent-of-code-2023", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Femmyleaf%2Fadvent-of-code-2023'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] bffcca80f9c36059958bea579f3e173ac36b2a6d [INFO] checking emmyleaf/advent-of-code-2023 against try#4949cf2f817beadb9a248d423b6d55d6d2398ffe for pr-142681 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Femmyleaf%2Fadvent-of-code-2023" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] removed /workspace/builds/worker-3-tc2/source/rust-toolchain.toml [INFO] started tweaking git repo https://github.com/emmyleaf/advent-of-code-2023 [INFO] finished tweaking git repo https://github.com/emmyleaf/advent-of-code-2023 [INFO] tweaked toml for git repo https://github.com/emmyleaf/advent-of-code-2023 written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/emmyleaf/advent-of-code-2023 on toolchain 4949cf2f817beadb9a248d423b6d55d6d2398ffe [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4949cf2f817beadb9a248d423b6d55d6d2398ffe" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/emmyleaf/advent-of-code-2023 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" "+4949cf2f817beadb9a248d423b6d55d6d2398ffe" "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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+4949cf2f817beadb9a248d423b6d55d6d2398ffe" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0210ad0519f35aacf0babc23024cbc02e78f5984c5e3709ece2120c7d18a6e6c [INFO] running `Command { std: "docker" "start" "-a" "0210ad0519f35aacf0babc23024cbc02e78f5984c5e3709ece2120c7d18a6e6c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0210ad0519f35aacf0babc23024cbc02e78f5984c5e3709ece2120c7d18a6e6c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0210ad0519f35aacf0babc23024cbc02e78f5984c5e3709ece2120c7d18a6e6c", kill_on_drop: false }` [INFO] [stdout] 0210ad0519f35aacf0babc23024cbc02e78f5984c5e3709ece2120c7d18a6e6c [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" "-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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+4949cf2f817beadb9a248d423b6d55d6d2398ffe" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2352418534d79be9f08038a747514ac86555cc7d4889c62dc6065fe79509372f [INFO] running `Command { std: "docker" "start" "-a" "2352418534d79be9f08038a747514ac86555cc7d4889c62dc6065fe79509372f", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling crossbeam-utils v0.8.16 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Compiling rayon-core v1.12.0 [INFO] [stderr] Checking memchr v2.6.4 [INFO] [stderr] Checking regex-syntax v0.8.2 [INFO] [stderr] Checking either v1.9.0 [INFO] [stderr] Compiling anyhow v1.0.75 [INFO] [stderr] Checking diff v0.1.13 [INFO] [stderr] Checking yansi v0.5.1 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking once_cell v1.18.0 [INFO] [stderr] Checking bit-vec v0.6.3 [INFO] [stderr] Compiling indoc v2.0.4 [INFO] [stderr] Checking pretty_assertions v1.4.0 [INFO] [stderr] Checking itertools v0.12.0 [INFO] [stderr] Compiling num-traits v0.2.17 [INFO] [stderr] Compiling memoffset v0.9.0 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling crossbeam-epoch v0.9.15 [INFO] [stderr] Compiling num-bigint v0.4.4 [INFO] [stderr] Compiling num-iter v0.1.43 [INFO] [stderr] Compiling num-rational v0.4.1 [INFO] [stderr] Checking aho-corasick v1.1.2 [INFO] [stderr] Checking crossbeam-deque v0.8.3 [INFO] [stderr] Checking rayon v1.8.0 [INFO] [stderr] Checking num-complex v0.4.4 [INFO] [stderr] Checking atoi v2.0.0 [INFO] [stderr] Checking regex-automata v0.4.3 [INFO] [stderr] Checking num v0.4.1 [INFO] [stderr] Checking regex v1.10.2 [INFO] [stderr] Checking advent-of-code-2023 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: let chains are only allowed in Rust 2024 or later [INFO] [stdout] --> src/days/day05.rs:54:11 [INFO] [stdout] | [INFO] [stdout] 54 | while let Some(line) = lines.next() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: let chains are only allowed in Rust 2024 or later [INFO] [stdout] --> src/days/day07.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 60 | && let Some((hand1_card, hand2_card)) = hands_bytes.next() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: let chains are only allowed in Rust 2024 or later [INFO] [stdout] --> src/days/day12.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | if let Ok(cache) = CACHE.read() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: let chains are only allowed in Rust 2024 or later [INFO] [stdout] --> src/days/day12.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | && let Some(&count) = cache.get(&(records.to_vec(), groups.to_vec())) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: let chains are only allowed in Rust 2024 or later [INFO] [stdout] --> src/days/day14.rs:17:27 [INFO] [stdout] | [INFO] [stdout] 17 | while let Some(next_space) = space.checked_sub(width) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: let chains are only allowed in Rust 2024 or later [INFO] [stdout] --> src/days/day14.rs:24:27 [INFO] [stdout] | [INFO] [stdout] 24 | while let Some(next_space) = space.checked_sub(1) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: let chains are only allowed in Rust 2024 or later [INFO] [stdout] --> src/days/day14.rs:32:27 [INFO] [stdout] | [INFO] [stdout] 32 | while let next_space = space + width [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: let chains are only allowed in Rust 2024 or later [INFO] [stdout] --> src/days/day14.rs:40:27 [INFO] [stdout] | [INFO] [stdout] 40 | while let next_space = space + 1 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: let chains are only allowed in Rust 2024 or later [INFO] [stdout] --> src/days/day05.rs:54:11 [INFO] [stdout] | [INFO] [stdout] 54 | while let Some(line) = lines.next() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: let chains are only allowed in Rust 2024 or later [INFO] [stdout] --> src/days/day07.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 60 | && let Some((hand1_card, hand2_card)) = hands_bytes.next() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: let chains are only allowed in Rust 2024 or later [INFO] [stdout] --> src/days/day12.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | if let Ok(cache) = CACHE.read() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: let chains are only allowed in Rust 2024 or later [INFO] [stdout] --> src/days/day12.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | && let Some(&count) = cache.get(&(records.to_vec(), groups.to_vec())) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: let chains are only allowed in Rust 2024 or later [INFO] [stdout] --> src/days/day14.rs:17:27 [INFO] [stdout] | [INFO] [stdout] 17 | while let Some(next_space) = space.checked_sub(width) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: let chains are only allowed in Rust 2024 or later [INFO] [stdout] --> src/days/day14.rs:24:27 [INFO] [stdout] | [INFO] [stdout] 24 | while let Some(next_space) = space.checked_sub(1) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: let chains are only allowed in Rust 2024 or later [INFO] [stdout] --> src/days/day14.rs:32:27 [INFO] [stdout] | [INFO] [stdout] 32 | while let next_space = space + width [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: let chains are only allowed in Rust 2024 or later [INFO] [stdout] --> src/days/day14.rs:40:27 [INFO] [stdout] | [INFO] [stdout] 40 | while let next_space = space + 1 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `state` in this scope [INFO] [stdout] --> src/days/day16.rs:111:39 [INFO] [stdout] | [INFO] [stdout] 111 | let final_state = follow_path_rec(state, (0, 0), Direction::East); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> src/days/day05.rs:48:32 [INFO] [stdout] | [INFO] [stdout] 48 | .map(|(start, length)| (start..(start + length))) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 48 - .map(|(start, length)| (start..(start + length))) [INFO] [stdout] 48 + .map(|(start, length)| start..(start + length)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `state` in this scope [INFO] [stdout] --> src/days/day16.rs:111:39 [INFO] [stdout] | [INFO] [stdout] 111 | let final_state = follow_path_rec(state, (0, 0), Direction::East); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `let_chains` has been stable since 1.88.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/main.rs:1:26 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(if_let_guard, let_chains, iter_map_windows)] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> src/days/day05.rs:48:32 [INFO] [stdout] | [INFO] [stdout] 48 | .map(|(start, length)| (start..(start + length))) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 48 - .map(|(start, length)| (start..(start + length))) [INFO] [stdout] 48 + .map(|(start, length)| start..(start + length)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `let_chains` has been stable since 1.88.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/main.rs:1:26 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(if_let_guard, let_chains, iter_map_windows)] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/days/day16.rs:37:24 [INFO] [stdout] | [INFO] [stdout] 37 | energised: (), [INFO] [stdout] | ^^ expected `BitVec`, found `()` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `BitVec` [INFO] [stdout] found unit type `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/days/day16.rs:38:25 [INFO] [stdout] | [INFO] [stdout] 38 | bounced_at: (), [INFO] [stdout] | ^^ expected `BitVec`, found `()` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `BitVec` [INFO] [stdout] found unit type `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable block in `if` or `while` expression [INFO] [stdout] --> src/days/day16.rs:47:24 [INFO] [stdout] | [INFO] [stdout] 47 | if todo!() { [INFO] [stdout] | ________________-------_^ [INFO] [stdout] | | | [INFO] [stdout] | | any code following this expression is unreachable [INFO] [stdout] 48 | | let north = follow_path_rec(state.clone(), point, Direction::North); [INFO] [stdout] 49 | | let south = follow_path_rec(state, point, Direction::South); [INFO] [stdout] 50 | | north + south [INFO] [stdout] 51 | | } [INFO] [stdout] | |_____________^ unreachable block in `if` or `while` expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/days/day16.rs:50:17 [INFO] [stdout] | [INFO] [stdout] 47 | / if todo!() { [INFO] [stdout] 48 | | let north = follow_path_rec(state.clone(), point, Direction::North); [INFO] [stdout] 49 | | let south = follow_path_rec(state, point, Direction::South); [INFO] [stdout] 50 | | north + south [INFO] [stdout] | | ^^^^^^^^^^^^^ expected `()`, found `State` [INFO] [stdout] 51 | | } [INFO] [stdout] | |_____________- expected this to be `()` [INFO] [stdout] | [INFO] [stdout] help: consider using a semicolon here [INFO] [stdout] | [INFO] [stdout] 51 | }; [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to return this value [INFO] [stdout] | [INFO] [stdout] 50 | return north + south; [INFO] [stdout] | ++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable block in `if` or `while` expression [INFO] [stdout] --> src/days/day16.rs:61:24 [INFO] [stdout] | [INFO] [stdout] 61 | if todo!() { [INFO] [stdout] | ________________-------_^ [INFO] [stdout] | | | [INFO] [stdout] | | any code following this expression is unreachable [INFO] [stdout] 62 | | let east = follow_path_rec(state.clone(), point, Direction::East); [INFO] [stdout] 63 | | let west = follow_path_rec(state, point, Direction::West); [INFO] [stdout] 64 | | east + west [INFO] [stdout] 65 | | } [INFO] [stdout] | |_____________^ unreachable block in `if` or `while` expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/days/day16.rs:64:17 [INFO] [stdout] | [INFO] [stdout] 61 | / if todo!() { [INFO] [stdout] 62 | | let east = follow_path_rec(state.clone(), point, Direction::East); [INFO] [stdout] 63 | | let west = follow_path_rec(state, point, Direction::West); [INFO] [stdout] 64 | | east + west [INFO] [stdout] | | ^^^^^^^^^^^ expected `()`, found `State` [INFO] [stdout] 65 | | } [INFO] [stdout] | |_____________- expected this to be `()` [INFO] [stdout] | [INFO] [stdout] help: consider using a semicolon here [INFO] [stdout] | [INFO] [stdout] 65 | }; [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to return this value [INFO] [stdout] | [INFO] [stdout] 64 | return east + west; [INFO] [stdout] | ++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/days/day16.rs:37:24 [INFO] [stdout] | [INFO] [stdout] 37 | energised: (), [INFO] [stdout] | ^^ expected `BitVec`, found `()` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `BitVec` [INFO] [stdout] found unit type `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/days/day16.rs:38:25 [INFO] [stdout] | [INFO] [stdout] 38 | bounced_at: (), [INFO] [stdout] | ^^ expected `BitVec`, found `()` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `BitVec` [INFO] [stdout] found unit type `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable block in `if` or `while` expression [INFO] [stdout] --> src/days/day16.rs:47:24 [INFO] [stdout] | [INFO] [stdout] 47 | if todo!() { [INFO] [stdout] | ________________-------_^ [INFO] [stdout] | | | [INFO] [stdout] | | any code following this expression is unreachable [INFO] [stdout] 48 | | let north = follow_path_rec(state.clone(), point, Direction::North); [INFO] [stdout] 49 | | let south = follow_path_rec(state, point, Direction::South); [INFO] [stdout] 50 | | north + south [INFO] [stdout] 51 | | } [INFO] [stdout] | |_____________^ unreachable block in `if` or `while` expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/days/day16.rs:50:17 [INFO] [stdout] | [INFO] [stdout] 47 | / if todo!() { [INFO] [stdout] 48 | | let north = follow_path_rec(state.clone(), point, Direction::North); [INFO] [stdout] 49 | | let south = follow_path_rec(state, point, Direction::South); [INFO] [stdout] 50 | | north + south [INFO] [stdout] | | ^^^^^^^^^^^^^ expected `()`, found `State` [INFO] [stdout] 51 | | } [INFO] [stdout] | |_____________- expected this to be `()` [INFO] [stdout] | [INFO] [stdout] help: consider using a semicolon here [INFO] [stdout] | [INFO] [stdout] 51 | }; [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to return this value [INFO] [stdout] | [INFO] [stdout] 50 | return north + south; [INFO] [stdout] | ++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable block in `if` or `while` expression [INFO] [stdout] --> src/days/day16.rs:61:24 [INFO] [stdout] | [INFO] [stdout] 61 | if todo!() { [INFO] [stdout] | ________________-------_^ [INFO] [stdout] | | | [INFO] [stdout] | | any code following this expression is unreachable [INFO] [stdout] 62 | | let east = follow_path_rec(state.clone(), point, Direction::East); [INFO] [stdout] 63 | | let west = follow_path_rec(state, point, Direction::West); [INFO] [stdout] 64 | | east + west [INFO] [stdout] 65 | | } [INFO] [stdout] | |_____________^ unreachable block in `if` or `while` expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/days/day16.rs:64:17 [INFO] [stdout] | [INFO] [stdout] 61 | / if todo!() { [INFO] [stdout] 62 | | let east = follow_path_rec(state.clone(), point, Direction::East); [INFO] [stdout] 63 | | let west = follow_path_rec(state, point, Direction::West); [INFO] [stdout] 64 | | east + west [INFO] [stdout] | | ^^^^^^^^^^^ expected `()`, found `State` [INFO] [stdout] 65 | | } [INFO] [stdout] | |_____________- expected this to be `()` [INFO] [stdout] | [INFO] [stdout] help: consider using a semicolon here [INFO] [stdout] | [INFO] [stdout] 65 | }; [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to return this value [INFO] [stdout] | [INFO] [stdout] 64 | return east + west; [INFO] [stdout] | ++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `self.energised` as mutable, as it is behind a `&` reference [INFO] [stdout] --> src/days/day16.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | self.energised [INFO] [stdout] | ^^^^^^^^^^^^^^ `self` is a `&` reference, so the data it refers to cannot be borrowed as mutable [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be a mutable reference [INFO] [stdout] | [INFO] [stdout] 14 | fn set_energised(&mut self, point: Point2D) { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `self.bounced_at` as mutable, as it is behind a `&` reference [INFO] [stdout] --> src/days/day16.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | self.bounced_at [INFO] [stdout] | ^^^^^^^^^^^^^^^ `self` is a `&` reference, so the data it refers to cannot be borrowed as mutable [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be a mutable reference [INFO] [stdout] | [INFO] [stdout] 25 | fn set_bounced_at(&mut self, point: Point2D) { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/days/day16.rs:71:14 [INFO] [stdout] | [INFO] [stdout] 71 | fn mirror_fs(mut state: State, point: Point2D, dir: Direction) -> State { [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/days/day16.rs:81:14 [INFO] [stdout] | [INFO] [stdout] 81 | fn mirror_bs(mut state: State, point: Point2D, dir: Direction) -> State { [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/days/day16.rs:91:20 [INFO] [stdout] | [INFO] [stdout] 91 | fn follow_path_rec(mut state: State, point: Point2D, dir: Direction) -> State { [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/days/day16.rs:128:20 [INFO] [stdout] | [INFO] [stdout] 128 | pub fn day16_star2(input: &str) -> usize { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0425, E0596. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `advent-of-code-2023` (bin "advent-of-code-2023") due to 15 previous errors; 8 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0596]: cannot borrow `self.energised` as mutable, as it is behind a `&` reference [INFO] [stdout] --> src/days/day16.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | self.energised [INFO] [stdout] | ^^^^^^^^^^^^^^ `self` is a `&` reference, so the data it refers to cannot be borrowed as mutable [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be a mutable reference [INFO] [stdout] | [INFO] [stdout] 14 | fn set_energised(&mut self, point: Point2D) { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `self.bounced_at` as mutable, as it is behind a `&` reference [INFO] [stdout] --> src/days/day16.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | self.bounced_at [INFO] [stdout] | ^^^^^^^^^^^^^^^ `self` is a `&` reference, so the data it refers to cannot be borrowed as mutable [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be a mutable reference [INFO] [stdout] | [INFO] [stdout] 25 | fn set_bounced_at(&mut self, point: Point2D) { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/days/day16.rs:71:14 [INFO] [stdout] | [INFO] [stdout] 71 | fn mirror_fs(mut state: State, point: Point2D, dir: Direction) -> State { [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/days/day16.rs:81:14 [INFO] [stdout] | [INFO] [stdout] 81 | fn mirror_bs(mut state: State, point: Point2D, dir: Direction) -> State { [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/days/day16.rs:91:20 [INFO] [stdout] | [INFO] [stdout] 91 | fn follow_path_rec(mut state: State, point: Point2D, dir: Direction) -> State { [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/days/day16.rs:128:20 [INFO] [stdout] | [INFO] [stdout] 128 | pub fn day16_star2(input: &str) -> usize { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0425, E0596. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `advent-of-code-2023` (bin "advent-of-code-2023" test) due to 15 previous errors; 8 warnings emitted [INFO] running `Command { std: "docker" "inspect" "2352418534d79be9f08038a747514ac86555cc7d4889c62dc6065fe79509372f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2352418534d79be9f08038a747514ac86555cc7d4889c62dc6065fe79509372f", kill_on_drop: false }` [INFO] [stdout] 2352418534d79be9f08038a747514ac86555cc7d4889c62dc6065fe79509372f