[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] checking SergeevPavel/adventofcode2019 against try#a7a572ce3edd6d476191fbfe92c9c1986e009b34 for pr-87190-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSergeevPavel%2Fadventofcode2019" "/workspace/builds/worker-52/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-52/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/SergeevPavel/adventofcode2019 on toolchain a7a572ce3edd6d476191fbfe92c9c1986e009b34 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "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-52/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" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "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 termion v1.5.4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-52/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-52/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] fd73420eaf09b76c828a5c1dc460257080cf4189cae614c3660d9299a0524281 [INFO] running `Command { std: "docker" "start" "-a" "fd73420eaf09b76c828a5c1dc460257080cf4189cae614c3660d9299a0524281", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fd73420eaf09b76c828a5c1dc460257080cf4189cae614c3660d9299a0524281", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fd73420eaf09b76c828a5c1dc460257080cf4189cae614c3660d9299a0524281", kill_on_drop: false }` [INFO] [stdout] fd73420eaf09b76c828a5c1dc460257080cf4189cae614c3660d9299a0524281 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-52/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-52/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6a978197388960b5015975cba075afea006d4164a86e37ef97e1bbefe87a55ea [INFO] running `Command { std: "docker" "start" "-a" "6a978197388960b5015975cba075afea006d4164a86e37ef97e1bbefe87a55ea", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Compiling memchr v2.2.1 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking regex-syntax v0.6.12 [INFO] [stderr] Checking numtoa v0.1.0 [INFO] [stderr] Checking termion v1.5.4 [INFO] [stderr] Checking thread_local v0.3.6 [INFO] [stderr] Checking aho-corasick v0.7.6 [INFO] [stderr] Checking regex v1.3.1 [INFO] [stderr] Checking adventofcode2019 v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/day6b.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/day25.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/day13.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/day1b.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/day6a.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/day10b.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/day4a.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/day4b.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/day8a.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/day16.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/day12b.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/day14.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/day3b.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/day8b.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/day24.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/day7b.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/day2a.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/day22.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/day10a.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/day5.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/day7a.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/day12a.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/day11.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/day15.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/day17.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/day2b.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/day23.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/day1a.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/day3a.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/day9.rs from 2018 edition to 2021 [INFO] [stderr] Fixed src/day6b.rs (1 fix) [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/day25.rs:186:30 [INFO] [stdout] | [INFO] [stdout] 186 | while !computer.halted { ; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/day25.rs:191:9 [INFO] [stdout] | [INFO] [stdout] 191 | std::io::stdin().read_line(&mut command); [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] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Fixed src/day13.rs (6 fixes) [INFO] [stderr] Fixed src/day6a.rs (2 fixes) [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/day13.rs:219:9 [INFO] [stdout] | [INFO] [stdout] 219 | write!(out, "{}{}", termion::clear::All, termion::cursor::Goto(1, 1)); [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/day13.rs:221:13 [INFO] [stdout] | [INFO] [stdout] 221 | write!(out, "{}", termion::cursor::Goto(1, y as u16)); [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/day13.rs:233:9 [INFO] [stdout] | [INFO] [stdout] 233 | write!(out, "Score: {:?}", self.score); [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: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Fixed src/day10b.rs (1 fix) [INFO] [stdout] warning: unused `Map` that must be used [INFO] [stdout] --> src/day10b.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 41 | / targets.iter_mut().map(|(_, ts)| { [INFO] [stdout] 42 | | ts.sort_by_key(|t| -(t.distance as i32)) [INFO] [stdout] 43 | | }); [INFO] [stdout] | |_______^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: iterators are lazy and do nothing unless consumed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Fixed src/day16.rs (3 fixes) [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] | ^^^^^^^^^^^ --- immutable borrow later used here [INFO] [stdout] | | [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: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `parse_phase` [INFO] [stdout] --> src/day16.rs:33:4 [INFO] [stdout] | [INFO] [stdout] 33 | fn parse_phase(input: String) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/day13.rs:219:9 [INFO] [stdout] | [INFO] [stdout] 219 | write!(out, "{}{}", termion::clear::All, termion::cursor::Goto(1, 1)); [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/day13.rs:221:13 [INFO] [stdout] | [INFO] [stdout] 221 | write!(out, "{}", termion::cursor::Goto(1, y as u16)); [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/day13.rs:233:9 [INFO] [stdout] | [INFO] [stdout] 233 | write!(out, "Score: {:?}", self.score); [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: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Fixed src/day24.rs (3 fixes) [INFO] [stderr] Fixed src/day22.rs (2 fixes) [INFO] [stdout] warning: associated function is never used: `apply` [INFO] [stdout] --> src/day22.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | fn apply(&self, deck: &[i32], out: &mut [i32]) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `solve` [INFO] [stdout] --> src/day22.rs:47:4 [INFO] [stdout] | [INFO] [stdout] 47 | fn solve(deck_size: i32, input: &Vec) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `solve1` [INFO] [stdout] --> src/day22.rs:59:4 [INFO] [stdout] | [INFO] [stdout] 59 | fn solve1(deck_size: i32, input: &Vec) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `apply` [INFO] [stdout] --> src/day22.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | fn apply(&self, deck: &[i32], out: &mut [i32]) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `solve` [INFO] [stdout] --> src/day22.rs:47:4 [INFO] [stdout] | [INFO] [stdout] 47 | fn solve(deck_size: i32, input: &Vec) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `solve1` [INFO] [stdout] --> src/day22.rs:59:4 [INFO] [stdout] | [INFO] [stdout] 59 | fn solve1(deck_size: i32, input: &Vec) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Fixed src/day12a.rs (1 fix) [INFO] [stderr] Fixed src/day15.rs (10 fixes) [INFO] [stderr] Fixed src/day2b.rs (1 fix) [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: 6 warnings emitted [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: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Fixed src/day3b.rs (1 fix) [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] | ^^^^^^^^^^^ --- immutable borrow later used here [INFO] [stdout] | | [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: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/day25.rs:186:30 [INFO] [stdout] | [INFO] [stdout] 186 | while !computer.halted { ; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/day25.rs:191:9 [INFO] [stdout] | [INFO] [stdout] 191 | std::io::stdin().read_line(&mut command); [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] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `parse_phase` [INFO] [stdout] --> src/day16.rs:33:4 [INFO] [stdout] | [INFO] [stdout] 33 | fn parse_phase(input: String) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Map` that must be used [INFO] [stdout] --> src/day10b.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 41 | / targets.iter_mut().map(|(_, ts)| { [INFO] [stdout] 42 | | ts.sort_by_key(|t| -(t.distance as i32)) [INFO] [stdout] 43 | | }); [INFO] [stdout] | |_______^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: iterators are lazy and do nothing unless consumed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Fixed src/day11.rs (2 fixes) [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] 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] 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] 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] Fixed src/day23.rs (1 fix) [INFO] [stderr] Fixed src/day3a.rs (1 fix) [INFO] [stderr] error: build failed [INFO] [stderr] error: failed to migrate to next edition [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo fix --edition --allow-no-vcs --allow-dirty --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "6a978197388960b5015975cba075afea006d4164a86e37ef97e1bbefe87a55ea", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6a978197388960b5015975cba075afea006d4164a86e37ef97e1bbefe87a55ea", kill_on_drop: false }` [INFO] [stdout] 6a978197388960b5015975cba075afea006d4164a86e37ef97e1bbefe87a55ea