[INFO] cloning repository https://github.com/abailly/adventofcode-2021 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/abailly/adventofcode-2021" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fabailly%2Fadventofcode-2021", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fabailly%2Fadventofcode-2021'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 42e08b0cdba57c8990e0695fae38e0f3fb62487b [INFO] checking abailly/adventofcode-2021/42e08b0cdba57c8990e0695fae38e0f3fb62487b against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fabailly%2Fadventofcode-2021" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/abailly/adventofcode-2021 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/abailly/adventofcode-2021 [INFO] finished tweaking git repo https://github.com/abailly/adventofcode-2021 [INFO] tweaked toml for git repo https://github.com/abailly/adventofcode-2021 written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/abailly/adventofcode-2021 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] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded disjoint-sets v0.4.2 [INFO] [stderr] Downloaded z3 v0.11.2 [INFO] [stderr] Downloaded bindgen v0.58.1 [INFO] [stderr] Downloaded z3-sys v0.7.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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] 41897caec0b0cc173a07148a67a055fddc56aebcc528b6a3dde4f0a8022bce32 [INFO] running `Command { std: "docker" "start" "-a" "41897caec0b0cc173a07148a67a055fddc56aebcc528b6a3dde4f0a8022bce32", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "41897caec0b0cc173a07148a67a055fddc56aebcc528b6a3dde4f0a8022bce32", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "41897caec0b0cc173a07148a67a055fddc56aebcc528b6a3dde4f0a8022bce32", kill_on_drop: false }` [INFO] [stdout] 41897caec0b0cc173a07148a67a055fddc56aebcc528b6a3dde4f0a8022bce32 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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] a146a6f793c95ba32ccc7767b99c238dfc7d42f9129879acdafda58c6509bcc2 [INFO] running `Command { std: "docker" "start" "-a" "a146a6f793c95ba32ccc7767b99c238dfc7d42f9129879acdafda58c6509bcc2", kill_on_drop: false }` [INFO] [stderr] Compiling memchr v2.3.4 [INFO] [stderr] Compiling libc v0.2.112 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling glob v0.3.0 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling proc-macro2 v1.0.36 [INFO] [stderr] Compiling nom v5.1.2 [INFO] [stderr] Compiling unicode-width v0.1.9 [INFO] [stderr] Compiling regex-syntax v0.6.25 [INFO] [stderr] Compiling textwrap v0.11.0 [INFO] [stderr] Compiling libloading v0.7.2 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling clang-sys v1.3.0 [INFO] [stderr] Compiling aho-corasick v0.7.15 [INFO] [stderr] Compiling termcolor v1.1.2 [INFO] [stderr] Compiling strsim v0.8.0 [INFO] [stderr] Compiling bindgen v0.58.1 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling humantime v2.1.0 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling ansi_term v0.12.1 [INFO] [stderr] Compiling vec_map v0.8.2 [INFO] [stderr] Compiling which v3.1.1 [INFO] [stderr] Compiling clap v2.34.0 [INFO] [stderr] Compiling quote v1.0.14 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling shlex v1.1.0 [INFO] [stderr] Compiling peeking_take_while v0.1.2 [INFO] [stderr] Compiling lazycell v1.3.0 [INFO] [stderr] Compiling rustc-hash v1.1.0 [INFO] [stderr] Compiling num-bigint v0.4.3 [INFO] [stderr] Compiling radium v0.5.3 [INFO] [stderr] Compiling ryu v1.0.6 [INFO] [stderr] Compiling num-iter v0.1.42 [INFO] [stderr] Compiling num-rational v0.4.0 [INFO] [stderr] Compiling lexical-core v0.7.6 [INFO] [stderr] Compiling regex v1.4.6 [INFO] [stderr] Compiling cexpr v0.4.0 [INFO] [stderr] Compiling nom v6.2.1 [INFO] [stderr] Checking wyz v0.2.0 [INFO] [stderr] Checking funty v1.1.0 [INFO] [stderr] Checking arrayvec v0.5.2 [INFO] [stderr] Checking static_assertions v1.1.0 [INFO] [stderr] Checking num-complex v0.4.0 [INFO] [stderr] Checking either v1.6.1 [INFO] [stderr] Checking bitvec v0.19.6 [INFO] [stderr] Checking itertools v0.8.2 [INFO] [stderr] Compiling env_logger v0.8.4 [INFO] [stderr] Checking num v0.4.0 [INFO] [stderr] Checking disjoint-sets v0.4.2 [INFO] [stderr] Checking hex v0.4.3 [INFO] [stderr] Checking quick-error v1.2.3 [INFO] [stderr] Checking humantime v1.3.0 [INFO] [stderr] Checking env_logger v0.6.2 [INFO] [stderr] Compiling z3-sys v0.7.1 [INFO] [stderr] Checking z3 v0.11.2 [INFO] [stderr] Checking aoc2021 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `core::u64::MAX` [INFO] [stdout] --> src/geometry.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use core::u64::MAX; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::iter::FromIterator` [INFO] [stdout] --> src/geometry.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::iter::FromIterator; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::u64::MAX` [INFO] [stdout] --> src/geometry.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use core::u64::MAX; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::iter::FromIterator` [INFO] [stdout] --> src/geometry.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::iter::FromIterator; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0283]: type annotations needed [INFO] [stdout] --> src/geometry.rs:196:18 [INFO] [stdout] | [INFO] [stdout] 188 | let all_rots: HashSet<_> = HashSet::from( [INFO] [stdout] | ------- type must be known at this point [INFO] [stdout] ... [INFO] [stdout] 196 | .collect(), [INFO] [stdout] | ^^^^^^^ cannot infer type of the type parameter `B` declared on the method `collect` [INFO] [stdout] | [INFO] [stdout] = note: multiple `impl`s satisfying `HashSet<[i64; 3]>: From<_>` found in the following crates: `core`, `std`: [INFO] [stdout] - impl From<[T; N]> for HashSet [INFO] [stdout] where the constant `N` has type `usize`, T: std::cmp::Eq, T: Hash; [INFO] [stdout] - impl From for T; [INFO] [stdout] help: consider specifying the generic argument [INFO] [stdout] | [INFO] [stdout] 196 | .collect::>(), [INFO] [stdout] | ++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bingo.rs:132:17 [INFO] [stdout] | [INFO] [stdout] 132 | for mut cell in row.iter_mut() { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bingo.rs:132:17 [INFO] [stdout] | [INFO] [stdout] 132 | for mut cell in row.iter_mut() { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `define_all_rotations` is never used [INFO] [stdout] --> src/geometry.rs:47:4 [INFO] [stdout] | [INFO] [stdout] 47 | fn define_all_rotations() -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `rotations` is never used [INFO] [stdout] --> src/geometry.rs:165:4 [INFO] [stdout] | [INFO] [stdout] 165 | fn rotations(p: &Point) -> HashSet { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/bingo.rs:34:21 [INFO] [stdout] | [INFO] [stdout] 34 | write!(f, "{:^5}", c.number); [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] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/bingo.rs:36:21 [INFO] [stdout] | [INFO] [stdout] 36 | write!(f, "[{:^3}]", c.number); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/bingo.rs:39:13 [INFO] [stdout] | [INFO] [stdout] 39 | write!(f, "\n"); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `distanceL1` should have a snake case name [INFO] [stdout] --> src/geometry.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn distanceL1(x: Point, y: Point) -> u64 { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `distance_l1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around index expression [INFO] [stdout] --> src/bin/day10.rs:126:30 [INFO] [stdout] | [INFO] [stdout] 126 | println!("{:?}", res[(res.len() / 2)]); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 126 - println!("{:?}", res[(res.len() / 2)]); [INFO] [stdout] 126 + println!("{:?}", res[res.len() / 2]); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0283`. [INFO] [stdout] [INFO] [stdout] warning: unused import: `Bool` [INFO] [stdout] --> src/bin/day24.rs:14:20 [INFO] [stdout] | [INFO] [stdout] 14 | use z3::ast::{Ast, Bool}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> src/bin/day24.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `aoc2021` (lib test) due to 2 previous errors; 3 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: function `is_not_eol` is never used [INFO] [stdout] --> src/bin/day10.rs:38:4 [INFO] [stdout] | [INFO] [stdout] 38 | fn is_not_eol(res: &Result<(), ParseErr>) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Matching` is never constructed [INFO] [stdout] --> src/bin/day19.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | struct Matching { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/day24.rs:347:9 [INFO] [stdout] | [INFO] [stdout] 347 | let mut res = ALU { [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lb` [INFO] [stdout] --> src/bin/day24.rs:873:9 [INFO] [stdout] | [INFO] [stdout] 873 | let lb = args[1].parse::().unwrap(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_lb` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ub` [INFO] [stdout] --> src/bin/day24.rs:874:9 [INFO] [stdout] | [INFO] [stdout] 874 | let ub = args[2].parse::().unwrap(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ub` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `eval_ast` is never used [INFO] [stdout] --> src/bin/day24.rs:325:4 [INFO] [stdout] | [INFO] [stdout] 325 | fn eval_ast(ast: &AST, input: &Vec, resolve: &HashMap) -> i64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `eval` is never used [INFO] [stdout] --> src/bin/day24.rs:346:4 [INFO] [stdout] | [INFO] [stdout] 346 | fn eval(alu: &AbsALU, input: &Vec, resolve: &HashMap) -> ALU { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_ast` is never used [INFO] [stdout] --> src/bin/day24.rs:690:4 [INFO] [stdout] | [INFO] [stdout] 690 | fn solve_ast(eq: &AST, tgt: i64) -> Vec<(u8, i64)> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `upper_bound_m` is never used [INFO] [stdout] --> src/bin/day24.rs:706:4 [INFO] [stdout] | [INFO] [stdout] 706 | fn upper_bound_m(a: &AST, bounds: &HashMap) -> i64 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `lower_bound_m` is never used [INFO] [stdout] --> src/bin/day24.rs:719:4 [INFO] [stdout] | [INFO] [stdout] 719 | fn lower_bound_m(a: &AST, bounds: &HashMap) -> i64 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `minmax` is never used [INFO] [stdout] --> src/bin/day24.rs:733:4 [INFO] [stdout] | [INFO] [stdout] 733 | fn minmax(eqs: &AST, zbounds: (i64, i64)) -> (i64, i64) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve` is never used [INFO] [stdout] --> src/bin/day24.rs:740:4 [INFO] [stdout] | [INFO] [stdout] 740 | fn solve( [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 12 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "a146a6f793c95ba32ccc7767b99c238dfc7d42f9129879acdafda58c6509bcc2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a146a6f793c95ba32ccc7767b99c238dfc7d42f9129879acdafda58c6509bcc2", kill_on_drop: false }` [INFO] [stdout] a146a6f793c95ba32ccc7767b99c238dfc7d42f9129879acdafda58c6509bcc2