[INFO] cloning repository https://github.com/Deadleg/aoc-2022 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Deadleg/aoc-2022" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDeadleg%2Faoc-2022", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDeadleg%2Faoc-2022'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] faa0b175a857742b4988facf689c0a60f092dc2e [INFO] checking Deadleg/aoc-2022 against try#0bdee9e879c87b7211d316e9152109cfd46c576b for pr-150097 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDeadleg%2Faoc-2022" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Deadleg/aoc-2022 [INFO] finished tweaking git repo https://github.com/Deadleg/aoc-2022 [INFO] tweaked toml for git repo https://github.com/Deadleg/aoc-2022 written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Deadleg/aoc-2022 on toolchain 0bdee9e879c87b7211d316e9152109cfd46c576b [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+0bdee9e879c87b7211d316e9152109cfd46c576b" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Deadleg/aoc-2022 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" "+0bdee9e879c87b7211d316e9152109cfd46c576b" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded arrays v0.1.1 [INFO] [stderr] Downloaded iterchunks v0.3.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+0bdee9e879c87b7211d316e9152109cfd46c576b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7e7642facffe752dea57ebf5b30f5554e0e2d5ab83112501a45f269b94b5d642 [INFO] running `Command { std: "docker" "start" "-a" "7e7642facffe752dea57ebf5b30f5554e0e2d5ab83112501a45f269b94b5d642", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7e7642facffe752dea57ebf5b30f5554e0e2d5ab83112501a45f269b94b5d642", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7e7642facffe752dea57ebf5b30f5554e0e2d5ab83112501a45f269b94b5d642", kill_on_drop: false }` [INFO] [stdout] 7e7642facffe752dea57ebf5b30f5554e0e2d5ab83112501a45f269b94b5d642 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+0bdee9e879c87b7211d316e9152109cfd46c576b" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 663c99fa597e6e1c52397f1baf798ee9a3af797e91b646b6eb74914b7b9f5c8d [INFO] running `Command { std: "docker" "start" "-a" "663c99fa597e6e1c52397f1baf798ee9a3af797e91b646b6eb74914b7b9f5c8d", kill_on_drop: false }` [INFO] [stderr] Checking arrays v0.1.1 [INFO] [stderr] Checking iterchunks v0.3.0 [INFO] [stderr] Checking advent-of-code-2022 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::thread::current` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::thread::current; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:183:12 [INFO] [stdout] | [INFO] [stdout] 183 | if (first_1 <= second_1 && second_2 <= first_2) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 183 - if (first_1 <= second_1 && second_2 <= first_2) { [INFO] [stdout] 183 + if first_1 <= second_1 && second_2 <= first_2 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:185:19 [INFO] [stdout] | [INFO] [stdout] 185 | } else if (second_1 <= first_1 && first_2 <= second_2) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 185 - } else if (second_1 <= first_1 && first_2 <= second_2) { [INFO] [stdout] 185 + } else if second_1 <= first_1 && first_2 <= second_2 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:206:12 [INFO] [stdout] | [INFO] [stdout] 206 | if (first_2 >= second_1 && second_2 >= first_1) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 206 - if (first_2 >= second_1 && second_2 >= first_1) { [INFO] [stdout] 206 + if first_2 >= second_1 && second_2 >= first_1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread::current` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::thread::current; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:183:12 [INFO] [stdout] | [INFO] [stdout] 183 | if (first_1 <= second_1 && second_2 <= first_2) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 183 - if (first_1 <= second_1 && second_2 <= first_2) { [INFO] [stdout] 183 + if first_1 <= second_1 && second_2 <= first_2 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:185:19 [INFO] [stdout] | [INFO] [stdout] 185 | } else if (second_1 <= first_1 && first_2 <= second_2) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 185 - } else if (second_1 <= first_1 && first_2 <= second_2) { [INFO] [stdout] 185 + } else if second_1 <= first_1 && first_2 <= second_2 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:206:12 [INFO] [stdout] | [INFO] [stdout] 206 | if (first_2 >= second_1 && second_2 >= first_1) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 206 - if (first_2 >= second_1 && second_2 >= first_1) { [INFO] [stdout] 206 + if first_2 >= second_1 && second_2 >= first_1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: a method with this name may be added to the standard library in the future [INFO] [stdout] --> src/main.rs:152:40 [INFO] [stdout] | [INFO] [stdout] 152 | for [line1, line2, line3] in lines.array_chunks() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: once this associated item is added to the standard library, the ambiguity may cause an error or change in behavior! [INFO] [stdout] = note: for more information, see issue #48919 [INFO] [stdout] = help: call with fully qualified syntax `iterchunks::IterArrayChunks::array_chunks(...)` to keep using the current method [INFO] [stdout] = note: `#[warn(unstable_name_collisions)]` (part of `#[warn(future_incompatible)]`) on by default [INFO] [stdout] help: add `#![feature(iter_array_chunks)]` to the crate attributes to enable `std::iter::Iterator::array_chunks` [INFO] [stdout] | [INFO] [stdout] 1 + #![feature(iter_array_chunks)] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: a method with this name may be added to the standard library in the future [INFO] [stdout] --> src/main.rs:152:40 [INFO] [stdout] | [INFO] [stdout] 152 | for [line1, line2, line3] in lines.array_chunks() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: once this associated item is added to the standard library, the ambiguity may cause an error or change in behavior! [INFO] [stdout] = note: for more information, see issue #48919 [INFO] [stdout] = help: call with fully qualified syntax `iterchunks::IterArrayChunks::array_chunks(...)` to keep using the current method [INFO] [stdout] = note: `#[warn(unstable_name_collisions)]` (part of `#[warn(future_incompatible)]`) on by default [INFO] [stdout] help: add `#![feature(iter_array_chunks)]` to the crate attributes to enable `std::iter::Iterator::array_chunks` [INFO] [stdout] | [INFO] [stdout] 1 + #![feature(iter_array_chunks)] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `new_dir` does not live long enough [INFO] [stdout] --> src/main.rs:396:27 [INFO] [stdout] | [INFO] [stdout] 381 | let x = current_dir.parent.as_ref().unwrap(); [INFO] [stdout] | ------------------ borrow later used here [INFO] [stdout] ... [INFO] [stdout] 387 | let new_dir = Directory { [INFO] [stdout] | ------- binding `new_dir` declared here [INFO] [stdout] ... [INFO] [stdout] 396 | current_dir = &new_dir; [INFO] [stdout] | ^^^^^^^^ borrowed value does not live long enough [INFO] [stdout] 397 | continue; [INFO] [stdout] 398 | } [INFO] [stdout] | - `new_dir` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `current_dir.files` as mutable, as it is behind a `&` reference [INFO] [stdout] --> src/main.rs:409:9 [INFO] [stdout] | [INFO] [stdout] 409 | current_dir.files.push((bytes.parse::().unwrap(), filename.to_string())); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ `current_dir` is a `&` reference, so it cannot be borrowed as mutable [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be a mutable reference [INFO] [stdout] | [INFO] [stdout] 375 | let mut current_dir = &mut first_dir; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0596, E0597. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0596`. [INFO] [stdout] [INFO] [stderr] error: could not compile `advent-of-code-2022` (bin "advent-of-code-2022" test) due to 2 previous errors; 5 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0597]: `new_dir` does not live long enough [INFO] [stdout] --> src/main.rs:396:27 [INFO] [stdout] | [INFO] [stdout] 381 | let x = current_dir.parent.as_ref().unwrap(); [INFO] [stdout] | ------------------ borrow later used here [INFO] [stdout] ... [INFO] [stdout] 387 | let new_dir = Directory { [INFO] [stdout] | ------- binding `new_dir` declared here [INFO] [stdout] ... [INFO] [stdout] 396 | current_dir = &new_dir; [INFO] [stdout] | ^^^^^^^^ borrowed value does not live long enough [INFO] [stdout] 397 | continue; [INFO] [stdout] 398 | } [INFO] [stdout] | - `new_dir` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `current_dir.files` as mutable, as it is behind a `&` reference [INFO] [stdout] --> src/main.rs:409:9 [INFO] [stdout] | [INFO] [stdout] 409 | current_dir.files.push((bytes.parse::().unwrap(), filename.to_string())); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ `current_dir` is a `&` reference, so it cannot be borrowed as mutable [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be a mutable reference [INFO] [stdout] | [INFO] [stdout] 375 | let mut current_dir = &mut first_dir; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0596, E0597. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0596`. [INFO] [stdout] [INFO] [stderr] error: could not compile `advent-of-code-2022` (bin "advent-of-code-2022") due to 2 previous errors; 5 warnings emitted [INFO] running `Command { std: "docker" "inspect" "663c99fa597e6e1c52397f1baf798ee9a3af797e91b646b6eb74914b7b9f5c8d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "663c99fa597e6e1c52397f1baf798ee9a3af797e91b646b6eb74914b7b9f5c8d", kill_on_drop: false }` [INFO] [stdout] 663c99fa597e6e1c52397f1baf798ee9a3af797e91b646b6eb74914b7b9f5c8d