[INFO] cloning repository https://github.com/sstamoulis-mos/advent-of-code-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/sstamoulis-mos/advent-of-code-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsstamoulis-mos%2Fadvent-of-code-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsstamoulis-mos%2Fadvent-of-code-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] e4578ba0003e02ff93528d6eeefebc89d167dc2d [INFO] testing sstamoulis-mos/advent-of-code-rust against try#c2e32f1c9652b13ed99608599c1e855462f421f3 for pr-146098-7 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsstamoulis-mos%2Fadvent-of-code-rust" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] removed /workspace/builds/worker-6-tc2/source/.cargo/config.toml [INFO] started tweaking git repo https://github.com/sstamoulis-mos/advent-of-code-rust [INFO] finished tweaking git repo https://github.com/sstamoulis-mos/advent-of-code-rust [INFO] tweaked toml for git repo https://github.com/sstamoulis-mos/advent-of-code-rust written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/sstamoulis-mos/advent-of-code-rust on toolchain c2e32f1c9652b13ed99608599c1e855462f421f3 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/sstamoulis-mos/advent-of-code-rust 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" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5cdcdc310138b971ae32ebb2e24afb956086cc6250d778cc4db24000fc5c4329 [INFO] running `Command { std: "docker" "start" "-a" "5cdcdc310138b971ae32ebb2e24afb956086cc6250d778cc4db24000fc5c4329", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5cdcdc310138b971ae32ebb2e24afb956086cc6250d778cc4db24000fc5c4329", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5cdcdc310138b971ae32ebb2e24afb956086cc6250d778cc4db24000fc5c4329", kill_on_drop: false }` [INFO] [stdout] 5cdcdc310138b971ae32ebb2e24afb956086cc6250d778cc4db24000fc5c4329 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4aa574c92be162ea4788cb62a5049ff31dfcc2fae72f7bdea2073540d4745fad [INFO] running `Command { std: "docker" "start" "-a" "4aa574c92be162ea4788cb62a5049ff31dfcc2fae72f7bdea2073540d4745fad", kill_on_drop: false }` [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling matrixmultiply v0.3.9 [INFO] [stderr] Compiling memchr v2.6.4 [INFO] [stderr] Compiling tinyjson v2.5.1 [INFO] [stderr] Compiling pico-args v0.5.0 [INFO] [stderr] Compiling itertools v0.14.0 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling num-complex v0.4.6 [INFO] [stderr] Compiling ndarray v0.16.1 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling advent_of_code v0.11.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0596]: cannot borrow `path` as mutable, as it is not declared as mutable [INFO] [stdout] --> src/bin/06.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | path.push(pos); [INFO] [stdout] | ^^^^ cannot borrow as mutable [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be mutable [INFO] [stdout] | [INFO] [stdout] 25 | let mut path = Vec::new(); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `*map` as mutable, as it is behind a `&` reference [INFO] [stdout] --> src/bin/06.rs:56:32 [INFO] [stdout] | [INFO] [stdout] 56 | Heading::Up => map.slice_mut(s![next_pos.0 + 1..=pos.0, pos.1]), [INFO] [stdout] | ^^^ `map` is a `&` reference, so the data it refers to cannot be borrowed as mutable [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be a mutable reference [INFO] [stdout] | [INFO] [stdout] 26 | let map = &mut self.array; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `*map` as mutable, as it is behind a `&` reference [INFO] [stdout] --> src/bin/06.rs:57:35 [INFO] [stdout] | [INFO] [stdout] 57 | Heading::Right => map.slice_mut(s![pos.0, pos.1..next_pos.1]), [INFO] [stdout] | ^^^ `map` is a `&` reference, so the data it refers to cannot be borrowed as mutable [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be a mutable reference [INFO] [stdout] | [INFO] [stdout] 26 | let map = &mut self.array; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `*map` as mutable, as it is behind a `&` reference [INFO] [stdout] --> src/bin/06.rs:58:34 [INFO] [stdout] | [INFO] [stdout] 58 | Heading::Down => map.slice_mut(s![pos.0..next_pos.0, pos.1]), [INFO] [stdout] | ^^^ `map` is a `&` reference, so the data it refers to cannot be borrowed as mutable [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be a mutable reference [INFO] [stdout] | [INFO] [stdout] 26 | let map = &mut self.array; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `*map` as mutable, as it is behind a `&` reference [INFO] [stdout] --> src/bin/06.rs:59:34 [INFO] [stdout] | [INFO] [stdout] 59 | Heading::Left => map.slice_mut(s![pos.0, next_pos.1 + 1..=pos.1]), [INFO] [stdout] | ^^^ `map` is a `&` reference, so the data it refers to cannot be borrowed as mutable [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be a mutable reference [INFO] [stdout] | [INFO] [stdout] 26 | let map = &mut self.array; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `*map` as mutable, as it is behind a `&` reference [INFO] [stdout] --> src/bin/06.rs:76:28 [INFO] [stdout] | [INFO] [stdout] 76 | Heading::Up => map.slice_mut(s![..=pos.0, pos.1]), [INFO] [stdout] | ^^^ `map` is a `&` reference, so the data it refers to cannot be borrowed as mutable [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be a mutable reference [INFO] [stdout] | [INFO] [stdout] 26 | let map = &mut self.array; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `*map` as mutable, as it is behind a `&` reference [INFO] [stdout] --> src/bin/06.rs:77:31 [INFO] [stdout] | [INFO] [stdout] 77 | Heading::Right => map.slice_mut(s![pos.0, pos.1..]), [INFO] [stdout] | ^^^ `map` is a `&` reference, so the data it refers to cannot be borrowed as mutable [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be a mutable reference [INFO] [stdout] | [INFO] [stdout] 26 | let map = &mut self.array; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `*map` as mutable, as it is behind a `&` reference [INFO] [stdout] --> src/bin/06.rs:78:30 [INFO] [stdout] | [INFO] [stdout] 78 | Heading::Down => map.slice_mut(s![pos.0.., pos.1]), [INFO] [stdout] | ^^^ `map` is a `&` reference, so the data it refers to cannot be borrowed as mutable [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be a mutable reference [INFO] [stdout] | [INFO] [stdout] 26 | let map = &mut self.array; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `*map` as mutable, as it is behind a `&` reference [INFO] [stdout] --> src/bin/06.rs:79:30 [INFO] [stdout] | [INFO] [stdout] 79 | Heading::Left => map.slice_mut(s![pos.0, ..=pos.1]), [INFO] [stdout] | ^^^ `map` is a `&` reference, so the data it refers to cannot be borrowed as mutable [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be a mutable reference [INFO] [stdout] | [INFO] [stdout] 26 | let map = &mut self.array; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/bin/06.rs:154:17 [INFO] [stdout] | [INFO] [stdout] 154 | pub fn part_two(input: &str) -> Option { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ops::Rem` [INFO] [stdout] --> src/bin/11.rs:1:25 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{fmt::Display, ops::Rem}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0596`. [INFO] [stdout] [INFO] [stderr] error: could not compile `advent_of_code` (bin "06") due to 9 previous errors; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/bin/05.rs:54:23 [INFO] [stdout] | [INFO] [stdout] 54 | fn parse_input(input: &str) -> Data { [INFO] [stdout] | ^^^^ ^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 54 | fn parse_input(input: &str) -> Data<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/bin/11.rs:60:17 [INFO] [stdout] | [INFO] [stdout] 60 | pub fn part_two(input: &str) -> Option { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `blink` is never used [INFO] [stdout] --> src/bin/11.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl Stone { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] 14 | pub fn blink(self) -> (Self, Option) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "4aa574c92be162ea4788cb62a5049ff31dfcc2fae72f7bdea2073540d4745fad", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4aa574c92be162ea4788cb62a5049ff31dfcc2fae72f7bdea2073540d4745fad", kill_on_drop: false }` [INFO] [stdout] 4aa574c92be162ea4788cb62a5049ff31dfcc2fae72f7bdea2073540d4745fad