[INFO] cloning repository https://github.com/EdoardoLuciani/aoc2021
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/EdoardoLuciani/aoc2021" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FEdoardoLuciani%2Faoc2021", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FEdoardoLuciani%2Faoc2021'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] e5dc1e63c97f4836859220a4acec92939e647267
[INFO] building EdoardoLuciani/aoc2021 against master#ad211ced81509462cdfe4c29ed10f97279a0acae for pr-135216
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FEdoardoLuciani%2Faoc2021" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/EdoardoLuciani/aoc2021 on toolchain ad211ced81509462cdfe4c29ed10f97279a0acae
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ad211ced81509462cdfe4c29ed10f97279a0acae" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking git repo https://github.com/EdoardoLuciani/aoc2021
[INFO] finished tweaking git repo https://github.com/EdoardoLuciani/aoc2021
[INFO] tweaked toml for git repo https://github.com/EdoardoLuciani/aoc2021 written to /workspace/builds/worker-2-tc1/source/Cargo.toml
[INFO] crate git repo https://github.com/EdoardoLuciani/aoc2021 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" "+ad211ced81509462cdfe4c29ed10f97279a0acae" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+ad211ced81509462cdfe4c29ed10f97279a0acae" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 4c71b1420e680a84353ec27c1008e7a52041fd81413e7953e95407ec50b2591d
[INFO] running `Command { std: "docker" "start" "-a" "4c71b1420e680a84353ec27c1008e7a52041fd81413e7953e95407ec50b2591d", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "4c71b1420e680a84353ec27c1008e7a52041fd81413e7953e95407ec50b2591d", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "4c71b1420e680a84353ec27c1008e7a52041fd81413e7953e95407ec50b2591d", kill_on_drop: false }`
[INFO] [stdout] 4c71b1420e680a84353ec27c1008e7a52041fd81413e7953e95407ec50b2591d
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+ad211ced81509462cdfe4c29ed10f97279a0acae" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 40ed8c5f0c9fffc5fb0bb21a253f585ff12e8c446617e837e4852c45535df852
[INFO] running `Command { std: "docker" "start" "-a" "40ed8c5f0c9fffc5fb0bb21a253f585ff12e8c446617e837e4852c45535df852", kill_on_drop: false }`
[INFO] [stderr]    Compiling autocfg v1.0.1
[INFO] [stderr]    Compiling num-traits v0.2.14
[INFO] [stderr]    Compiling num-integer v0.1.44
[INFO] [stderr]    Compiling num-bigint v0.4.3
[INFO] [stderr]    Compiling num-rational v0.4.0
[INFO] [stderr]    Compiling num-iter v0.1.42
[INFO] [stderr]    Compiling num-complex v0.4.0
[INFO] [stderr]    Compiling num v0.4.0
[INFO] [stderr]    Compiling aoc2021 v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused imports: `DerefMut` and `Deref`
[INFO] [stdout]  --> src/bin/day12/main.rs:8:16
[INFO] [stdout]   |
[INFO] [stdout] 8 | use std::ops::{Deref, DerefMut};
[INFO] [stdout]   |                ^^^^^  ^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::borrow::Borrow`
[INFO] [stdout]  --> src/bin/day13/main.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::borrow::Borrow;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::collections::HashMap`
[INFO] [stdout]  --> src/bin/day13/main.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::collections::HashMap;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `read`
[INFO] [stdout]  --> src/bin/day13/main.rs:5:15
[INFO] [stdout]   |
[INFO] [stdout] 5 | use std::fs::{read, File};
[INFO] [stdout]   |               ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::ops::Deref`
[INFO] [stdout]  --> src/bin/day13/main.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 7 | use std::ops::Deref;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `for` iterator expression
[INFO] [stdout]   --> src/bin/day13/main.rs:95:20
[INFO] [stdout]    |
[INFO] [stdout] 95 |         for row in (first_coord.1..=second_coord.1) {
[INFO] [stdout]    |                    ^                              ^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_parens)]` on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 95 -         for row in (first_coord.1..=second_coord.1) {
[INFO] [stdout] 95 +         for row in first_coord.1..=second_coord.1 {
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `for` iterator expression
[INFO] [stdout]   --> src/bin/day13/main.rs:96:24
[INFO] [stdout]    |
[INFO] [stdout] 96 |             for col in (first_coord.0..=second_coord.0) {
[INFO] [stdout]    |                        ^                              ^
[INFO] [stdout]    |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 96 -             for col in (first_coord.0..=second_coord.0) {
[INFO] [stdout] 96 +             for col in first_coord.0..=second_coord.0 {
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `ret_value` in this scope
[INFO] [stdout]   --> src/bin/day8/main.rs:79:22
[INFO] [stdout]    |
[INFO] [stdout] 79 |                 4 => ret_value.push(4),
[INFO] [stdout]    |                      ^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `ret_value` in this scope
[INFO] [stdout]   --> src/bin/day8/main.rs:80:22
[INFO] [stdout]    |
[INFO] [stdout] 80 |                 7 => ret_value.push(8),
[INFO] [stdout]    |                      ^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Write`
[INFO] [stdout]  --> src/bin/day16/main.rs:2:27
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::fmt::{Formatter, Write};
[INFO] [stdout]   |                           ^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]   --> src/bin/day5/main.rs:84:16
[INFO] [stdout]    |
[INFO] [stdout] 84 |             if (temp_line_coords[0] == temp_line_coords[2]
[INFO] [stdout]    |                ^
[INFO] [stdout] 85 |                 || temp_line_coords[1] == temp_line_coords[3])
[INFO] [stdout]    |                                                              ^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_parens)]` on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 84 ~             if temp_line_coords[0] == temp_line_coords[2]
[INFO] [stdout] 85 ~                 || temp_line_coords[1] == temp_line_coords[3]
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `version`
[INFO] [stdout]   --> src/bin/day16/main.rs:13:9
[INFO] [stdout]    |
[INFO] [stdout] 13 |     let version = u8::from_str_radix(&bytes[0..3], 2).unwrap();
[INFO] [stdout]    |         ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_version`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `i`
[INFO] [stdout]   --> src/bin/day16/main.rs:34:17
[INFO] [stdout]    |
[INFO] [stdout] 34 |             for i in 0..sub_packets_count {
[INFO] [stdout]    |                 ^ help: if this is intentional, prefix it with an underscore: `_i`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `i`
[INFO] [stdout]   --> src/bin/day16/main.rs:87:21
[INFO] [stdout]    |
[INFO] [stdout] 87 |                 for i in 0..sub_packets_num {
[INFO] [stdout]    |                     ^ help: if this is intentional, prefix it with an underscore: `_i`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0425`.
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Borrow`
[INFO] [stdout]  --> src/bin/day12/main.rs:1:19
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::borrow::{Borrow, BorrowMut};
[INFO] [stdout]   |                   ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `BorrowMut`
[INFO] [stdout]  --> src/bin/day12/main.rs:1:27
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::borrow::{Borrow, BorrowMut};
[INFO] [stdout]   |                           ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `aoc2021` (bin "day8") due to 2 previous errors
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] warning: unused variable: `boards_len`
[INFO] [stdout]   --> src/bin/day4/main.rs:94:9
[INFO] [stdout]    |
[INFO] [stdout] 94 |     let boards_len = boards.len();
[INFO] [stdout]    |         ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_boards_len`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `get_packet_len` is never used
[INFO] [stdout]   --> src/bin/day16/main.rs:52:8
[INFO] [stdout]    |
[INFO] [stdout] 42 | impl Packet {
[INFO] [stdout]    | ----------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 52 |     fn get_packet_len(&self) -> usize {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0502]: cannot borrow `boards` as immutable because it is also borrowed as mutable
[INFO] [stdout]    --> src/bin/day4/main.rs:103:36
[INFO] [stdout]     |
[INFO] [stdout] 97  |         for board in boards.iter_mut() {
[INFO] [stdout]     |                      -----------------
[INFO] [stdout]     |                      |
[INFO] [stdout]     |                      mutable borrow occurs here
[INFO] [stdout]     |                      mutable borrow later used here
[INFO] [stdout] ...
[INFO] [stdout] 103 |                 if winner_count == boards.len() as u32 {
[INFO] [stdout]     |                                    ^^^^^^ immutable borrow occurs here
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0502`.
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `k`
[INFO] [stdout]   --> src/bin/day5/main.rs:60:35
[INFO] [stdout]    |
[INFO] [stdout] 60 |         diagram_map_copy.retain(|&k, v| v > &mut 1);
[INFO] [stdout]    |                                   ^ help: if this is intentional, prefix it with an underscore: `_k`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/bin/day16/main.rs:132:5
[INFO] [stdout]     |
[INFO] [stdout] 132 |     file.read_to_string(&mut content);
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout]     = note: `#[warn(unused_must_use)]` on by default
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 132 |     let _ = file.read_to_string(&mut content);
[INFO] [stdout]     |     +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing
[INFO] [stdout]    --> src/bin/day16/main.rs:164:58
[INFO] [stdout]     |
[INFO] [stdout] 164 |         return subpackets.iter().map(|s| get_expression(s.clone())).reduce(red_fun).unwrap();
[INFO] [stdout]     |                                                          ^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: the type `Packet` does not implement `Clone`, so calling `clone` on `&Packet` copies the reference, which does not do anything and can be removed
[INFO] [stdout]     = note: `#[warn(noop_method_call)]` on by default
[INFO] [stdout] help: remove this redundant call
[INFO] [stdout]     |
[INFO] [stdout] 164 -         return subpackets.iter().map(|s| get_expression(s.clone())).reduce(red_fun).unwrap();
[INFO] [stdout] 164 +         return subpackets.iter().map(|s| get_expression(s)).reduce(red_fun).unwrap();
[INFO] [stdout]     |
[INFO] [stdout] help: if you meant to clone `Packet`, implement `Clone` for it
[INFO] [stdout]     |
[INFO] [stdout] 6   + #[derive(Clone)]
[INFO] [stdout] 7   | struct Packet {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `start` is never read
[INFO] [stdout]  --> src/bin/day5/main.rs:9:9
[INFO] [stdout]   |
[INFO] [stdout] 8 | struct Line {
[INFO] [stdout]   |        ---- field in this struct
[INFO] [stdout] 9 |     pub start: (i32, i32),
[INFO] [stdout]   |         ^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `aoc2021` (bin "day4") due to 1 previous error; 1 warning emitted
[INFO] [stdout] warning: unused variable: `folds_to_execute_count`
[INFO] [stdout]    --> src/bin/day13/main.rs:150:9
[INFO] [stdout]     |
[INFO] [stdout] 150 |     let folds_to_execute_count = folds.len();
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_folds_to_execute_count`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] running `Command { std: "docker" "inspect" "40ed8c5f0c9fffc5fb0bb21a253f585ff12e8c446617e837e4852c45535df852", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "40ed8c5f0c9fffc5fb0bb21a253f585ff12e8c446617e837e4852c45535df852", kill_on_drop: false }`
[INFO] [stdout] 40ed8c5f0c9fffc5fb0bb21a253f585ff12e8c446617e837e4852c45535df852
