[INFO] cloning repository https://github.com/jedidiahC/advent-of-code-2024 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/jedidiahC/advent-of-code-2024" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FjedidiahC%2Fadvent-of-code-2024", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FjedidiahC%2Fadvent-of-code-2024'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 3bd2a2a8f61fad73f196d6f02212be6d0613e8ba [INFO] checking jedidiahC/advent-of-code-2024 against try#802c9b5f98c16ec9d24cdfd517f740f1f3df0e29 for pr-137728 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FjedidiahC%2Fadvent-of-code-2024" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/jedidiahC/advent-of-code-2024 on toolchain 802c9b5f98c16ec9d24cdfd517f740f1f3df0e29 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+802c9b5f98c16ec9d24cdfd517f740f1f3df0e29" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/jedidiahC/advent-of-code-2024 [INFO] finished tweaking git repo https://github.com/jedidiahC/advent-of-code-2024 [INFO] tweaked toml for git repo https://github.com/jedidiahC/advent-of-code-2024 written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/jedidiahC/advent-of-code-2024 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" "+802c9b5f98c16ec9d24cdfd517f740f1f3df0e29" "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-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+802c9b5f98c16ec9d24cdfd517f740f1f3df0e29" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c1da05f338315d2463a7238a372603b28b79642048b6c0cc208e7bd243769b33 [INFO] running `Command { std: "docker" "start" "-a" "c1da05f338315d2463a7238a372603b28b79642048b6c0cc208e7bd243769b33", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c1da05f338315d2463a7238a372603b28b79642048b6c0cc208e7bd243769b33", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c1da05f338315d2463a7238a372603b28b79642048b6c0cc208e7bd243769b33", kill_on_drop: false }` [INFO] [stdout] c1da05f338315d2463a7238a372603b28b79642048b6c0cc208e7bd243769b33 [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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+802c9b5f98c16ec9d24cdfd517f740f1f3df0e29" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 797f7d1f52b5c957e387b054a85073d826db2c5388c906a42d3d266e6b1ad78b [INFO] running `Command { std: "docker" "start" "-a" "797f7d1f52b5c957e387b054a85073d826db2c5388c906a42d3d266e6b1ad78b", kill_on_drop: false }` [INFO] [stderr] Checking advent-of-code-2024 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: expected `;`, found `}` [INFO] [stdout] --> src/bin/1.rs:14:44 [INFO] [stdout] | [INFO] [stdout] 14 | let result = solve_part_one(input_file) [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 15 | } [INFO] [stdout] | - unexpected token [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: format argument must be a string literal [INFO] [stdout] --> src/bin/1.rs:9:18 [INFO] [stdout] | [INFO] [stdout] 9 | println!(lines); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 9 | println!("{}", lines); [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected `;`, found `}` [INFO] [stdout] --> src/bin/1.rs:14:44 [INFO] [stdout] | [INFO] [stdout] 14 | let result = solve_part_one(input_file) [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 15 | } [INFO] [stdout] | - unexpected token [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0782]: expected a type, found a trait [INFO] [stdout] --> src/bin/1.rs:7:31 [INFO] [stdout] | [INFO] [stdout] 7 | fn solve_part_one(reader: BufRead) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: use a new generic type parameter, constrained by `BufRead` [INFO] [stdout] | [INFO] [stdout] 7 - fn solve_part_one(reader: BufRead) -> Result { [INFO] [stdout] 7 + fn solve_part_one(reader: T) -> Result { [INFO] [stdout] | [INFO] [stdout] help: you can also use an opaque type, but users won't be able to specify the type parameter when calling the `fn`, having to rely exclusively on type inference [INFO] [stdout] | [INFO] [stdout] 7 | fn solve_part_one(reader: impl BufRead) -> Result { [INFO] [stdout] | ++++ [INFO] [stdout] help: alternatively, use a trait object to accept any type that implements `BufRead`, accessing its methods at runtime using dynamic dispatch [INFO] [stdout] | [INFO] [stdout] 7 | fn solve_part_one(reader: &dyn BufRead) -> Result { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: format argument must be a string literal [INFO] [stdout] --> src/bin/1.rs:9:18 [INFO] [stdout] | [INFO] [stdout] 9 | println!(lines); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 9 | println!("{}", lines); [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0107]: enum takes 2 generic arguments but 1 generic argument was supplied [INFO] [stdout] --> src/bin/1.rs:7:43 [INFO] [stdout] | [INFO] [stdout] 7 | fn solve_part_one(reader: BufRead) -> Result { [INFO] [stdout] | ^^^^^^ ----- supplied 1 generic argument [INFO] [stdout] | | [INFO] [stdout] | expected 2 generic arguments [INFO] [stdout] | [INFO] [stdout] help: add missing generic argument [INFO] [stdout] | [INFO] [stdout] 7 | fn solve_part_one(reader: BufRead) -> Result { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0782]: expected a type, found a trait [INFO] [stdout] --> src/bin/1.rs:7:31 [INFO] [stdout] | [INFO] [stdout] 7 | fn solve_part_one(reader: BufRead) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: use a new generic type parameter, constrained by `BufRead` [INFO] [stdout] | [INFO] [stdout] 7 - fn solve_part_one(reader: BufRead) -> Result { [INFO] [stdout] 7 + fn solve_part_one(reader: T) -> Result { [INFO] [stdout] | [INFO] [stdout] help: you can also use an opaque type, but users won't be able to specify the type parameter when calling the `fn`, having to rely exclusively on type inference [INFO] [stdout] | [INFO] [stdout] 7 | fn solve_part_one(reader: impl BufRead) -> Result { [INFO] [stdout] | ++++ [INFO] [stdout] help: alternatively, use a trait object to accept any type that implements `BufRead`, accessing its methods at runtime using dynamic dispatch [INFO] [stdout] | [INFO] [stdout] 7 | fn solve_part_one(reader: &dyn BufRead) -> Result { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/bin/1.rs:13:59 [INFO] [stdout] | [INFO] [stdout] 5 | fn main() { [INFO] [stdout] | --------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 13 | let input_file = BufReader::new(File::open(INPUT_FILE)?); [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 5 ~ fn main() -> Result<(), Box> { [INFO] [stdout] 6 | [INFO] [stdout] ... [INFO] [stdout] 14 | let result = solve_part_one(input_file) [INFO] [stdout] 15 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `solve_part_one` in this scope [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | solve_part_one() [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0107, E0277, E0782. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0107`. [INFO] [stdout] [INFO] [stdout] error[E0107]: enum takes 2 generic arguments but 1 generic argument was supplied [INFO] [stdout] --> src/bin/1.rs:7:43 [INFO] [stdout] | [INFO] [stdout] 7 | fn solve_part_one(reader: BufRead) -> Result { [INFO] [stdout] | ^^^^^^ ----- supplied 1 generic argument [INFO] [stdout] | | [INFO] [stdout] | expected 2 generic arguments [INFO] [stdout] | [INFO] [stdout] help: add missing generic argument [INFO] [stdout] | [INFO] [stdout] 7 | fn solve_part_one(reader: BufRead) -> Result { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `solve_part_one` in this scope [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | solve_part_one() [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/bin/1.rs:13:59 [INFO] [stdout] | [INFO] [stdout] 5 | fn main() { [INFO] [stdout] | --------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 13 | let input_file = BufReader::new(File::open(INPUT_FILE)?); [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 5 ~ fn main() -> Result<(), Box> { [INFO] [stdout] 6 | [INFO] [stdout] ... [INFO] [stdout] 14 | let result = solve_part_one(input_file) [INFO] [stdout] 15 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `advent-of-code-2024` (bin "advent-of-code-2024") 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 "1") due to 5 previous errors [INFO] [stdout] Some errors have detailed explanations: E0107, E0277, E0782. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0107`. [INFO] [stdout] [INFO] [stderr] error: could not compile `advent-of-code-2024` (bin "advent-of-code-2024" test) due to 1 previous error [INFO] [stderr] error: could not compile `advent-of-code-2024` (bin "1" test) due to 5 previous errors [INFO] running `Command { std: "docker" "inspect" "797f7d1f52b5c957e387b054a85073d826db2c5388c906a42d3d266e6b1ad78b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "797f7d1f52b5c957e387b054a85073d826db2c5388c906a42d3d266e6b1ad78b", kill_on_drop: false }` [INFO] [stdout] 797f7d1f52b5c957e387b054a85073d826db2c5388c906a42d3d266e6b1ad78b