[INFO] cloning repository https://github.com/AdamJKing/aoc-2021-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/AdamJKing/aoc-2021-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAdamJKing%2Faoc-2021-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAdamJKing%2Faoc-2021-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 192bc0254a90f0e5221f2661d29d1f45373e4c20 [INFO] testing AdamJKing/aoc-2021-rust against beta-2022-04-10 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAdamJKing%2Faoc-2021-rust" "/workspace/builds/worker-7/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/AdamJKing/aoc-2021-rust on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/AdamJKing/aoc-2021-rust [INFO] finished tweaking git repo https://github.com/AdamJKing/aoc-2021-rust [INFO] tweaked toml for git repo https://github.com/AdamJKing/aoc-2021-rust written to /workspace/builds/worker-7/source/Cargo.toml [INFO] crate git repo https://github.com/AdamJKing/aoc-2021-rust already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "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-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5c13165d2db02b7c3d7dfb59109c90f1d2a6d0454705bfc5ba6d025c2887ba6e [INFO] running `Command { std: "docker" "start" "-a" "5c13165d2db02b7c3d7dfb59109c90f1d2a6d0454705bfc5ba6d025c2887ba6e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5c13165d2db02b7c3d7dfb59109c90f1d2a6d0454705bfc5ba6d025c2887ba6e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5c13165d2db02b7c3d7dfb59109c90f1d2a6d0454705bfc5ba6d025c2887ba6e", kill_on_drop: false }` [INFO] [stdout] 5c13165d2db02b7c3d7dfb59109c90f1d2a6d0454705bfc5ba6d025c2887ba6e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] bfb6f949d2c016274faf19ce670c3d158a044ead93589b613fdba02cfce5cfd2 [INFO] running `Command { std: "docker" "start" "-a" "bfb6f949d2c016274faf19ce670c3d158a044ead93589b613fdba02cfce5cfd2", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling aoc-2021 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: expected `;`, found `read_board` [INFO] [stdout] --> src/day_four.rs:25:16 [INFO] [stdout] | [INFO] [stdout] 25 | lines.n [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 26 | read_board(lines) [INFO] [stdout] | ---------- unexpected token [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ErrorKind` [INFO] [stdout] --> src/day_four.rs:2:35 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::{BufRead, BufReader, ErrorKind}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `n` on type `std::io::Lines>` [INFO] [stdout] --> src/day_four.rs:25:15 [INFO] [stdout] | [INFO] [stdout] 25 | lines.n [INFO] [stdout] | ^ unknown field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: type mismatch resolving `> as Iterator>::Item == &str` [INFO] [stdout] --> src/day_four.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | read_board(lines) [INFO] [stdout] | ^^^^^^^^^^ expected `&str`, found enum `Result` [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&str` [INFO] [stdout] found enum `Result` [INFO] [stdout] note: required by a bound in `read_board` [INFO] [stdout] --> src/day_four.rs:31:40 [INFO] [stdout] | [INFO] [stdout] 31 | fn read_board<'a>(lines: impl Iterator) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ required by this bound in `read_board` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/day_four.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 24 | / while lines.next().is_some() { [INFO] [stdout] 25 | | lines.n [INFO] [stdout] 26 | | read_board(lines) [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^ expected `()`, found enum `Result` [INFO] [stdout] 27 | | } [INFO] [stdout] | |_____- expected this to be `()` [INFO] [stdout] | [INFO] [stdout] = note: expected unit type `()` [INFO] [stdout] found enum `Result` [INFO] [stdout] help: consider using a semicolon here [INFO] [stdout] | [INFO] [stdout] 26 | read_board(lines); [INFO] [stdout] | + [INFO] [stdout] help: consider using a semicolon here [INFO] [stdout] | [INFO] [stdout] 27 | }; [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/day_four.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 15 | fn load_file(filename: &str) -> Result { [INFO] [stdout] | ----------------------------- expected `Result` because of return type [INFO] [stdout] ... [INFO] [stdout] 24 | / while lines.next().is_some() { [INFO] [stdout] 25 | | lines.n [INFO] [stdout] 26 | | read_board(lines) [INFO] [stdout] 27 | | } [INFO] [stdout] | |_____^ expected enum `Result`, found `()` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Result` [INFO] [stdout] found unit type `()` [INFO] [stdout] help: try adding an expression at the end of the block [INFO] [stdout] | [INFO] [stdout] 27 ~ } [INFO] [stdout] 28 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0271, E0308, E0609. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0271`. [INFO] [stdout] [INFO] [stderr] error: could not compile `aoc-2021` due to 6 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "bfb6f949d2c016274faf19ce670c3d158a044ead93589b613fdba02cfce5cfd2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bfb6f949d2c016274faf19ce670c3d158a044ead93589b613fdba02cfce5cfd2", kill_on_drop: false }` [INFO] [stdout] bfb6f949d2c016274faf19ce670c3d158a044ead93589b613fdba02cfce5cfd2