[INFO] cloning repository https://github.com/buleoer/advent_of_code_2024_rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/buleoer/advent_of_code_2024_rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbuleoer%2Fadvent_of_code_2024_rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbuleoer%2Fadvent_of_code_2024_rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 6a90aed1baf4fe6f0ae38fa03cf059a2536ed908 [INFO] checking buleoer/advent_of_code_2024_rust against try#f70ee28831acc074c109afab32d287057c3eca46 for pr-149389 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbuleoer%2Fadvent_of_code_2024_rust" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/buleoer/advent_of_code_2024_rust [INFO] finished tweaking git repo https://github.com/buleoer/advent_of_code_2024_rust [INFO] tweaked toml for git repo https://github.com/buleoer/advent_of_code_2024_rust written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/buleoer/advent_of_code_2024_rust on toolchain f70ee28831acc074c109afab32d287057c3eca46 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f70ee28831acc074c109afab32d287057c3eca46" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/buleoer/advent_of_code_2024_rust 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" "+f70ee28831acc074c109afab32d287057c3eca46" "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 [ERROR] error running command: no output for 300 seconds [INFO] checking buleoer/advent_of_code_2024_rust against try#f70ee28831acc074c109afab32d287057c3eca46 for pr-149389 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbuleoer%2Fadvent_of_code_2024_rust" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/buleoer/advent_of_code_2024_rust [INFO] finished tweaking git repo https://github.com/buleoer/advent_of_code_2024_rust [INFO] tweaked toml for git repo https://github.com/buleoer/advent_of_code_2024_rust written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/buleoer/advent_of_code_2024_rust on toolchain f70ee28831acc074c109afab32d287057c3eca46 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f70ee28831acc074c109afab32d287057c3eca46" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/buleoer/advent_of_code_2024_rust 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" "+f70ee28831acc074c109afab32d287057c3eca46" "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] [stderr] Downloading crates ... [INFO] [stderr] Downloaded nom_locate v5.0.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:94a0c148923f5b2b52a63ef0eeb1882ad339ab61bce784c8077cbe41c61feb6c" "/opt/rustwide/cargo-home/bin/cargo" "+f70ee28831acc074c109afab32d287057c3eca46" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 223f599417897c0cddd1ed4f69853e8bcecf9e4fe3a48dc794333137e4ba4d56 [INFO] running `Command { std: "docker" "start" "-a" "223f599417897c0cddd1ed4f69853e8bcecf9e4fe3a48dc794333137e4ba4d56", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "223f599417897c0cddd1ed4f69853e8bcecf9e4fe3a48dc794333137e4ba4d56", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "223f599417897c0cddd1ed4f69853e8bcecf9e4fe3a48dc794333137e4ba4d56", kill_on_drop: false }` [INFO] [stdout] 223f599417897c0cddd1ed4f69853e8bcecf9e4fe3a48dc794333137e4ba4d56 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:94a0c148923f5b2b52a63ef0eeb1882ad339ab61bce784c8077cbe41c61feb6c" "/opt/rustwide/cargo-home/bin/cargo" "+f70ee28831acc074c109afab32d287057c3eca46" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 875bae882a389626a655151323b1b814045c79a906564cf0299f8700906fd121 [INFO] running `Command { std: "docker" "start" "-a" "875bae882a389626a655151323b1b814045c79a906564cf0299f8700906fd121", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.92 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Compiling thiserror v2.0.3 [INFO] [stderr] Checking indexmap v2.7.1 [INFO] [stderr] Checking fixedbitset v0.5.7 [INFO] [stderr] Checking bytecount v0.6.9 [INFO] [stderr] Checking clap_builder v4.5.44 [INFO] [stderr] Checking nom v8.0.0 [INFO] [stderr] Checking petgraph v0.7.1 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling syn v2.0.90 [INFO] [stderr] Checking nom_locate v5.0.0 [INFO] [stderr] Compiling clap_derive v4.5.45 [INFO] [stderr] Compiling thiserror-impl v2.0.3 [INFO] [stderr] Checking clap v4.5.45 [INFO] [stderr] Checking advent_of_code_2024_rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0609]: no field `input` on type `nom::Err>>>` [INFO] [stdout] --> src/day6.rs:201:63 [INFO] [stdout] | [INFO] [stdout] 201 | .map_err(|e| nom::Err::Error(nom::error::Error::new(e.input.fragment().to_string(), nom::error::ErrorKind::Fail))) [INFO] [stdout] | ^^^^^ unknown field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `input` on type `nom::Err>>>` [INFO] [stdout] --> src/day6.rs:201:63 [INFO] [stdout] | [INFO] [stdout] 201 | .map_err(|e| nom::Err::Error(nom::error::Error::new(e.input.fragment().to_string(), nom::error::ErrorKind::Fail))) [INFO] [stdout] | ^^^^^ unknown field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day6.rs:122:9 [INFO] [stdout] | [INFO] [stdout] 122 | let mut current_position = map.initial_player_position.ok_or(Error::InvalidInput)?; [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/day6.rs:123:9 [INFO] [stdout] | [INFO] [stdout] 123 | let mut current_direction = Direction::Up; [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `map.initial_player_position` which is behind a shared reference [INFO] [stdout] --> src/day6.rs:122:32 [INFO] [stdout] | [INFO] [stdout] 122 | let mut current_position = map.initial_player_position.ok_or(Error::InvalidInput)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -------------------------- `map.initial_player_position` moved due to this method call [INFO] [stdout] | | [INFO] [stdout] | help: consider calling `.as_ref()` or `.as_mut()` to borrow the type's contents [INFO] [stdout] | move occurs because `map.initial_player_position` has type `Option`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: `Option::::ok_or` takes ownership of the receiver `self`, which moves `map.initial_player_position` [INFO] [stdout] --> /rustc/f70ee28831acc074c109afab32d287057c3eca46/library/core/src/option.rs:1337:44 [INFO] [stdout] help: you can `clone` the value and consume it, but this might not be your desired behavior [INFO] [stdout] | [INFO] [stdout] 122 | let mut current_position = as Clone>::clone(&map.initial_player_position).ok_or(Error::InvalidInput)?; [INFO] [stdout] | ++++++++++++++++++++++++++++++++++++++++++ + [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 122 | let mut current_position = map.initial_player_position.clone().ok_or(Error::InvalidInput)?; [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `was_here` [INFO] [stdout] --> src/day6.rs:121:9 [INFO] [stdout] | [INFO] [stdout] 121 | let was_here: Vec> = vec![vec![false; map.width as usize]; map.height as usize]; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_was_here` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `next_position` [INFO] [stdout] --> src/day6.rs:124:9 [INFO] [stdout] | [INFO] [stdout] 124 | let next_position = current_position.move_in_direction(current_direction); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_next_position` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `map` [INFO] [stdout] --> src/day6.rs:130:14 [INFO] [stdout] | [INFO] [stdout] 130 | fn get_part2(map: &Map) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_map` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0507, E0609. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0507`. [INFO] [stdout] [INFO] [stderr] error: could not compile `advent_of_code_2024_rust` (bin "advent_of_code_2024_rust") due to 2 previous errors; 5 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day6.rs:122:9 [INFO] [stdout] | [INFO] [stdout] 122 | let mut current_position = map.initial_player_position.ok_or(Error::InvalidInput)?; [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/day6.rs:123:9 [INFO] [stdout] | [INFO] [stdout] 123 | let mut current_direction = Direction::Up; [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `map.initial_player_position` which is behind a shared reference [INFO] [stdout] --> src/day6.rs:122:32 [INFO] [stdout] | [INFO] [stdout] 122 | let mut current_position = map.initial_player_position.ok_or(Error::InvalidInput)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -------------------------- `map.initial_player_position` moved due to this method call [INFO] [stdout] | | [INFO] [stdout] | help: consider calling `.as_ref()` or `.as_mut()` to borrow the type's contents [INFO] [stdout] | move occurs because `map.initial_player_position` has type `Option`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: `Option::::ok_or` takes ownership of the receiver `self`, which moves `map.initial_player_position` [INFO] [stdout] --> /rustc/f70ee28831acc074c109afab32d287057c3eca46/library/core/src/option.rs:1337:44 [INFO] [stdout] help: you can `clone` the value and consume it, but this might not be your desired behavior [INFO] [stdout] | [INFO] [stdout] 122 | let mut current_position = as Clone>::clone(&map.initial_player_position).ok_or(Error::InvalidInput)?; [INFO] [stdout] | ++++++++++++++++++++++++++++++++++++++++++ + [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 122 | let mut current_position = map.initial_player_position.clone().ok_or(Error::InvalidInput)?; [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `was_here` [INFO] [stdout] --> src/day6.rs:121:9 [INFO] [stdout] | [INFO] [stdout] 121 | let was_here: Vec> = vec![vec![false; map.width as usize]; map.height as usize]; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_was_here` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `next_position` [INFO] [stdout] --> src/day6.rs:124:9 [INFO] [stdout] | [INFO] [stdout] 124 | let next_position = current_position.move_in_direction(current_direction); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_next_position` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `map` [INFO] [stdout] --> src/day6.rs:130:14 [INFO] [stdout] | [INFO] [stdout] 130 | fn get_part2(map: &Map) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_map` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0507, E0609. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0507`. [INFO] [stdout] [INFO] [stderr] error: could not compile `advent_of_code_2024_rust` (bin "advent_of_code_2024_rust" test) due to 2 previous errors; 5 warnings emitted [INFO] running `Command { std: "docker" "inspect" "875bae882a389626a655151323b1b814045c79a906564cf0299f8700906fd121", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "875bae882a389626a655151323b1b814045c79a906564cf0299f8700906fd121", kill_on_drop: false }` [INFO] [stdout] 875bae882a389626a655151323b1b814045c79a906564cf0299f8700906fd121