[INFO] cloning repository https://github.com/brianjp93/aoc2019-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/brianjp93/aoc2019-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbrianjp93%2Faoc2019-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbrianjp93%2Faoc2019-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d1a5d66dae71d72735a8cbf1e8fe60f9dccd90f4 [INFO] checking brianjp93/aoc2019-rust against master#af4a5a13a15fa0c60e06321077ef452f769b42fd for pr-122960-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbrianjp93%2Faoc2019-rust" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/brianjp93/aoc2019-rust on toolchain af4a5a13a15fa0c60e06321077ef452f769b42fd [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/brianjp93/aoc2019-rust [INFO] finished tweaking git repo https://github.com/brianjp93/aoc2019-rust [INFO] tweaked toml for git repo https://github.com/brianjp93/aoc2019-rust written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/brianjp93/aoc2019-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" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d5b2cbfbd9fb7a470dc7924b4ccc285e726c89e2be44421c94ec2dfc164bfdea [INFO] running `Command { std: "docker" "start" "-a" "d5b2cbfbd9fb7a470dc7924b4ccc285e726c89e2be44421c94ec2dfc164bfdea", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d5b2cbfbd9fb7a470dc7924b4ccc285e726c89e2be44421c94ec2dfc164bfdea", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d5b2cbfbd9fb7a470dc7924b4ccc285e726c89e2be44421c94ec2dfc164bfdea", kill_on_drop: false }` [INFO] [stdout] d5b2cbfbd9fb7a470dc7924b4ccc285e726c89e2be44421c94ec2dfc164bfdea [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2877c0bd4de5e43c86a0df36cb22b6e03047f48c74d10ab92dcd388f393a96b8 [INFO] running `Command { std: "docker" "start" "-a" "2877c0bd4de5e43c86a0df36cb22b6e03047f48c74d10ab92dcd388f393a96b8", kill_on_drop: false }` [INFO] [stderr] Compiling num-traits v0.2.12 [INFO] [stderr] Compiling num-complex v0.2.4 [INFO] [stderr] Compiling num-integer v0.1.43 [INFO] [stderr] Compiling ndarray v0.13.1 [INFO] [stderr] Checking rawpointer v0.2.1 [INFO] [stderr] Checking either v1.6.0 [INFO] [stderr] Checking matrixmultiply v0.2.3 [INFO] [stderr] Checking itertools v0.9.0 [INFO] [stderr] Checking aoc2019 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: the item `Array` is imported redundantly [INFO] [stdout] --> src/days/day8.rs:2:15 [INFO] [stdout] | [INFO] [stdout] 1 | use ndarray::prelude::*; [INFO] [stdout] | ------------------- the item `Array` is already imported here [INFO] [stdout] 2 | use ndarray::{Array, Dim, OwnedRepr}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Dim` is imported redundantly [INFO] [stdout] --> src/days/day8.rs:2:22 [INFO] [stdout] | [INFO] [stdout] 1 | use ndarray::prelude::*; [INFO] [stdout] | ------------------- the item `Dim` is already imported here [INFO] [stdout] 2 | use ndarray::{Array, Dim, OwnedRepr}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Array` is imported redundantly [INFO] [stdout] --> src/days/day8.rs:2:15 [INFO] [stdout] | [INFO] [stdout] 1 | use ndarray::prelude::*; [INFO] [stdout] | ------------------- the item `Array` is already imported here [INFO] [stdout] 2 | use ndarray::{Array, Dim, OwnedRepr}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Dim` is imported redundantly [INFO] [stdout] --> src/days/day8.rs:2:22 [INFO] [stdout] | [INFO] [stdout] 1 | use ndarray::prelude::*; [INFO] [stdout] | ------------------- the item `Dim` is already imported here [INFO] [stdout] 2 | use ndarray::{Array, Dim, OwnedRepr}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `point` [INFO] [stdout] --> src/days/day10.rs:97:41 [INFO] [stdout] | [INFO] [stdout] 97 | fn set_all_relative_data(&mut self, point: &Point) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_point` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `point` [INFO] [stdout] --> src/days/day10.rs:97:41 [INFO] [stdout] | [INFO] [stdout] 97 | fn set_all_relative_data(&mut self, point: &Point) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_point` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/days/day11.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | let mut map: HashMap = HashMap::new(); [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/days/day11.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | let mut map: HashMap = HashMap::new(); [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] error[E0594]: cannot assign to data in an index of `HashMap` [INFO] [stdout] --> src/days/day11.rs:47:13 [INFO] [stdout] | [INFO] [stdout] 47 | map[&loc] = ".".to_owned(); [INFO] [stdout] | ^^^^^^^^^ cannot assign [INFO] [stdout] | [INFO] [stdout] = help: trait `IndexMut` is required to modify indexed content, but it is not implemented for `HashMap` [INFO] [stdout] help: to modify a `HashMap`, use `.get_mut()`, `.insert()` or the entry API [INFO] [stdout] | [INFO] [stdout] 47 | map.insert(&loc, ".".to_owned()); [INFO] [stdout] | ~~~~~~~~ ~ + [INFO] [stdout] 47 | map.get_mut(&loc).map(|val| { *val = ".".to_owned(); }); [INFO] [stdout] | ~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ ++++ [INFO] [stdout] 47 | let val = map.entry(&loc).or_insert(".".to_owned()); [INFO] [stdout] | +++++++++ ~~~~~~~ ~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0594]: cannot assign to data in an index of `HashMap` [INFO] [stdout] --> src/days/day11.rs:47:13 [INFO] [stdout] | [INFO] [stdout] 47 | map[&loc] = ".".to_owned(); [INFO] [stdout] | ^^^^^^^^^ cannot assign [INFO] [stdout] | [INFO] [stdout] = help: trait `IndexMut` is required to modify indexed content, but it is not implemented for `HashMap` [INFO] [stdout] help: to modify a `HashMap`, use `.get_mut()`, `.insert()` or the entry API [INFO] [stdout] | [INFO] [stdout] 47 | map.insert(&loc, ".".to_owned()); [INFO] [stdout] | ~~~~~~~~ ~ + [INFO] [stdout] 47 | map.get_mut(&loc).map(|val| { *val = ".".to_owned(); }); [INFO] [stdout] | ~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ ++++ [INFO] [stdout] 47 | let val = map.entry(&loc).or_insert(".".to_owned()); [INFO] [stdout] | +++++++++ ~~~~~~~ ~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0594]: cannot assign to data in an index of `HashMap` [INFO] [stdout] --> src/days/day11.rs:50:13 [INFO] [stdout] | [INFO] [stdout] 50 | map[&loc] = "#".to_owned(); [INFO] [stdout] | ^^^^^^^^^ cannot assign [INFO] [stdout] | [INFO] [stdout] = help: trait `IndexMut` is required to modify indexed content, but it is not implemented for `HashMap` [INFO] [stdout] help: to modify a `HashMap`, use `.get_mut()`, `.insert()` or the entry API [INFO] [stdout] | [INFO] [stdout] 50 | map.insert(&loc, "#".to_owned()); [INFO] [stdout] | ~~~~~~~~ ~ + [INFO] [stdout] 50 | map.get_mut(&loc).map(|val| { *val = "#".to_owned(); }); [INFO] [stdout] | ~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ ++++ [INFO] [stdout] 50 | let val = map.entry(&loc).or_insert("#".to_owned()); [INFO] [stdout] | +++++++++ ~~~~~~~ ~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0594]: cannot assign to data in an index of `HashMap` [INFO] [stdout] --> src/days/day11.rs:50:13 [INFO] [stdout] | [INFO] [stdout] 50 | map[&loc] = "#".to_owned(); [INFO] [stdout] | ^^^^^^^^^ cannot assign [INFO] [stdout] | [INFO] [stdout] = help: trait `IndexMut` is required to modify indexed content, but it is not implemented for `HashMap` [INFO] [stdout] help: to modify a `HashMap`, use `.get_mut()`, `.insert()` or the entry API [INFO] [stdout] | [INFO] [stdout] 50 | map.insert(&loc, "#".to_owned()); [INFO] [stdout] | ~~~~~~~~ ~ + [INFO] [stdout] 50 | map.get_mut(&loc).map(|val| { *val = "#".to_owned(); }); [INFO] [stdout] | ~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ ++++ [INFO] [stdout] 50 | let val = map.entry(&loc).or_insert("#".to_owned()); [INFO] [stdout] | +++++++++ ~~~~~~~ ~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0594`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0594`. [INFO] [stdout] [INFO] [stderr] error: could not compile `aoc2019` (bin "aoc2019") due to 3 previous errors; 4 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `aoc2019` (bin "aoc2019" test) due to 3 previous errors; 4 warnings emitted [INFO] running `Command { std: "docker" "inspect" "2877c0bd4de5e43c86a0df36cb22b6e03047f48c74d10ab92dcd388f393a96b8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2877c0bd4de5e43c86a0df36cb22b6e03047f48c74d10ab92dcd388f393a96b8", kill_on_drop: false }` [INFO] [stdout] 2877c0bd4de5e43c86a0df36cb22b6e03047f48c74d10ab92dcd388f393a96b8