[INFO] cloning repository https://github.com/retr0lbb/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/retr0lbb/advent-of-code-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fretr0lbb%2Fadvent-of-code-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fretr0lbb%2Fadvent-of-code-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d11ca08d0aaa5845128fe31cf73da07cc5f344e2 [INFO] testing retr0lbb/advent-of-code-rust against master#414482f6a0d4e7290f614300581a0b55442552a3 for pr-140985 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fretr0lbb%2Fadvent-of-code-rust" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/retr0lbb/advent-of-code-rust on toolchain 414482f6a0d4e7290f614300581a0b55442552a3 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+414482f6a0d4e7290f614300581a0b55442552a3" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/retr0lbb/advent-of-code-rust [INFO] finished tweaking git repo https://github.com/retr0lbb/advent-of-code-rust [INFO] tweaked toml for git repo https://github.com/retr0lbb/advent-of-code-rust written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/retr0lbb/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" "+414482f6a0d4e7290f614300581a0b55442552a3" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded nom-supreme v0.8.0 [INFO] [stderr] Downloaded brownstone v3.0.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+414482f6a0d4e7290f614300581a0b55442552a3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ce4234b4a0345d471e09ca743a138b784bc91097a2ed5937152e1f16955e0f99 [INFO] running `Command { std: "docker" "start" "-a" "ce4234b4a0345d471e09ca743a138b784bc91097a2ed5937152e1f16955e0f99", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ce4234b4a0345d471e09ca743a138b784bc91097a2ed5937152e1f16955e0f99", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ce4234b4a0345d471e09ca743a138b784bc91097a2ed5937152e1f16955e0f99", kill_on_drop: false }` [INFO] [stdout] ce4234b4a0345d471e09ca743a138b784bc91097a2ed5937152e1f16955e0f99 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+414482f6a0d4e7290f614300581a0b55442552a3" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 778525a273fd4dfef3481ea82cb1ff0bdc680e25abba62f0fa8d6337d39d576a [INFO] running `Command { std: "docker" "start" "-a" "778525a273fd4dfef3481ea82cb1ff0bdc680e25abba62f0fa8d6337d39d576a", kill_on_drop: false }` [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling proc-macro2 v1.0.92 [INFO] [stderr] Compiling unicode-ident v1.0.14 [INFO] [stderr] Compiling libc v0.2.169 [INFO] [stderr] Compiling object v0.36.7 [INFO] [stderr] Compiling gimli v0.31.1 [INFO] [stderr] Compiling adler2 v2.0.0 [INFO] [stderr] Compiling rustix v0.38.42 [INFO] [stderr] Compiling miniz_oxide v0.8.2 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling rustc-demangle v0.1.24 [INFO] [stderr] Compiling owo-colors v4.1.0 [INFO] [stderr] Compiling bitflags v2.6.0 [INFO] [stderr] Compiling linux-raw-sys v0.4.14 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Compiling quote v1.0.38 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling syn v2.0.95 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling unicode-width v0.1.14 [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Compiling is_ci v1.2.0 [INFO] [stderr] Compiling arrayvec v0.7.6 [INFO] [stderr] Compiling unicode-linebreak v0.1.5 [INFO] [stderr] Compiling textwrap v0.16.1 [INFO] [stderr] Compiling addr2line v0.24.2 [INFO] [stderr] Compiling terminal_size v0.4.1 [INFO] [stderr] Compiling brownstone v3.0.0 [INFO] [stderr] Compiling supports-color v3.0.2 [INFO] [stderr] Compiling supports-hyperlinks v3.1.0 [INFO] [stderr] Compiling indent_write v2.2.0 [INFO] [stderr] Compiling joinery v2.1.0 [INFO] [stderr] Compiling supports-unicode v3.0.0 [INFO] [stderr] Compiling bytecount v0.6.8 [INFO] [stderr] Compiling nom_locate v4.2.0 [INFO] [stderr] Compiling nom-supreme v0.8.0 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling miette-derive v7.4.0 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling backtrace v0.3.74 [INFO] [stderr] Compiling backtrace-ext v0.2.1 [INFO] [stderr] Compiling miette v7.4.0 [INFO] [stderr] Compiling rust-advent v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0277]: the type `[String]` cannot be indexed by `u32` [INFO] [stdout] --> src/day6/main.rs:38:52 [INFO] [stdout] | [INFO] [stdout] 38 | if let Some(ch) = input_matrix[y - 1].chars().nth(x) { [INFO] [stdout] | ^^^^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[String]>` is not implemented for `u32` [INFO] [stdout] = help: the following other types implement trait `SliceIndex`: [INFO] [stdout] `usize` implements `SliceIndex` [INFO] [stdout] `usize` implements `SliceIndex<[T]>` [INFO] [stdout] = note: required for `[String]` to implement `Index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[String]` cannot be indexed by `u32` [INFO] [stdout] --> src/day6/main.rs:55:41 [INFO] [stdout] | [INFO] [stdout] 55 | if x + 1 < input_matrix[y].len() { [INFO] [stdout] | ^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[String]>` is not implemented for `u32` [INFO] [stdout] = help: the following other types implement trait `SliceIndex`: [INFO] [stdout] `usize` implements `SliceIndex` [INFO] [stdout] `usize` implements `SliceIndex<[T]>` [INFO] [stdout] = note: required for `[String]` to implement `Index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[String]` cannot be indexed by `u32` [INFO] [stdout] --> src/day6/main.rs:56:52 [INFO] [stdout] | [INFO] [stdout] 56 | if let Some(ch) = input_matrix[y].chars().nth(x + 1) { [INFO] [stdout] | ^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[String]>` is not implemented for `u32` [INFO] [stdout] = help: the following other types implement trait `SliceIndex`: [INFO] [stdout] `usize` implements `SliceIndex` [INFO] [stdout] `usize` implements `SliceIndex<[T]>` [INFO] [stdout] = note: required for `[String]` to implement `Index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/day6/main.rs:73:28 [INFO] [stdout] | [INFO] [stdout] 73 | if y + 1 < input_matrix.len() { [INFO] [stdout] | ----- ^^^^^^^^^^^^^^^^^^ expected `u32`, found `usize` [INFO] [stdout] | | [INFO] [stdout] | expected because this is `u32` [INFO] [stdout] | [INFO] [stdout] help: you can convert a `usize` to a `u32` and panic if the converted value doesn't fit [INFO] [stdout] | [INFO] [stdout] 73 | if y + 1 < input_matrix.len().try_into().unwrap() { [INFO] [stdout] | ++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[String]` cannot be indexed by `u32` [INFO] [stdout] --> src/day6/main.rs:74:52 [INFO] [stdout] | [INFO] [stdout] 74 | if let Some(ch) = input_matrix[y + 1].chars().nth(x) { [INFO] [stdout] | ^^^^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[String]>` is not implemented for `u32` [INFO] [stdout] = help: the following other types implement trait `SliceIndex`: [INFO] [stdout] `usize` implements `SliceIndex` [INFO] [stdout] `usize` implements `SliceIndex<[T]>` [INFO] [stdout] = note: required for `[String]` to implement `Index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[String]` cannot be indexed by `u32` [INFO] [stdout] --> src/day6/main.rs:92:52 [INFO] [stdout] | [INFO] [stdout] 92 | if let Some(ch) = input_matrix[y].chars().nth(x - 1) { [INFO] [stdout] | ^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[String]>` is not implemented for `u32` [INFO] [stdout] = help: the following other types implement trait `SliceIndex`: [INFO] [stdout] `usize` implements `SliceIndex` [INFO] [stdout] `usize` implements `SliceIndex<[T]>` [INFO] [stdout] = note: required for `[String]` to implement `Index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `sum` is assigned to, but never used [INFO] [stdout] --> src/main.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | let mut sum = 0; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_sum` instead [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-advent` (bin "rust-advent") due to 6 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "778525a273fd4dfef3481ea82cb1ff0bdc680e25abba62f0fa8d6337d39d576a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "778525a273fd4dfef3481ea82cb1ff0bdc680e25abba62f0fa8d6337d39d576a", kill_on_drop: false }` [INFO] [stdout] 778525a273fd4dfef3481ea82cb1ff0bdc680e25abba62f0fa8d6337d39d576a