[INFO] cloning repository https://github.com/SergeevPavel/adventofcode2019 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/SergeevPavel/adventofcode2019" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSergeevPavel%2Fadventofcode2019", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSergeevPavel%2Fadventofcode2019'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 833f82894c0e7cb353666d86596b77558b366016 [INFO] testing SergeevPavel/adventofcode2019 against try#8262275854dc0e5381c9d42d56257d94932c5a87 for pr-90799 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSergeevPavel%2Fadventofcode2019" "/workspace/builds/worker-3/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/SergeevPavel/adventofcode2019 on toolchain 8262275854dc0e5381c9d42d56257d94932c5a87 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8262275854dc0e5381c9d42d56257d94932c5a87" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/SergeevPavel/adventofcode2019 [INFO] finished tweaking git repo https://github.com/SergeevPavel/adventofcode2019 [INFO] tweaked toml for git repo https://github.com/SergeevPavel/adventofcode2019 written to /workspace/builds/worker-3/source/Cargo.toml [INFO] crate git repo https://github.com/SergeevPavel/adventofcode2019 already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8262275854dc0e5381c9d42d56257d94932c5a87" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded numtoa v0.1.0 [INFO] [stderr] Downloaded termion v1.5.4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+8262275854dc0e5381c9d42d56257d94932c5a87" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 83a4c207fb1e4a5332f4a795bae8983fcc7ebc573548753f1acf553db5243c75 [INFO] running `Command { std: "docker" "start" "-a" "83a4c207fb1e4a5332f4a795bae8983fcc7ebc573548753f1acf553db5243c75", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "83a4c207fb1e4a5332f4a795bae8983fcc7ebc573548753f1acf553db5243c75", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "83a4c207fb1e4a5332f4a795bae8983fcc7ebc573548753f1acf553db5243c75", kill_on_drop: false }` [INFO] [stdout] 83a4c207fb1e4a5332f4a795bae8983fcc7ebc573548753f1acf553db5243c75 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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" "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:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+8262275854dc0e5381c9d42d56257d94932c5a87" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f1e08c0c4a9bb4862961b68d6c2a3a29982d860d2d3efcc17d1f0b5e2d93c318 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "f1e08c0c4a9bb4862961b68d6c2a3a29982d860d2d3efcc17d1f0b5e2d93c318", kill_on_drop: false }` [INFO] [stderr] Compiling memchr v2.2.1 [INFO] [stderr] Compiling libc v0.2.66 [INFO] [stderr] Compiling regex-syntax v0.6.12 [INFO] [stderr] Compiling numtoa v0.1.0 [INFO] [stderr] Compiling thread_local v0.3.6 [INFO] [stderr] Compiling aho-corasick v0.7.6 [INFO] [stderr] Compiling termion v1.5.4 [INFO] [stderr] Compiling regex v1.3.1 [INFO] [stderr] Compiling adventofcode2019 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `VecDeque` [INFO] [stdout] --> src/day23.rs:1:33 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::{HashMap, VecDeque}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashSet` [INFO] [stdout] --> src/day3b.rs:3:24 [INFO] [stdout] | [INFO] [stdout] 3 | use std::collections::{HashSet, HashMap}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashMap` [INFO] [stdout] --> src/day3a.rs:3:33 [INFO] [stdout] | [INFO] [stdout] 3 | use std::collections::{HashSet, HashMap}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Field` in this scope [INFO] [stdout] --> src/day17.rs:39:17 [INFO] [stdout] | [INFO] [stdout] 39 | fn path(field: &Field) -> Vec { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::convert::TryInto` [INFO] [stdout] --> src/day17.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::convert::TryInto; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `RemAssign` [INFO] [stdout] --> src/day15.rs:2:38 [INFO] [stdout] | [INFO] [stdout] 2 | use std::ops::{Index, IndexMut, Rem, RemAssign}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/day15.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `termion::event::Key` [INFO] [stdout] --> src/day15.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use termion::event::Key; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `regex::internal::Program` [INFO] [stdout] --> src/day15.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use regex::internal::Program; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp::Ordering` [INFO] [stdout] --> src/day15.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::cmp::Ordering; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `step` [INFO] [stdout] --> src/day12a.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | for step in 0..1000 { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_step` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: could not compile `adventofcode2019` due to 2 previous errors; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: cannot borrow `ingredients` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/day14.rs:31:10 [INFO] [stdout] | [INFO] [stdout] 24 | let (req, req_count) = match ingredients.iter().filter(|v| *v.1 < 0).next() { [INFO] [stdout] | ------------------ immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 31 | *ingredients.entry(req.clone()).or_insert(0) += produce * reaction_mult; [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: unused variable: `p` [INFO] [stdout] --> src/day15.rs:315:50 [INFO] [stdout] | [INFO] [stdout] 315 | let (start, _) = field.cells.iter().filter(|(p, ct)| **ct == Start).next().unwrap(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p` [INFO] [stdout] --> src/day15.rs:342:50 [INFO] [stdout] | [INFO] [stdout] 342 | let (start, _) = field.cells.iter().filter(|(p, ct)| **ct == OxSystem).next().unwrap(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stdin` [INFO] [stdout] --> src/day15.rs:380:13 [INFO] [stdout] | [INFO] [stdout] 380 | let mut stdin = termion::async_stdin().keys(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stdin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day15.rs:368:9 [INFO] [stdout] | [INFO] [stdout] 368 | let mut program: Vec = read_to_string("inputs/day15.txt").unwrap() [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/day15.rs:380:9 [INFO] [stdout] | [INFO] [stdout] 380 | let mut stdin = termion::async_stdin().keys(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `draw` [INFO] [stdout] --> src/day15.rs:210:4 [INFO] [stdout] | [INFO] [stdout] 210 | fn draw(field: &Field, out: &mut dyn Write) { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/day15.rs:216:5 [INFO] [stdout] | [INFO] [stdout] 216 | write!(out, "{}", termion::clear::All); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/day15.rs:218:9 [INFO] [stdout] | [INFO] [stdout] 218 | / match t { [INFO] [stdout] 219 | | CellTypes::Start => write!(out, "{}*.", to_term(p)), [INFO] [stdout] 220 | | CellTypes::Empty => write!(out, "{}.", to_term(p)), [INFO] [stdout] 221 | | CellTypes::Wall => write!(out, "{}#", to_term(p)), [INFO] [stdout] 222 | | CellTypes::OxSystem => write!(out, "{}@", to_term(p)), [INFO] [stdout] 223 | | }; [INFO] [stdout] | |__________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/day15.rs:225:5 [INFO] [stdout] | [INFO] [stdout] 225 | write!(out, "{}D{}", to_term(&field.bot_position), termion::cursor::Goto(1, 1)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/day15.rs:410:5 [INFO] [stdout] | [INFO] [stdout] 410 | writeln!(stdout, "Distance: {:?}", ox_system_distance(&droid.field)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/day15.rs:411:5 [INFO] [stdout] | [INFO] [stdout] 411 | writeln!(stdout, "Filling time: {:?}", filling_time(&droid.field)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 16 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "f1e08c0c4a9bb4862961b68d6c2a3a29982d860d2d3efcc17d1f0b5e2d93c318", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f1e08c0c4a9bb4862961b68d6c2a3a29982d860d2d3efcc17d1f0b5e2d93c318", kill_on_drop: false }` [INFO] [stdout] f1e08c0c4a9bb4862961b68d6c2a3a29982d860d2d3efcc17d1f0b5e2d93c318