[INFO] cloning repository https://github.com/aspage2/advent-2023 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/aspage2/advent-2023" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Faspage2%2Fadvent-2023", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Faspage2%2Fadvent-2023'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] bc18d6c55f776372691f3e1e871f68e135552a97 [INFO] checking aspage2/advent-2023/bc18d6c55f776372691f3e1e871f68e135552a97 against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Faspage2%2Fadvent-2023" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/aspage2/advent-2023 on toolchain f609b7e0586f81fefb3523e3e17adf779ac416be [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/aspage2/advent-2023 [INFO] finished tweaking git repo https://github.com/aspage2/advent-2023 [INFO] tweaked toml for git repo https://github.com/aspage2/advent-2023 written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/aspage2/advent-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" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3c8a23715efd5057bd8268ef5aad20c453c765a4f939324ca7201a6d3ad1a437 [INFO] running `Command { std: "docker" "start" "-a" "3c8a23715efd5057bd8268ef5aad20c453c765a4f939324ca7201a6d3ad1a437", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3c8a23715efd5057bd8268ef5aad20c453c765a4f939324ca7201a6d3ad1a437", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3c8a23715efd5057bd8268ef5aad20c453c765a4f939324ca7201a6d3ad1a437", kill_on_drop: false }` [INFO] [stdout] 3c8a23715efd5057bd8268ef5aad20c453c765a4f939324ca7201a6d3ad1a437 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] abd0efb0e5cd9ed1ccdde2a259e23e469f4924ee396219ccf59e10f812da580d [INFO] running `Command { std: "docker" "start" "-a" "abd0efb0e5cd9ed1ccdde2a259e23e469f4924ee396219ccf59e10f812da580d", kill_on_drop: false }` [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] [stderr] Checking day10 v0.1.0 (/opt/rustwide/workdir/days/day10) [INFO] [stderr] Checking day6 v0.1.0 (/opt/rustwide/workdir/days/day6) [INFO] [stderr] Checking day8 v0.1.0 (/opt/rustwide/workdir/days/day8) [INFO] [stderr] Checking day12 v0.1.0 (/opt/rustwide/workdir/days/day12) [INFO] [stderr] Checking day15 v0.1.0 (/opt/rustwide/workdir/days/day15) [INFO] [stderr] Checking day13 v0.1.0 (/opt/rustwide/workdir/days/day13) [INFO] [stderr] Checking day14 v0.1.0 (/opt/rustwide/workdir/days/day14) [INFO] [stdout] warning: method `to_string` is never used [INFO] [stdout] --> days/day12/src/main.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 16 | impl Record { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 21 | fn to_string(&self) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking day3 v0.1.0 (/opt/rustwide/workdir/days/day3) [INFO] [stdout] warning: field `name_map` is never read [INFO] [stdout] --> days/day8/src/main.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 35 | struct Network { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 36 | name_map: HashMap<[u8; 3], usize>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking day5 v0.1.0 (/opt/rustwide/workdir/days/day5) [INFO] [stdout] warning: method `ind_by_name` is never used [INFO] [stdout] --> days/day8/src/main.rs:48:8 [INFO] [stdout] | [INFO] [stdout] 40 | impl Network { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 48 | fn ind_by_name(&self, name: [u8; 3]) -> usize { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking day9 v0.1.0 (/opt/rustwide/workdir/days/day9) [INFO] [stderr] Checking day2 v0.1.0 (/opt/rustwide/workdir/days/day2) [INFO] [stderr] Checking day11 v0.1.0 (/opt/rustwide/workdir/days/day11) [INFO] [stderr] Checking day4 v0.1.0 (/opt/rustwide/workdir/days/day4) [INFO] [stdout] warning: field `name` is never read [INFO] [stdout] --> days/day5/src/parse.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 43 | pub struct Map { [INFO] [stdout] | --- field in this struct [INFO] [stdout] 44 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Map` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `map_one` is never used [INFO] [stdout] --> days/day5/src/parse.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 48 | impl Map { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] 49 | pub fn map_one(&self, n: i64) -> i64 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking day7 v0.1.0 (/opt/rustwide/workdir/days/day7) [INFO] [stdout] warning: field `id` is never read [INFO] [stdout] --> days/day2/src/main.rs:62:5 [INFO] [stdout] | [INFO] [stdout] 61 | struct Game { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 62 | id: u32, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `valid` is never used [INFO] [stdout] --> days/day2/src/main.rs:67:8 [INFO] [stdout] | [INFO] [stdout] 66 | impl Game { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] 67 | fn valid(&self) -> bool { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_string` is never used [INFO] [stdout] --> days/day12/src/main.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 16 | impl Record { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 21 | fn to_string(&self) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking day1 v0.1.0 (/opt/rustwide/workdir/days/day1) [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `name` is never read [INFO] [stdout] --> days/day5/src/parse.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 43 | pub struct Map { [INFO] [stdout] | --- field in this struct [INFO] [stdout] 44 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Map` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `map_one` is never used [INFO] [stdout] --> days/day5/src/parse.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 48 | impl Map { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] 49 | pub fn map_one(&self, n: i64) -> i64 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `(dyn std::error::Error + 'static)` cannot be known at compilation time [INFO] [stdout] --> days/day4/src/main.rs:5:15 [INFO] [stdout] | [INFO] [stdout] 5 | fn shits() -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `(dyn std::error::Error + 'static)` [INFO] [stdout] note: required by an implicit `Sized` bound in `Result` [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/result.rs:527:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `name_map` is never read [INFO] [stdout] --> days/day8/src/main.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 35 | struct Network { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 36 | name_map: HashMap<[u8; 3], usize>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `(dyn std::error::Error + 'static)` cannot be known at compilation time [INFO] [stdout] --> days/day4/src/main.rs:5:15 [INFO] [stdout] | [INFO] [stdout] 5 | fn shits() -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `(dyn std::error::Error + 'static)` [INFO] [stdout] note: required by an implicit `Sized` bound in `Result` [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/result.rs:527:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `ind_by_name` is never used [INFO] [stdout] --> days/day8/src/main.rs:48:8 [INFO] [stdout] | [INFO] [stdout] 40 | impl Network { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 48 | fn ind_by_name(&self, name: [u8; 3]) -> usize { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `id` is never read [INFO] [stdout] --> days/day2/src/main.rs:62:5 [INFO] [stdout] | [INFO] [stdout] 61 | struct Game { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 62 | id: u32, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `valid` is never used [INFO] [stdout] --> days/day2/src/main.rs:67:8 [INFO] [stdout] | [INFO] [stdout] 66 | impl Game { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] 67 | fn valid(&self) -> bool { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> days/day4/src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | fn shits() -> Result { [INFO] [stdout] | ------------------------------------- expected `Result` because of return type [INFO] [stdout] 6 | fs::read_to_string("Hello.txt") [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Result`, found `Result` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Result<_, (dyn std::error::Error + 'static)>` [INFO] [stdout] found enum `Result<_, std::io::Error>` [INFO] [stdout] = help: `std::io::Error` implements `Error` so you could box the found value and coerce it to the trait object `Box`, you will have to change the expected type as well [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> days/day4/src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | fn shits() -> Result { [INFO] [stdout] | ------------------------------------- expected `Result` because of return type [INFO] [stdout] 6 | fs::read_to_string("Hello.txt") [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Result`, found `Result` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Result<_, (dyn std::error::Error + 'static)>` [INFO] [stdout] found enum `Result<_, std::io::Error>` [INFO] [stdout] = help: `std::io::Error` implements `Error` so you could box the found value and coerce it to the trait object `Box`, you will have to change the expected type as well [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `day4` (bin "day4" test) due to 3 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `day4` (bin "day4") due to 3 previous errors [INFO] running `Command { std: "docker" "inspect" "abd0efb0e5cd9ed1ccdde2a259e23e469f4924ee396219ccf59e10f812da580d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "abd0efb0e5cd9ed1ccdde2a259e23e469f4924ee396219ccf59e10f812da580d", kill_on_drop: false }` [INFO] [stdout] abd0efb0e5cd9ed1ccdde2a259e23e469f4924ee396219ccf59e10f812da580d