[INFO] cloning repository https://github.com/mtrefilek/advent-of-code-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/mtrefilek/advent-of-code-2021-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmtrefilek%2Fadvent-of-code-2021-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmtrefilek%2Fadvent-of-code-2021-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b8219da128ec0198e0194280f9378899feb3e0f5 [INFO] testing mtrefilek/advent-of-code-2021-rust against beta-2022-02-22 for beta-1.60-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmtrefilek%2Fadvent-of-code-2021-rust" "/workspace/builds/worker-19/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-19/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/mtrefilek/advent-of-code-2021-rust on toolchain beta-2022-02-22 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-02-22" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/mtrefilek/advent-of-code-2021-rust [INFO] finished tweaking git repo https://github.com/mtrefilek/advent-of-code-2021-rust [INFO] tweaked toml for git repo https://github.com/mtrefilek/advent-of-code-2021-rust written to /workspace/builds/worker-19/source/Cargo.toml [INFO] crate git repo https://github.com/mtrefilek/advent-of-code-2021-rust already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-02-22" "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] [stderr] Downloading crates ... [INFO] [stderr] Downloaded psl-types v2.0.9 [INFO] [stderr] Downloaded cookie_store v0.15.1 [INFO] [stderr] Downloaded publicsuffix v2.1.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-19/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-19/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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-02-22" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] aadce769d6ada470cbf30fcc9cf588a662529d3e18e29d8d3fa8e3846261cc3e [INFO] running `Command { std: "docker" "start" "-a" "aadce769d6ada470cbf30fcc9cf588a662529d3e18e29d8d3fa8e3846261cc3e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "aadce769d6ada470cbf30fcc9cf588a662529d3e18e29d8d3fa8e3846261cc3e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "aadce769d6ada470cbf30fcc9cf588a662529d3e18e29d8d3fa8e3846261cc3e", kill_on_drop: false }` [INFO] [stdout] aadce769d6ada470cbf30fcc9cf588a662529d3e18e29d8d3fa8e3846261cc3e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-19/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-19/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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-02-22" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1e8fc78b4004ab85bfd14087d1994442d25642548ab8c23f2298fb9a4f4dcdc4 [INFO] running `Command { std: "docker" "start" "-a" "1e8fc78b4004ab85bfd14087d1994442d25642548ab8c23f2298fb9a4f4dcdc4", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.32 [INFO] [stderr] Compiling syn v1.0.82 [INFO] [stderr] Compiling libc v0.2.108 [INFO] [stderr] Compiling pkg-config v0.3.22 [INFO] [stderr] Compiling cc v1.0.72 [INFO] [stderr] Compiling hashbrown v0.11.2 [INFO] [stderr] Compiling matches v0.1.9 [INFO] [stderr] Compiling openssl v0.10.38 [INFO] [stderr] Compiling unicode-bidi v0.3.7 [INFO] [stderr] Compiling native-tls v0.2.8 [INFO] [stderr] Compiling psl-types v2.0.9 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling ipnet v2.3.1 [INFO] [stderr] Compiling tokio v1.14.0 [INFO] [stderr] Compiling tinyvec v1.5.1 [INFO] [stderr] Compiling form_urlencoded v1.0.1 [INFO] [stderr] Compiling indexmap v1.7.0 [INFO] [stderr] Compiling openssl-sys v0.9.71 [INFO] [stderr] Compiling quote v1.0.10 [INFO] [stderr] Compiling unicode-normalization v0.1.19 [INFO] [stderr] Compiling parking_lot_core v0.8.5 [INFO] [stderr] Compiling mio v0.7.14 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling signal-hook-registry v1.4.0 [INFO] [stderr] Compiling socket2 v0.4.2 [INFO] [stderr] Compiling idna v0.2.3 [INFO] [stderr] Compiling parking_lot v0.11.2 [INFO] [stderr] Compiling url v2.2.2 [INFO] [stderr] Compiling publicsuffix v2.1.1 [INFO] [stderr] Compiling tokio-macros v1.6.0 [INFO] [stderr] Compiling futures-macro v0.3.18 [INFO] [stderr] Compiling time-macros-impl v0.1.2 [INFO] [stderr] Compiling serde_derive v1.0.130 [INFO] [stderr] Compiling time-macros v0.1.1 [INFO] [stderr] Compiling time v0.2.27 [INFO] [stderr] Compiling futures-util v0.3.18 [INFO] [stderr] Compiling cookie v0.15.1 [INFO] [stderr] Compiling futures-executor v0.3.18 [INFO] [stderr] Compiling serde v1.0.130 [INFO] [stderr] Compiling futures v0.3.18 [INFO] [stderr] Compiling tokio-util v0.6.9 [INFO] [stderr] Compiling tokio-native-tls v0.3.0 [INFO] [stderr] Compiling h2 v0.3.7 [INFO] [stderr] Compiling serde_json v1.0.72 [INFO] [stderr] Compiling serde_urlencoded v0.7.0 [INFO] [stderr] Compiling hyper v0.14.15 [INFO] [stderr] Compiling cookie_store v0.15.1 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling reqwest v0.11.7 [INFO] [stderr] Compiling aoc2021 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: value assigned to `max_grad` is never read [INFO] [stdout] --> src/main.rs:334:25 [INFO] [stdout] | [INFO] [stdout] 334 | max_grad = height - h; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main.rs:459:22 [INFO] [stdout] | [INFO] [stdout] 459 | Some(i) => {}, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main.rs:467:26 [INFO] [stdout] | [INFO] [stdout] 467 | Some(i) => {}, [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/main.rs:493:22 [INFO] [stdout] | [INFO] [stdout] 493 | Some(i) => { [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/main.rs:500:34 [INFO] [stdout] | [INFO] [stdout] 500 | ... Some(i) => {}, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `found` [INFO] [stdout] --> src/main.rs:513:17 [INFO] [stdout] | [INFO] [stdout] 513 | let mut found:char = 'z'; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_found` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main.rs:516:18 [INFO] [stdout] | [INFO] [stdout] 516 | for (i, char2) in &key { [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/main.rs:528:18 [INFO] [stdout] | [INFO] [stdout] 528 | for (i, char2) in &key { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `l` [INFO] [stdout] --> src/main.rs:587:13 [INFO] [stdout] | [INFO] [stdout] 587 | let l:Vec<&str> = v[0].split(" ").collect(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_l` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main.rs:656:9 [INFO] [stdout] | [INFO] [stdout] 656 | for i in 0 .. 7 { [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/main.rs:659:9 [INFO] [stdout] | [INFO] [stdout] 659 | for i in 0 .. 9 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/main.rs:675:17 [INFO] [stdout] | [INFO] [stdout] 675 | Err(err) => {println!("Error: {}", s); vec[3] += 1;} [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/main.rs:682:13 [INFO] [stdout] | [INFO] [stdout] 682 | let x = vec[mod_i]; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main.rs:703:9 [INFO] [stdout] | [INFO] [stdout] 703 | for i in 0 .. 7 { [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/main.rs:706:9 [INFO] [stdout] | [INFO] [stdout] 706 | for i in 0 .. 9 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/main.rs:722:17 [INFO] [stdout] | [INFO] [stdout] 722 | Err(err) => {println!("Error: {}", s); vec[3] += 1;} [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/main.rs:728:13 [INFO] [stdout] | [INFO] [stdout] 728 | let x = vec[mod_i]; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `last_num` is assigned to, but never used [INFO] [stdout] --> src/main.rs:876:13 [INFO] [stdout] | [INFO] [stdout] 876 | let mut last_num = 0; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_last_num` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `index2` is assigned to, but never used [INFO] [stdout] --> src/main.rs:894:25 [INFO] [stdout] | [INFO] [stdout] 894 | let mut index2 = 0; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_index2` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `last_num` is never read [INFO] [stdout] --> src/main.rs:942:17 [INFO] [stdout] | [INFO] [stdout] 942 | last_num = num_i; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `solved` is never read [INFO] [stdout] --> src/main.rs:943:17 [INFO] [stdout] | [INFO] [stdout] 943 | solved = false; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `last_num` is assigned to, but never used [INFO] [stdout] --> src/main.rs:989:13 [INFO] [stdout] | [INFO] [stdout] 989 | let mut last_num = 0; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_last_num` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `index2` is assigned to, but never used [INFO] [stdout] --> src/main.rs:1007:25 [INFO] [stdout] | [INFO] [stdout] 1007 | let mut index2 = 0; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_index2` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `last_num` is never read [INFO] [stdout] --> src/main.rs:1055:17 [INFO] [stdout] | [INFO] [stdout] 1055 | last_num = num_i; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `solved` is never read [INFO] [stdout] --> src/main.rs:1056:17 [INFO] [stdout] | [INFO] [stdout] 1056 | solved = false; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot borrow `basin_memoize` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/main.rs:151:21 [INFO] [stdout] | [INFO] [stdout] 147 | match basin_memoize.get(&(x, y)) { [INFO] [stdout] | -------------------------- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 151 | basin_memoize.insert((x, y), *i); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^--^ [INFO] [stdout] | | | [INFO] [stdout] | | immutable borrow later used here [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mutable_borrow_reservation_conflict)]` on by default [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:513:13 [INFO] [stdout] | [INFO] [stdout] 513 | let mut found:char = 'z'; [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/main.rs:632:9 [INFO] [stdout] | [INFO] [stdout] 632 | let mut until = if b.len() % 2 == 0 { 2 } else { 1 }; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:745:9 [INFO] [stdout] | [INFO] [stdout] 745 | let mut lines = resp.lines(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:806:9 [INFO] [stdout] | [INFO] [stdout] 806 | let mut lines = resp.lines(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:859:17 [INFO] [stdout] | [INFO] [stdout] 859 | let mut board: Vec> = Vec::new(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:867:21 [INFO] [stdout] | [INFO] [stdout] 867 | let mut tup = (num, false); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:882:13 [INFO] [stdout] | [INFO] [stdout] 882 | for mut board in boards.iter_mut() { [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:893:17 [INFO] [stdout] | [INFO] [stdout] 893 | for mut row in board.iter_mut() { [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:972:17 [INFO] [stdout] | [INFO] [stdout] 972 | let mut board: Vec> = Vec::new(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:980:21 [INFO] [stdout] | [INFO] [stdout] 980 | let mut tup = (num, false); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:995:13 [INFO] [stdout] | [INFO] [stdout] 995 | for mut board in boards.iter_mut() { [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:1006:17 [INFO] [stdout] | [INFO] [stdout] 1006 | for mut row in board.iter_mut() { [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: erroneous constant used [INFO] [stdout] --> src/main.rs:179:14 [INFO] [stdout] | [INFO] [stdout] 179 | println!("{:?}", basin_count); [INFO] [stdout] | ^^^^^^ referenced constant has errors [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(const_err)]` on by default [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #71800 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: erroneous constant used [INFO] [stdout] --> src/main.rs:186:14 [INFO] [stdout] | [INFO] [stdout] 186 | println!("{:?}", vec); [INFO] [stdout] | ^^^^^^ referenced constant has errors [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #71800 [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] thread 'rustc' panicked at 'Box', /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/compiler/rustc_errors/src/lib.rs:1106:9 [INFO] [stdout] error: internal compiler error: /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/compiler/rustc_codegen_ssa/src/mir/constant.rs:42:20: encountered bad ConstKind after monomorphizing: Error(DelaySpanBugEmitted(())) [INFO] [stdout] --> src/main.rs:179:14 [INFO] [stdout] | [INFO] [stdout] 179 | println!("{:?}", basin_count); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] stack backtrace: [INFO] [stderr] 0: 0x7f07c4fc984c - std::backtrace_rs::backtrace::libunwind::trace::h02555d7ca8aa068a [INFO] [stderr] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5 [INFO] [stderr] 1: 0x7f07c4fc984c - std::backtrace_rs::backtrace::trace_unsynchronized::h8555a46024147da8 [INFO] [stderr] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stderr] 2: 0x7f07c4fc984c - std::sys_common::backtrace::_print_fmt::h4c7f50b4f105da1e [INFO] [stderr] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/sys_common/backtrace.rs:66:5 [INFO] [stderr] 3: 0x7f07c4fc984c - ::fmt::ha305a40dbc030444 [INFO] [stderr] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/sys_common/backtrace.rs:45:22 [INFO] [stderr] 4: 0x7f07c50292ec - core::fmt::write::hadd15acf4d6ce273 [INFO] [stderr] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/core/src/fmt/mod.rs:1190:17 [INFO] [stderr] 5: 0x7f07c4fb9a18 - std::io::Write::write_fmt::h0f87f6c0c21ec48a [INFO] [stderr] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/io/mod.rs:1657:15 [INFO] [stderr] 6: 0x7f07c4fcd817 - std::sys_common::backtrace::_print::h0dd5c0810675bd8c [INFO] [stderr] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/sys_common/backtrace.rs:48:5 [INFO] [stderr] 7: 0x7f07c4fcd817 - std::sys_common::backtrace::print::h20a2155fa0a22ca6 [INFO] [stderr] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/sys_common/backtrace.rs:35:9 [INFO] [stderr] 8: 0x7f07c4fcd817 - std::panicking::default_hook::{{closure}}::habb3b6f3ccdfe00a [INFO] [stderr] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/panicking.rs:295:22 [INFO] [stderr] 9: 0x7f07c4fcd4df - std::panicking::default_hook::h1c5cf4d5063a38e4 [INFO] [stderr] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/panicking.rs:314:9 [INFO] [stderr] 10: 0x7f07c5759d01 - rustc_driver[6bef90fb01cd5c5b]::DEFAULT_HOOK::{closure#0}::{closure#0} [INFO] [stderr] 11: 0x7f07b3012f33 - as core::ops::function::Fn>::call::hb8a9211c076d6242 [INFO] [stderr] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/alloc/src/boxed.rs:1868:9 [INFO] [stderr] 12: 0x7f07b301ad4c - proc_macro::bridge::client::::enter::{{closure}}::{{closure}}::hc47cfbd9a5212588 [INFO] [stderr] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/proc_macro/src/bridge/client.rs:319:21 [INFO] [stderr] 13: 0x7f07b3021190 - std::panicking::update_hook::{{closure}}::hc596f7b519015f0a [INFO] [stderr] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/panicking.rs:258:41 [INFO] [stderr] 14: 0x7f07c4fce0e5 - std::panicking::rust_panic_with_hook::hb5de7a3072d2cf59 [INFO] [stderr] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/panicking.rs:702:17 [INFO] [stderr] 15: 0x7f07c588bd91 - std[f28d7f26b77e9927]::panicking::begin_panic::::{closure#0} [INFO] [stderr] 16: 0x7f07c588bb46 - std[f28d7f26b77e9927]::sys_common::backtrace::__rust_end_short_backtrace::::{closure#0}, !> [INFO] [stderr] 17: 0x7f07c58bc7ef - std[f28d7f26b77e9927]::panicking::begin_panic:: [INFO] [stderr] 18: 0x7f07c58d2b6d - std[f28d7f26b77e9927]::panic::panic_any:: [INFO] [stderr] 19: 0x7f07c58cfca8 - ::span_bug:: [INFO] [stderr] 20: 0x7f07c58cf980 - ::span_bug:: [INFO] [stderr] 21: 0x7f07c58a46e8 - rustc_middle[35226b2a2d959981]::ty::context::tls::with_opt::::{closure#0}, ()> [INFO] [stderr] 22: 0x7f07c58a49a0 - rustc_middle[35226b2a2d959981]::util::bug::opt_span_bug_fmt:: [INFO] [stderr] 23: 0x7f07c58a496c - rustc_middle[35226b2a2d959981]::util::bug::span_bug_fmt:: [INFO] [stderr] 24: 0x7f07c69de659 - >::codegen_rvalue_operand [INFO] [stderr] 25: 0x7f07c69e6861 - rustc_codegen_ssa[97459cfbebab0e68]::mir::codegen_mir:: [INFO] [stderr] 26: 0x7f07c69a31e2 - rustc_codegen_llvm[b55d4a142e2be4d5]::base::compile_codegen_unit::module_codegen [INFO] [stderr] 27: 0x7f07c762baa6 - >::with_task::> [INFO] [stderr] 28: 0x7f07c76292bf - rustc_codegen_llvm[b55d4a142e2be4d5]::base::compile_codegen_unit [INFO] [stderr] 29: 0x7f07c7657495 - rustc_codegen_ssa[97459cfbebab0e68]::base::codegen_crate:: [INFO] [stderr] 30: 0x7f07c761807a - ::codegen_crate [INFO] [stderr] 31: 0x7f07c7609de7 - ::time::, rustc_interface[b2fc20e59d639e2e]::passes::start_codegen::{closure#0}> [INFO] [stderr] 32: 0x7f07c75f0336 - ::enter::<::ongoing_codegen::{closure#0}::{closure#0}, core[c37c5d1d9572cc31]::result::Result, rustc_errors[67cbba2d4402017b]::ErrorReported>> [INFO] [stderr] 33: 0x7f07c75e66af - ::ongoing_codegen [INFO] [stderr] 34: 0x7f07c75be183 - rustc_interface[b2fc20e59d639e2e]::interface::create_compiler_and_run::, rustc_driver[6bef90fb01cd5c5b]::run_compiler::{closure#1}> [INFO] [stderr] 35: 0x7f07c75a3804 - std[f28d7f26b77e9927]::sys_common::backtrace::__rust_begin_short_backtrace::, rustc_driver[6bef90fb01cd5c5b]::run_compiler::{closure#1}>::{closure#0}, core[c37c5d1d9572cc31]::result::Result<(), rustc_errors[67cbba2d4402017b]::ErrorReported>>::{closure#0}, core[c37c5d1d9572cc31]::result::Result<(), rustc_errors[67cbba2d4402017b]::ErrorReported>> [INFO] [stderr] 36: 0x7f07c75d6a99 - <::spawn_unchecked_, rustc_driver[6bef90fb01cd5c5b]::run_compiler::{closure#1}>::{closure#0}, core[c37c5d1d9572cc31]::result::Result<(), rustc_errors[67cbba2d4402017b]::ErrorReported>>::{closure#0}, core[c37c5d1d9572cc31]::result::Result<(), rustc_errors[67cbba2d4402017b]::ErrorReported>>::{closure#1} as core[c37c5d1d9572cc31]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} [INFO] [stderr] 37: 0x7f07c4fd9bd3 - as core::ops::function::FnOnce>::call_once::h82a18723295373b7 [INFO] [stderr] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/alloc/src/boxed.rs:1854:9 [INFO] [stderr] 38: 0x7f07c4fd9bd3 - as core::ops::function::FnOnce>::call_once::h4b9b8634f7a2a5a4 [INFO] [stderr] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/alloc/src/boxed.rs:1854:9 [INFO] [stderr] 39: 0x7f07c4fd9bd3 - std::sys::unix::thread::Thread::new::thread_start::h3dc341aa024c6852 [INFO] [stderr] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/sys/unix/thread.rs:108:17 [INFO] [stderr] 40: 0x7f07c4eeb609 - start_thread [INFO] [stderr] 41: 0x7f07c4e05293 - clone [INFO] [stderr] 42: 0x0 - [INFO] [stderr] [INFO] [stderr] note: the compiler unexpectedly panicked. this is a bug. [INFO] [stderr] [INFO] [stderr] note: we would appreciate a bug report: https://github.com/rust-lang/rust/issues/new?labels=C-bug%2C+I-ICE%2C+T-compiler&template=ice.md [INFO] [stderr] [INFO] [stderr] note: rustc 1.60.0-beta.1 (0a4f984a8 2022-02-22) running on x86_64-unknown-linux-gnu [INFO] [stderr] [INFO] [stderr] note: compiler flags: --crate-type bin -C embed-bitcode=no -C debuginfo=2 [INFO] [stderr] [INFO] [stderr] note: some of the compiler flags provided by cargo are hidden [INFO] [stderr] [INFO] [stderr] query stack during panic: [INFO] [stderr] end of query stack [INFO] [stdout] error: aborting due to previous error; 40 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `aoc2021` due to previous error; 40 warnings emitted [INFO] running `Command { std: "docker" "inspect" "1e8fc78b4004ab85bfd14087d1994442d25642548ab8c23f2298fb9a4f4dcdc4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1e8fc78b4004ab85bfd14087d1994442d25642548ab8c23f2298fb9a4f4dcdc4", kill_on_drop: false }` [INFO] [stdout] 1e8fc78b4004ab85bfd14087d1994442d25642548ab8c23f2298fb9a4f4dcdc4