[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] checking retr0lbb/advent-of-code-rust against try#f77b5bc6c7c84df104f86b0dd01d9490e3923fa8 for pr-147834 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fretr0lbb%2Fadvent-of-code-rust" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [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-5-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/retr0lbb/advent-of-code-rust on toolchain f77b5bc6c7c84df104f86b0dd01d9490e3923fa8 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f77b5bc6c7c84df104f86b0dd01d9490e3923fa8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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" "+f77b5bc6c7c84df104f86b0dd01d9490e3923fa8" "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] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [INFO] checking retr0lbb/advent-of-code-rust against try#f77b5bc6c7c84df104f86b0dd01d9490e3923fa8 for pr-147834 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fretr0lbb%2Fadvent-of-code-rust" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [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-5-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/retr0lbb/advent-of-code-rust on toolchain f77b5bc6c7c84df104f86b0dd01d9490e3923fa8 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f77b5bc6c7c84df104f86b0dd01d9490e3923fa8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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" "+f77b5bc6c7c84df104f86b0dd01d9490e3923fa8" "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 owo-colors v4.1.0 [INFO] [stderr] Downloaded miette-derive v7.4.0 [INFO] [stderr] Downloaded terminal_size v0.4.1 [INFO] [stderr] Downloaded indent_write v2.2.0 [INFO] [stderr] Downloaded joinery v2.1.0 [INFO] [stderr] Downloaded brownstone v3.0.0 [INFO] [stderr] Downloaded nom-supreme v0.8.0 [INFO] [stderr] Downloaded miette v7.4.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+f77b5bc6c7c84df104f86b0dd01d9490e3923fa8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 04fb96280f17aa6a50e49a7aeb11854afdfaeb5a87ee99e778bdab3b78b1dcaa [INFO] running `Command { std: "docker" "start" "-a" "04fb96280f17aa6a50e49a7aeb11854afdfaeb5a87ee99e778bdab3b78b1dcaa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "04fb96280f17aa6a50e49a7aeb11854afdfaeb5a87ee99e778bdab3b78b1dcaa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "04fb96280f17aa6a50e49a7aeb11854afdfaeb5a87ee99e778bdab3b78b1dcaa", kill_on_drop: false }` [INFO] [stdout] 04fb96280f17aa6a50e49a7aeb11854afdfaeb5a87ee99e778bdab3b78b1dcaa [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+f77b5bc6c7c84df104f86b0dd01d9490e3923fa8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 51fe3801ed1dbace42ef7a906463312f6fee2b460c53ee20b909abfcb9af67be [INFO] running `Command { std: "docker" "start" "-a" "51fe3801ed1dbace42ef7a906463312f6fee2b460c53ee20b909abfcb9af67be", kill_on_drop: false }` [INFO] [stderr] Compiling object v0.36.7 [INFO] [stderr] Compiling rustix v0.38.42 [INFO] [stderr] Checking gimli v0.31.1 [INFO] [stderr] Checking adler2 v2.0.0 [INFO] [stderr] Compiling owo-colors v4.1.0 [INFO] [stderr] Checking unicode-linebreak v0.1.5 [INFO] [stderr] Checking nom v7.1.3 [INFO] [stderr] Checking is_ci v1.2.0 [INFO] [stderr] Checking indent_write v2.2.0 [INFO] [stderr] Checking joinery v2.1.0 [INFO] [stderr] Compiling quote v1.0.38 [INFO] [stderr] Checking brownstone v3.0.0 [INFO] [stderr] Checking supports-unicode v3.0.0 [INFO] [stderr] Checking supports-hyperlinks v3.1.0 [INFO] [stderr] Checking miniz_oxide v0.8.2 [INFO] [stderr] Checking supports-color v3.0.2 [INFO] [stderr] Compiling syn v2.0.95 [INFO] [stderr] Checking textwrap v0.16.1 [INFO] [stderr] Checking terminal_size v0.4.1 [INFO] [stderr] Checking nom_locate v4.2.0 [INFO] [stderr] Checking nom-supreme v0.8.0 [INFO] [stderr] Checking addr2line v0.24.2 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling miette-derive v7.4.0 [INFO] [stderr] Checking thiserror v1.0.69 [INFO] [stderr] Checking backtrace v0.3.74 [INFO] [stderr] Checking backtrace-ext v0.2.1 [INFO] [stderr] Checking miette v7.4.0 [INFO] [stderr] Checking 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: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[E0282]: type annotations needed [INFO] [stdout] --> src/day6/main.rs:38:39 [INFO] [stdout] | [INFO] [stdout] 38 | if let Some(ch) = input_matrix[y - 1].chars().nth(x) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/day6/main.rs:38:39 [INFO] [stdout] | [INFO] [stdout] 38 | if let Some(ch) = input_matrix[y - 1].chars().nth(x) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ cannot infer type [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: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[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[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] 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:9 [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)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `sum` is never read [INFO] [stdout] --> src/main.rs:43:13 [INFO] [stdout] | [INFO] [stdout] 43 | sum += distance; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `sum` is assigned to, but never used [INFO] [stdout] --> src/main.rs:20:9 [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)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `sum` is never read [INFO] [stdout] --> src/main.rs:43:13 [INFO] [stdout] | [INFO] [stdout] 43 | sum += distance; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0282, E0308. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0282, 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" test) due to 7 previous errors; 2 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `rust-advent` (bin "rust-advent") due to 7 previous errors; 2 warnings emitted [INFO] running `Command { std: "docker" "inspect" "51fe3801ed1dbace42ef7a906463312f6fee2b460c53ee20b909abfcb9af67be", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "51fe3801ed1dbace42ef7a906463312f6fee2b460c53ee20b909abfcb9af67be", kill_on_drop: false }` [INFO] [stdout] 51fe3801ed1dbace42ef7a906463312f6fee2b460c53ee20b909abfcb9af67be